adding organizationalUnit

Michael Engelhart mengelhart at
Wed May 14 19:55:55 CEST 2003


Is it possible to add an ou to a directory using python-ldap

I'm trying to add something like this to my directory (this LDIF works 
with ldapadd fine)

dn: ou=Sales,
objectclass: top
objectclass: organizationalunit
ou: Sales

When i tried doing this using the add(dn, modlist) function, it failed 
with an error saying the "dn: attribute type undefined"

Any tips would be appreciated.


More information about the python-ldap mailing list