The Samba-Bugzilla – Attachment 11458 Details for
Bug 11528
net ads keytab create crashes if no servicePrincipalName exists
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
ktc2.txt (text/plain), 1.07 KB, created by
Uri Simchoni
on 2015-09-23 17:26:24 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Uri Simchoni
Created:
2015-09-23 17:26:24 UTC
Size:
1.07 KB
patch
obsolete
>From 672908c4432ee07e5b58c4f9cf331b1cd3ea59d1 Mon Sep 17 00:00:00 2001 >From: Uri Simchoni <urisimchoni@gmail.com> >Date: Wed, 23 Sep 2015 14:45:47 +0300 >Subject: [PATCH] net: fix a crash with net ads keytab create > >Fix a crash that happens when executing "net ads keytab create" >and the machine account in AD does not have setvice principal names >attached to it. > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=11528 > >Signed-off-by: Uri Simchoni <urisimchoni@gmail.com> >--- > source3/libads/ldap.c | 7 +++++++ > 1 file changed, 7 insertions(+) > >diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c >index e8ccfa9..1538500 100644 >--- a/source3/libads/ldap.c >+++ b/source3/libads/ldap.c >@@ -2076,6 +2076,13 @@ ADS_STATUS ads_get_service_principal_names(TALLOC_CTX *mem_ctx, > res, > "servicePrincipalName", > num_spns); >+ if (*spn_array == NULL) { >+ DEBUG(1, ("Host account for %s does not have service principal " >+ "names.\n", >+ machine_name)); >+ status = ADS_ERROR(LDAP_NO_SUCH_OBJECT); >+ goto done; >+ } > > done: > ads_msgfree(ads, res); >-- >1.9.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 11528
:
11458
|
11465