LDAP TLS

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
pribis
Posts: 7
Joined: 24 Jul 2012, 13:46

LDAP TLS

Post by pribis »

I just upgraded to 1.3.4 (looks nice, btw!).

I use OpenLDAP for authentication, but TLS for encryption. Previously I had to modify the ldap_api.php file to include:

if(ON == config_get( 'ldap_starttls' ) ){
ldap_start_tls($t_ds);
}

And set the value in the config_inc.php file. But it seems with this new install I still have to add this code. Am I right or is there a config option for ldap I missing.
atrol
Site Admin
Posts: 8375
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: LDAP TLS

Post by atrol »

There is no call to ldap_starttls in whole MantisBT code
Quite strange to read
Warning This function is currently not documented; only its argument list is available.
at http://php.net/manual/en/function.ldap-start-tls.php

I have no environment to test this.
Maybe using port 389 in URI set in $g_ldap_server does also work, but is certainly not the same.
Something like $g_ldap_server = 'ldaps://ldap.example.com:389/'
http://www.mantisbt.org/docs/master-1.3 ... .auth.ldap
Please use Search before posting and read the Manual
Post Reply