Skip to content

Commit

Permalink
Dont use serviceping anymore..
Browse files Browse the repository at this point in the history
  • Loading branch information
robin.kluth committed Mar 28, 2023
1 parent d2e9651 commit d0760ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/LdapAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,10 @@ public function login($username, $password, $domainKey = false, $fetchUserDN = f

Yii::debug('Trying to connect to Domain #' . $domainKey . ' (' . $domainData['hostname'] . ')', __METHOD__);

if (!self::serviceping($domainData['hostname'], $ssl ? 636 : null)) {
Yii::error('Connection failed!', __METHOD__);
continue;
}
// if (!self::serviceping($domainData['hostname'], $ssl ? 636 : null)) {
// Yii::error('Connection failed!', __METHOD__);
// continue;
// }

$hostPrefix = ($ssl ? 'ldaps://' : 'ldap://') . $domainData['hostname'];
$port = $ssl ? 636 : 389;
Expand Down

0 comments on commit d0760ae

Please sign in to comment.