How to NTLM with Apache 
Author: Josef Jezek
- Linux joined to win domain
- https://gist.github.com/9050408
sudo apt-get update
sudo apt-get install libapache2-mod-python python-crypto git
git clone git://github.com/Legrandin/PyAuthenNTLM2.git
cd PyAuthenNTLM2
sudo python setup.py install -f
<Directory /var/www/wordpress>
AuthType NTLM
AuthName WDOMAIN
require valid-user
PythonAuthenHandler pyntlm
PythonOption Domain WDOMAIN
PythonOption PDC 192.1.2.45
PythonOption BDC 192.1.2.46
# Bypass authentication for local clients.
# Comment these lines if they should authenticate too.
Order deny,allow
Deny from all
Allow from 127.0.0.1
Satify any
</Directory>
- http://css.dzone.com/news/wordpress-auto-sign-iis7-and
- see below for my plugin
According to your environment, you may need to configure your client to make NTLM authentication work.
- Open "Tools" -> "Internet Options".
- On the "Advanced" tab make sure the option "Security -> Enable Integrated Windows Authentication" is checked.
- Only for FQDN ex. http://intranet.domain.com (http://intranet is ok)
- On the "Security" tab select "Local Intranet" -> "Sites" -> "Advanced" and add your server URL to the list.
- On Windows Chrome normally uses IE's behaviour, see more information here.
- Type about:config in the browser's address bar.
- Add your server URL to network.automatic-ntlm-auth.trusted-uris property.
- Legrandin/PyAuthenNTLM2#12
- sudo vi /usr/local/lib/python2.7/dist-packages/pyntlm.py