benel / Dolomite

Directories Led by Members
https://github.com/benel/Dolomite/wiki
21 stars 20 forks source link

On registration, the sponsor ID should be stored #5

Open benel opened 13 years ago

benel commented 13 years ago

... in the member's profile (in LDAP).

Darkheir commented 13 years ago

To store the sponsor ID, we could consider 2 options:

The first one is to use an existing attribute with a meaning close to the sponsor ID.

For the sponsor ID, I think that the owner attribute is closer to what we want.

The other option that we have is to define a new attribute.

To define a new attribute, we need to obtain an unique OID (the id of the object) through a process via IANA (Internet Assigned Numbers Authority). Now lets see the syntax to define a new attribute with an example: attributetype ( 2.5.4.3 NAME ( 'cn' 'commonName' ) SUP name )

Let's have a look to the superior attribute "name" to know its properties : attributetype ( 2.5.4.41 NAME 'name' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{32768} )

We can find all the parameters to define an attribute in the rfc2252 section 4.2.

Sources

moulabba commented 13 years ago

owner is an attribute of the device class. manager is an attribute of the inetOrgPerson class. LDAP servers don't check that there is an account owner.