Skip to content

Commit

Permalink
Add voposixaccount.ldif to slapd base image
Browse files Browse the repository at this point in the history
Add the voposixaccount LDIF to the slapd base image.
  • Loading branch information
skoranda committed Aug 20, 2020
1 parent fd8fc47 commit f86e51c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
1 change: 1 addition & 0 deletions comanage-registry-slapd-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ COPY edumember.ldif /etc/ldap/schema/
COPY eduperson.ldif /etc/ldap/schema/
COPY openssh-lpk.ldif /etc/ldap/schema/
COPY voperson.ldif /etc/ldap/schema/
COPY voposixaccount.ldif /etc/ldap/schema/

VOLUME [ "/var/lib/ldap", "/etc/ldap/slapd.d" ]

Expand Down
2 changes: 1 addition & 1 deletion comanage-registry-slapd-base/comanage_ldap_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function comanage_ldap_utils::add_schemas() {
declare -a schema_files=()

# Schema required by COmanage.
local comanage_required="edumember eduperson openssh-lpk voperson"
local comanage_required="edumember eduperson openssh-lpk voperson voposixaccount"
local schema_dir="/etc/ldap/schema"
local schema_name
for schema_name in ${comanage_required}; do
Expand Down
24 changes: 24 additions & 0 deletions comanage-registry-slapd-base/voposixaccount.ldif
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
dn: cn=voposixaccount,cn=schema,cn=config
objectClass: olcSchemaConfig
cn: voposixaccount
olcAttributeTypes: {0}( 1.3.6.1.4.1.25178.4.2.1 NAME 'voPosixAccountGecos' DES
C 'voPerson domain specific GECOS field' EQUALITY caseIgnoreMatch SUBSTR case
IgnoreSubstringsMatch SYNTAX '1.3.6.1.4.1.1466.115.121.1.15' )
olcAttributeTypes: {1}( 1.3.6.1.4.1.25178.4.2.2 NAME 'voPosixAccountGidNumber'
DESC 'voPerson domain specific primary group identifier' EQUALITY integerMat
ch SYNTAX '1.3.6.1.4.1.1466.115.121.1.27' )
olcAttributeTypes: {2}( 1.3.6.1.4.1.25178.4.2.3 NAME 'voPosixAccountHomeDirect
ory' DESC 'voPerson domain specific absolute path to the home directory' EQUA
LITY caseExactMatch SYNTAX '1.3.6.1.4.1.1466.115.121.1.15' )
olcAttributeTypes: {3}( 1.3.6.1.4.1.25178.4.2.4 NAME 'voPosixAccountLoginShell
' DESC 'voPerson domain specific path to the login shell' EQUALITY caseExactM
atch SYNTAX '1.3.6.1.4.1.1466.115.121.1.15' )
olcAttributeTypes: {4}( 1.3.6.1.4.1.25178.4.2.5 NAME 'voPosixAccountUidNumber'
DESC 'voPerson domain specific unique user identifier' EQUALITY integerMatch
SYNTAX '1.3.6.1.4.1.1466.115.121.1.27' )
olcObjectClasses: {0}( 1.3.6.1.4.1.25178.4.2 NAME 'voPosixAccount' AUXILIARY M
UST ( cn $ uid $ voPosixAccountUidNumber $ voPosixAccountGidNumber $ voPosixA
ccountHomeDirectory ) MAY ( voPosixAccountLoginShell $ voPosixAccountGecos )
)
olcObjectClasses: {1}( 1.3.6.1.4.1.25178.4.3 NAME 'voPosixGroup' AUXILIARY MUS
T ( cn $ voPosixAccountGidNumber ) MAY ( memberUid ) )

0 comments on commit f86e51c

Please sign in to comment.