LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   LQ Articles Discussion (https://www.linuxquestions.org/questions/lq-articles-discussion-68/)
-   -   ntlm_auth command line usage (https://www.linuxquestions.org/questions/lq-articles-discussion-68/ntlm_auth-command-line-usage-570038/)

satishssquid 07-17-2007 05:44 AM

ntlm_auth command line usage
 
Hello,

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.
Quote:

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

satishssquid 07-17-2007 05:58 AM

Hello,

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 04:06 PM.