php-windows Digest 24 Aug 2005 18:00:39 -0000 Issue 2758
Topics (messages 26287 through 26287):
PHP, MySQL and Active Directory
26287 by: Daniel R. Przybylski
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
I've got PHP 4 set up on Server 2003. My LAN is running active directory.
Whenever I try to a mysql_connect, something (PHP I assume) tacks on a
hostname of the local computer.
$link = mysql_connect('myserver', 'user', 'password');
Besides the old password authentication password problem (which is not what
this post is about)
I get errors saying that access is denied for [EMAIL PROTECTED]
First off, there is no [EMAIL PROTECTED] because I don't use local user
accounts with active directory running. So why is the NetBIOS name of my
workstation being attached to my username?
Even if I put in my hostname...
$link = mysql_connect('myserver', '[EMAIL PROTECTED]', 'password');
Then it complains about [EMAIL PROTECTED]@WORKSTATION.
If I try running the page on the server, then it tacks the entire fully
qualified domain name of the computer :
[EMAIL PROTECTED]@myserver.mylan.mydomain.com.
I don't have to explain to you guys that an active directory account is the
same account regardless of what computer I log onto and (apparently) PHP has
absolutely no regard for this. It seems to think that any user on any
computer needs a specific user and hostname....
Very frustrating! Anyone deal with this before?
--- End Message ---