Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-1331

PSPNG LDAP-Group Provisioning: Problems with filters that include dn

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Minor
    • 2.3.0.patch
    • 2.3.0, 2.3.0.patch
    • provisioning
    • None

    Description

      (From grouper-users/Jeffrey Crawford, June 2016)

      PSPNG is successfully fetching existing LDAP Groups, but failing to match them up within this block of code:
      LdapGroupProvisioner
      // For every group we tried to bulk fetch, find the matching LdapObject that came back
      for ( GrouperGroupInfo groupToFetch : grouperGroupsToFetch ) {
      SearchFilter f = getGroupLdapFilter(groupToFetch);

      for ( LdapObject aFetchedLdapObject : searchResult ) {
      if ( aFetchedLdapObject.matchesLdapFilter(f) )

      { result.put(groupToFetch, new LdapGroup(aFetchedLdapObject)); matchedFetchResults.add(aFetchedLdapObject); break; }

      }

      Email from Jeffrey Crawford:

      I've got the DN naming squared away but The system seems to be unable to understand that a group already exists. basically I'm finding the following in my LDAP logs:

      [2016-Jun-17 12:30:23.863 -0700] SEARCH REQ conn=1663604 op=187 msgID=188 base="ou=svc,ou=groups,dc=ucsc,dc=edu" scope=wholeSubtree filter="(|(&(objectclass=groupOfNames)(entryDN=cn=group,ou=substem,ou=its,ou=svc,ou=groups,dc=ucsc,dc=edu)))" attrs="cn,gidNumber,samAccountName,objectclass,member"
      [2016-Jun-17 12:30:23.863 -0700] SEARCH RES conn=1663604 op=187 msgID=188 result=0 nentries=1 etime=1
      [2016-Jun-17 12:30:24.073 -0700] ADD REQ conn=1663603 op=193 msgID=194 dn="cn=group,ou=substem,ou=its,ou=svc,ou=groups,dc=ucsc,dc=edu"
      [2016-Jun-17 12:30:24.073 -0700] ADD RES conn=1663603 op=193 msgID=194 result=68 message="The entry cn=group,ou=substem,ou=its,ou=svc,ou=groups,dc=ucsc,dc=edu cannot be added because an entry with that name already exists" etime=1

      Is this a bug or do I need to make sure an additional attribute is being returned?

      Jeffrey E. Crawford
      Enterprise Service Team

      Attachments

        Activity

          People

            bert.beelindgren@at.internet2.edu Bert Bee-Lindgren (gatech.edu)
            bert.beelindgren@at.internet2.edu Bert Bee-Lindgren (gatech.edu)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: