This is a snapshot of Indico's old Trac site. Any information contained herein is most probably outdated. Access our new GitHub site here.

Opened 19 months ago

Last modified 14 months ago

#1497 infoneeded_new defect

Can you handle situation when user account is disabled by LDAP

Reported by: mvala Owned by:
Priority: normal Milestone: v1.9
Component: General Version: 1.1
Keywords: Cc:

Description

Dear support,

I have disable one user in LDAP and when user login he sees following error. Can you handle such situation and just write "Users is disabled" or something?

Thanks

Ciao

Martin

2014-03-04 10:56:08,423 indico.requestHandler - ERROR base.py:380 -- Request 140600697239632 failed: "{'info': 'Account inactivated. Contact system administrator.', 'desc': 'Server is unwilling to perform'}"
Traceback (most recent call last):

File "/usr/lib/python2.7/site-packages/indico-1.1.2-py2.7.egg/MaKaC/webinterface/rh/base.py", line 586, in process

res = self._process()

File "/usr/lib/python2.7/site-packages/indico-1.1.2-py2.7.egg/MaKaC/webinterface/rh/login.py", line 69, in _process

av = auth.getAvatar(li)

File "/usr/lib/python2.7/site-packages/indico-1.1.2-py2.7.egg/MaKaC/authentication/AuthenticationMgr.py", line 65, in getAvatar

valid=auth.getAvatar( li )

File "/usr/lib/python2.7/site-packages/indico-1.1.2-py2.7.egg/MaKaC/authentication/baseAuthentication.py", line 47, in getAvatar

return identity.authenticate( li )

File "/usr/lib/python2.7/site-packages/indico-1.1.2-py2.7.egg/MaKaC/authentication/LDAPAuthentication.py", line 102, in authenticate

data = LDAPChecker().check(id.getLogin(), id.getPassword())

File "/usr/lib/python2.7/site-packages/indico-1.1.2-py2.7.egg/MaKaC/authentication/LDAPAuthentication.py", line 329, in check

ldapc.openAsUser(userName, password)

File "/usr/lib/python2.7/site-packages/indico-1.1.2-py2.7.egg/MaKaC/authentication/LDAPAuthentication.py", line 248, in openAsUser

self.l.simple_bind_s(dn, password)

File "/usr/lib64/python2.7/site-packages/ldap/ldapobject.py", line 208, in simple_bind_s

resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all=1,timeout=self.timeout)

File "/usr/lib64/python2.7/site-packages/ldap/ldapobject.py", line 469, in result3

resp_ctrl_classes=resp_ctrl_classes

File "/usr/lib64/python2.7/site-packages/ldap/ldapobject.py", line 476, in result4

ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)

File "/usr/lib64/python2.7/site-packages/ldap/ldapobject.py", line 99, in _ldap_call

result = func(*args,kwargs)

UNWILLING_TO_PERFORM: {'info': 'Account inactivated. Contact system administrator.', 'desc': 'Server is unwilling to perform'}

Change History (4)

comment:1 Changed 19 months ago by jbenito

  • Milestone set to v1.9

comment:2 Changed 14 months ago by pferreir

We'd gladly produce a patch for this, but we'd need a test set up to try it out (or someone willing to do so for us).

comment:3 Changed 14 months ago by pferreir

  • Status changed from new to infoneeded_new

comment:4 Changed 14 months ago by mvala

Super. Looking forward to it.

Note: See TracTickets for help on using tickets.