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
begin:vcard
fn:Guruprasad L
n:L;Guruprasad
email;internet:lgp171...@gmail.com
tel;cell:+91 9994834868
x-mozilla-html:TRUE
version:2.1
end:vcard
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Python-LDAP-dev mailing list
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev