Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Unable to connect with SSL #810

Open
Beko67 opened this issue Sep 8, 2022 · 1 comment
Open

Unable to connect with SSL #810

Beko67 opened this issue Sep 8, 2022 · 1 comment

Comments

@Beko67
Copy link

Beko67 commented Sep 8, 2022

  • Adldap2 Version: 10.4.2
  • LDAP Type: Active Directory (2016)
  • PHP Version: 7.0

Description:

Hello,

I'm unable to connect with SSL activated.
Without SSL, it works fine.
Here is the catched error.

Catched error

object(Adldap\Auth\BindException)#18 (8) { ["detailedError":protected]=> object(Adldap\Connections\DetailedError)#19 (3) { ["errorCode":protected]=> int(-1) ["errorMessage":protected]=> string(25) "Can't contact LDAP server" ["diagnosticMessage":protected]=> string(20) "(unknown error code)" } ["message":protected]=> string(25) "Can't contact LDAP server" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(-1) ["file":protected]=> string(55) "/var/www/html/vendor/adldap2/adldap2/src/Auth/Guard.php" ["line":protected]=> int(107) ["trace":"Exception":private]=> array(7) { [0]=> array(6) { ["file"]=> string(55) "/var/www/html/vendor/adldap2/adldap2/src/Auth/Guard.php" ["line"]=> int(119) ["function"]=> string(4) "bind" ["class"]=> string(17) "Adldap\Auth\Guard" ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=> string(7) "######" [1]=> string(13) "######" } } [1]=> array(6) { ["file"]=> string(65) "/var/www/html/vendor/adldap2/adldap2/src/Connections/Provider.php" ["line"]=> int(256) ["function"]=> string(19) "bindAsAdministrator" ["class"]=> string(17) "Adldap\Auth\Guard" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [2]=> array(6) { ["file"]=> string(51) "/var/www/html/vendor/adldap2/adldap2/src/Adldap.php" ["line"]=> int(147) ["function"]=> string(7) "connect" ["class"]=> string(27) "Adldap\Connections\Provider" ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=> NULL [1]=> NULL } } [3]=> array(6) { ["file"]=> string(55) "/var/www/html/model/application/dcai/ldap/connexion.php" ["line"]=> int(21) ["function"]=> string(7) "connect" ["class"]=> string(13) "Adldap\Adldap" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(16) "######" } } [4]=> array(4) { ["file"]=> string(44) "/var/www/html/view/application/dcai/test.php" ["line"]=> int(4) ["args"]=> array(1) { [0]=> string(55) "/var/www/html/model/application/dcai/ldap/connexion.php" } ["function"]=> string(7) "require" } [5]=> array(4) { ["file"]=> string(32) "/var/www/html/view/structure.php" ["line"]=> int(40) ["args"]=> array(1) { [0]=> string(44) "/var/www/html/view/application/dcai/test.php" } ["function"]=> string(7) "require" } [6]=> array(4) { ["file"]=> string(23) "/var/www/html/index.php" ["line"]=> int(34) ["args"]=> array(1) { [0]=> string(32) "/var/www/html/view/structure.php" } ["function"]=> string(7) "require" } } ["previous":"Exception":private]=> object(Exception)#17 (7) { ["message":protected]=> string(25) "Can't contact LDAP server" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(-1) ["file":protected]=> string(55) "/var/www/html/vendor/adldap2/adldap2/src/Auth/Guard.php" ["line":protected]=> int(102) ["trace":"Exception":private]=> array(7) { [0]=> array(6) { ["file"]=> string(55) "/var/www/html/vendor/adldap2/adldap2/src/Auth/Guard.php" ["line"]=> int(119) ["function"]=> string(4) "bind" ["class"]=> string(17) "Adldap\Auth\Guard" ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=> string(7) "######" [1]=> string(13) "######" } } [1]=> array(6) { ["file"]=> string(65) "/var/www/html/vendor/adldap2/adldap2/src/Connections/Provider.php" ["line"]=> int(256) ["function"]=> string(19) "bindAsAdministrator" ["class"]=> string(17) "Adldap\Auth\Guard" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [2]=> array(6) { ["file"]=> string(51) "/var/www/html/vendor/adldap2/adldap2/src/Adldap.php" ["line"]=> int(147) ["function"]=> string(7) "connect" ["class"]=> string(27) "Adldap\Connections\Provider" ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=> NULL [1]=> NULL } } [3]=> array(6) { ["file"]=> string(55) "/var/www/html/model/application/dcai/ldap/connexion.php" ["line"]=> int(21) ["function"]=> string(7) "connect" ["class"]=> string(13) "Adldap\Adldap" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(16) "######" } } [4]=> array(4) { ["file"]=> string(44) "/var/www/html/view/application/dcai/test.php" ["line"]=> int(4) ["args"]=> array(1) { [0]=> string(55) "/var/www/html/model/application/dcai/ldap/connexion.php" } ["function"]=> string(7) "require" } [5]=> array(4) { ["file"]=> string(32) "/var/www/html/view/structure.php" ["line"]=> int(40) ["args"]=> array(1) { [0]=> string(44) "/var/www/html/view/application/dcai/test.php" } ["function"]=> string(7) "require" } [6]=> array(4) { ["file"]=> string(23) "/var/www/html/index.php" ["line"]=> int(34) ["args"]=> array(1) { [0]=> string(32) "/var/www/html/view/structure.php" } ["function"]=> string(7) "require" } } ["previous":"Exception":private]=> NULL } }

I didn't get the error, do you know what's the problem ?
Thx.

@DarkestSoul1992
Copy link

DarkestSoul1992 commented Mar 12, 2023

["message":protected]=> string(25) "Can't contact LDAP server"
Don't forget that LDAP over SSL needs installed certificates and a connection over ports 636 or 3269

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants