[ldap.py] ldap_host contient désormais un host
This commit is contained in:
parent
b6e9d79019
commit
5fa6339cd0
4 changed files with 8 additions and 9 deletions
|
@ -1,11 +1,8 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
include("secrets")
|
||||
include("ldap")
|
||||
|
||||
if has("db-replicat"):
|
||||
server = 'localhost'
|
||||
else:
|
||||
server = 'ldap.adm.crans.org'
|
||||
print """
|
||||
# -*- text -*-
|
||||
# ceci est le fichier /etc/freeradius/modules/ldap
|
||||
|
@ -177,4 +174,4 @@ ldap {
|
|||
# default: 0x0000 (no debugging messages)
|
||||
# Example:(LDAP_DEBUG_FILTER+LDAP_DEBUG_CONNS)
|
||||
#ldap_debug = 0x0028
|
||||
}""" % {'password': secrets.ldap_readonly_password, 'server': server}
|
||||
}""" % {'password': secrets.ldap_readonly_password, 'server': ldap_host}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue