Booked Scheduler Community Support
February 18, 2020, 11:19:08 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: LDAPS error - booked-2.7.6 - PHP 7.3.8 - Centos 7  (Read 428 times)
agostinho
Newbie
*

Karma: 0
Posts: 7


« on: August 08, 2019, 02:00:23 PM »

my configuration file - LDAPS

Ldap.config.php
<?php
$conf['settings']['host'] = 'ldaps.minho.pt';
$conf['settings']['port'] = '636';
$conf['settings']['version'] = '3';
$conf['settings']['starttls'] = 'true';
$conf['settings']['binddn'] = 'CN=zx1,OU=temporario,DC=uminho,DC=pt';
$conf['settings']['bindpw'] = 'a';
$conf['settings']['basedn'] = 'OU=utentes,DC=uminho,DC=pt';
$conf['settings']['filter'] = 'AZSXazsx...';
$conf['settings']['scope'] = '';
$conf['settings']['required.group'] = '';
$conf['settings']['database.auth.when.ldap.user.not.found'] = 'true';
$conf['settings']['ldap.debug.enabled'] = 'true';
$conf['settings']['attribute.mapping'] = 'sn=sn,givenname=givenname,mail=mail,telephonenumber=telephonenumber,physicaldeliveryofficename=physicaldeliveryofficename,title=title';
$conf['settings']['user.id.attribute'] = 'uid';
$conf['settings']['sync.groups'] = 'false';
$conf['settings']['prevent.clean.username'] = 'false';
?>

error:
Unknown Error
Return to the last page that you were on


booked php log (mode DEBUG)

2019-08-08T16:38:00+00:00 [19867] DEBUG default - [User=  ()] Loading plugin. Type=Authentication, Plugin=Ldap [File=/var/www/booked/lib/Common/PluginManager.php,Line=209]
2019-08-08T16:38:05+00:00 [19867] DEBUG default - [User=  ()] Loading plugin. Type=Authentication, Plugin=Ldap [File=/var/www/booked/lib/Common/PluginManager.php,Line=209]
2019-08-08T16:38:05+00:00 [19867] DEBUG default - [User=  ()] Trying to connect to LDAP [File=/var/www/booked/plugins/Authentication/Ldap/Ldap2Wrapper.php,Line=51]
2019-08-08T16:38:05+00:00 [19867] ERROR default - [User=  ()] Could not connect to LDAP server. Check your settings in Ldap.config.php : TLS could not be started: Can't contact LDAP server: Unknown Net_LDAP2 Error (-1) [File=/var/www/booked/plugins/Authentication/Ldap/Ldap2Wrapper.php,Line=58]
2019-08-08T16:38:05+00:00 [19867] ERROR default - [User=  ()] Uncaught exception: Exception: Could not connect to LDAP server. Check your settings in Ldap.config.php : TLS could not be started: Can't contact LDAP server: Unknown Net_LDAP2 Error (-1) in /var/www/booked/plugins/Authentication/Ldap/Ldap2Wrapper.php:59
Stack trace:
#0 /var/www/booked/plugins/Authentication/Ldap/Ldap.php(130): Ldap2Wrapper->Connect()
#1 /var/www/booked/lib/Application/Authentication/WebAuthentication.php(106): Ldap->Validate('user', 'pwd')
#2 /var/www/booked/Presenters/LoginPresenter.php(165): WebAuthentication->Validate('user', 'pwd')
#3 /var/www/booked/Pages/LoginPage.php(223): LoginPresenter->Login()
#4 /var/www/booked/Web/index.php(35): LoginPage->Login()
#5 {main} [File=/var/www/booked/lib/Common/Logging/ExceptionHandler.php,Line=33]


what is missing??
what im i doing wong?
i try from my windows PC, and i can connect do LDAP server via TLS and i can search on the AD.

Logged
Cate Black
Newbie
*

Karma: 0
Posts: 17


« Reply #1 on: August 20, 2019, 09:14:16 AM »

Hi,

I have the same problem.
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 6409


WWW
« Reply #2 on: September 06, 2019, 12:02:23 PM »

Have you tried the ActiveDirectory plugin instead?
Logged
agostinho
Newbie
*

Karma: 0
Posts: 7


« Reply #3 on: February 14, 2020, 10:00:58 AM »

i can connect do LDAP server without TLS and search on the AD.

i cannot connect via LDAPS (LDAP with TLS) to LDAP server.

it's instaled on virtual machine, with
centos7
PHP 7.3.8
openldap
booked-2.7.6

what have i to config to connect to LDAP server with LDAPS ?
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!