(kerberos5_send): set the addresses in the auth_context
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6370 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -155,6 +155,7 @@ kerberos5_send(char *name, Authenticator *ap)
|
|||||||
int ap_opts;
|
int ap_opts;
|
||||||
krb5_data cksum_data;
|
krb5_data cksum_data;
|
||||||
char foo[2];
|
char foo[2];
|
||||||
|
extern int net;
|
||||||
|
|
||||||
printf("[ Trying %s ... ]\r\n", name);
|
printf("[ Trying %s ... ]\r\n", name);
|
||||||
if (!UserNameRequested) {
|
if (!UserNameRequested) {
|
||||||
@@ -187,6 +188,18 @@ kerberos5_send(char *name, Authenticator *ap)
|
|||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ret = krb5_auth_con_setaddrs_from_fd (context,
|
||||||
|
auth_context,
|
||||||
|
&net);
|
||||||
|
if (ret) {
|
||||||
|
if (auth_debug_mode) {
|
||||||
|
printf ("Kerberos V5:"
|
||||||
|
" krb5_auth_con_setaddrs_from_fd failed (%s)\r\n",
|
||||||
|
krb5_get_err_text(context, ret));
|
||||||
|
}
|
||||||
|
return(0);
|
||||||
|
}
|
||||||
|
|
||||||
krb5_auth_setkeytype (context, auth_context, KEYTYPE_DES);
|
krb5_auth_setkeytype (context, auth_context, KEYTYPE_DES);
|
||||||
|
|
||||||
foo[0] = ap->type;
|
foo[0] = ap->type;
|
||||||
|
Reference in New Issue
Block a user