Ask a Question related to PHP Development, Design and Development.
-
Kevin Otte #1
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
Kevin Otte Guest
-
ADSI & ASP Updates
Hi All, We have written a set of functions to retrieve the current userlist from Active Directory and it works just fine. (We did have a few... -
AD password / ADSI
Hi I run my perl scripts from unix (hp-ux) and I need to change users passwords to the Active Directory. Is this possible from unix. I am found... -
ADSI
Hi, I have found some code that authenticates users agains a domain using ADSI. I then redirect to another page and pass the username they have... -
ASP, ADSI and IIS 6.0 Problem
Hi - I wrote an ASP script that adds users to Active Directory. I have been running this script sucessfully on Windows 2000 with IIS 5.0 for a... -
ADSI question
Hello, I use the following ASP code to access Active Directory's property: Dim objUser Set objUser = GetObject("WinNT://myDomain/UserId") I... -
bjartea@hotmail.com #2
Re: ADSI with PHP
In case you have Active Directory in your domain, consider using LDAP.
You'll find the documentation and related links on [url]www.php.net[/url]
Bjarte :-)
Hi everyone,>>> Kevin Otte<SPAMjarod1701@gmx.de> 18.09.2003 19:45:29 >>>
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
bjartea@hotmail.com Guest
-
Kevin Otte #3
Re: ADSI with PHP
[email]bjartea@hotmail.com[/email] <bjartea@_NO_SPAN_online_DOT_no> wrote in message news:<D%qab.31144$Hb.475837@news4.e.nsc.no>...
Thanks for your answer !> In case you have Active Directory in your domain, consider using LDAP.
> You'll find the documentation and related links on [url]www.php.net[/url]
>
>
> Bjarte :-)
>
>
>> Hi everyone,> >>> Kevin Otte<SPAMjarod1701@gmx.de> 18.09.2003 19:45:29 >>>
>
> 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
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 ?
Kevin Otte Guest



Reply With Quote

