Ticket #1560 (closed defect: fixed)

Opened 14 years ago

Last modified 14 years ago

Non-Member users cannot log in

Reported by: ogrisel Owned by: ogrisel
Priority: P2 Milestone: CPS 3.4.1
Component: CPSDefault Version: TRUNK
Severity: normal Keywords:


The login page displays no error, they just get redirected on the login form forever (Unauthorized is probably raised for some reason: need a pdb session to dig that in).

Change History

comment:1 Changed 14 years ago by jmorliaguet

FYI, we have a similar LDAP setup as the one in CPSLDAPSetup.

users must be members, not to be able to login, but:

  • to see whether they have the right to view entries in the 'members' directory
  • to edit entries

the exception is raised in logged_in.py:

if first_time and dtool.members.hasEntry(member.getId()):
    now = context.ZopeTime()
    member.setProperties(last_login_time=now, login_time=now)

members do not seem to even have the 'owner' role when they log in.

the "entry local role" defined as 'python:entry.get('uid') == user_id' seems to have no effect.

also, I have renamed 'cpsRoles' and 'cpsGroups' as 'roles' and 'groups' since CPSUserFolder was complaining that users had no 'roles' and 'groups' entries.

comment:2 Changed 14 years ago by ogrisel

  • Owner changed from gracinet to ogrisel
  • Component changed from CPSLDAPSetup to CPSDefault

comment:3 Changed 14 years ago by ogrisel

  • Status changed from new to closed
  • Resolution set to fixed

fixed in [34693]

Note: See TracTickets for help on using tickets.