retitle 291230 passwd() should return generated password tag 291230 upstream thanks
Fumitoshi UKAI <[EMAIL PROTECTED]> writes: > python-ldap requires some strings for LDAPObject passwd() and/or passwd_s(). > I try to pass None, but it was rejected. > For example, Demo/passwd_ext_op.py actually failed to modify passwd. > It doesn't raise any error, but if you change passwd to passwd_s, then > you can get error response from server side. > > However, slapd will reject passwd mofity request if oldpasswd is set. > (at least back-bdb and back-ldbm). > And slapd will generate new passwd for passwd modify request if newpasswd is > NULL. > > So, if oldpw and/or newpw for passwd() and/or passwd_s() are used, > NULL should be used as argument for ldap_passwd(). I've backported a patch from CVS to accept None for user, oldpw, and newpw. It still isn't able return the generated password, so I'm keeping the bug open. Cheers, Matej -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]