|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-02-28 20:53 UTC] sniper@php.net
[2005-03-20 18:08 UTC] sniper@php.net
[2005-12-04 00:34 UTC] shrockc at inhs dot org
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 01:00:02 2025 UTC |
Description: ------------ This issue is pertains to Windows 2003 and ntwdblib.dll 7.00.839 which has been the packaged dll in the previous 3 releases. Issue: Only an account on the MSSQL Server machine can have access to pass queries to the MSSQL i.e an account that has admin privileges on web server box (Windows 2003) and has privliges on the MSSQL box will allow the credentials to pass thus allowing the SQL login creditials to pass and the query to execute. While using Ethereal I noticed that the protocol used on Win 2k3 boxes accessing MSSQL was SMB and that it was performing NTLM authentication for the iusr_servname account against the MSSQL server. Where by the XP and 2000 box was using TDS with the same DLL. Once a changed the dll to the current version (ntwdblib.dll ver 8.00.194) running on the MSSQL box the apps worked normally on Win 2k3 boxes. Reproduce code: --------------- $test = mssql_connect('dbserver',"uname","pword"); if(!$test) { $return = 'Test Failed: '.mssql_get_last_message()."\n"; } else { $return = 'Test succeeded'; } Expected result: ---------------- Test Succeeded Actual result: -------------- Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: 24.225.0.5 in D:\clients\admin.ruraltel.net\tmp\test_mssql.php on line 11