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