Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-3052

Allow passing through custom ldap properties

    XMLWordPrintableJSON

Details

    Description

      When we setup the user/group base location all queries are failing if we are at base of the DC.

      As a workaround we could set follow referrals property to "follow" but this is not supported at the moment using the standard config file.

      Using the modified source as described in the attached file and a config file entry this would become feasible.

      org.apache.activemq.jaas.LDAPLoginModule optional
      debug=true
      initialContextFactory=com.sun.jndi.ldap.LdapCtxFactory
      connectionURL="ldap://test.local:389"
      connectionUsername="CN=testusr,DC=test,DC=local"
      connectionPassword="XXXXXXXXXX"
      connectionProtocol="s"
      authentication=simple
      userBase="DC=test,DC=local"
      userSearchSubtree=true
      userRoleName=sAMAccountName
      userSearchMatching="(sAMAccountName=

      {0}

      )"
      roleBase="DC=test,DC=local"
      roleName=cn
      roleSearchMatching="(member:=uid=

      {1}

      )"
      java.naming.referral=follow
      roleSearchSubtree=true;
      };

      Attachments

        1. LDAPLoginModule.java.patch
          2 kB
          Iulius Hutuleac

        Activity

          People

            gnodet Guillaume Nodet
            iulius.hutuleac Iulius Hutuleac
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: