Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use memberOf overlay.
- Loading branch information
Showing
6 changed files
with
74 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
dn: cn=config | ||
changetype: modify | ||
|
||
dn: olcDatabase={0}config,cn=config | ||
changetype: modify | ||
add: olcRootDN | ||
olcRootDN: cn=admin,cn=config | ||
|
||
dn: olcDatabase={0}config,cn=config | ||
changetype: modify | ||
add: olcRootPW | ||
olcRootPW: {MD5}y/05lb1L2umvqo6VrZBGkw== | ||
|
||
dn: olcDatabase={0}config,cn=config | ||
changetype: modify | ||
delete: olcAccess |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,45 @@ | ||
# LDIF Export for dc=opensoc,dc=dev | ||
# Server: My LDAP Server (127.0.0.1) | ||
# Search Scope: sub | ||
# Search Filter: (objectClass=*) | ||
# Total Entries: 8 | ||
# | ||
# Generated by phpLDAPadmin (http://phpldapadmin.sourceforge.net) on June 6, 2014 2:49 pm | ||
# Version: 1.2.2 | ||
|
||
# Entry 3: ou=groups,dc=opensoc,dc=dev | ||
dn: ou=groups,dc=opensoc,dc=dev | ||
objectclass: organizationalUnit | ||
objectclass: top | ||
ou: groups | ||
|
||
# Entry 4: cn=analysts,ou=groups,dc=opensoc,dc=dev | ||
dn: cn=analysts,ou=groups,dc=opensoc,dc=dev | ||
cn: analysts | ||
gidnumber: 500 | ||
objectclass: posixGroup | ||
objectclass: top | ||
|
||
# Entry 5: cn=investigators,ou=groups,dc=opensoc,dc=dev | ||
dn: cn=investigators,ou=groups,dc=opensoc,dc=dev | ||
cn: investigators | ||
gidnumber: 501 | ||
objectclass: posixGroup | ||
objectclass: top | ||
|
||
# Entry 6: ou=users,dc=opensoc,dc=dev | ||
dn: ou=users,dc=opensoc,dc=dev | ||
objectclass: organizationalUnit | ||
objectclass: top | ||
ou: users | ||
|
||
# Entry 7: cn=Joe Smith,ou=users,dc=opensoc,dc=dev | ||
dn: cn=Joe Smith,ou=users,dc=opensoc,dc=dev | ||
cn: Joe Smith | ||
gidnumber: 500 | ||
dn: cn=joesmith,ou=users,dc=opensoc,dc=dev | ||
cn: joesmith | ||
givenname: Joe | ||
homedirectory: /home/users/joesmith | ||
loginshell: /bin/sh | ||
sn: Smith | ||
mail: joesmith@opensoc.dev | ||
objectclass: inetOrgPerson | ||
objectclass: posixAccount | ||
objectclass: top | ||
sn: Smith | ||
uid: joesmith | ||
uidnumber: 1000 | ||
userpassword: {MD5}y/05lb1L2umvqo6VrZBGkw== | ||
|
||
# Entry 8: cn=Mary Fodder,ou=users,dc=opensoc,dc=dev | ||
dn: cn=Mary Fodder,ou=users,dc=opensoc,dc=dev | ||
cn: Mary Fodder | ||
gidnumber: 501 | ||
dn: cn=maryfodder,ou=users,dc=opensoc,dc=dev | ||
cn: maryfodder | ||
givenname: Mary | ||
homedirectory: /home/users/maryfodder | ||
loginshell: /bin/sh | ||
sn: Fodder | ||
mail: maryfodder@opensoc.dev | ||
objectclass: inetOrgPerson | ||
objectclass: posixAccount | ||
objectclass: top | ||
sn: Fodder | ||
uid: maryfodder | ||
uidnumber: 1001 | ||
userpassword: {MD5}y/05lb1L2umvqo6VrZBGkw== | ||
|
||
dn: cn=analysts,ou=groups,dc=opensoc,dc=dev | ||
objectclass: groupOfNames | ||
cn: analysts | ||
member: cn=joesmith,ou=users,dc=opensoc,dc=dev | ||
|
||
dn: cn=investigators,ou=groups,dc=opensoc,dc=dev | ||
objectclass: groupOfNames | ||
cn: investigators | ||
member: cn=maryfodder,ou=users,dc=opensoc,dc=dev | ||
|
||
dn: cn=soc,ou=groups,dc=opensoc,dc=dev | ||
objectclass: groupOfNames | ||
cn: soc | ||
member: cn=joesmith,ou=users,dc=opensoc,dc=dev | ||
member: cn=maryfodder,ou=users,dc=opensoc,dc=dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
dn: cn=config | ||
changetype: modify | ||
add: olcLogLevel | ||
olcLogLevel: stats | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
dn: cn=module,cn=config | ||
objectClass: olcModuleList | ||
cn: module | ||
olcModulePath: /usr/lib/ldap | ||
olcModuleLoad: memberof |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
dn: olcOverlay=memberof,olcDatabase={1}hdb,cn=config | ||
objectClass: olcMemberOf | ||
objectClass: olcOverlayConfig | ||
objectClass: olcConfig | ||
objectClass: top | ||
olcOverlay: memberof | ||
olcMemberOfDangling: ignore | ||
olcMemberOfRefInt: TRUE | ||
olcMemberOfGroupOC: groupOfNames | ||
olcMemberOfMemberAD: member | ||
olcMemberOfMemberOfAD: memberOf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
slapd slapd/password1 password opensoc | ||
slapd slapd/password2 password opensoc | ||
slapd slapd/purge_database boolean false | ||
slapd slapd/allow_ldap_v2 boolean false | ||
slapd slapd/invalid_config boolean true | ||
slapd shared/organization string OpenSOC | ||
slapd slapd/dump_database select when needed | ||
slapd slapd/domain string opensoc.dev | ||
slapd slapd/backend select HDB | ||
slapd slapd/no_configuration boolean false | ||
slapd slapd/dump_database_destdir string /var/backups/slapd-VERSION | ||
slapd slapd/move_old_database boolean true | ||
|