From: <don...@ma...> - 2001-05-12 09:25:47
|
I'm fairly new to this list but came across the python-ldap module while searching for components for a project I'm doing. Basically I'm writing some code for the Mailman mailing list software, so= that it can do authentication, subscription, etc by LDAP. Have the authen= tication working after some initial playing with the python-ldap module, but I can= 't for the life of me modify any values in the ldap directory. Having read some of the previous discussion on this list (ANNC and query:= ldapmodule-1.10a3-patched RPMs available), it looks like the problem I'm having is to do with OpenLDAP and it's ACLs. Am i correct in thinking th= is??? If so, am i correct in thinking there is a "patch" to solve the problem or should i look at what other modules or APIs that allow python to use the LDAP protocol? I'm using: RedHat 6.2, OpenLDAP 2.07, BeOpen-Python-2.0 and python-ldap-1= .10alpha3. Thanks Donal Hunt *I may just be just making errors in my code, but i'm nearly sure i'm not= * the line of code i'm using: res =3D l.modify_s(user_dn, [(MOD_REPLACE, 'userPassword', [new_pw])]) where: user_dn =3D cn=3Dhuntd2,ou=3DRedGiant,o=3DDCU new_pw =3D newpw is there a way to get the LDAP error codes back from the python-ldap modu= le?? |