initial commit
This commit is contained in:
commit
67a2568e52
17 files changed
+217
No files matched your search
Executable
+6
@@ -0,0 +1,6 @@
|
||||
# https://tools.ietf.org/html/draft-findlay-ldap-groupofentries-00
|
||||
#
|
||||
dn: cn=groupofentries,cn=schema,cn=config
|
||||
objectClass: olcSchemaConfig
|
||||
cn: groupofentries
|
||||
olcObjectClasses: {0}( 1.2.826.0.1.3458854.2.1.1.1 NAME 'groupOfEntries' DESC 'Replacement for groupOfNames object without required member attribute' SUP top STRUCTURAL MUST ( cn ) MAY ( member $ businessCategory $ seeAlso $ owner $ ou $ o $ description ) )
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
dn: cn=sudo,cn=schema,cn=config
|
||||
objectClass: olcSchemaConfig
|
||||
cn: sudo
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.15953.9.1.1 NAME 'sudoUser' DESC 'User(s) who may run sudo' EQUALITY caseExactIA5Match SUBSTR caseExactIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.15953.9.1.2 NAME 'sudoHost' DESC 'Host(s) who may run sudo' EQUALITY caseExactIA5Match SUBSTR caseExactIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.15953.9.1.3 NAME 'sudoCommand' DESC 'Command(s) to be executed by sudo' EQUALITY caseExactIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.15953.9.1.4 NAME 'sudoRunAs' DESC 'User(s) impersonated by sudo (deprecated)' EQUALITY caseExactIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.15953.9.1.5 NAME 'sudoOption' DESC 'Options(s) followed by sudo' EQUALITY caseExactIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.15953.9.1.6 NAME 'sudoRunAsUser' DESC 'User(s) impersonated by sudo' EQUALITY caseExactIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.15953.9.1.7 NAME 'sudoRunAsGroup' DESC 'Group(s) impersonated by sudo' EQUALITY caseExactIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
|
||||
olcObjectClasses: ( 1.3.6.1.4.1.15953.9.2.1 NAME 'sudoRole' SUP top STRUCTURAL DESC 'Sudoer Entries' MUST ( cn ) MAY ( sudoUser $ sudoHost $ sudoCommand $ sudoRunAs $ sudoRunAsUser $ sudoRunAsGroup $ sudoOption $ description ) )
|
||||
Executable
+10
@@ -0,0 +1,10 @@
|
||||
dn: olcDatabase={1}{{ LDAP_BACKEND }},cn=config
|
||||
changetype: modify
|
||||
delete: olcAccess
|
||||
-
|
||||
add: olcAccess
|
||||
olcAccess: to * by dn.exact=gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth manage by * break
|
||||
olcAccess: to * by dn="cn=admin,{{ LDAP_BASE_DN }}" manage by * break
|
||||
olcAccess: to * by set.expand="([cn=ldap_admin,ou=groups,{{ LDAP_BASE_DN }}])/member & user" write by * break
|
||||
olcAccess: to attrs=userPassword,shadowLastChange by self =w by anonymous auth by * none
|
||||
olcAccess: to * by self read by dn="cn={{ LDAP_READONLY_USER_USERNAME }},{{ LDAP_BASE_DN }}" read by * none
|
||||
Executable
+9
@@ -0,0 +1,9 @@
|
||||
dn: olcOverlay={0}memberof,olcDatabase={1}mdb,cn=config
|
||||
changetype: modify
|
||||
replace: olcMemberOfGroupOC
|
||||
olcMemberOfGroupOC: groupOfEntries
|
||||
|
||||
dn: olcOverlay={0}memberof,olcDatabase={1}mdb,cn=config
|
||||
changetype: modify
|
||||
replace: olcMemberOfMemberAD
|
||||
olcMemberOfMemberAD: member
|
||||
Executable
+15
@@ -0,0 +1,15 @@
|
||||
Add your custom ldif files here if you don't want to overwrite image default boostrap ldif.
|
||||
at run time you can also mount a data volume with your ldif files to /container/service/slapd/assets/config/bootstrap/ldif/custom
|
||||
|
||||
The startup script provides some substitutions in bootstrap ldif files. Following substitutions are supported:
|
||||
|
||||
- `{{ LDAP_BASE_DN }}`
|
||||
- `{{ LDAP_BACKEND }}`
|
||||
- `{{ LDAP_DOMAIN }}`
|
||||
- `{{ LDAP_READONLY_USER_USERNAME }}`
|
||||
- `{{ LDAP_READONLY_USER_PASSWORD_ENCRYPTED }}`
|
||||
|
||||
Other `{{ * }}` substitutions are left unchanged.
|
||||
|
||||
Since startup script modifies `ldif` files,
|
||||
you **must** add `--copy-service` argument to entrypoint if you don't want to overwrite them.
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
dn: ou=groups,{{ LDAP_BASE_DN }}
|
||||
changetype: add
|
||||
objectClass: organizationalUnit
|
||||
objectClass: top
|
||||
ou: groups
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
dn: ou=hosts,{{ LDAP_BASE_DN }}
|
||||
changetype: add
|
||||
objectClass: organizationalUnit
|
||||
objectClass: top
|
||||
ou: hosts
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
dn: ou=mounts,{{ LDAP_BASE_DN }}
|
||||
changetype: add
|
||||
objectClass: organizationalUnit
|
||||
objectClass: top
|
||||
ou: mounts
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
dn: ou=sudoers,{{ LDAP_BASE_DN }}
|
||||
changetype: add
|
||||
objectClass: organizationalUnit
|
||||
objectClass: top
|
||||
ou: sudoers
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
dn: ou=users,{{ LDAP_BASE_DN }}
|
||||
changetype: add
|
||||
objectClass: organizationalUnit
|
||||
objectClass: top
|
||||
ou: users
|
||||
Reference in new issue
Block a user