Added calculate-ldap templates.
This commit is contained in:
parent
4afda95766
commit
a157c92ebf
7 changed files with 71 additions and 0 deletions
1
ldap/.calculate_directory
Normal file
1
ldap/.calculate_directory
Normal file
|
@ -0,0 +1 @@
|
|||
# Calculate append=skip cl_name==calculate-ldap
|
1
ldap/setup/.calculate_directory
Normal file
1
ldap/setup/.calculate_directory
Normal file
|
@ -0,0 +1 @@
|
|||
# Calculate append=skip cl_ldap_setup_action==up
|
2
ldap/setup/openldap/.calculate_directory
Normal file
2
ldap/setup/openldap/.calculate_directory
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Calculate belong()!=&&pkg(net-nds/openldap)!= path=/etc name=openldap
|
||||
|
2
ldap/setup/openldap/step-1/.calculate_directory
Normal file
2
ldap/setup/openldap/step-1/.calculate_directory
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Calculate append=skip cl_pass_step==1
|
||||
|
60
ldap/setup/openldap/step-1/slapd.conf
Normal file
60
ldap/setup/openldap/step-1/slapd.conf
Normal file
|
@ -0,0 +1,60 @@
|
|||
# Calculate format=ldap chmod=0640 chown=root:ldap append=replace
|
||||
include /etc/openldap/schema/core.schema
|
||||
include /etc/openldap/schema/cosine.schema
|
||||
include /etc/openldap/schema/nis.schema
|
||||
include /etc/openldap/schema/inetorgperson.schema
|
||||
include /etc/openldap/schema/misc.schema
|
||||
#?pkg(net-nds/openldap)<2.4#schemacheck on#pkg#
|
||||
|
||||
pidfile /var/run/openldap/slapd.pid
|
||||
argsfile /var/run/openldap/slapd.arg
|
||||
|
||||
# Уровень отладочных сообщений
|
||||
loglevel 0
|
||||
allow bind_v2
|
||||
modulepath /usr/lib/openldap/openldap
|
||||
|
||||
# Доступ к аттрибуту userPassword
|
||||
access to attrs=userPassword
|
||||
by self write
|
||||
by dn="#-ld_admin_dn-#" write
|
||||
by * auth
|
||||
|
||||
# Доступ к администратору сервера LDAP
|
||||
access to dn.base="#-ld_admin_dn-#"
|
||||
by dn="#-ld_admin_dn-#" write
|
||||
by * none
|
||||
|
||||
# Закрываем доступ к веткам
|
||||
access to dn.regex=".*,#-ld_services_dn-#"
|
||||
by dn="#-ld_admin_dn-#" write
|
||||
by * none
|
||||
|
||||
# Доступ ко всем аттрибутам
|
||||
access to *
|
||||
by dn="#-ld_admin_dn-#" write
|
||||
by self write
|
||||
by * read
|
||||
|
||||
# Доступ по умолчанию только для чтения
|
||||
#?pkg(net-nds/openldap)<2.4#defaultaccess none#pkg#
|
||||
|
||||
# Тип базы данных
|
||||
#?pkg(net-nds/openldap)<2.4#database ldbm#pkg#
|
||||
#?pkg(net-nds/openldap)>2.4#database bdb#pkg#
|
||||
suffix "#-ld_base_dn-#"
|
||||
rootdn "#-ld_temp_dn-#"
|
||||
rootpw #-ld_temp_hash-#
|
||||
checkpoint 1024 5
|
||||
cachesize 10000
|
||||
# Размер ответа на запрос
|
||||
sizelimit unlimited
|
||||
directory /var/lib/openldap-data
|
||||
|
||||
index objectClass eq
|
||||
index cn pres,sub,eq
|
||||
index sn pres,sub,eq
|
||||
index uid pres,sub,eq
|
||||
index uidNumber eq
|
||||
index gidNumber eq
|
||||
index default sub
|
2
ldap/setup/openldap/step-2/.calculate_directory
Normal file
2
ldap/setup/openldap/step-2/.calculate_directory
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Calculate append=skip cl_pass_step==2
|
||||
|
3
ldap/setup/openldap/step-2/slapd.conf
Normal file
3
ldap/setup/openldap/step-2/slapd.conf
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Calculate format=ldap chmod=0640 chown=root:ldap append=join
|
||||
!rootdn del
|
||||
!rootpw del
|
Loading…
Reference in a new issue