[python-ldap] How to add new schema attributes to the existing objectClass

Adam Tauno Williams awilliam at whitemice.org
Wed Oct 28 10:07:58 EDT 2015


On Wed, 2015-10-28 at 16:05 +0530, Deivapalan PG wrote:
> Greetings!
> How to add custom attributes to the existing objectClass ?

You cannot,  this violates the LDAP data model.

You can extend the objectClass by defining a subordinate object class
or by defining an auxiliary object class.  This is an LDAP, LDAP
Schema, and DSA issue - it has nothing to do with Python LDAP.

See <http://www.wmmi.net/documents/LDAP101.pdf>

> For example, to inetOrgPerson class, is it possible to add
> attributetype 'my-original-name'

No.

-- 
Adam Tauno Williams <mailto:awilliam at whitemice.org> GPG D95ED383
Systems Administrator, Python Developer, LPI / NCLA




More information about the python-ldap mailing list