下載 mod_auth_sspi
http://sourceforge.net/projects/mod-auth-sspi
這是 mod_auth_sspi 在 sourceoforge 的專案,從這邊可以直接下載 mod_auth_sspi.so
LoadModule sspi_auth_module modules/mod_auth_sspi.so
AuthName "Local Intranet" AuthType SSPI SSPIAuth On SSPIAuthoritative On SSPIOfferBasic Off SSPIOmitDomain On Require valid-user
LoadModule sspi_auth_module modules/mod_auth_sspi.so
AuthName "Local Intranet" AuthType SSPI SSPIAuthoritative On SSPIOfferBasic On SSPIBasicPreferred Off SSPIAuth On require valid-user
$cred = explode('\\',$_SERVER['REMOTE_USER']); if (count($cred) == 1) array_unshift($cred, "(no domain info - perhaps SSPIOmitDomain is On)"); list($domain, $user) = $cred; echo "You appear to be user <B>$user</B><BR/>"; echo "logged into the Windows NT domain <B>$domain</B>";