Problem with modify in python-LDAP
Jean-Eric Cuendet
Jean-Eric.Cuendet at linkvest.com
Mon Apr 2 16:25:23 CEST 2001
Hi,
Would anyone try this little program?
LDAPSearch.find() works great but I always have these errors when updating (
LDAPEntry.commit() ):
Modlist: [(2, 'loginshell', ['/bin/bash', '/bin/ash'])]
Traceback (most recent call last):
File "./class_test.py", line 98, in ?
entry.commit();
File "/usr/lib/python2.0/site-packages/python-ldap/ldap/entry.py", line
254, in commit
self.connection._modify(self.dn, mod)
File "/usr/lib/python2.0/site-packages/python-ldap/ldap/connection.py",
line 63, in _modify
self.__connection.modify_s(self.__check_base(dn), modlist)
ldap.LDAPError: / Ld-error: 0 / Result: 21 / Invalid syntax
Thanks
-jec
<<class_test.py>>
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Jean-Eric Cuendet
Linkvest SA
Av des Baumettes 19, 1020 Renens Switzerland
Tel +41 21 632 9043 Fax +41 21 632 9090
http://www.linkvest.com E-mail: jean-eric.cuendet at linkvest.com
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
-------------- next part --------------
A non-text attachment was scrubbed...
Name: class_test.py
Type: application/octet-stream
Size: 2315 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20010402/9fb01d15/attachment.obj>
More information about the python-ldap
mailing list