[python-ldap] multiples values in roleOccupant

Francis Abrante fabrante at yahoo.com
Mon Aug 1 16:16:48 CEST 2011



how do I for add multiples values in roleOccupant attribute?
If the attribute is empty ok, but if I need add other accounts?
Can I concatenate the accounts? 


This is part of my code:

def role_user(dn,user):
    old = {'roleOccupant':''}
    new = {'roleOccupant':user}
    ldif = modlist.modifyModlist(old,new)
    l.modify_s(dn,ldif)

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20110801/1a5a0242/attachment.html>


More information about the python-ldap mailing list