Ok,
Hers the situ, PHP script running under IIS on a Win2k server
Ms SQl server 2000 as the database.
KNow, I have setup IIS to use clear passwords, and selected a domain, so when the user goes to the page, they enter their windows login name an dpassword, and then they go to the page. Then $_SERVER[PHP_AUTH_USER]
gets passed to the page and shows their users name.
Works fine BUT, the sql server is set 'SA' login - but we would like it if possible to only set Windows logon to the database.
Any ideas if this is possible, and if so how? I cannot seem to get it to work. I have tried making it in the form an entry for user name ($name) and password ($password) that gets pased to the connection strings:-
define('DB_HOST','itdepartment01');
define('DB_USER','$name');
define('DB_PASS', '$password');
define('DB_NAME','itrequest');
if(! $conn = mssql_connect(DB_HOST,DB_USER,DB_PASS)){
exit ("Wheres the DB_HOST gone?");}
But it dont work at all.
Any ideas if I can get it to work.
Scott