ID: 31156
Comment by: webmaste at adamscs dot com
Reported By: webmaster at adamscs dot com
Status: Open
Bug Type: Unknown/Other Function
Operating System: Windows Server 2003
PHP Version: 5.0.3
New Comment:
Some more info: I regularly use the exec() funtion with other AD
related programs (ldifde, csvde) and they don't have this problem.
Previous Comments:
------------------------------------------------------------------------
[2004-12-17 17:47:37] webmaster at adamscs dot com
Description:
------------
I am using Windows Server 2003 running IIS 6 with PHP 5.0.3.3 CGI. I
am coding a program that require the exec of the "dsmod" command. The
command will only work when the user that it is being exec as is logged
in.
Reproduce code:
---------------
<?php
exec ('dsmod user "'.$username.'" -pwd .$password, $dsmod);
echo ($dsmod[0]);
?>
Expected result:
----------------
exec() to work
Actual result:
--------------
exec() only works when the user that is logged into the webpage is also
logged into the computer
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31156&edit=1