mirror of
https://github.com/samba-team/samba.git
synced 2025-12-13 16:23:50 +03:00
r4970: Fix for bug 2092, allowing fallback after kerberos and allow
gnome vfs to prevent auto-anonymous logon. Jeremy.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
78975ab9a9
commit
843e85bcd9
@@ -757,13 +757,17 @@ ADS_STATUS cli_session_setup_spnego(struct cli_state *cli, const char *user,
|
||||
if (ret){
|
||||
SAFE_FREE(principal);
|
||||
DEBUG(0, ("Kinit failed: %s\n", error_message(ret)));
|
||||
if (cli->fallback_after_kerberos)
|
||||
goto ntlmssp;
|
||||
return ADS_ERROR_KRB5(ret);
|
||||
}
|
||||
}
|
||||
|
||||
rc = cli_session_setup_kerberos(cli, principal, domain);
|
||||
SAFE_FREE(principal);
|
||||
return rc;
|
||||
if (ADS_ERR_OK(rc) || !cli->fallback_after_kerberos) {
|
||||
SAFE_FREE(principal);
|
||||
return rc;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user