/usr/share/debian-lan-config/fai/config/scripts/LDAP_CLIENT/10-ldap.conf is in debian-lan-config 0.19+deb8u1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | #!/usr/sbin/cfagent -f
control:
any::
actionsequence = ( editfiles )
EditFileSize = ( 30000 )
editfiles:
any::
{ ${target}/etc/ldap/ldap.conf
BeginGroupIfNoLineMatching "^URI .*"
AppendIfNoSuchLine "URI ldap://ldap/"
EndGroup
# Base-DN:
BeginGroupIfNoLineMatching "^BASE .*"
AppendIfNoSuchLine "BASE dc=intern"
EndGroup
# Verify the server:
BeginGroupIfNoLineMatching "^TLS_REQCERT .*"
AppendIfNoSuchLine "TLS_REQCERT demand"
EndGroup
AppendIfNoSuchLine "TLS_CACERT /etc/ldap/slapd.crt"
}
|