[ldap.py] ldap_host contient désormais un host

This commit is contained in:
Daniel STAN 2013-05-19 21:51:27 +02:00
parent b6e9d79019
commit 5fa6339cd0
4 changed files with 8 additions and 9 deletions

View file

@ -16,7 +16,7 @@
{% include /var/lib/bcfg2/etc/genshi/secrets.txt %}\
# Connexion LDAP
server_host = $ldap_host
server_host = $ldap_socket
search_base = ou=data,dc=crans,dc=org
version = 3
bind = yes

View file

@ -12,12 +12,12 @@ include("ip")
if has("db-server") and not has("db-replicat-test"):
# Pour ceux qui ont la base ou une copie en locale
# on regarde dans celle-ci
ldap_host = "ldap://127.0.0.1/"
ldap_host = "127.0.0.1"
ldap_socket = "ldapi://%2fvar%2frun%2fslapd%2fldapi/"
else:
# On regarde dans la base principale
ldap_host = "ldap://%s/" % admipof("ldap")
ldap_socket = ldap_host
ldap_host = admipof("ldap")
ldap_socket = "ldap://%s/" % ldap_host
# Filtre de droits pour la connexion
if has("users") or has("vert"):