Hi all,
In my organization we can not connect to Active Directory servers without TLS.
Here is the modification (diff) I've done to model.authent-ldap.php to make it work:
73a74
> $bLDAPStartTLS = MetaModel::GetModuleSetting('authent-ldap', 'starttls', 0);
81a83,93
> if ($bLDAPStartTLS)
> {
> $hStartTLS = ldap_start_tls($hDS);
> //$this->LogMessage("ldap_authentication: hStartTLS = '$hStartTLS'");
> if (!$hStartTLS)
> {
> $this->LogMessage("ldap_authentication: start tls failed.");
> return false;
> }
> }
>
And a new entry is made in config-itop-php then the authent-ldap array :
'starttls' => TRUE,
Thanks
I've dug into the PHP documentation for ldap_start_tls:
Any further comment on this?
Related
Tickets:
#1122Implemented as revision [r3764]. Not that for consistency reason, the parameter in named 'start_tls'.
Related
Commit: <Commit _id='5358055aa02bb175d1406271:3764' tree_id='83f3bb33d11bc1a6c2567000f1c9fc9c0ff509cb' committed=I{'date': datetime.datetime(2015, 9, 16, 15, 31, 22, 780000), 'email': '', 'name': 'dflaven'} authored=I{'date': datetime.datetime(2015, 9, 16, 15, 31, 22, 780000), 'email': '', 'name': 'dflaven'} message="#1106, #1122: Added a new option 'start_tls' (false by default) and improved debugging capabilities for troubleshooting when something goes wrong with LDAP. Thanks to Karl (karkoff1212) for the hint." parent_ids=I['5358055aa02bb175d1406271:3763'] child_ids=I['5358055aa02bb175d1406271:3765'] repo_ids=I[ObjectId('5358055aa02bb175d1406271')]>