Hi All,
I am having the following error while integrating with LDAP authentication in ERPNEXT.
I have installed frappe_ldap app and configured LDAP settings also, but I am getting the following error in logs.
frappe_ldap.sync_profile.check_profiles_daily
{‘retry’: 0, ‘log’: <function log at 0x37e3578>, ‘site’: u’site1.local’, ‘event’: u’all’, ‘method_name’: ‘frappe_ldap.sync_profile.check_profiles_daily’, ‘method’: <function check_profiles_daily at 0x37ea578>, ‘user’: u’Administrator’, ‘kwargs’: {}, ‘async’: True, ‘job_name’: u’frappe_ldap.sync_profile.check_profiles_daily’}
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/background_jobs.py”, line 61, in execute_job
method(**kwargs)
File “/home/frappe/frappe-bench/apps/frappe_ldap/frappe_ldap/sync_profile.py”, line 8, in check_profiles_daily
check_profiles_if(“Daily”)
File “/home/frappe/frappe-bench/apps/frappe_ldap/frappe_ldap/sync_profile.py”, line 18, in check_profiles_if
ldap_connect()
File “/home/frappe/frappe-bench/apps/frappe_ldap/frappe_ldap/sync_profile.py”, line 40, in ldap_connect
result = connect.search_s(base_dn, 2,filters)
File “/home/frappe/frappe-bench/env/lib/python2.7/site-packages/ldap/ldapobject.py”, line 597, in search_s
return self.search_ext_s(base,scope,filterstr,attrlist,attrsonly,None,None,timeout=self.timeout)
File “/home/frappe/frappe-bench/env/lib/python2.7/site-packages/ldap/ldapobject.py”, line 590, in search_ext_s
msgid = self.search_ext(base,scope,filterstr,attrlist,attrsonly,serverctrls,clientctrls,timeout,sizelimit)
File “/home/frappe/frappe-bench/env/lib/python2.7/site-packages/ldap/ldapobject.py”, line 581, in search_ext
self._l.search_ext,
File “/home/frappe/frappe-bench/env/lib/python2.7/site-packages/ldap/ldapobject.py”, line 136, in getattr
self.class.name,repr(name)
AttributeError: SimpleLDAPObject has no attribute ‘_l’
I am using Univention as an LDAP server, and also using the same LDAP authentication with email server also its working with it.
LDAP Settings are as follows
LDAP Server
ldap://10.0.0.209:7389/
User DN
uid=administrator,cn=users,dc=example,dc=com
Base DN
dc=example,dc=com
Password
adminpassword
Sync Frequency
Daily
Can any one help me.
Thanks
Ilesh