From:             anfsm at uaa dot alaska dot edu
Operating system: windows (2003 SP1)
PHP version:      5.1.6
PHP Bug Type:     Feature/Change Request
Bug description:  interacting with user account

Description:
------------
i would like the feature to modify user non-domain, windows accounts
directly without having to resort to an exec(); or shell_exec(); command
(probably because i cannot get them to work anyway). a standard old
password, new password, confirm password setup would be ideal.

i have tried exec() and shell_exec with sysinternals psexec.exe and
windows' built-in runas.exe with net user commands. i have tried setting
safe_mode off but i cannot get it to work.

see below for sample



Reproduce code:
---------------
$pp = popen("runas /noprofile /user:machine_name\\administrator \"net user
$username $newpassword\"", 'w');
fwrite($pp, $adminpassword);

// and also tried
shell_exec("echo $adminpass | runas /noprofile
/user:machine_name\\administrator \"net user $username $newpassword\"");

// as well as for the sysinternals psexec.exe
shell_exec("psexec -u administrator -p $adminpass net user $username
$newpassword");

Expected result:
----------------
be able to change local system passwords by web interface without relying
on external utilities.

Actual result:
--------------
not possible

-- 
Edit bug report at http://bugs.php.net/?id=38931&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=38931&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=38931&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=38931&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=38931&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=38931&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=38931&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=38931&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=38931&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=38931&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=38931&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=38931&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=38931&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=38931&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=38931&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=38931&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=38931&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=38931&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=38931&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=38931&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=38931&r=mysqlcfg

Reply via email to