Re: [PHP-WIN] Confused

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



AHA.. Thanx :-)

/Gustav

----- Original Message ----- From: "John Mertic" <jmertic@xxxxxxxxx>
To: "Gustav Wiberg" <gustav@xxxxxx>
Cc: "Aaron Kenney" <awkenney@xxxxxxxxx>; <php-windows@xxxxxxxxxxxxx>
Sent: Friday, August 24, 2007 9:47 PM
Subject: Re: [PHP-WIN] Confused


Just grab the windows installer and choose LDAP under the Extensions tree.

John

On 8/24/07, Gustav Wiberg <gustav@xxxxxx> 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" <awkenney@xxxxxxxxx>
To: "Gustav Wiberg" <gustav@xxxxxx>
Cc: <php-windows@xxxxxxxxxxxxx>
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 = 'username@xxxxxxxxxxxxxx';
> $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 <gustav@xxxxxx> 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: awkenney@xxxxxxxxx [mailto:awkenney@xxxxxxxxx]
>> 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 <gustav@xxxxxx>
>>
>> Date: Fri, 24 Aug 2007 15:56:00
>> To:"'php-windows@xxxxxxxxxxxxx'" <php-windows@xxxxxxxxxxxxx>
>> 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:gustav@xxxxxx]
>> Sent: Friday, August 24, 2007 3:53 PM
>> To: 'php-windows@xxxxxxxxxxxxx'
>> 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
jmertic@xxxxxxxxx                              understand it better,
but the frog dies in the
                                                         process."

                     -Mark Twain


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux