[users_ldap_groups] Groups not updated on each login with "Only ldap groups" checked

Bug #1303765 reported by Yajo
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Server Environment And Tools
New
Medium
Holger Brunn (Therp)

Bug Description

After fixing bug #1302547, when I login for the first time, my groups are created, but successive logins don't do that.

Revision history for this message
Holger Brunn (Therp) (hbrunn) wrote :

What do you mean by updated? What should happen is all current groups for the user are thrown away and the ones from LDAP (that you obviously successfully created via group mappings) are recreated.

As you see in the code, it's quite chatty in debug mode, could you post a log from a successive login?

Changed in server-env-tools:
assignee: nobody → Holger Brunn (Therp) (hbrunn)
importance: Undecided → Medium
Revision history for this message
Yajo (yajo) wrote :

I mean exactly what you are saying.

This is when I log in with an user that is not in OpenERP but yes in LDAP (sensitive info stripped):

2014-04-08 08:27:56,560 22062 DEBUG demo users_ldap_groups: deleting all groups from user 43
2014-04-08 08:27:56,582 22062 DEBUG demo users_ldap_groups: checking mapping ***
2014-04-08 08:27:56,582 22062 DEBUG demo users_ldap_groups: adding user 43 to group Administration / Settings
2014-04-08 08:27:56,603 22062 DEBUG demo users_ldap_groups: checking mapping ***
2014-04-08 08:27:56,603 22062 DEBUG demo users_ldap_groups: adding user 43 to group Human Resources / Employee
2014-04-08 08:27:56,630 22062 DEBUG demo users_ldap_groups: checking mapping ***
2014-04-08 08:27:56,630 22062 DEBUG demo users_ldap_groups: adding user 43 to group Contact Creation

Then, next logins show nothing, and groups are not reset.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.