|
From: Michael <mi...@st...> - 2001-03-05 08:05:16
|
oop...@ne... wrote:
>
> except _ldap.LDAPError:
> pass
Are you sure that you don't want to see any LDAP-related error if
anything goes wrong?
> l.modify_s(dn,_ldap.MOD_REPLACE,[('cn',["fgs"])])
> TypeError: function requires exactly 2 arguments; 3 given
l.modify_s(dn,[(_ldap.MOD_REPLACE,'cn',["fgs"])])
BTW: Import module ldap instead of _ldap and please read the fine
docs.
Ciao, Michael.
|