- Do a checkout
svn co https://modntlm.svn.sourceforge.net/svnroot/modntlm/trunk/mod_ntlm2
- install apache-developer files:
sudo aptitude install apache2-prefork-devel
- cd into mod_ntlm2 and edit Makefile:
APXS=apxs2
APACHECTL=apache2ctl - edit mod_ntlm.c:
replaceapr_pool_sub_make(&sp,p,NULL);
withapr_pool_create_ex(&sp,p,NULL,NULL);
As of this post, apr_pool_sub_make is deprecated and was removed. Use apr_pool_create_ex instead. - make (there's a warning about log function). Do not 'make install' here. (it doesn't find mod_ntlm.so and it adds LoadModule to httpd.conf instead of using new-style module loading mechanism.
- copy it to apache2 modules dir:
sudo cp .libs/mod_ntlm.so /usr/lib/apache2/modules/
- create file /etc/apache2/mods-available with sudo:
LoadModule ntlm_module /usr/lib/apache2/modules/mod_ntlm.so
- configure some location or directory which needs authentication:
#NTLM Auth
AuthName NTAuth
AuthType NTLM
NTLMAuth on
NTLMAuthoritative on
NTLMDomain DOMAIN
NTLMServer your.dc.here # or IP
NTLMLockfile /tmp/_my.lck
# NTLMBackup your.dc-backup.here
require valid-user - reload apache2:
sudo /etc/init.d/apache2 force-reload
See:
No hay comentarios:
Publicar un comentario