mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #05373
[Bug 812057] Re: ldap auth plugin doesn't allow alternate ports
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.
--
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
Follow ups
References