From: Guruprasad <lgp...@gm...> - 2009-01-15 09:58:48
|
Guruprasad wrote: > Hi all, > I am new to this Python-LDAP API and am currently learning and working > on it. I, the LDAP admin, want to set the password of a LDAP user after > binding as the admin user. I came across passwd_s() method which can be > used to change the user password, but requires the old password too. As > an admin, I should be able to reset the LDAP passwords of users whose > current passwords I do not know. Is there a way to do this? > > Thanks in advance. > > Regards, > Guruprasad I figured it out. When I bind as LDAP admin and want to change the password of another DN, I just have to give oldpasswd=None. For example: ldapobj.passwd_s("DN to delete",None,"newpassword") Thank you. Regards, Guruprasad |