[Freeipa-devel] [PATCH] 19 prevent duplicate netgroup entries

JR Aquino JR.Aquino at citrix.com
Thu Feb 17 04:11:00 UTC 2011


This patch fixes the netgroup plugin's behavior of adding duplicate entries when the managed entry plugin creates a netgroup with a mepManagedEntry
This problem is documented in ticket: https://fedorahosted.org/freeipa/ticket/963

As noted by Endi for issue #3 in the History:
"3. Just out of curiosity, I tried adding a netgroup with the same name as the hostgroup. I expected it to conflict with the managed netgroup, but it actually worked. Searching the directory will return 2 netgroups with the same name:"

Historically the netgroup plugin had inappropriately defined: rdn_attribute = 'ipauniqueid'
This caused the ability of duplication with the creation of native netgroups using the ipaUniqueId as the DN and as the Managed Entry netgroups utilizing the cn as the DN.

Patch includes adjustments for the netgroup plugin and corresponding test_netgroup_plugin

Please verify that the items requested in #963 are now complete and please confirm that the corresponding tests all pass.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-jraquino-0019-prevent-duplicate-netgroup-entries.patch
Type: application/octet-stream
Size: 13302 bytes
Desc: freeipa-jraquino-0019-prevent-duplicate-netgroup-entries.patch
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20110217/04959690/attachment.obj>


More information about the Freeipa-devel mailing list