File 0001-Remove-upper-case-only-check-when-looking-for-the-Ne.patch of Package adcli (Revision ce46d0e7322eb68daa00b5c190e5847d)
Currently displaying revision ce46d0e7322eb68daa00b5c190e5847d , Show latest
xxxxxxxxxx
1
From 8ea169d82a9c4047c254cca49ce6243cfc5941b5 Mon Sep 17 00:00:00 2001
2
From: Sumit Bose <sbose@redhat.com>
3
Date: Wed, 24 Aug 2016 15:37:41 +0200
4
Subject: [PATCH 01/25] Remove upper-case only check when looking for the
5
NetBIOS name
6
7
It is a convention to use only upper-case letters for NetBIOS names but
8
it is not enforced on the AD-side. With the new option to specify a
9
random NetBIOS name it is possible to create host entries in AD with
10
lower-case letters in the name. To properly determine the name from the
11
keytab the upper-case check should be dropped.
12
---
13
library/adenroll.c | 2 +-
14
1 file changed, 1 insertion(+), 1 deletion(-)
15
16
diff --git a/library/adenroll.c b/library/adenroll.c
17
index a15e4be..d1020e9 100644
18
--- a/library/adenroll.c
19
+++ b/library/adenroll.c
20
21
if (!enroll->host_fqdn_explicit && !enroll->computer_name_explicit) {
22
23
/* Automatically use the netbios name */
24
- if (!enroll->computer_name && len > 1 && _adcli_str_is_up (name) &&
25
+ if (!enroll->computer_name && len > 1 &&
26
_adcli_str_has_suffix (name, "$") && !strchr (name, '/')) {
27
enroll->computer_name = name;
28
name[len - 1] = '\0';
29
--
30
2.16.4
31
32