Hi Matt,
Hmm, I'm not sure if this works in all cases, but if I do this :
smbclient -L server -U username%password
The shell's errorlevel will be 0 if username%password is correct,
1 if it is incorrect.
You can just pipe the output of smbclient to /dev/null and depend
on the errorlevel.
Hopefully there is a nicer way to do this ( anyone know what Samba
uses internally for the "password server" option? is this exposed
to a command line interface somehwere? ), but this is the way I have
used so far to test usernames against a password server.
HTH,
Rob Helmer
On Tue, Jan 08, 2002 at 01:41:48PM -0500, Matt Juszczak
wrote:> Is there anyway to call samba from the command line, pass it a username
> and password, and have it talk to the local NT domain controller on my
> network to verify the username and password?
>
> Thx,
>
> Matt
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba
>