php-windows Digest 25 Aug 2007 06:30:13 -0000 Issue 3316
Topics (messages 28391 through 28405):
Re: Windows Active Directory AND PHP ?
28391 by: John Mertic
28392 by: Gustav Wiberg
28393 by: Gustav Wiberg
Confused
28394 by: Gustav Wiberg
28395 by: Gustav Wiberg
28396 by: awkenney.gmail.com
28397 by: Gustav Wiberg
28398 by: Aaron Kenney
28400 by: Gustav Wiberg
28401 by: Murphy, Matt
28402 by: John Mertic
Re: How to set GET and POST variables through CLI?
28399 by: Steve Francisco
Re: PHP Windows Installer maintainer finally joins the list
28403 by: John Mertic
28404 by: Gustav Wiberg
how to add query string
28405 by: Asim
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
You can have IIS authenicate the users and then use LDAP to lookup
what group they are to assign user rights in PHP itself. I do
something similar to this, but with Apache and mod_auth_sspi instead.
John
On 8/24/07, Gustav Wiberg <[EMAIL PROTECTED]> wrote:
> Hi!
>
> Is it possible to use Windows-active-drectory-users rights to view diffrent
> folders on the same server that the IIS / Windows 2003 Server is on? What
> would I look for ? (google for) Where do I start? I'm not sure, so please
> give me a hint :-)
>
> Best regards
> /Gustav Wiberg
>
--
--
John Mertic "Explaining a joke
is like dissecting a frog: you
[EMAIL PROTECTED] understand it better,
but the frog dies in the
process."
-Mark Twain
--- End Message ---
--- Begin Message ---
Hi!
I have googled some and came up with LDAP and ADsDSOObject. (ADSI) Anything you
know of? Is IIS the easisest way to go?
Best regards
/Gustav Wiberg
-----Original Message-----
From: John Mertic [mailto:[EMAIL PROTECTED]
Sent: Friday, August 24, 2007 1:57 PM
To: Gustav Wiberg
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Windows Active Directory AND PHP ?
You can have IIS authenicate the users and then use LDAP to lookup
what group they are to assign user rights in PHP itself. I do
something similar to this, but with Apache and mod_auth_sspi instead.
John
On 8/24/07, Gustav Wiberg <[EMAIL PROTECTED]> wrote:
> Hi!
>
> Is it possible to use Windows-active-drectory-users rights to view diffrent
> folders on the same server that the IIS / Windows 2003 Server is on? What
> would I look for ? (google for) Where do I start? I'm not sure, so please
> give me a hint :-)
>
> Best regards
> /Gustav Wiberg
>
--
--
John Mertic "Explaining a joke
is like dissecting a frog: you
[EMAIL PROTECTED] understand it better,
but the frog dies in the
process."
-Mark Twain
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.484 / Virus Database: 269.12.4/969 - Release Date: 2007-08-23 16:04
--- End Message ---
--- Begin Message ---
Hi!
"You can have IIS authenicate the users a...."
Do you mean IIS - virtual web server-functions?
http://se2.php.net/manual/en/ref.iisfunc.php
/Gustav
-----Original Message-----
From: John Mertic [mailto:[EMAIL PROTECTED]
Sent: Friday, August 24, 2007 1:57 PM
To: Gustav Wiberg
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Windows Active Directory AND PHP ?
You can have IIS authenicate the users and then use LDAP to lookup
what group they are to assign user rights in PHP itself. I do
something similar to this, but with Apache and mod_auth_sspi instead.
John
On 8/24/07, Gustav Wiberg <[EMAIL PROTECTED]> wrote:
> Hi!
>
> Is it possible to use Windows-active-drectory-users rights to view diffrent
> folders on the same server that the IIS / Windows 2003 Server is on? What
> would I look for ? (google for) Where do I start? I'm not sure, so please
> give me a hint :-)
>
> Best regards
> /Gustav Wiberg
>
--
--
John Mertic "Explaining a joke
is like dissecting a frog: you
[EMAIL PROTECTED] understand it better,
but the frog dies in the
process."
-Mark Twain
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.484 / Virus Database: 269.12.4/969 - Release Date: 2007-08-23 16:04
--- End Message ---
--- Begin Message ---
Hi!
LDAP Server, LDAP Client....
LDAP is a protocol
LDAP Client is needed to be installed and compiled together with PHP so it
would work.
Do I Have to install an LDAP Server also? Where do I find that? *can't figure
it out really*
/Gustav
--- End Message ---
--- Begin Message ---
Hello!
IS Active Directory an LDAP server? (dumb question I know but I need to know
:-))
Best regards
/Gustav Wiberg
-----Original Message-----
From: Gustav Wiberg [mailto:[EMAIL PROTECTED]
Sent: Friday, August 24, 2007 3:53 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP-WIN] Confused
Hi!
LDAP Server, LDAP Client....
LDAP is a protocol
LDAP Client is needed to be installed and compiled together with PHP so it
would work.
Do I Have to install an LDAP Server also? Where do I find that? *can't figure
it out really*
/Gustav
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.484 / Virus Database: 269.12.4/969 - Release Date: 2007-08-23 16:04
--- End Message ---
--- Begin Message ---
I don't know exactly how to do it but LDAP connection is available as a setting
on active directory. I'm not sure how one turns it on or off, but it is
possible. It was discussed on this list some time ago. I can send you an
example of the script I used to connect if needed.
Sent via BlackBerry from T-Mobile
-----Original Message-----
From: Gustav Wiberg <[EMAIL PROTECTED]>
Date: Fri, 24 Aug 2007 15:56:00
To:"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: FW: [PHP-WIN] Confused
Hello!
IS Active Directory an LDAP server? (dumb question I know but I need to know
:-))
Best regards
/Gustav Wiberg
-----Original Message-----
From: Gustav Wiberg [mailto:[EMAIL PROTECTED]
Sent: Friday, August 24, 2007 3:53 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP-WIN] Confused
Hi!
LDAP Server, LDAP Client....
LDAP is a protocol
LDAP Client is needed to be installed and compiled together with PHP so it
would work.
Do I Have to install an LDAP Server also? Where do I find that? *can't figure
it out really*
/Gustav
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.484 / Virus Database: 269.12.4/969 - Release Date: 2007-08-23 16:04
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi there!
Yes, thank you - please send me examples. LDAP seems to be a part of Active
Directory. I guess in true Microsoft-spirit, it isn't possible to turn it on or
off.
It seems you have to compile LDAP together with PHP on Windows. How do I do
that? I tried to follow the instructions on php.net but I got lost...
Best regards
/Gustav Wiberg
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, August 24, 2007 4:04 PM
To: Gustav Wiberg
Subject: Re: [PHP-WIN] Confused
I don't know exactly how to do it but LDAP connection is available as a setting
on active directory. I'm not sure how one turns it on or off, but it is
possible. It was discussed on this list some time ago. I can send you an
example of the script I used to connect if needed.
Sent via BlackBerry from T-Mobile
-----Original Message-----
From: Gustav Wiberg <[EMAIL PROTECTED]>
Date: Fri, 24 Aug 2007 15:56:00
To:"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: FW: [PHP-WIN] Confused
Hello!
IS Active Directory an LDAP server? (dumb question I know but I need to know
:-))
Best regards
/Gustav Wiberg
-----Original Message-----
From: Gustav Wiberg [mailto:[EMAIL PROTECTED]
Sent: Friday, August 24, 2007 3:53 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP-WIN] Confused
Hi!
LDAP Server, LDAP Client....
LDAP is a protocol
LDAP Client is needed to be installed and compiled together with PHP so it
would work.
Do I Have to install an LDAP Server also? Where do I find that? *can't figure
it out really*
/Gustav
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.484 / Virus Database: 269.12.4/969 - Release Date: 2007-08-23 16:04
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.484 / Virus Database: 269.12.4/969 - Release Date: 2007-08-23 16:04
--- End Message ---
--- Begin Message ---
To get LDAP working in PHP for Windows, you first need to download the
ZIP package of PHP. Extract the ZIP package to some folder (do NOT
overwrite your PHP installation!). From the files you have extracted,
open the /ext folder and copy the php_ldap.dll file. Paste the file
into the /ext folder of your PHP installation. Make sure that the file
has appropriate security so that your web server can access it.
Then edit the php.ini file and remove the ; so that the line
;extension=php_ldap.dll
reads
extension=php_ldap.dll
if you do not have the original line, simply add the new line before
the Module Settings section. Restart IIS or Apache (whichever one you
are using).
Here is an example of connecting and binding:
$ldaprdn = '[EMAIL PROTECTED]';
$ldappass = 'PWD';
$ds = 'servername.domainname.net';
$dn = 'dc=domainname,dc=net';
$ldapport = 389;
$ldapconn = ldap_connect($ds, $ldapport)
or die("Could not connect to LDAP server.");
if ($ldapconn)
{
ldap_set_option($ldapconn, LDAP_OPT_PROTOCOL_VERSION,3);
ldap_set_option($ldapconn, LDAP_OPT_REFERRALS,0);
$ldapbind = ldap_bind($ldapconn, $ldaprdn, $ldappass);
}
I hope this helps.
-Aaron Kenney
On 8/24/07, Gustav Wiberg <[EMAIL PROTECTED]> wrote:
> Hi there!
>
> Yes, thank you - please send me examples. LDAP seems to be a part of Active
> Directory. I guess in true Microsoft-spirit, it isn't possible to turn it on
> or off.
>
> It seems you have to compile LDAP together with PHP on Windows. How do I do
> that? I tried to follow the instructions on php.net but I got lost...
>
> Best regards
> /Gustav Wiberg
>
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 24, 2007 4:04 PM
> To: Gustav Wiberg
> Subject: Re: [PHP-WIN] Confused
>
> I don't know exactly how to do it but LDAP connection is available as a
> setting on active directory. I'm not sure how one turns it on or off, but it
> is possible. It was discussed on this list some time ago. I can send you an
> example of the script I used to connect if needed.
> Sent via BlackBerry from T-Mobile
>
> -----Original Message-----
> From: Gustav Wiberg <[EMAIL PROTECTED]>
>
> Date: Fri, 24 Aug 2007 15:56:00
> To:"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: FW: [PHP-WIN] Confused
>
> Hello!
>
> IS Active Directory an LDAP server? (dumb question I know but I need to know
> :-))
>
> Best regards
> /Gustav Wiberg
>
>
> -----Original Message-----
> From: Gustav Wiberg [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 24, 2007 3:53 PM
> To: '[EMAIL PROTECTED]'
> Subject: [PHP-WIN] Confused
>
> Hi!
>
> LDAP Server, LDAP Client....
>
> LDAP is a protocol
>
>
> LDAP Client is needed to be installed and compiled together with PHP so it
> would work.
>
> Do I Have to install an LDAP Server also? Where do I find that? *can't figure
> it out really*
>
>
>
> /Gustav
>
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.484 / Virus Database: 269.12.4/969 - Release Date: 2007-08-23
> 16:04
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.484 / Virus Database: 269.12.4/969 - Release Date: 2007-08-23
> 16:04
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Hi again!
Sorry I'm so dumb, but what exactly should I download? I've tried to
download OpenLDAP (Is this wrong?)
ftp://ftp.openldap.org/pub/OpenLDAP/openldap-stable/openldap-stable-20070110.tgz
but I found no php_ldap.dll
Best regards
/Gustav Wiberg
----- Original Message -----
From: "Aaron Kenney" <[EMAIL PROTECTED]>
To: "Gustav Wiberg" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, August 24, 2007 4:44 PM
Subject: Re: [PHP-WIN] Confused
To get LDAP working in PHP for Windows, you first need to download the
ZIP package of PHP. Extract the ZIP package to some folder (do NOT
overwrite your PHP installation!). From the files you have extracted,
open the /ext folder and copy the php_ldap.dll file. Paste the file
into the /ext folder of your PHP installation. Make sure that the file
has appropriate security so that your web server can access it.
Then edit the php.ini file and remove the ; so that the line
;extension=php_ldap.dll
reads
extension=php_ldap.dll
if you do not have the original line, simply add the new line before
the Module Settings section. Restart IIS or Apache (whichever one you
are using).
Here is an example of connecting and binding:
$ldaprdn = '[EMAIL PROTECTED]';
$ldappass = 'PWD';
$ds = 'servername.domainname.net';
$dn = 'dc=domainname,dc=net';
$ldapport = 389;
$ldapconn = ldap_connect($ds, $ldapport)
or die("Could not connect to LDAP server.");
if ($ldapconn)
{
ldap_set_option($ldapconn, LDAP_OPT_PROTOCOL_VERSION,3);
ldap_set_option($ldapconn, LDAP_OPT_REFERRALS,0);
$ldapbind = ldap_bind($ldapconn, $ldaprdn, $ldappass);
}
I hope this helps.
-Aaron Kenney
On 8/24/07, Gustav Wiberg <[EMAIL PROTECTED]> wrote:
Hi there!
Yes, thank you - please send me examples. LDAP seems to be a part of
Active Directory. I guess in true Microsoft-spirit, it isn't possible to
turn it on or off.
It seems you have to compile LDAP together with PHP on Windows. How do I
do that? I tried to follow the instructions on php.net but I got lost...
Best regards
/Gustav Wiberg
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, August 24, 2007 4:04 PM
To: Gustav Wiberg
Subject: Re: [PHP-WIN] Confused
I don't know exactly how to do it but LDAP connection is available as a
setting on active directory. I'm not sure how one turns it on or off, but
it is possible. It was discussed on this list some time ago. I can send
you an example of the script I used to connect if needed.
Sent via BlackBerry from T-Mobile
-----Original Message-----
From: Gustav Wiberg <[EMAIL PROTECTED]>
Date: Fri, 24 Aug 2007 15:56:00
To:"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: FW: [PHP-WIN] Confused
Hello!
IS Active Directory an LDAP server? (dumb question I know but I need to
know :-))
Best regards
/Gustav Wiberg
-----Original Message-----
From: Gustav Wiberg [mailto:[EMAIL PROTECTED]
Sent: Friday, August 24, 2007 3:53 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP-WIN] Confused
Hi!
LDAP Server, LDAP Client....
LDAP is a protocol
LDAP Client is needed to be installed and compiled together with PHP so
it would work.
Do I Have to install an LDAP Server also? Where do I find that? *can't
figure it out really*
/Gustav
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.484 / Virus Database: 269.12.4/969 - Release Date:
2007-08-23 16:04
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.484 / Virus Database: 269.12.4/969 - Release Date:
2007-08-23 16:04
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
You want to download the zip file distribution of php from php.net.
That will have an ext directory in it just like your current install of
php.net.
Grab php_ldap.dll from that zip file.
-----Original Message-----
From: Gustav Wiberg [mailto:[EMAIL PROTECTED]
Sent: Friday, August 24, 2007 2:38 PM
To: Aaron Kenney
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Confused
Hi again!
Sorry I'm so dumb, but what exactly should I download? I've tried to
download OpenLDAP (Is this wrong?)
ftp://ftp.openldap.org/pub/OpenLDAP/openldap-stable/openldap-stable-2007
0110.tgz
but I found no php_ldap.dll
Best regards
/Gustav Wiberg
----- Original Message -----
From: "Aaron Kenney" <[EMAIL PROTECTED]>
To: "Gustav Wiberg" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, August 24, 2007 4:44 PM
Subject: Re: [PHP-WIN] Confused
> To get LDAP working in PHP for Windows, you first need to download the
> ZIP package of PHP. Extract the ZIP package to some folder (do NOT
> overwrite your PHP installation!). From the files you have extracted,
> open the /ext folder and copy the php_ldap.dll file. Paste the file
> into the /ext folder of your PHP installation. Make sure that the file
> has appropriate security so that your web server can access it.
> Then edit the php.ini file and remove the ; so that the line
>
> ;extension=php_ldap.dll
>
> reads
>
> extension=php_ldap.dll
>
> if you do not have the original line, simply add the new line before
> the Module Settings section. Restart IIS or Apache (whichever one you
> are using).
>
> Here is an example of connecting and binding:
>
> $ldaprdn = '[EMAIL PROTECTED]';
> $ldappass = 'PWD';
> $ds = 'servername.domainname.net';
> $dn = 'dc=domainname,dc=net';
> $ldapport = 389;
> $ldapconn = ldap_connect($ds, $ldapport)
> or die("Could not connect to LDAP server.");
>
> if ($ldapconn)
> {
> ldap_set_option($ldapconn, LDAP_OPT_PROTOCOL_VERSION,3);
> ldap_set_option($ldapconn, LDAP_OPT_REFERRALS,0);
> $ldapbind = ldap_bind($ldapconn, $ldaprdn, $ldappass);
> }
>
> I hope this helps.
> -Aaron Kenney
>
> On 8/24/07, Gustav Wiberg <[EMAIL PROTECTED]> wrote:
>> Hi there!
>>
>> Yes, thank you - please send me examples. LDAP seems to be a part of
>> Active Directory. I guess in true Microsoft-spirit, it isn't possible
to
>> turn it on or off.
>>
>> It seems you have to compile LDAP together with PHP on Windows. How
do I
>> do that? I tried to follow the instructions on php.net but I got
lost...
>>
>> Best regards
>> /Gustav Wiberg
>>
>>
>>
>> -----Original Message-----
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> Sent: Friday, August 24, 2007 4:04 PM
>> To: Gustav Wiberg
>> Subject: Re: [PHP-WIN] Confused
>>
>> I don't know exactly how to do it but LDAP connection is available as
a
>> setting on active directory. I'm not sure how one turns it on or off,
but
>> it is possible. It was discussed on this list some time ago. I can
send
>> you an example of the script I used to connect if needed.
>> Sent via BlackBerry from T-Mobile
>>
>> -----Original Message-----
>> From: Gustav Wiberg <[EMAIL PROTECTED]>
>>
>> Date: Fri, 24 Aug 2007 15:56:00
>> To:"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>> Subject: FW: [PHP-WIN] Confused
>>
>> Hello!
>>
>> IS Active Directory an LDAP server? (dumb question I know but I need
to
>> know :-))
>>
>> Best regards
>> /Gustav Wiberg
>>
>>
>> -----Original Message-----
>> From: Gustav Wiberg [mailto:[EMAIL PROTECTED]
>> Sent: Friday, August 24, 2007 3:53 PM
>> To: '[EMAIL PROTECTED]'
>> Subject: [PHP-WIN] Confused
>>
>> Hi!
>>
>> LDAP Server, LDAP Client....
>>
>> LDAP is a protocol
>>
>>
>> LDAP Client is needed to be installed and compiled together with PHP
so
>> it would work.
>>
>> Do I Have to install an LDAP Server also? Where do I find that?
*can't
>> figure it out really*
>>
>>
>>
>> /Gustav
>>
>>
>> No virus found in this outgoing message.
>> Checked by AVG Free Edition.
>> Version: 7.5.484 / Virus Database: 269.12.4/969 - Release Date:
>> 2007-08-23 16:04
>>
>>
>> --
>> PHP Windows Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>> No virus found in this outgoing message.
>> Checked by AVG Free Edition.
>> Version: 7.5.484 / Virus Database: 269.12.4/969 - Release Date:
>> 2007-08-23 16:04
>>
>>
>> --
>> PHP Windows Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Just grab the windows installer and choose LDAP under the Extensions tree.
John
On 8/24/07, Gustav Wiberg <[EMAIL PROTECTED]> wrote:
> Hi again!
>
> Sorry I'm so dumb, but what exactly should I download? I've tried to
> download OpenLDAP (Is this wrong?)
> ftp://ftp.openldap.org/pub/OpenLDAP/openldap-stable/openldap-stable-20070110.tgz
> but I found no php_ldap.dll
>
> Best regards
> /Gustav Wiberg
>
>
> ----- Original Message -----
> From: "Aaron Kenney" <[EMAIL PROTECTED]>
> To: "Gustav Wiberg" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Friday, August 24, 2007 4:44 PM
> Subject: Re: [PHP-WIN] Confused
>
>
> > To get LDAP working in PHP for Windows, you first need to download the
> > ZIP package of PHP. Extract the ZIP package to some folder (do NOT
> > overwrite your PHP installation!). From the files you have extracted,
> > open the /ext folder and copy the php_ldap.dll file. Paste the file
> > into the /ext folder of your PHP installation. Make sure that the file
> > has appropriate security so that your web server can access it.
> > Then edit the php.ini file and remove the ; so that the line
> >
> > ;extension=php_ldap.dll
> >
> > reads
> >
> > extension=php_ldap.dll
> >
> > if you do not have the original line, simply add the new line before
> > the Module Settings section. Restart IIS or Apache (whichever one you
> > are using).
> >
> > Here is an example of connecting and binding:
> >
> > $ldaprdn = '[EMAIL PROTECTED]';
> > $ldappass = 'PWD';
> > $ds = 'servername.domainname.net';
> > $dn = 'dc=domainname,dc=net';
> > $ldapport = 389;
> > $ldapconn = ldap_connect($ds, $ldapport)
> > or die("Could not connect to LDAP server.");
> >
> > if ($ldapconn)
> > {
> > ldap_set_option($ldapconn, LDAP_OPT_PROTOCOL_VERSION,3);
> > ldap_set_option($ldapconn, LDAP_OPT_REFERRALS,0);
> > $ldapbind = ldap_bind($ldapconn, $ldaprdn, $ldappass);
> > }
> >
> > I hope this helps.
> > -Aaron Kenney
> >
> > On 8/24/07, Gustav Wiberg <[EMAIL PROTECTED]> wrote:
> >> Hi there!
> >>
> >> Yes, thank you - please send me examples. LDAP seems to be a part of
> >> Active Directory. I guess in true Microsoft-spirit, it isn't possible to
> >> turn it on or off.
> >>
> >> It seems you have to compile LDAP together with PHP on Windows. How do I
> >> do that? I tried to follow the instructions on php.net but I got lost...
> >>
> >> Best regards
> >> /Gustav Wiberg
> >>
> >>
> >>
> >> -----Original Message-----
> >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> >> Sent: Friday, August 24, 2007 4:04 PM
> >> To: Gustav Wiberg
> >> Subject: Re: [PHP-WIN] Confused
> >>
> >> I don't know exactly how to do it but LDAP connection is available as a
> >> setting on active directory. I'm not sure how one turns it on or off, but
> >> it is possible. It was discussed on this list some time ago. I can send
> >> you an example of the script I used to connect if needed.
> >> Sent via BlackBerry from T-Mobile
> >>
> >> -----Original Message-----
> >> From: Gustav Wiberg <[EMAIL PROTECTED]>
> >>
> >> Date: Fri, 24 Aug 2007 15:56:00
> >> To:"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> >> Subject: FW: [PHP-WIN] Confused
> >>
> >> Hello!
> >>
> >> IS Active Directory an LDAP server? (dumb question I know but I need to
> >> know :-))
> >>
> >> Best regards
> >> /Gustav Wiberg
> >>
> >>
> >> -----Original Message-----
> >> From: Gustav Wiberg [mailto:[EMAIL PROTECTED]
> >> Sent: Friday, August 24, 2007 3:53 PM
> >> To: '[EMAIL PROTECTED]'
> >> Subject: [PHP-WIN] Confused
> >>
> >> Hi!
> >>
> >> LDAP Server, LDAP Client....
> >>
> >> LDAP is a protocol
> >>
> >>
> >> LDAP Client is needed to be installed and compiled together with PHP so
> >> it would work.
> >>
> >> Do I Have to install an LDAP Server also? Where do I find that? *can't
> >> figure it out really*
> >>
> >>
> >>
> >> /Gustav
> >>
> >>
> >> No virus found in this outgoing message.
> >> Checked by AVG Free Edition.
> >> Version: 7.5.484 / Virus Database: 269.12.4/969 - Release Date:
> >> 2007-08-23 16:04
> >>
> >>
> >> --
> >> PHP Windows Mailing List (http://www.php.net/)
> >> To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >>
> >> No virus found in this outgoing message.
> >> Checked by AVG Free Edition.
> >> Version: 7.5.484 / Virus Database: 269.12.4/969 - Release Date:
> >> 2007-08-23 16:04
> >>
> >>
> >> --
> >> PHP Windows Mailing List (http://www.php.net/)
> >> To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >>
> >
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
--
John Mertic "Explaining a joke
is like dissecting a frog: you
[EMAIL PROTECTED] understand it better,
but the frog dies in the
process."
-Mark Twain
--- End Message ---
--- Begin Message ---
John Mertic wrote:
If your homegrown server supports calling a CGI program to handle
scripts, then you should be able to integrate PHP into it trivially.
You may want to consult the internals list for more details of how
this all works.
Thanks for your help. I did ask on the internals list and found a
solution. I wrote a little php file to convert argv contents into a
$_GET array, put it in my auto_prepend_file setting in php.ini, and now
I just had to convert the html request into arguments to php.exe. It
works wonderfully.
-- Steve
--- End Message ---
--- Begin Message ---
On 8/17/07, Niel Archer <[EMAIL PROTECTED]> wrote:
> My own recommendation is based on the manual, and no reflection of the
> installer
>
> "There are several all-in-one installers over the Internet, but none of
> those are endorsed by PHP.net, as we believe that the manual
> installation is the best choice to have your system secure and optimised."
That text has now been changed to:
"There are several all-in-one installers over the Internet, but none
of those are endorsed by PHP.net, as we believe that using one of the
official windows packages from » http://www.php.net/downloads.php is
the best choice to have your system secure and optimised."
Hopefully that helps adoption out.
--
--
John Mertic "Explaining a joke
is like dissecting a frog: you
[EMAIL PROTECTED] understand it better,
but the frog dies in the
process."
-Mark Twain
--- End Message ---
--- Begin Message ---
Hi!
I've created a testaccount. and tested this simple code...
I get error code:
Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Invalid
credentials in C:\www\utveckling\ldap.php on line 14
LDAP bind failed...
The server uses Active Directory. I'm not sure if I'm typing the username
and password correctly. Is it something you have to in Active Directory to
activate LDAP-service?
<?php
// using ldap bind
$ldaprdn = '[EMAIL PROTECTED]'; // ldap rdn or dn
$ldappass = 'abcd'; // associated password
// connect to ldap server
$ldapconn = ldap_connect("127.0.0.1")
or die("Could not connect to LDAP server.");
if ($ldapconn) {
// binding to ldap server
$ldapbind = ldap_bind($ldapconn, $ldaprdn, $ldappass);
// verify binding
if ($ldapbind) {
echo "LDAP bind successful...";
} else {
echo "LDAP bind failed...";
}
}
?>
I also tested your code with my info, with a testaccount:
<?php
$ldaprdn = '[EMAIL PROTECTED]';
$ldappass = 'abcd';
$ds = 'hmnr.hmn.se';
$dn = 'dc=hmn,dc=se';
$ldapport = 389;
$ldapconn = ldap_connect($ds, $ldapport)
or die("Could not connect to LDAP server.");
if ($ldapconn)
{
ldap_set_option($ldapconn, LDAP_OPT_PROTOCOL_VERSION,3);
ldap_set_option($ldapconn, LDAP_OPT_REFERRALS,0);
$ldapbind = ldap_bind($ldapconn, $ldaprdn, $ldappass);
}
?>
Then I get this error:
Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Can't
contact LDAP server in C:\www\utveckling\ldap2.php on line 14
Is there something wrong in my dn ? hmnr is the webbserver
Best regards
/Gustav Wiberg
----- Original Message -----
From: "John Mertic" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, August 24, 2007 9:51 PM
Subject: Re: [PHP-WIN] PHP Windows Installer maintainer finally joins the
list
On 8/17/07, Niel Archer <[EMAIL PROTECTED]> wrote:
My own recommendation is based on the manual, and no reflection of the
installer
"There are several all-in-one installers over the Internet, but none of
those are endorsed by PHP.net, as we believe that the manual
installation is the best choice to have your system secure and
optimised."
That text has now been changed to:
"There are several all-in-one installers over the Internet, but none
of those are endorsed by PHP.net, as we believe that using one of the
official windows packages from » http://www.php.net/downloads.php is
the best choice to have your system secure and optimised."
Hopefully that helps adoption out.
--
--
John Mertic "Explaining a joke
is like dissecting a frog: you
[EMAIL PROTECTED] understand it better,
but the frog dies in the
process."
-Mark Twain
--- End Message ---
--- Begin Message ---
Hi
can anyone tell me how to add query string in address bar for next php page
how to explode or seperate it
i need a clear working example?
byue
Asim Jamil - 0092 345 4025907, Pakistan
---------------------------------
Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel
and lay it on us.
--- End Message ---