Question on ntlm_auth tool

Andrew Bartlett abartlet at
Fri Sep 10 08:44:27 GMT 2004

On Fri, 2004-09-10 at 10:02, Yimin Chen wrote:
> Hi Andrew,
> Thank you very much for the suggestion. I wasn't aware at all that 
> winbind_request APIs are not for external use.
> Now Looking at the ntlm_auth tool again, I have a few more questions:
> 1) What is the option to retrieve the challenge from the server? In the 
> NTLM authentication case, we need to pass the challenge back to client, 
> and then retrieve the NT LM responses from client response, and pass the 
> callenge as well as the NT LM responses to the ntlm_auth tool, right?
> I must have missed something, but can't figure out.

Are you doing NTLM or NTLMSSP?  What is the target protocol?  (MSCHAP?

Fundamentally, ntlm_auth operates as a privileged client in the domain,
and the challenge is either generated inside the helper, or supplied to
it, depending on mode of operation.

> 2) Is there a dynamic library API instead of binary calls of ntlm_auth 
> that we can use to achieve the ntlm authentication? Invoking API calls 
> could have lower overhead than binary calls.

Not at this stage - it was decided that a fork()/exec() interface
allowed for the best compatibility going forward, as well as a clear
licence boundary.  There are proposals for a shared lib interface for
other winbind functions, but I don't yet see the need to extend it here.

Andrew Bartlett

Andrew Bartlett                                 abartlet at
Authentication Developer, Samba Team  
Student Network Administrator, Hawker College   abartlet at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url :

More information about the samba-technical mailing list