Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Cancelled
    • Affects Version/s: ejabberd 2.1.10
    • Fix Version/s: None
    • Component/s: LDAP

      Description

      Here's my roster filter:

          {ldap_rfilter, "(&(objectClass=groupofuniquenames)
                     (uniqueMember=uid=%u,ou=People,o=mydomain))"},
      

      Here's the ejabberd.log:

      =INFO REPORT==== 2012-04-15 22:19:58 ===
      D(<0.347.0>:eldap:696) : {searchRequest,
                                {'SearchRequest',"o=mydomain",wholeSubtree,
                                 neverDerefAliases,0,5,false,
                                 {'and',
                                  [{equalityMatch,
                                    {'AttributeValueAssertion',"objectClass",
                                     "groupofuniquenames"}},
                                   {equalityMatch,
                                    {'AttributeValueAssertion',"uniqueMember",
                                     "uid=%u,ou=People,o=mydomain"}}]},
                                 ["cn"]}}
      

      It may be useful for the %u substitution to work in the ldap_rfilter. In my specific case, the LDAP server returns a limited result set which may not include all the LDAP groups the given user, %u, belongs to. One obvious solution on my side is to ask the LDAP administrator to not limit the search results. But, it may also be useful to limit the LDAP query itself based on the user, %u.

        Activity

        Hide
        ekhramtsov ekhramtsov added a comment -

        Done in mainline/2.1.x.

        Show
        ekhramtsov ekhramtsov added a comment - Done in mainline/2.1.x.
        Hide
        cromain@process-one.net Christophe Romain added a comment -

        reopening this ticket to apply missing feature from EJAB-1480

        Show
        cromain@process-one.net Christophe Romain added a comment - reopening this ticket to apply missing feature from EJAB-1480
        Hide
        cromain@process-one.net Christophe Romain added a comment -

        The EJAB project is obsolete for more than a year now, all ejabberd issues are tracked in github:
        https://github.com/processone/ejabberd/issues

        This ticket is now automatically closed as it could not be handled completely.
        If you think it needs to be resurrected, please create a github issue referencing this EJAB ticket.
        We'll keep this ticket readable for reference in case it's needed in a future patch.

        Show
        cromain@process-one.net Christophe Romain added a comment - The EJAB project is obsolete for more than a year now, all ejabberd issues are tracked in github: https://github.com/processone/ejabberd/issues This ticket is now automatically closed as it could not be handled completely. If you think it needs to be resurrected, please create a github issue referencing this EJAB ticket. We'll keep this ticket readable for reference in case it's needed in a future patch.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development