Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get AD Username from ip address?

Status
Not open for further replies.

jsteph

Technical User
Oct 24, 2002
2,562
US
Hi,
I don't know if this is the right forum...I searched Active Directory and this forum came up.

I have server-side code running on an intra-net site, and I have the client-ip address at my disposal. I need to fetch either the Computer-Name or, more preferably, the AD Username of the user logged into the box with IP address.

Is this easily accomplished? I have used the clunky (and bizarre, in my opinion) methods of parsing AD data using the GetObject(LDAP... syntax. I'm not sure if the ip address is in that labyrinth somewhere or not...and I'm also wondering if maybe a new version of AD has a database instead of this other method of storing this data.

I'm on Server 2003 R2 Exchange 6.5.7633.1
Thanks,
--Jim
 
This forum may have come up but you'd be better off in a Windows forum rather than Exchange. I don't know of a way to do it short of \\ip_address\c$ and check the date of the docs and settings folder for the user.
 
zelandakh,
Thanks, I ended up finding a .dll online that works perfectly,
--Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top