I deploy my laravel code on 2 similar servers (red hat 8 with apache server). One is for tests the other one is for the production.
I have no trouble on the testing server, my laravel code with adldap2 works fine, but I have the error "Can't contact ldap server" on the production server:
local.DEBUG: AuthenticatesUsers::attemptLogin {"BindException":"[object] (Adldap\Auth\BindException(code: -1): Can't contact LDAP server at /data/Myproject/vendor/adldap2/adldap2/src/Auth/Guard.php:107)
1) On both servers I succeed to connect to my ldap through command line with this kind of command:
I deploy my laravel code on 2 similar servers (red hat 8 with apache server). One is for tests the other one is for the production. I have no trouble on the testing server, my laravel code with adldap2 works fine, but I have the error "Can't contact ldap server" on the production server:
1) On both servers I succeed to connect to my ldap through command line with this kind of command:
2) My .env file is the same on both servers. I'll try with SSL or TLS without success (the both protocols works fine on my testing server)
3) The ldap.conf file are the same on both servers.
4) I clear all artisan caches on both servers in order to be sure that last parameters from .env file are set:
5) I create a little php script to check ldap connection through php command and it's works (Successfully connected to LDAP !) on the both server too:
what other points between the 2 servers I could check to solve my problem?