[plug] Domain user from IP address?
Timothy White
weirdit at gmail.com
Fri Sep 1 07:12:57 WST 2006
On 8/31/06, Andrew Furey <andrew.furey at gmail.com> wrote:
>
> In an effort to user-friendly-ise (yes, that's a word... now...) a CGI
> script I'm writing, I'd like to be able to determine what domain user
> a particular IP address is (currently) associated with. (The network
> is simple enough that there shouldn't be dupes - fingers crossed).
>
> I presume the safest way would be to query the PDC (a 2k3 server), but
> I can't see any tool to do it. Perhaps one of the net(1) parameters?
> Alternatively nmblookup -A sometimes returns something viable, but
> that all depends on whether the Messenger service is running (which
> can't be relied upon).
>
> Anybody done this before?
Yes. But when the PDC was a linux box, and the linux box I was running
the script on. Then you can do smbstatus of somesort, and get the
domain user. No idea how to do it with a 2k3 PDC, but I think your on
the right track with nmblookup.
Sorry I can't be more helpful.
Tim
--
Linux Counter user #273956
Don't email joeblogs at scouts.org.au
More information about the plug
mailing list