NTLM Winbind
auth_ntlm_winbind_module (mod_auth_ntlm_winbind.so) . Samba winbind, .
Samba:
git clone git://git.samba.org/jerry/mod_auth_ntlm_winbind.git
NTLM :
<Directory /srv/http>
Allow from all
AuthName "NTLM Authentication thingy"
NTLMAuth on
NTLMAuthHelper "/usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp"
NTLMBasicAuthoritative on
AuthType NTLM
require valid-user
AllowOverride all
</Directory>
, :
LoadModule auth_ntlm_winbind_module /usr/lib/httpd/modules/mod_auth_ntlm_winbind.so
Windows REMOTE_USER:
use CGI;
my $query = new CGI;
my $windows_account = $query->remote_user();
, IE .
- .
LDAP
- authnz_ldap_module (mod_authnz_ldap.so). , . , . Single signon, .
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
:
<Directory /srv/http>
AuthName "Authentication required"
AuthType Basic
AuthzLDAPAuthoritative off
AuthBasicProvider ldap
AuthLDAPURL "ldap://your.ldap.server.net:389/OU=the,OU=search,OU=node,DC=domain,DC=net?sAMAccountName?sub?(objectClass=*)" NONE
AuthLDAPBindDN "CN=AD Bind User,OU=the,OU=bind,OU=node,DC=domain,DC=net"
AuthLDAPBindPassword super-secret
Require valid-user
AllowOverride all
</Directory>
.