Skip to content
This repository has been archived by the owner on Feb 14, 2019. It is now read-only.

debugging and console ouput #35

Closed
cforce opened this issue May 10, 2012 · 5 comments
Closed

debugging and console ouput #35

cforce opened this issue May 10, 2012 · 5 comments
Assignees
Milestone

Comments

@cforce
Copy link
Contributor

cforce commented May 10, 2012

We lossing group memberships for users on every login and can't explain and how this descion is made based on our ldap sync config.
Is there andy debugging ouput which logs what and why its it syncec (create, udate; remove, deactivate, added,..)

@ghost ghost assigned thorin May 12, 2012
@thorin
Copy link
Owner

thorin commented May 12, 2012

No, you only get some output by running the synchronization with rake.

The only way a user can loose a group is:
That group exists on ldap but the plugin can't find a connection between the group and the user.

So the groups synchronization is done in four steps:

  1. Searchs ldap for groups matching does the user currently belongs to on remine (these will be candidates for removal)
  2. Searchs ldap for groups to which the user currently belongs to on ldap (these will be candidates for addition)
  3. Removes the groups candidates for removal that weren't found on step 2.
  4. Adds the groups candidates for addition that weren't found on step 1.

If you have nested groups enabled it adds an extra step that updates the groups found on step 2.
These feature hasn't been much tested and it might be failing and loosing groups.

@Utopism
Copy link
Contributor

Utopism commented Jun 11, 2012

Hi I have added a pull request with some enhancement, and I have added some traces.
I fixed an issue about losing groups too.

@thorin
Copy link
Owner

thorin commented Jun 11, 2012

cforce if you want you can try utopism's code. And give some feedback.

Sorry but it will take me some time to review his code and merge it.

@cforce
Copy link
Contributor Author

cforce commented Aug 19, 2012

any news on that?

@thorin
Copy link
Owner

thorin commented Feb 2, 2013

Please have a look at the branch 2.0.beta.

@thorin thorin closed this as completed Feb 2, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants