c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #26359
[Bug 797087] Re: [users_ldap] AttributeError exception raised on ldap user login
By error, I was using users_ldap from extra-addons.
I have closed the bug, is an installation error and i was not using the main users_ldap module.
** Changed in: openobject-addons
Status: New => Invalid
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/797087
Title:
[users_ldap] AttributeError exception raised on ldap user login
Status in OpenERP Modules (addons):
Invalid
Bug description:
When user login with correct ldap password, there is an exception raised on line 173 of users_ldap.py.
This is the trace with ipdb debugger:
----
ipdb> n
AttributeError: "'module' object has no attribute '_uid_cache'"
> /home/openerp6/.virtualenvs/openerp6/lib/python2.6/site-packages/openerp-server/addons/users_ldap/users_ldap.py(174)_ldap_check()
173 import ipdb;ipdb.set_trace()
--> 174 security._uid_cache.setdefault(db, {})[uid] = passwd
175 cr.close()
----
security module has no _uid.cache attribute.
The second problem is that this exception is silenced (pass on line
177), and then another exception 'AccessDenied' is raised on line 180.
The result is this trace from the client:
----
Environment Information :
System : Linux-2.6.38-8-generic-x86_64-with-Ubuntu-11.04-natty
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 11.04
Release: 11.04
Codename: natty
Operating System Release : 2.6.38-8-generic
Operating System Version : #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011
Operating System Architecture : 64bit
Operating System Locale : es_ES.UTF8
Python Version : 2.6.6
OpenERP-Client Version : 6.0.2
Last revision No. & ID :1835 launchpad_translations_on_behalf_of_openerp-20110413143452-vuta882s04fsp92t
Traceback (most recent call last):
File "/home/openerp6/.virtualenvs/openerp6/lib/python2.6/site-packages/openerp-server/netsvc.py", line 489, in dispatch
result = ExportService.getService(service_name).dispatch(method, auth, params)
File "/home/openerp6/.virtualenvs/openerp6/lib/python2.6/site-packages/openerp-server/service/web_services.py", line 596, in dispatch
security.check(db,uid,passwd)
File "/home/openerp6/.virtualenvs/openerp6/lib/python2.6/site-packages/openerp-server/addons/users_ldap/users_ldap.py", line 180, in _ldap_check
raise Exception('AccessDenied')
Exception: AccessDenied
----
VERSIONS:
OpenERP server version 6.0.2 (bzr rev 3403)
OpenERP addons 6.0.2 (bzr rev 1835)
python-ldap v. 2.3 (also fails with 2.4)
Python 2.6.6
base_crypt module is not installed.
Steps to reproduce: Login with a valid user ldap user. User has been
previously created as local user, and also has a valid local password.
Login crashes only with loggin in with ldap password.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/797087/+subscriptions
References