Simple UNIX SMB authentication. This script allows web site users to be managed by a Windows NT/2000 or SAMBA primary domain controller. *** Please note that this PHP script
will not execute correctly if placed on a Windows web server. *** Requires the installation of Samba (http://samba.sourceforge.net/) to validate usernames/passwords. The actual
Samba server software does not need to run at all. It only uses the small "smbclient" binary installed with Samba. The only other requirement is that a file named "phpauth" be
placed in the SMB logon servers NETLOGON directory (\\SERVERNAME\NETLOGON\). The file must contain only the word 'allow'. This script basically works exactly the same way as
Squid Proxy Cache's SMB authentication does. It has been tested on Mac OS X with Samba 2.2.2 and Windows NT 4 SP 6. If you have any problems, please email me and I'd be happy to
help out. Please note that this PHP script will not execute correctly if placed on a Windows web server.