Skip to Content.
Sympa Menu

grouper-users - [grouper-users] Group deletion with PSPNG

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] Group deletion with PSPNG


Chronological Thread 
  • From: Marwan Shaher <>
  • To: "" <>
  • Subject: [grouper-users] Group deletion with PSPNG
  • Date: Tue, 14 Feb 2017 13:53:41 -0700
  • Ironport-phdr: 9a23:peomLhRUx0UlfesF0fYVn+VFZ9psv+yvbD5Q0YIujvd0So/mwa6yZBSN2/xhgRfzUJnB7Loc0qyN4v2mATRLuMzY+Fk5M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aFRrwLxd6KfroEYDOkcu3y/qy+5rOaAlUmTaxe71/IRG2oAnLqsUanYRuJrsvxhfUv3BFZ/lYyWR0KFyJgh3y/N2w/Jlt8yRRv/Iu6ctNWrjkcqo7ULJVEi0oP3g668P3uxbDSxCP5mYHXWUNjhVIGQnF4wrkUZr3ryD3q/By2CiePc3xULA0RTGv5LplRRP0lCsKMSMy/WfKgcJyka1bugqsqRxhzYDJY4+bOvRxcazBct0VXmdBQsRcWjZdDo+gYYYCDewMNvtYoYnnoFsOqAOzCw62C+P1xD5HnHn21rAn3eQhCw7G3BIvH8gTu3nTqdX6Lr0SUO6vw6nO1znDdPNW1i396IfWaBAsuu+BXbV0ccrW00kgDR7KjlKKpYLqMT2a2P0Avm6G5ORjTeKik3Mrpx9yrzS128shhIrEipgIxlza9ih12pg5KNO4RUN9fNWqCoFftzuAOItzWs4iQ39nuCI9yrAeuJ67ZC0KyZsnyhLFd/OHdIyI4hX5VOmLPDh4g2hpd6yiiBav6USgy+v8Wdeo0FtSsyZJjNrBumoQ2xHd6cWLUOZx8lmi1DqVyQze5OFJLVgxlaXBKp4hxrAwloAUsUTGBiL4n1/5jLWYd0o+/Oik8fnpYrX8qZ+cKYB0kBrzPbgpmsy7BuQ4KBIBUHWc+eimyrLs4FD5TK1QjvIqiqnZrIzaJcMDq662GQ9V1Zsj6w6hADe8ydgYgGIHI0xfeBKclIXpP1DOIOvkDfeknVigijZrx/baPrL/GJXNKGbMkKv/cbpn9UFT1Rcznphj4MceBasGPer+QArsr9HCFTc4NRC52eDqFI87248DEyrbDbWeLbvfqxqV/e81OMGNYpMYojDwN6Jj6vLz2ywXg1gYKIygx4QebjiDHv1mLl/RNX/lmMgIFyERvgM+QfbCo1qGViRaa3H0co4BsGJoQLm6BJvOE9j+yIeK2z22S8Vb

Hello All,
We are experiencing a weird behavior when it comes to deleting groups with PSPNG. More specifically, groups that have members or have had members at any point are not getting deleted from the resource when deleted in Grouper. At first, we suspected it was an Active Directory issue. Then, we pointed Grouper to provision to an LDAP directory where we could review the logs easily on the LDAP side, and we are experiencing the same behavior. We are on the latest API and PSPNG patches as of today. We are wondering if anyone has experienced anything similar, or if this could be specific to our environment. We've tested it with both flat and bushy structures, as well as using group full names instead of group extensions in the group creation ldif template, with similar results.
My apologies in advance for the long email, but here are the configuration settings and scenarios we followed with the results:

--Begin: PSPNG settings --
changeLog.consumer.pspng_LDAP.quartzCron = 0 * * * * ?
changeLog.consumer.pspng_LDAP.ldapPoolName = PSPLdap
changeLog.consumer.pspng_LDAP.isActiveDirectory = false
changeLog.consumer.pspng_LDAP.memberAttributeName = uniqueMember
changeLog.consumer.pspng_LDAP.memberAttributeValueFormat = ${ldapUser.getDn()}
changeLog.consumer.pspng_LDAP.groupSearchBaseDn = ou=Groups,dc=colorado,dc=edu
changeLog.consumer.pspng_LDAP.allGroupsSearchFilter = objectclass=groupOfUniqueName
changeLog.consumer.pspng_LDAP.singleGroupSearchFilter = cn=${grouperUtil.extensionFromName(name)}
changeLog.consumer.pspng_LDAP.groupCreationLdifTemplate = dn: cn=${grouperUtil.extensionFromName(name)}||cn: ${grouperUtil.extensionFromName(name)}||objectclass: groupOfUniqueNames

changeLog.consumer.pspng_LDAP.userSearchBaseDn = dc=colorado,DC=EDU
changeLog.consumer.pspng_LDAP.userSearchAttributes = displayName, cuAccountUniqueID, displayName, uid, givenname, sn, dn
changeLog.consumer.pspng_LDAP.userSearchScope = SUBTREE
changeLog.consumer.pspng_LDAP.userSearchFilter = cuaccountuniqueid=${subject.id}
--End: PSPNG settings --

- In Grouper we created 5 groups: Test20170214_01 through Test20170214_05
- Test20170214_01 & Test20170214_05 are left empty, and the rest with a couple of members added to them.
- On the resource side (LDAP or AD), the groups are getting created successfully, mirroring the Grouper side. This by the way happens via "provision_to" attribute-based definition on a folder/stem in Grouper.

