diff options
author | Daniel White <[email protected]> | 2014-10-20 08:43:40 +1100 |
---|---|---|
committer | Daniel White <[email protected]> | 2014-10-20 12:10:29 +1100 |
commit | 4130dc841ca68e16f5d97e89653fa49b16f4e793 (patch) | |
tree | 3d2adf834a58266f6a86eb9904463566ff0dbde5 /lib/eldap/asn1 | |
parent | 7c4237e6d34b23020fca983731a3c7f07a10a8b5 (diff) | |
download | otp-4130dc841ca68e16f5d97e89653fa49b16f4e793.tar.gz otp-4130dc841ca68e16f5d97e89653fa49b16f4e793.tar.bz2 otp-4130dc841ca68e16f5d97e89653fa49b16f4e793.zip |
eldap: Add support for modifying passwords
This implements the LDAP Password Modify Extended Operation (RFC 3062)
with two new functions modify_password/3 and modify_password/4. The
former is for directly setting passwords, and the latter is for users to
change their own passwords.
Since all three parameters are optional, I've opted to support this with
the empty string rather than a property list. This seems consistent with
other functions in the module (i.e. modify_dn/5).
Diffstat (limited to 'lib/eldap/asn1')
-rw-r--r-- | lib/eldap/asn1/ELDAPv3.asn1 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/eldap/asn1/ELDAPv3.asn1 b/lib/eldap/asn1/ELDAPv3.asn1 index 72b87d7221..3fe7e815cc 100644 --- a/lib/eldap/asn1/ELDAPv3.asn1 +++ b/lib/eldap/asn1/ELDAPv3.asn1 @@ -274,5 +274,17 @@ IntermediateResponse ::= [APPLICATION 25] SEQUENCE { responseName [0] LDAPOID OPTIONAL, responseValue [1] OCTET STRING OPTIONAL } +-- Extended syntax for Password Modify (RFC 3062, Section 2) + +-- passwdModifyOID OBJECT IDENTIFIER ::= 1.3.6.1.4.1.4203.1.11.1 + +PasswdModifyRequestValue ::= SEQUENCE { + userIdentity [0] OCTET STRING OPTIONAL, + oldPasswd [1] OCTET STRING OPTIONAL, + newPasswd [2] OCTET STRING OPTIONAL } + +PasswdModifyResponseValue ::= SEQUENCE { + genPasswd [0] OCTET STRING OPTIONAL } + END |