[Freeipa-devel] [PATCH] managed entry hostgroup netgroup support

JR Aquino JR.Aquino at citrix.com
Fri Dec 10 23:47:36 UTC 2010


On 12/10/10 12:49 PM, "Rob Crittenden" <rcritten at redhat.com> wrote:
>nack, found a couple of minor issues:
>
>- The patch doesn't apply against the master branch (probably from
>Simo's recent changes there)
>- looks like you copied the man page from ipa-ldap-updater, needs a few
>more updates (though kudos for including one at all!)
>- IIRC this depends on some fixes in 389-ds-base. You need to set the
>minimum version that this will work in.
>- host_nis_groups.ldif isn't installed
>
>I'm not entirely sure how to test that this is doing the right thing.
>
>Rob

Thanks Rob!

Ok, I have adjusted the patch to correct for the errors (and the trailing
whitespace).

Fixed the man page (will send in a 1 liner fix for ipa-compat-manage's man
page)
It now installs host_nis_groups.ldif
It now cleanly applies and builds, and functions against the master.
It references the 389-ds-base 1.2.7.4.

To test:
(Hopefully this is pretty obvious and straight forward)

(1
# ipa-host-net-manage status
<should return>
Plugin Enabled


(2
# ipa-host-net-manage disable
<should return>
Disabling Plugin

(3
# ipa-host-net-manage enable
<should return>
Enabling Plugin

(4
ipa hostgroup-add testing
ipa hostgroup-add-member --host=servername.com testing
ipa hostgroup-show testing
<should return ipa hostgroup>

(5
ldapsearch -x -b 'cn=testing,cn=ng,cn=alt,$SUFFIX' -x -D 'cn=Directory
Manager' -W
<should return>

# testing, ng, alt, $SUFFIX
dn: cn=testing,cn=ng,cn=alt,$SUFFIX
objectClass: ipanisnetgroup
objectClass: mepManagedEntry
objectClass: ipaAssociation
objectClass: top
cn: testing
memberHost: cn=testing,cn=hostgroups,cn=accounts,$SUFFIX
description: ipaNetgroup testing
mepManagedBy: cn=testing,cn=hostgroups,cn=accounts,$SUFFIX
ipaUniqueID: 9d0039ca-04b4-11e0-9494-8a3d259cb0b9


(6
ipa hostgroup-del testing
<should return>

----------------------------
Deleted hostgroup "testing"
----------------------------


(7
ldapsearch -x -b 'cn=testing,cn=ng,cn=alt,$SUFFIX' -x -D 'cn=Directory
Manager' -W
<should return>
# search result
search: 2
result: 32 No such object
matchedDN: cn=ng,cn=alt,$SUFFIX

-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-jraquino-0007-2-managed-entry-hostgroup-netgroup-support.patch
Type: application/octet-stream
Size: 17094 bytes
Desc: freeipa-jraquino-0007-2-managed-entry-hostgroup-netgroup-support.patch
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20101210/3000f90b/attachment.obj>


More information about the Freeipa-devel mailing list