meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ldap [2018/07/30 13:14] – niziak | ldap [2020/04/14 12:55] (current) – niziak | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== LDAP ====== | ||
+ | |||
[[http:// | [[http:// | ||
Line 30: | Line 32: | ||
* // | * // | ||
- | ====== Components ====== | + | ====== |
* **dc** - domain component dc=company, | * **dc** - domain component dc=company, | ||
Line 37: | Line 39: | ||
* **displayName** - one line summary (for people can be the same as **cn**) | * **displayName** - one line summary (for people can be the same as **cn**) | ||
+ | ====== objectClassess ====== | ||
+ | |||
+ | Are predefined containers for **attributes**. For example OpenLDAP' | ||
+ | * inetOrgPerson | ||
+ | * **cn**, **sn** - as required attributes | ||
+ | * lots of optional attributes like: " | ||
+ | |||
+ | ====== common attributes ====== | ||
+ | And container classes: | ||
+ | * cn,sn (inetOrgPerson) | ||
+ | * mail=rfc822Mailbox (inetOrgPerson) | ||
+ | * uid=userid (inetOrgPerson) | ||
+ | * userPassword (person, posixAccount, | ||
+ | * hash: SSHA | ||
+ | * displayName (inetOrgPerson) | ||
====== Structure design ====== | ====== Structure design ====== | ||
- | * **cn** collisions. Two people may have the same first and last name. Grouping under different parent is necessary (**ou**). | + | |
- | * user can belong only to one **ou**. | + | |
- | * People | + | * user can belong only to one **ou**. |
- | * names - Do not rename entries, use some unique id like serial number | + | * Stability of structure, but **people |
+ | * names - Do not rename entries, use some unique id like serial number. I.e. //" | ||
* position - departments - do not put users under specific departments (deep tree), better is to put it into one group and then use a attribute | * position - departments - do not put users under specific departments (deep tree), better is to put it into one group and then use a attribute | ||
to structurize and group users. | to structurize and group users. | ||
- | * security - seprate | + | * security - separate |
[[http:// | [[http:// | ||
Line 53: | Line 72: | ||
* dc=company, | * dc=company, | ||
* ou=people | * ou=people | ||
- | * cn=John Doe | + | |
- | * cn=Joe Black | + | |
+ | * cn=Johny | ||
+ | * sn=Doe | ||
+ | * mail=john.doe@company.org | ||
+ | * mail=j.doe@company.org | ||
+ | | ||
+ | | ||
+ | * sn=Black | ||
+ | * ou=software | ||
+ | * ou=software | ||
* ou=customers | * ou=customers | ||
* cn=Google | * cn=Google | ||
Line 60: | Line 88: | ||
* ou=devices | * ou=devices | ||
* ou=it | * ou=it | ||
+ | * uid=nextcloudsystemuser, | ||
* root,www ,etc | * root,www ,etc | ||
* ou=location | * ou=location |