auth/credentials: Always set the the realm if we set the principal from the ccache
authorAndreas Schneider <asn@samba.org>
Wed, 21 Dec 2016 21:17:22 +0000 (22:17 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 10 Jan 2017 12:54:17 +0000 (13:54 +0100)
commit30c07065300281e3a67197fe39ed928346480ff7
tree78bb0f6588b9ce8cd938ba3db11ca24fbe93e646
parent2a2c03c655e51ff83483bbde1ded36c2e679faa3
auth/credentials: Always set the the realm if we set the principal from the ccache

This fixes a bug in gensec_gssapi_client_start() where an invalid realm
is used to get a Kerberos ticket.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
auth/credentials/credentials_krb5.c