This is an automated email from the git hooks/post-receive script.
spichugi pushed a commit to branch 389-ds-base-1.4.2
in repository 389-ds-base.
The following commit(s) were added to refs/heads/389-ds-base-1.4.2 by this push:
new f2dc78a Issue 51086 - Fix instance name length for interactive install
f2dc78a is described below
commit f2dc78ad620487fb5dcf2004cc5dbc75e2736a59
Author: Simon Pichugin <spichugi(a)redhat.com>
AuthorDate: Thu Jul 23 23:45:18 2020 +0200
Issue 51086 - Fix instance name length for interactive install
Description: Instance name lenght is not properly validated
during interactive install. Add a check during a user input.
https://pagure.io/389-ds-base/issue/51086
Reviewed by: mreynolds (Thanks!)
---
src/lib389/lib389/instance/setup.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/lib389/lib389/instance/setup.py b/src/lib389/lib389/instance/setup.py
index d132247..f0a8857 100644
--- a/src/lib389/lib389/instance/setup.py
+++ b/src/lib389/lib389/instance/setup.py
@@ -307,6 +307,9 @@ class SetupDs(object):
val = input('\nEnter the instance name [{}]:
'.format(slapd['instance_name'])).rstrip()
if val != "":
+ if len(val) > 80:
+ print("Server identifier should not be longer than 80
symbols")
+ continue
if not all(ord(c) < 128 for c in val):
print("Server identifier can not contain non ascii
characters")
continue
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.