Avinash Sultanpur wrote:
> 
> What is the equivalent of running the below command in python-ldap?
> 
>     ldappasswd -x -D <root_dn> -w <root_pw> -s secret_password \
>         uid=user000,ou=People,dc=example,dc=com

ldap_conn = ldap.initialize(...)
ldap_conn.simple_bind_s('<rootdn>,'<rootpw>')
ldap_conn.passwd_s('uid=user000,ou=People,dc=example,dc=com',None,'<newpassword>')

Ciao, Michael.

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Python-LDAP-dev mailing list
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev

Reply via email to