Announcement Announcement Module
Collapse
No announcement yet.
How to specify a proper objectclass in the search method of LdatTemplate? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to specify a proper objectclass in the search method of LdatTemplate?

    I have the following code:
    ldapTemplate.search("cn=SSSS Administrators,ou=Groups,o=SHIP",
    "(objectclass=*)", new AttributesMapper()
    {
    public Object mapFromAttributes(Attributes attrs)
    throws NamingException
    {
    return attrs.get("uniqueMember").get();
    }
    });

    This code allows me to find one entry.

    Can I narrow the search putting instead of * a proper value for objectclass? How to find this value?

  • #2
    objectClass

    Can you use JXplorer and login to your LDAP tree and browse it. There is a different tab view of the node where you can see the objectClass attribute.

    objectClass=groupOfNames

    is an example of an objectClass that I know of.

    Comment

    Working...
    X