(krb5_get_forwarded_creds): if no_addresses is set, do not add any
local addresses to KRB_CRED git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10208 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -214,6 +214,13 @@ krb5_get_forwarded_creds (krb5_context context,
|
|||||||
*enc_krb_cred_part.usec = usec;
|
*enc_krb_cred_part.usec = usec;
|
||||||
|
|
||||||
if (auth_context->local_address && auth_context->local_port) {
|
if (auth_context->local_address && auth_context->local_port) {
|
||||||
|
krb5_boolean noaddr;
|
||||||
|
const krb5_realm *realm;
|
||||||
|
|
||||||
|
realm = krb5_princ_realm(context, out_creds->server);
|
||||||
|
krb5_appdefault_boolean(context, NULL, *realm, "no-addresses", FALSE,
|
||||||
|
&noaddr);
|
||||||
|
if (!noaddr) {
|
||||||
ret = krb5_make_addrport (context,
|
ret = krb5_make_addrport (context,
|
||||||
&enc_krb_cred_part.s_address,
|
&enc_krb_cred_part.s_address,
|
||||||
auth_context->local_address,
|
auth_context->local_address,
|
||||||
@@ -221,6 +228,7 @@ krb5_get_forwarded_creds (krb5_context context,
|
|||||||
if (ret)
|
if (ret)
|
||||||
goto out4;
|
goto out4;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (auth_context->remote_address) {
|
if (auth_context->remote_address) {
|
||||||
ALLOC(enc_krb_cred_part.r_address, 1);
|
ALLOC(enc_krb_cred_part.r_address, 1);
|
||||||
|
Reference in New Issue
Block a user