private function handleLDAPError(\Adldap\Adldap $adldap)
    {
        if (false != $adldap) {
            // May be helpful for finding out what and why went wrong.
            $adLDAPError = $adldap->getConnection()->getLastError();
            if ("Success" != $adLDAPError) {
                Log::error('Problem with LDAP:' . $adLDAPError);
            }
        }
    }
private function handleLDAPError(\Adldap\Adldap $adldap)
    {
        if (false != $adldap) {
            // May be helpful for finding out what and why went wrong.
            $adLDAPError = $adldap->getConnection()->getLastError();
            if ("Success" != $adLDAPError) {
                Log::error('Problem with LDAP:' . $adLDAPError);
            }
        }
    }
private function handleLDAPError ( \ Adldap \ Adldap $ adldap ) { if ( false != $ adldap ) { // May be helpful for finding out what and why went wrong. $ adLDAPError = $ adldap -> getConnection ( ) -> getLastError ( ) ; if ( "Success" != $ adLDAPError ) { Log :: error ( 'Problem with LDAP:' . $ adLDAPError ) ; } } }
Logs the last LDAP error if it is not "Success".

@param array $adldap   The instance of the adLDAP object to check for
error.
Logs the last LDAP error if it is not Success .