adding organizationalUnit

Michael Engelhart mengelhart at katahdinsoftware.com
Thu May 15 15:44:12 CEST 2003


Thanks.  So there's no way to dynamically create organzitaionalUnits 
into an existing schema using python-ldap.

I have to manually add a dn before I can add entries to it.   Is that 
correct?

Thanks
MIke
On Thursday, May 15, 2003, at 02:49  AM, Michael Ströder wrote:

> Michael Engelhart wrote:
> > I guess my misunderstanding is that add() requests a dn.
>
> The dn is the complete DN of the new entry
> => you have to form a new RDN and concatenate this with a base DN of 
> an existing entry.
>
> >     modlist.append(('dn','ou=People,o=mycompany.com'))
>
> Not needed and probably not allowed.
>
> >     l.add(dnToAddTo, modlist)
>
> l.add('ou=People,o=mycompany.com', modlist)
>
> > I get this error:
> > {'info': 'dn: attribute type undefined', 'desc': 'Undefined attribute
> > type'}
>
> Now it's clearer: The attribute type 'dn' is not existent in schema 
> (and not needed as already stated above).
>
> Ciao, Michael.
>
>
>
> 


More information about the python-ldap mailing list