Retire le sys.path.append
This commit is contained in:
parent
da8e096b9d
commit
999e6190bb
2 changed files with 5 additions and 9 deletions
|
@ -2,11 +2,9 @@ info["owner"] = "postgres"
|
|||
info["group"] = "postgres"
|
||||
info["mode"] = 0640
|
||||
|
||||
import sys
|
||||
sys.path.append('/usr/scripts')
|
||||
import lc_ldap.shortcuts
|
||||
include("ldap_conn")
|
||||
|
||||
conn = lc_ldap.shortcuts.lc_ldap_readonly()
|
||||
conn = ldap_conn
|
||||
|
||||
comment_start = "#"
|
||||
header("Gestion du mapping avec les base de données")
|
||||
|
|
|
@ -3,11 +3,9 @@ info["group"] = "postgres"
|
|||
info["mode"] = 0640
|
||||
|
||||
|
||||
import sys
|
||||
sys.path.append('/usr/scripts')
|
||||
import lc_ldap.shortcuts
|
||||
include("ldap_conn")
|
||||
|
||||
conn = lc_ldap.shortcuts.lc_ldap_readonly()
|
||||
conn = ldap_conn
|
||||
|
||||
comment_start = "#"
|
||||
header("Gestion des acces ident pour les utilisateurs")
|
||||
|
@ -18,7 +16,7 @@ nounous = [adm['uid'][0] for adm in adm_objects]
|
|||
apprentis_objects = conn.search(u'droits=apprenti')
|
||||
apprentis = [appr['uid'][0] for appr in apprentis_objects]
|
||||
|
||||
out("""# PostgreSQL User Name Maps
|
||||
out("""#PostgreSQL User Name Maps
|
||||
# =========================
|
||||
#
|
||||
# Refer to the PostgreSQL documentation, chapter "Client
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue