Re: Script to add domain users to local groups on remote machines
| From: | Nathan Rixham | Date: | Fri, 04 Jun 2010 21:35:46 +0000 |
| Subject: | Re: Script to add domain users to local groups on remote machines | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-305839@lists.php.net to get a copy of this message | ||
Mayer, Jonathan wrote:
Hello, Has anyone got any ideas how I might add a user to a local group on a remote networked Windows machine via a PHP script? The idea is to make an automated tool where users can request access to a shared folder via our intranet, and after suitable approval the system add them to a group which has read privileges for the folder in question. If I run apache using an account with suitable privileges, I've been able to do it with COM, but for security reasons I'd like to be able to authenticate through the script instead, and leave apache running on the standard local system account. Perhaps COM is the wrong way to go about the problem - perhaps exec? Any ideas gladly appreciated!You can probable find a good in road via LDAP, and quite possible http://adldap.sourceforge.net/ not a definitive answer but hopefully help you in your quest. regards, nathan