On isole la conn lc_ldap readonly, pour réutilisation

This commit is contained in:
Daniel STAN 2013-05-18 03:39:13 +02:00
parent 069837f9cf
commit afee462b63
2 changed files with 12 additions and 8 deletions

10
etc/python/ldap_conn.py Normal file
View file

@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-
#
# Connexion à la base ldap (pour requêtes diverses)
import sys
sys.path.append('/usr/scripts/')
import lc_ldap.shortcuts
sys.path.pop()
ldap_conn=lc_ldap.shortcuts.lc_ldap_readonly(user="bcfg2")