0 Replies Latest reply on Jan 7, 2010 1:37 AM by Charlie B

    IdentityManager listUsers and listMembers

    Charlie B Newbie

      Hi,


      Im trying to filer through my users in LDAP using the listUsers method.


      However, I need to be able to search and filter through the entire subtree.


      I'm currently using:


      identityManager.listUsers("(&(objectClass=*)(memberOf=CN=SGG_Webtool_User,OU=Groups,OU=Sites,DC=StateWater,DC=local))");


      However, this doesnt return any results, since its not searching the subtree.
      Does anyone know how I can do this?


      Also, when trying to use listMembers, the List always returns NULL.


      Im using: members = identityManager.listMembers("CN=SGG_Webtool_User");
      Is this correct? Or do i have to put the entire DN?


      members = identityManager.listMembers("CN=SGG_Webtool_User,OU=Groups,OU=Sites,DC=StateWater,DC=local");


      This is my identityManager setup:




      <security:ldap-identity-store name="ldapIdentityStore"
             server-address="#######.StateWater.local"
             server-port="389"
             bind-DN="cn=########,cn=Users,dc=StateWater,dc=local"
             bind-credentials="#######!"
             user-name-attribute="sAMAccountName"
             first-name-attribute="givenName"
             last-name-attribute="sn"
             full-name-attribute="displayName"
             user-DN-prefix="StateWater\"
             user-DN-suffix=""
             user-context-DN="OU=Sites,DC=StateWater,DC=local"
             role-context-DN="OU=Groups,OU=Sites,DC=StateWater,DC=local"
             user-role-attribute="memberOf"
             role-name-attribute="name"
             user-object-classes="user"
             role-object-classes="group"/>




      Any help would be appreciated.


      Charlie