Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-20004

Fix dynamic groups evaluation from user page

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 6.0-HF23
    • Fix Version/s: None
    • Component/s: Directory

      Description

      1. add dynamic groups like the following :
        dn: cn=aletter,ou=group,dc=nuxeo,dc=com
        memberURL: ldap:///ou=people,dc=nuxeo,dc=com??sub?(givenName=a*)
        cn: aletter
        description: Groupe des utilisateurs dont le prenom commence par a
        objectClass: groupOfUrls
        objectClass: top
        
      2. add a user contained in this group :
        dn: uid=adulogis,ou=people,dc=nuxeo,dc=com
        uid: adulogis
        cn: adulogis
        givenName: Alfred
        sn: Dulogis
        objectClass: inetOrgPerson
        objectClass: top
        userPassword: password
        
      3. setup nuxeo HF26+ to connect the ldap server
      4. check the group and see the user in it
      5. check the user, the group does not appear

      The issue is in LDAPReference:

      if (getFilterMatcher().match(targetAttributes, ldapUrl.getFilter())) {
      

      In this case ldapUrl.getFilter() would evaluate to (givenName=a*) but the optimizations introduced in HF23+ don't return all the attributes then it never matches and the groups don't get displayed.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 minute
                  1m