summaryrefslogtreecommitdiff
path: root/source3/utils/net_util.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2020-08-19 15:46:11 +0200
committerAndrew Bartlett <abartlet@samba.org>2021-04-28 03:43:34 +0000
commit521f77c6671a0a088dedcdcafd264690c123b0b3 (patch)
tree5f9dccec89fc63d2112d35e078fc9dad573be05f /source3/utils/net_util.c
parenta00726593c2f3b464e48c22e7a757aa1a06ecff2 (diff)
downloadsamba-521f77c6671a0a088dedcdcafd264690c123b0b3.tar.gz
auth:creds: Add obtained arg to cli_credentials_set_kerberos_state()
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/utils/net_util.c')
-rw-r--r--source3/utils/net_util.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/utils/net_util.c b/source3/utils/net_util.c
index 7383d593f53..5747bfa581a 100644
--- a/source3/utils/net_util.c
+++ b/source3/utils/net_util.c
@@ -499,13 +499,16 @@ struct cli_credentials *net_context_creds(struct net_context *c,
if (c->opt_kerberos && c->opt_user_specified) {
cli_credentials_set_kerberos_state(creds,
- CRED_USE_KERBEROS_DESIRED);
+ CRED_USE_KERBEROS_DESIRED,
+ CRED_SPECIFIED);
} else if (c->opt_kerberos) {
cli_credentials_set_kerberos_state(creds,
- CRED_USE_KERBEROS_REQUIRED);
+ CRED_USE_KERBEROS_REQUIRED,
+ CRED_SPECIFIED);
} else {
cli_credentials_set_kerberos_state(creds,
- CRED_USE_KERBEROS_DISABLED);
+ CRED_USE_KERBEROS_DISABLED,
+ CRED_SPECIFIED);
}
if (c->opt_ccache) {