Open gismcieri opened 5 years ago
Hi, about the aduser, is "siteadmin" the actual CN (Common Name) of the object or that's the sAMAccountName/ADUsername?. That function looks for the object in the given searchbase or whole domain in that case that has the CN equal to that. When you create an user in AD it asks you for Name and Surname and the CN is normally the sum of the two.
so for example if the name of my User is "John Smith", he's have the following attributes givenName = "John" sn = "Smith" cn = "John Smith" distinguishedName = "CN= John Smith, OU=Users, DC=my,DC=domain" even if his username is "siteadmin"
about the adquery, assuming you changed DC=xxxx in the query it should be working.
Hi, I am having and issue with both getting the user and Querying AD both are returning errors. I am wondering if its a permissions issue or something. Any assistance would be greatly appreciated.
aduser error:
Query Error:
Thanks, Matt