Announcement Announcement Module
Collapse
No announcement yet.
Is ldapTemplate.lookup possible with operational attrib ? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is ldapTemplate.lookup possible with operational attrib ?

    Hi

    Trying to do a lookup using the entryUUid. Is this possible using the lookup ?

    Can find the object using a ldapTemplate.search.

    Here is my code snippet.

    LdapTemplate ldapTemplate = new LdapTemplate(ctxSrc);
    DirContextAdapter adapter = (DirContextAdapter) ldapTemplate.lookup("entryUUID=1713b1f6-170d-49fa-a079-6f83e6780925",
    allAttributes,
    new ContextMapper() {
    @Override
    public Object mapFromContext(Object ctx)
    {
    return= (DirContextAdapter)ctx;
    } });

    Currently getting :

    javax.naming.NameNotFoundException: [LDAP: error code 32 - The entry entryUUID=1713b1f6-170d-49fa-a079-6f83e6780925 specified as the search base does not exist in the Directory Server];

  • #2
    You need to ask for operational attributes explicitly by name.

    Search the forum for "operational" and you will find this has already been discussed quite a few times.

    Comment

    Working...
    X