A free open source IT asset/license management system
More helpful message for LDAP TLS issue
snipeb726d131a4c2
diff --git a/app/Models/Ldap.php b/app/Models/Ldap.phpindex b05475f2be..9e4b01a9a2 100644--- a/app/Models/Ldap.php+++ b/app/Models/Ldap.php@@ -247,8 +247,12 @@ class Ldap extends Model// Perform the searchdo {+// Paginate (non-critical, if not supported by server)- ldap_control_paged_result($ldapconn, $page_size, false, $cookie);+ if (!$ldap_paging = @ldap_control_paged_result($ldapconn, $page_size, false, $cookie)) {+ throw new Exception('Problem with your LDAP connection. Try checking the Use TLS setting in Admin > Settings. ');+ }+$search_results = ldap_search($ldapconn, $base_dn, '('.$filter.')');