RE: [PHP] NT Authentication
| From: | Taylor, Stewart | Date: | Thu, 19 Jul 2001 08:00:06 +0000 |
| Subject: | RE: [PHP] NT Authentication | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-58630@lists.php.net to get a copy of this message | ||
You can install an apache module which does this.
Then all you do is edit apache's httpd.conf file to say which directories
you want to be authenticated and information about your NT domain and backup
servers etc...
e.g.
<Location /devel/apps/app1>
Authname "Company Intranet Server"
AuthType Basic
Auth_SMB on
Auth_SMB_Authoritative on
Auth_SMB_Server SERVER1
Auth_SMB_Backup SERVER2
Auth_SMB_Domain DOMAIN1
#had to modify code for multiple domain access
#Auth_SMB_Server1 SERVER1a
#Auth_SMB_Backup1 SERVER2a
#Auth_SMB_Domain1 DOMAIN2
#Auth_SMB_Server2 SERVER1b
#Auth_SMB_Backup2 SERVER2b
#Auth_SMB_Domain2 DOMAIN3
require valid-user
</Location>
When a user tries to access an authenticated directory via their browser a
login prompt will be displayed, they will not be able to progress until they
have entered their correct NT username/password. Once they do apache then
passes their NT username on to your app in the $REMOTE_USER global variable.
The module is located at:
http://guru.josefine.at/~mfischer/mod_auth_smb/
-Stewart
-----Original Message-----
From: Warren Vail [mailto:warren@availabletech.com]
Sent: 18 July 2001 15:23
To: php-general@lists.php.net
Subject: [PHP] NT Authentication
I am running php4/mysql/apache in a large NT complex, behind a firewall.
How can I authenticate users to my site using NT authentication? Has anyone
done this?
thanks,
Warren Vail
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net