Ive successfully created a working application that brings user details from AD to my form. I need to obtain the "office" info found under the general tab of a user. Ive tried office and Location but neither work - anyone know what it is that i need in my query?
thx
Thanks for your help so far..... ive read the documenataion etc and copied the code from the link you sent, inserted our details. When it gets to the code line:
' Execute the query.
Set rs = Com.Execute
i get an error message saying
runtime error 2147217911 (80040e09) Permission denied.
Im...
OK thanks..... Just so i know are you referring this documentation as i have gone the wrong way about retrieving data from AD with my code or is this to help me build the syntax for the LDAP query?
Thanks for your reply. Sorry i must have made a typo in my code i forgot to add a String variable. So it shoudl have looked like:
Dim user as IADsuser
Dim userName as String
userName = txtUser.Text
Set user = GetObject ("LDAP://CN=" + userName + ",OU=Second Level,OU=First...
Hello
I created a code via VB6 which allows me to search for a user in active directroy and then displays the users details that i require:
Assuming this is the hierarchical structure of Active Directory:
Root - First level - Second Level - Third Level
Dim user as IADsuser
"LDAP://CN=" +...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.