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:openldap [2018/08/01 11:02] – niziak | ldap:openldap [2018/08/01 12:05] (current) – niziak | ||
---|---|---|---|
Line 24: | Line 24: | ||
* access by " | * access by " | ||
* default password " | * default password " | ||
+ | * **BaseDN: ' | ||
- | <code bash> | + | ===== ACL ===== |
- | $ ldapsearch -x -W -LLL -s base -D 'cn=admin,cn=config' | + | |
- | Enter LDAP Password: | + | |
- | dn: cn=config | + | |
- | </ | + | |
- | <code bash> | + | [[https://www.openldap.org/ |
- | $ ldapsearch -x -W -LLL -D ' | + | |
- | Enter LDAP Password: | + | |
- | ... | + | |
- | dn: olcDatabase={1}mdb, | + | |
- | ... | + | |
- | </ | + | |
- | <code bash> | + | Order matters in ACL rules. |
- | $ ldapsearch -x -W -LLL -D ' | + | |
- | Enter LDAP Password: | + | |
- | dn: olcDatabase={1}mdb, | + | Default entries: |
- | objectClass: | + | < |
- | objectClass: | + | |
- | olcDatabase: | + | |
- | olcDbDirectory: | + | |
- | olcSuffix: dc=example, | + | |
olcAccess: {0}to attrs=userPassword, | olcAccess: {0}to attrs=userPassword, | ||
- | olcAccess: {1}to * by self read by dn=" | + | olcAccess: {1}to * by self read by dn=" |
- | olcLastMod: TRUE | + | |
- | olcRootDN: cn=admin, | + | |
- | olcRootPW: {SSHA}abcdef... | + | |
- | olcDbCheckpoint: | + | |
- | olcDbIndex: uid eq | + | |
- | olcDbIndex: mail eq | + | |
- | olcDbIndex: memberOf eq | + | |
- | olcDbIndex: entryCSN eq | + | |
- | olcDbIndex: entryUUID eq | + | |
- | olcDbIndex: objectClass eq | + | |
- | olcDbMaxSize: | + | |
</ | </ | ||
+ | * olcAccess: {0}to attrs=userPassword, | ||
+ | * by self write | ||
+ | * by dn=" | ||
+ | * by anonymous auth | ||
+ | * by * none | ||
+ | * olcAccess: {1}to * | ||
+ | * by self read | ||
+ | * by dn=" | ||
+ | * by * none | ||
+ | |||
+ | |||
+ | |||
+ | Giving user: **uid=nextcloudsystemuser, | ||
+ | * Entry to edit: **olcDatabase={1}mdb, | ||
+ | * Attribute to add: **olcAccess** | ||
+ | * to by dn.exact=" | ||
+ | |||
+ | |||
+ | ==== Examples ==== | ||
+ | |||
+ | |||
+ | < | ||
+ | |||
+ | * Give user access to modify photo: < | ||