B
Bud
I'm using an InitialLdapContext object to perform a search on an
entry.
results = ctx.search(searchBase, searchFilter, ctls);
Using the same searchBase and searchFilter, if the ctls
(SearchControls) list of requested attributes are strings the
execution of the search will give me a results with the requested
attribute values. However, when the ctls has a binary attribute, that
attribute appears to be ignored in the results.
In my particular example I'm trying to acquire a "jpegPhoto" attribute
which is already identified as a binary item by the server. I have
tried specifying the attribute as binary using "jpegPhoto;binary" with
no better success. I have also tried insuring a binary object would
be returned by setting
ctls.setReturningObjFlag(true);
with no success.
Can someone suggest what the problem might be or how I might narrow
the problem down? If I use a LDAP browser (jXplorer or LDAP Studio) I
can view the stored jpegPhoto with no problem It appears that only my
program has the problem.
I did discover that jXplorer doesn't use the
javax.naming.ldap.InitialLdapContext to gain access to the server.
Can that be my issue?
entry.
results = ctx.search(searchBase, searchFilter, ctls);
Using the same searchBase and searchFilter, if the ctls
(SearchControls) list of requested attributes are strings the
execution of the search will give me a results with the requested
attribute values. However, when the ctls has a binary attribute, that
attribute appears to be ignored in the results.
In my particular example I'm trying to acquire a "jpegPhoto" attribute
which is already identified as a binary item by the server. I have
tried specifying the attribute as binary using "jpegPhoto;binary" with
no better success. I have also tried insuring a binary object would
be returned by setting
ctls.setReturningObjFlag(true);
with no success.
Can someone suggest what the problem might be or how I might narrow
the problem down? If I use a LDAP browser (jXplorer or LDAP Studio) I
can view the stored jpegPhoto with no problem It appears that only my
program has the problem.
I did discover that jXplorer doesn't use the
javax.naming.ldap.InitialLdapContext to gain access to the server.
Can that be my issue?