Première version
This commit is contained in:
18
explore_ldap.py
Normal file
18
explore_ldap.py
Normal file
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from scribe.enseignants import LdapEnseignant
|
||||
from scribe.eoleldap import Ldap
|
||||
from scribe.storage import init_store
|
||||
from scribe.importation import config
|
||||
from scribe.storage import Enseigant
|
||||
|
||||
storage = init_store(config.DB_STORE)
|
||||
|
||||
connexion = Ldap()
|
||||
connexion.connect()
|
||||
|
||||
user = LdapEnseignant()
|
||||
user.ldap_admin = connexion
|
||||
|
||||
user.ldap_admin._search_one()
|
||||
|
Reference in New Issue
Block a user