Closed yubozhao closed 8 years ago
We're pretty much returning everything the LDAP server returns -- are you sure the missing fields are not ones that require authentication to retrieve?
Hey @jeremycx Thanks for the quick reply.
That was my initial reaction as well. I use the same authentication info search same obj in jxexplore(a ldap gui for mac) to test and compare. It returns more fields than my method call.
That is why I messaged you
It may be that there's a LDAP packet coming back that I'm ignoring or not handling properly with the "missing" attributes in it, but if that's the case it's going to be a heck of a job finding it.
More likely, there's a bug in the auth code so you're not authenticated when you think you are.
Let's try an experiment: let's see if you can get jxexplorer (or ldapsearch on the command line) to return only the partial attributes you are seeing above. Once we find a way to get the same output from a different tool, we will have found the problem.
If you can't get any success with the above, please provide a runnable code sample that will exhibit the problem...
great thanks.
I will try the jxexplore with search
It seems like they are returning different result.
jxexplorer are returning the result, while the method is returning empty array.
I will try to make something runnable code for you
Closing due to inactivity.
@jeremycx. Yeah. I can't really product runnable code without leaking configs. Sorry.
hey @jeremycx
Thank you for the package. It is awesome.
I am currently running into this issue, after a successful search. The result only return [objectClass, uid, loginShell, sn, uidNumber, gidNumber, homeDirectory, givenName, cn, dn] fields. Other fields such as mail are missing.
here is my search func: