diff --git a/intranet/Root.py b/intranet/Root.py index b215e3c0..e65372b4 100755 --- a/intranet/Root.py +++ b/intranet/Root.py @@ -106,11 +106,6 @@ from ClassesIntranet.Intranet import Intranet # GESTION DES FILTRES Intranet._cpFilterList = [TemplatesFilter(), DOMFilter(), AuthorisationsFilter()] -def ldap_connect(thread_index): - cherrypy.thread_data.ldap = CransLdap() - -cherrypy.server.on_start_thread_list.append(ldap_connect) - # ######################################################## # # LOGIN MAISON # # ######################################################## # @@ -133,7 +128,7 @@ def verifLogin(login = '', password = ''): message = None try: if login != '' and password != '': - cherrypy.session['LDAP'] = cherrypy.thread_data.ldap + cherrypy.session['LDAP'] = CransLdap() LDAP = cherrypy.session['LDAP'] login_club = None if len(login.split('@')) > 1: