-
Oct 19th, 2010, 05:24 AM
#1
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];
-
Oct 21st, 2010, 06:46 AM
#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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules