git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d96b09
)
krb5_wrap: handle KRB5_ERR_HOST_REALM_UNKNOWN in smb_krb5_get_realm_from_hostname()
author
Stefan Metzmacher
<metze@samba.org>
Sun, 11 Jun 2017 21:19:01 +0000
(23:19 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Fri, 16 Jun 2017 17:34:17 +0000
(19:34 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/krb5_wrap/krb5_samba.c
patch
|
blob
|
history
diff --git
a/lib/krb5_wrap/krb5_samba.c
b/lib/krb5_wrap/krb5_samba.c
index 2e43f797144098db3a855fb1a6d18372713592ac..0c8b402c21ef6e851e12d61336529bcda8f273d8 100644
(file)
--- a/
lib/krb5_wrap/krb5_samba.c
+++ b/
lib/krb5_wrap/krb5_samba.c
@@
-2669,6
+2669,10
@@
char *smb_krb5_get_realm_from_hostname(TALLOC_CTX *mem_ctx,
}
kerr = krb5_get_host_realm(ctx, hostname, &realm_list);
+ if (kerr == KRB5_ERR_HOST_REALM_UNKNOWN) {
+ realm_list = NULL;
+ kerr = 0;
+ }
if (kerr != 0) {
DEBUG(3,("kerberos_get_realm_from_hostname %s: "
"failed %s\n",