mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-07-29 13:01:13 +03:00
feat: add tests for gssapi-with-mic
feat: tests set hostname for sshd, make GSSAPIStrictAcceptorCheck yes pass feat: add GSSAPI_TESTING cmake option feat: gssapi libssh server test feat: make kdc setup and teardown functions feat: add kinit, kadmin scripts to kdc setup function feat: add some client gssapi auth tests Signed-off-by: Gauravsingh Sisodia <xaerru@gmail.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Sahana Prasad <sahana@redhat.com>
This commit is contained in:
committed by
Sahana Prasad
parent
6d1ed76c7a
commit
74d42ca38b
@ -193,7 +193,6 @@ int auth_gssapi_mic_cb(ssh_session session,
|
||||
printf("Received some gssapi credentials\n");
|
||||
} else {
|
||||
printf("Not received any forwardable creds\n");
|
||||
goto denied;
|
||||
}
|
||||
|
||||
printf("Authenticated\n");
|
||||
@ -203,8 +202,6 @@ int auth_gssapi_mic_cb(ssh_session session,
|
||||
|
||||
return SSH_AUTH_SUCCESS;
|
||||
|
||||
denied:
|
||||
sdata->auth_attempts++;
|
||||
null_userdata:
|
||||
return SSH_AUTH_DENIED;
|
||||
}
|
||||
@ -910,7 +907,8 @@ void default_handle_session_cb(ssh_event event,
|
||||
} else {
|
||||
ssh_set_auth_methods(session,
|
||||
SSH_AUTH_METHOD_PASSWORD |
|
||||
SSH_AUTH_METHOD_PUBLICKEY);
|
||||
SSH_AUTH_METHOD_PUBLICKEY|
|
||||
SSH_AUTH_METHOD_GSSAPI_MIC);
|
||||
}
|
||||
|
||||
ssh_event_add_session(event, session);
|
||||
|
@ -272,7 +272,8 @@ static int init_server_state(struct server_state_st *state,
|
||||
state->auth_methods = atoi(arguments->auth_methods);
|
||||
} else {
|
||||
state->auth_methods = SSH_AUTH_METHOD_PASSWORD |
|
||||
SSH_AUTH_METHOD_PUBLICKEY;
|
||||
SSH_AUTH_METHOD_PUBLICKEY |
|
||||
SSH_AUTH_METHOD_GSSAPI_MIC;
|
||||
}
|
||||
|
||||
state->with_pcap = arguments->with_pcap;
|
||||
|
Reference in New Issue
Block a user