469,963 Members | 2,209 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,963 developers. It's quick & easy.

Verifying a user-id exists

How can I verify a user-id has a domain account given only the user-id
(if I don't have the password)?
Nov 17 '05 #1
1 1257
"Mike Russelo" <no****@nowhere.com> wrote in message
news:cv********************************@4ax.com...
How can I verify a user-id has a domain account
given only the user-id (if I don't have the password)?


Here is one way:

Pass to DsGetDCName() the name of a domain. That will get you the name of
the server on which the domain controller runs. Then you can use that server
name in a call NetUserEnum() to enumerate all of the accounts in the domain
or NetUserGetInfo() to retrieve information about a particular account.

Of course, you may need account operator privileges or some such to access
the data.

Regards,
Will
Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by prasi | last post: by
6 posts views Thread by Bevo | last post: by
6 posts views Thread by John | last post: by
2 posts views Thread by Robert Scheer | last post: by
5 posts views Thread by Geisler, Jim | last post: by
4 posts views Thread by Mike | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.