#31156 [Com]: Exec function only works when logged in

From: Date: Fri, 17 Dec 2004 22:35:41 +0000
Subject: #31156 [Com]: Exec function only works when logged in
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-70546@lists.php.net to get a copy of this message
 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


Thread (5 messages)

« previous php.bugs (#70546) next »