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

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