Open charford opened 8 years ago
Seeing the same problem. Taking out the profileMap allows login. I try to fetch the username from ldap with this map
LDAP_DEFAULTS.searchResultsProfileMap=[{
resultKey: 'cn',
profileProperty: 'name'
}];
After reading other comments here, upgraded manually to version 1.1.0. Same problem. Can anyone give some directions how to debug this?
I never found a solution to this issue. I ended up using the command line to query ldap directly for the info I needed, rather than using this library (not ideal, but it works).
I am having the same issue :(
I am facing same issue. Please give me some solution.
Seems that when you set LDAP_DEFAULTS.base, all records that match this base are fetched from LDAP (such query usually exceeds size limit that ldapjs allows). When you set base to null, only result that matches the DN query is fetched from LDAP.
I'm trying to take a value from the ldap result and store it in the user's profile. The key is 'mail'. I have the following in server side code:
server/startup.coffee
If I comment out the LDAP_DEFAULTS.searchResultsProfileMap code, then login works fine. However, if I have that code enabled, I get the above error in the console logs of the server, and login does not complete successfully.
My client side login code looks like this:
Any ideas what the size limit error is about? For what its worth, from command line I am able to execute:
And I get a list of keys/values, along with the mail key/value i'm trying to get access to. So I know the info exists in the ldap directory, but for some reason I can't access it because of the above error.