Hello, there,
Our system has something like this:
ldap.url=ldap://xx.xx.xx.xx:389
ldap.base=dc=mycompany,dc=com
ldap.username=cn=Namefield
ldap.password=xxx
When I prepopulated all our user data from our oracle database, the password encoding is using MD5 (since our oacle database system is using that). And Everthing is working fine there.
But when I provide a webpage and let use modify their password from a webpage and doing below:
--------------------------------------------------------------------
DirContextOperations context = ldapTemplate.lookupContext(buildDn(cnName));
context.setAttributeValue("userPassword",cform.get NewPassword());
ldapTemplate.modifyAttributes(context);
---------------------------------------------------------------------
The password encoding has gone (no longer encoding by MD5) and become clear if I view them from phpLDAPadmin.
Is there anything I can do to enforce the encoding when I modify the password Attribute, or I should not using modifyAttribute to change password??
Anyone who has any suggestion?? Or anyone who experience this before??
Thanks for your time!!
Our system has something like this:
ldap.url=ldap://xx.xx.xx.xx:389
ldap.base=dc=mycompany,dc=com
ldap.username=cn=Namefield
ldap.password=xxx
When I prepopulated all our user data from our oracle database, the password encoding is using MD5 (since our oacle database system is using that). And Everthing is working fine there.
But when I provide a webpage and let use modify their password from a webpage and doing below:
--------------------------------------------------------------------
DirContextOperations context = ldapTemplate.lookupContext(buildDn(cnName));
context.setAttributeValue("userPassword",cform.get NewPassword());
ldapTemplate.modifyAttributes(context);
---------------------------------------------------------------------
The password encoding has gone (no longer encoding by MD5) and become clear if I view them from phpLDAPadmin.
Is there anything I can do to enforce the encoding when I modify the password Attribute, or I should not using modifyAttribute to change password??
Anyone who has any suggestion?? Or anyone who experience this before??
Thanks for your time!!
Comment