Hi has anyone seen an error like this before I believe it has to do with logging into a page using domain credentials but our logins have been converted to exchange online (PHP Fatal error: Uncaught TypeError: ldap_get_dn(): Argument #2 ($entry) must be of type LDAP\ResultEntry, bool given in /var/www/html/folder/external/ldap.php:26\nStack trace:\n#0 /var/www/html/folder/external/ldap.php(26): ldap_get_dn()\n#1 /var/www/html/folder/login.php(141): _ldap_login()\n#2 {main}\n thrown in /var/www/html/folder/external/ldap.php on line 26,)
nander 15 Newbie Poster
Dani 4,329 The Queen of DaniWeb Administrator Featured Poster Premium Member
nander commented: Thanks for responding! So here is lines 25 and 26 the $first entry is failing $first = ldap_first_entry($ldap, $res); $data = ldap_get_dn($ldap, $fi +0
Dani 4,329 The Queen of DaniWeb Administrator Featured Poster Premium Member
nander 15 Newbie Poster
Dani 4,329 The Queen of DaniWeb Administrator Featured Poster Premium Member
nander commented: Here is the value $first = ldap_first_entry($ldap, $res); +0
nander 15 Newbie Poster
Dani 4,329 The Queen of DaniWeb Administrator Featured Poster Premium Member
nander 15 Newbie Poster
Dani 4,329 The Queen of DaniWeb Administrator Featured Poster Premium Member
nander 15 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.