mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #05378
Re: [Bug 812057] Re: ldap auth plugin doesn't allow alternate ports
Hi Piers,
This is for a client that is using centos.
openldap 2.3.43-12.el5_6.7
php-ldap 5.3.3-1.el5_6.1
I havent' installed the cert chain for them yet, instead have temporary
disabled the check with TLS_REQCERT never.
It works with the patch I provide, and not without.
It could just be problems with that version of php, or ldap. I think the
patch I supplied doesn't break current functionality on working clients,
and fixes it on broken clients, so it is probably for the best.
Cheers,
Hugh
On 18/07/11 18:17, PiersHarding wrote:
> Hi Hugh - I've tried doing a little separate testing of ldap_connect() and I find that it does parse ldap URIs - at least under my local conditions eg:
> <?php
> ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7);
> $server = 'ldap://localhost:999';
> $ldap_login_user = 'cn=admin,dc=example,dc=com';
> $extpassword = 'letmein';
> $ldapconnection = ldap_connect($server);
> $ldap_login = @ldap_bind($ldapconnection, $ldap_login_user, $extpassword);
>
> The debugging shows the attempted socket connection being made.
>
>
> Is it a PHP version problem, or perhaps it's cert/tls issue?
>
> Cheers,
> Piers Harding.
>
--
Hugh Davenport
803 2258
Developer
Catalyst Ltd.
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/812057
Title:
ldap auth plugin doesn't allow alternate ports
Status in Mahara ePortfolio:
In Progress
Bug description:
This is probably two problems, one with php, and one with mahara.
If you specify a host url as ldaps://ldapserver you would expect it to connect to port 636, but instead it tries the default for ldap 389.
I thought you would be able to specify a hosturl as ldaps://ldapserver:636 to specify a port, but mahara doesn't parse this and call the connect function properly
I will submit a fix to the second issue first, but do people think it
is worth filing a bug upstream to php about not choosing 636 as
default for ldaps
Cheers,
Hugh
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/812057/+subscriptions
References