-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to fetch user & groups #56
Comments
Have you tried setting a search base and/or scope? |
Yes, passed baseDN as cn=testContainer,cn=admin,dc=ec2,dc=internal still no results. |
Perhaps a dumb answer, but I wonder if things are case sensitive and would try, just for curiosity: |
Thank you @jurjendijkstra , Already tried with upper case but no luck. |
Hmm sorry. Another guess: you are passing an object { dn: "..."} to findUser but according to the doc you should pass a string, and the value of that string may be either the sAMAccountName, userPrincipalName or dn. Like this: |
Thank you @jurjendijkstra , Tried with a DN string still no luck. Can you help me in finding my sAMAccountName / userPrincipalName in ADSI editor? I am unable to locate this option. |
OR sAMAccountName is just the name that was used while adding a new user in ADSI? i.e akshay in this case? |
I am using node js activedirectory module for AD authentication and fetching users & groups. Able to authenticate successfully but unable to get users & groups using .findUser(), .findUsers(), .findGroups() methods. I've added few users and a group using ADSI editor in windows 10. Any clue what could be going wrong?
Screenshot of ADSI Editor :
Code :
Output :
Authenticated!
User: not found.
The text was updated successfully, but these errors were encountered: