If the machine account in active directory does not contain servicePrincipalName attributes, the command "net ads keytab create -P" crashes.
Occasionally, when joining a machine to a domain, the machine account ends up without servicePrincipleName attributes. Not sure how to reproduce it, but it does happen against Windows Server DCs.
In such a case, trying to create a keytab should obviously fail, but what happens is that the net command "net ads keytab create" crashes.
To reproduce, servicePrincipalName can be purposefully deleted.
Created attachment 11458 [details]
Created attachment 11465 [details]
git-am fix for 4.3.next, 4.2.next.
Cherry-pick that went into master. Uri please review ! (PS. Activate your email@example.com email address in bugzilla and I can then use that to assign reviews. Much easier to remember :-).
Reassigning to Karolin for inclusion in 4.3.next, 4.2.next !
(In reply to Jeremy Allison from comment #3)
Pushed to autobuild-v4-[3|2]-test.
(In reply to Karolin Seeger from comment #4)
Closing out bug report.