Re: How can i add a booleanMatch type attribute

2010-01-31 Thread Zhang Huangbin
On Jan 31, 2010, at 10:58 PM, Michael Ströder wrote: > Zhang Huangbin wrote: >> How can i add a booleanMatch type attribute with py-ldap? > > Simply like any other attribute provided your attribute value is TRUE or > FALSE. Successed with modlist: ('amavisLocal', ['TRUE']), Thanks :) -- Be

Re: DSML writer

2010-01-31 Thread Michael Ströder
Adam Tauno Williams wrote: > I noticed that python-ldap contains some DSML support; only the XML > produced is invalid [I believe this is caused by its attempt to create > 'pretty' output]. Could you please point me to the details which parts of the XML produced are invalid. Ciao, Michael.

Re: How can i add a booleanMatch type attribute

2010-01-31 Thread Michael Ströder
Zhang Huangbin wrote: > How can i add a booleanMatch type attribute with py-ldap? Simply like any other attribute provided your attribute value is TRUE or FALSE. > Refer to python-ldap-2.3.10/Demo/ldapcontrols.py, i use below code to add new > attribute: > > > l = ldap.initialize('ldap://l