add_s: ldap.INVALID_DN_SYNTAX
Michael Ströder
michael at stroeder.com
Fri Mar 9 20:16:38 CET 2007
Ervin Hegedüs wrote:
>
> File "/usr/local/checkftpdir/Ldapfunctions.py", line 61, in addEntry
> self.l.add_s(_dn, ldif)
> File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 163, in add_s
> self.result(msgid,all=1,timeout=self.timeout)
> File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line
> 399, in result
> res_type,res_data,res_msgid = self.result2(msgid,all,timeout)
> File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line
> 405, in result2
> return self._ldap_call(self._l.result2,msgid,all,timeout)
> File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 94,
> in _ldap_call result = func(*args,**kwargs)
> ldap.INVALID_DN_SYNTAX: {'info': 'invalid DN', 'desc': 'Invalid DN syntax'}
This is an error the server sends back. Probably you're generating a DN
with invalid syntax. I'd recommend to set trace_level=2 with
ldap.initialize() to see what the python-ldap API receives from your script.
Ciao, Michael.
More information about the python-ldap
mailing list