Re: nmblookup

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sat, 22 Apr 2000 12:00:55 +0200

Sure, just build a "redirector" that makes the authentication. The
redirectors interface is powerful enought for this kind of out-of-band
authentication.

You probably want to rewrite the lookup to only ask for one station at a
time when needed, and to cache the result for some time..

Further, there exists a patch somewhere that allows redirectors to
return the username for logging purposes.

--
Henrik Nordstrom
Squid hacker
Matthew wrote:
> 
> Just another suggestion for authentication.
> The following script successfully lists all windows logged on users.
> Could this be used for authentication?
> 
> -------
> #!/bin/sh
> 
> nmblookup NTDOMAIN|grep -v quer|cut -d' ' -f1| xargs -i nmblookup NTDOMAIN
> -d 1 -U {} -S -T|grep -E '(.*<00>$)|(<03>)'
> ----------
> 
> Where NTDOMAIN is the name of your windows domain. (if u have one!)
Received on Sat Apr 22 2000 - 04:14:09 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:53:00 MST