- Test # 1: Deleted the empty group Test20170214_01 in Grouper
-- Begin: Test #1 LDAP log ---
on the resource:
[14/Feb/2017:10:17:00 -0700] SEARCH REQ conn=9160 op=20 msgID=21 base="" scope=base filter="(objectClass=*)" attrs="1.1"
[14/Feb/2017:10:17:00 -0700] SEARCH RES conn=9160 op=20 msgID=21 result=0 nentries=1 etime=0
[14/Feb/2017:10:17:00 -0700] DELETE REQ conn=9160 op=21 msgID=22 dn="cn=test20170214_01,ou=groups,dc=colorado,dc=edu"
[14/Feb/2017:10:17:00 -0700] DELETE RES conn=9160 op=21 msgID=22 result=0 etime=10
-- End: Test #1 LDAP log ---
Result: SUCCESS. Test20170214_01 is deleted from LDAP

- Test # 2: Deleted Test20170214_02 in Grouper without first removing the members from the group
-- Begin: Test #2 LDAP log ---
[14/Feb/2017:10:19:59 -0700] SEARCH REQ conn=9160 op=22 msgID=23 base="" scope=base filter="(objectClass=*)" attrs="1.1"
[14/Feb/2017:10:19:59 -0700] SEARCH RES conn=9160 op=22 msgID=23 result=0 nentries=1 etime=0
[14/Feb/2017:10:19:59 -0700] SEARCH REQ conn=9160 op=23 msgID=24 base="ou=Groups,dc=colorado,dc=edu" scope=sub filter="(|(cn=Test20170214_02))" attrs="cn,gidNumber,samAccountName,objectclass"
[14/Feb/2017:10:19:59 -0700] SEARCH RES conn=9160 op=23 msgID=24 result=0 nentries=1 etime=1
-- End: Test #2 LDAP log ---
Result: FAILURE. Test20170214_02 is not deleted from LDAP. Please note that there was never a "DELETE" operation in the LDAP logs, even though the SEARCH operation had a hit "nentries=1" .

- Test # 3: Deleted Test20170214_03 in Grouper by first removing all the members from the group. Waited for the loader to run a few times, then deleted the group in Grouper.
-- Begin: Test #3 LDAP log ---
[14/Feb/2017:10:34:59 -0700] SEARCH REQ conn=9160 op=30 msgID=31 base="" scope=base filter="(objectClass=*)" attrs="1.1"
[14/Feb/2017:10:34:59 -0700] SEARCH RES conn=9160 op=30 msgID=31 result=0 nentries=1 etime=1
[14/Feb/2017:10:34:59 -0700] SEARCH REQ conn=9160 op=31 msgID=32 base="ou=Groups,dc=colorado,dc=edu" scope=sub filter="(|(cn=Test20170214_03))" attrs="cn,gidNumber,samAccountName,objectclass"
[14/Feb/2017:10:34:59 -0700] SEARCH RES conn=9160 op=31 msgID=32 result=0 nentries=1 etime=1
-- End: Test #3 LDAP log ---
Result: FAILURE. The members are removed from the LDAP group successfully making the group empty again. However, the group is not deleted from LDAP. Again, please note that there was never a "DELETE" operation in the LDAP logs, even though the SEARCH operation had a hit "nentries=1" .

- Test # 4: Deleted Test20170214_04 in Grouper by first removing the members and then deleting the group. This is similar to Test # 3, except that here the membership removal and the group deletion are processed in the same loader run.
-- Begin: Test #4 LDAP log ---
[14/Feb/2017:10:37:00 -0700] SEARCH REQ conn=9160 op=32 msgID=33 base="" scope=base filter="(objectClass=*)" attrs="1.1"
[14/Feb/2017:10:37:00 -0700] SEARCH RES conn=9160 op=32 msgID=33 result=0 nentries=1 etime=1
[14/Feb/2017:10:37:00 -0700] SEARCH REQ conn=9160 op=33 msgID=34 base="ou=Groups,dc=colorado,dc=edu" scope=sub filter="(|(cn=Test20170214_04))" attrs="cn,gidNumber,samAccountName,objectclass"
[14/Feb/2017:10:37:00 -0700] SEARCH RES conn=9160 op=33 msgID=34 result=0 nentries=1 etime=1
-- End: Test #4 LDAP log ---
RESULT: FAILURE. The group is not deleted in LDAP. The members are also NOT removed from the group in LDAP. Again, please note that there was never a "DELETE" operation in the LDAP logs, even though the SEARCH operation had a hit "nentries=1"

- Test # 5: Deleted Test20170214_05 in Grouper.
-- Begin: Test #5 LDAP log ---
[14/Feb/2017:10:48:00 -0700] SEARCH REQ conn=9160 op=34 msgID=35 base="" scope=base filter="(objectClass=*)" attrs="1.1"
[14/Feb/2017:10:48:00 -0700] SEARCH RES conn=9160 op=34 msgID=35 result=0 nentries=1 etime=1
[14/Feb/2017:10:48:00 -0700] SEARCH REQ conn=9160 op=35 msgID=36 base="ou=Groups,dc=colorado,dc=edu" scope=sub filter="(|(cn=Test20170214_05))" attrs="cn,gidNumber,samAccountName,objectclass"
[14/Feb/2017:10:48:00 -0700] SEARCH RES conn=9160 op=35 msgID=36 result=0 nentries=1 etime=0
-- End: Test #5 LDAP log ---
Result: FAILURE. Test20170214_05 is not deleted from LDAP. This is an empty group that never had members added to it just like Test20170214_01.
In other tests we conducted, empty groups are getting deleted from the resource successfully as long as
1- the group never had members added to it at any time
2- between the group creation and deletion, no other group with members was deleted.

In all test cases above, there were no errors or warnings in the Grouper logs.

Thanks,

Marwan



Archive powered by MHonArc 2.6.19.

Top of Page