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
Last edited by jschiwal; 07-17-2007 at 07:44 AM.
|