471,319 Members | 1,957 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,319 software developers and data experts.

ADSI with PHP

Hi everyone,

I'm pretty new to using the COM functionality in PHP.
I want to administer my PC using PHP together with ADSI.
My first problem is to enumerate the groups in my domain.
I tried using the following but it didn't work:

$objDomain = new COM("WinNT://mydomain") or die("Cannot find domain");
$objDomain->filter = array("group");
foreach($objDomain as $group){
echo $group->name."<br>\n";
}
echo "Done";

all i get is the "Done" from the last line.
How can I get a list of the groups ?

Thanks in advance
Jul 17 '05 #1
2 6863
In case you have Active Directory in your domain, consider using LDAP.
You'll find the documentation and related links on www.php.net
Bjarte :-)
Kevin Otte<SP***********@gmx.de> 18.09.2003 19:45:29 >>>

Hi everyone,

I'm pretty new to using the COM functionality in PHP.
I want to administer my PC using PHP together with ADSI.
My first problem is to enumerate the groups in my domain.
I tried using the following but it didn't work:

$objDomain = new COM("WinNT://mydomain") or die("Cannot find domain");
$objDomain->filter = array("group");
foreach($objDomain as $group){
echo $group->name."<br>\n";
}
echo "Done";

all i get is the "Done" from the last line.
How can I get a list of the groups ?

Thanks in advance


Jul 17 '05 #2
bj*****@hotmail.com <bjartea@_NO_SPAN_online_DOT_no> wrote in message news:<D%*******************@news4.e.nsc.no>...
In case you have Active Directory in your domain, consider using LDAP.
You'll find the documentation and related links on www.php.net
Bjarte :-)
Kevin Otte<SP***********@gmx.de> 18.09.2003 19:45:29 >>>

Hi everyone,

I'm pretty new to using the COM functionality in PHP.
I want to administer my PC using PHP together with ADSI.
My first problem is to enumerate the groups in my domain.
I tried using the following but it didn't work:

$objDomain = new COM("WinNT://mydomain") or die("Cannot find domain");
$objDomain->filter = array("group");
foreach($objDomain as $group){
echo $group->name."<br>\n";
}
echo "Done";

all i get is the "Done" from the last line.
How can I get a list of the groups ?

Thanks in advance


Thanks for your answer !
Using ADSI should not be to difficult.
The only problem is that I don't know which expressions to use within
the foreach-statement.

Are there any concrete examples available on receiving groups or users
under Windows 2000 using LDAP with PHP ?
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Miguel Orrego | last post: by
1 post views Thread by Ryan Ritten | last post: by
2 posts views Thread by Enigma Webmaster | last post: by
14 posts views Thread by Arran Pearce | last post: by
3 posts views Thread by Roy Osherove | last post: by
8 posts views Thread by msnews.microsoft.com | last post: by
1 post views Thread by LittlePython | last post: by
8 posts views Thread by John | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.