Results 1 to 2 of 2

Thread: Is ldapTemplate.lookup possible with operational attrib ?

  1. #1
    Join Date
    Oct 2010
    Posts
    1

    Default 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. #2
    Luke Taylor is offline Senior Member Acegi Security System TeamSpring Team
    Join Date
    Aug 2004
    Location
    Glasgow, Scotland
    Posts
    3,449

    Default

    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.
    Spring - by Pivotal
    twitter @tekul

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •