diff options
author | Felix Bartels <felix@host-consultants.de> | 2015-05-10 12:40:46 +0300 |
---|---|---|
committer | Felix Bartels <felix@host-consultants.de> | 2015-05-10 12:40:46 +0300 |
commit | 69faa1fc40d555bfde5025b26197d64b4a8d3e58 (patch) | |
tree | 0f35d278f6a41e5899f7443e184dc813eb9872fd /user_external | |
parent | 6d60246541bddbc2f7f5af9c44892ee085b481bb (diff) |
don't go to $retval != 0 in case of NT_STATUS_BAD_NETWORK_NAME
NT_STATUS_BAD_NETWORK_NAME is only a minor error which should not prevent login
Diffstat (limited to 'user_external')
-rw-r--r-- | user_external/lib/smb.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/user_external/lib/smb.php b/user_external/lib/smb.php index e7f9b61b8..46cc2b66b 100644 --- a/user_external/lib/smb.php +++ b/user_external/lib/smb.php @@ -54,6 +54,9 @@ class OC_User_SMB extends \OCA\user_external\Base{ } else if (strpos($lastline, self::LOGINERROR) !== false) { //normal login error return false; + } else if (strpos($lastline, 'NT_STATUS_BAD_NETWORK_NAME') !== false) { + //login on minor error + goto login; } else if ($retval != 0) { //some other error OCP\Util::writeLog( @@ -62,8 +65,9 @@ class OC_User_SMB extends \OCA\user_external\Base{ ); return false; } else { + login: $this->storeUser($uid); return $uid; } } -}
\ No newline at end of file +} |