active directory lookup

J

Jerry

I have a requirment where I need to check if a given user has been defined
in the active directory list of users..
I've looked at directoryentry, directorysearch but I'm getting no where..

1. Does the code that needs to seach the active directory have to have
admin rights?
2. When I define the filter for my search in the directory entry, I get an
error "dn syntax error"..

dim ade as directoryentry(LDAP://Users,dc=mydomain)
dim search as directorysearch(ade)
dim result searchresult

'userfname.userlname are passed as args.
search.filter = "(cn=" + userfname.userlname + ")"
result = search.findone

the last line causes the error....

thanks
Jerry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top