-   LQ Articles Discussion (
-   -   ntlm_auth command line usage (

satishssquid 07-17-2007 05:44 AM

ntlm_auth command line usage

How to use the ntlm_auth command line usage .

more interested in these parameters

--challenge=STRING challenge (HEX encoded)
--lm-response=STRING LM Response to the challenge
(HEX encoded)
--nt-response=STRING NT or NTLMv2 Response to the
challenge (HEX encoded)

jschiwal 07-17-2007 05:47 AM

From the manpage.

This utility is only indended (sic) to be used by other programs (currently Squid and

satishssquid 07-17-2007 05:58 AM


I have got success integrating with squid but just curious to know how it works as a command line

jschiwal 07-17-2007 07:42 AM

It will return either a 0 or a 1 so if you use it in a script, you would use is as part of a test.

/usr/bin/ntlm_auth --username=satish --domain=satdomain && echo authenticated || echo failure

As far as I know you would need to be using a domain and wins and run the command as root. Maybe this could be useful: /usr/bin/ntlm_auth --username=satish --domain=satdomain --dianostics

All times are GMT -5. The time now is 05:54 PM.