Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import/export group mappings #30

Merged
merged 5 commits into from
Sep 28, 2015
Merged

Conversation

adaugherity
Copy link
Member

Because these mappings (LDAP group to Plone role) cannot currently be set via the Plone Users and Groups control panel (NotImplemented exception in Products.PloneLDAP.mixins.groupmgmt), they must be set via the LDAPUserFolder in the ZMI, and should be saved/restored with the rest of the LDAP settings upon import/export.

(I fixed the NotImplemented error in collective/Products.PloneLDAP@9a90f98, but they have not yet made a new release, and it is still useful to import/export these group mappings -- e.g. I use it for global groups that give people editor, manager, etc. rights on all our Plone sites, just by loading our LDAP profile.)

Also import some other settings that were being missed, mentioned in #8 and #10. This is only a partial fix for #8 (no UI yet for those settings) but at least they are now properly imported & exported.

Because these cannot currently[1] be set via Plone (NotImplemented exception
in Products.PloneLDAP.mixins.groupmgmt), these must be set via the
LDAPUserFolder in the ZMI, and should be saved/restored with the rest of the
LDAP settings.

These are stored as the '_groups_mapping' dict in the LDAPUserFolder object;
it's easiest to export this as a string and parse it with ast during import.

[1] Fixed in collective/Products.PloneLDAP@9a90f98, but no new release has
been cut yet.
@adaugherity
Copy link
Member Author

BTW, thank you for merging #21; sorry for being out of touch. I rebased this import_export branch for a cleaner merge and have sent my contributor agreement to @ableeb.

@jensens
Copy link
Member

jensens commented Sep 9, 2015

Changelog entry is missing.

I have no opinion from the functional pov. I'am not deep enough into p.a.ldap to make a decision here.

@adaugherity
Copy link
Member Author

Updated CHANGES & README.

@jensens
Copy link
Member

jensens commented Sep 28, 2015

Since it looks clean and is documented I merge.

jensens added a commit that referenced this pull request Sep 28, 2015
@jensens jensens merged commit 2c9f2c2 into plone:master Sep 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants