Authorization NTLM and PHP

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Does anyone ever made full authorization via NTLM using PHP?
I tried to do it but i stucked in validating nt_hash and lm_hash
received in messageType3.
I couldn't find any example of source code how to validate them.

I also tried to use mod_ntlm for apache2 but in error log I found only that:

send_ntlm_challenge: no conn. handle...trouble communicating with
PDC/BDC? returning internal server error

I checked the IP connectivity from the Apache host to the PDC is OK
presumably and the httpd.conf looks like this:

# used DOMAIN, pdc, bdc are here for example

AuthType NTLM
NTLMAuth on
NTLMAuthoritative on
Require valid-user

LoadModule ntlm_module        modules/

Has anyone similar problem?

Lech Wilczyski

Re: Authorization NTLM and PHP


On 11/14/2004 05:21 PM, Lech Wilczyski wrote:
Quoted text here. Click to load it

Yes, but currently only for protocol client. Server side implementation
is planned. If you would like to submit server side implementation
driver for this SASL package, it would be welcomed too.

Quoted text here. Click to load it

I have not looked into this in depth yet, but I think you validate it
just by forwarding back and forth to a domain controller, instead of
trying to check it yourself.

Quoted text here. Click to load it

Have you tried using explicit IP addresses for the domain controllers?


Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP /

PHP Reviews - Reviews of PHP books and other products /

Metastorage - Data object relational mapping layer generator

Re: Authorization NTLM and PHP

Quoted text here. Click to load it

What version of mod_ntlm are you using?
There is a rewritten version at <URL: .
Works great.

Morten Dreier /

Site Timeline