Blame 0001-Remove-upper-case-only-check-when-looking-for-the-Ne.patch

461678c
From d8eb0f5704f34cb7d411cd275d32c63ead297b8d Mon Sep 17 00:00:00 2001
461678c
From: Sumit Bose <sbose@redhat.com>
461678c
Date: Wed, 24 Aug 2016 15:37:41 +0200
461678c
Subject: [PATCH 01/23] Remove upper-case only check when looking for the
461678c
 NetBIOS name
461678c
461678c
It is a convention to use only upper-case letters for NetBIOS names but
461678c
it is not enforced on the AD-side. With the new option to specify a
461678c
random NetBIOS name it is possible to create host entries in AD with
461678c
lower-case letters in the name. To properly determine the name from the
461678c
keytab the upper-case check should be dropped,dc=
461678c
---
461678c
 library/adenroll.c | 2 +-
461678c
 1 file changed, 1 insertion(+), 1 deletion(-)
461678c
461678c
diff --git a/library/adenroll.c b/library/adenroll.c
461678c
index a15e4be..d1020e9 100644
461678c
--- a/library/adenroll.c
461678c
+++ b/library/adenroll.c
461678c
@@ -1309,7 +1309,7 @@ load_keytab_entry (krb5_context k5,
461678c
 	if (!enroll->host_fqdn_explicit && !enroll->computer_name_explicit) {
461678c
 
461678c
 		/* Automatically use the netbios name */
461678c
-		if (!enroll->computer_name && len > 1 && _adcli_str_is_up (name) &&
461678c
+		if (!enroll->computer_name && len > 1 &&
461678c
 		    _adcli_str_has_suffix (name, "$") && !strchr (name, '/')) {
461678c
 			enroll->computer_name = name;
461678c
 			name[len - 1] = '\0';
461678c
-- 
461678c
2.14.4
461678c