From: Michael E. <men...@ka...> - 2003-05-15 13:44:46
|
Thanks. So there's no way to dynamically create organzitaionalUnits=20 into an existing schema using python-ldap. I have to manually add a dn before I can add entries to it. Is that=20 correct? Thanks MIke On Thursday, May 15, 2003, at 02:49 AM, Michael Str=F6der wrote: > Michael Engelhart wrote: > > I guess my misunderstanding is that add() requests a dn. > > The dn is the complete DN of the new entry > =3D> you have to form a new RDN and concatenate this with a base DN of=20= > an existing entry. > > > modlist.append(('dn','ou=3DPeople,o=3Dmycompany.com')) > > Not needed and probably not allowed. > > > l.add(dnToAddTo, modlist) > > l.add('ou=3DPeople,o=3Dmycompany.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=20 > (and not needed as already stated above). > > Ciao, Michael. > > > > ------------------------------------------------------- > Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara > The only event dedicated to issues related to Linux enterprise=20 > solutions > www.enterpriselinuxforum.com > > _______________________________________________ > Python-LDAP-dev mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-ldap-dev > |