Ldap / Python help

Michael Ströder michael at stroeder.com
Thu Mar 8 14:34:20 EST 2001


Pablo Pernot wrote:
> 
> Where can I find documentation about ldap/python

Hmm, David sent a new PDF to the mailing list, 28 Jan 2001. Hmm, it
does not seem to be on the web page...

> my modify instruction won't work => modify_s is waiting for a string (dn)
> and a list (mylist) formed by tuple (mytuple) and this tuple is formed for 3 strings.
> 
> So I can't understand the error message about integer.
> 
> mytuple=("MOD_REPLACE","sn","test")

Should be mytuple=(ldap.MOD_REPLACE,"sn",["test"]). ldap.MOD_REPLACE
is an integer constant hence the...

> >>> l.modify_s(dn,mylist)
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> TypeError: an integer is required

Ciao, Michael.



More information about the Python-list mailing list