Bug 1748227
| Summary: | Instance name length is not enforced | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Viktor Ashirov <vashirov> |
| Component: | 389-ds-base | Assignee: | Simon Pichugin <spichugi> |
| Status: | CLOSED ERRATA | QA Contact: | RHDS QE <ds-qe-bugs> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.1 | CC: | mreynolds, nkinder, pasik, spichugi, tbordaz, vashirov |
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
| Target Release: | 8.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 389-ds-1.4-8030020200805152009.618f7055 | Doc Type: | Bug Fix |
| Doc Text: |
Instance name length is enforced now. We should mention in our documentation that the instance name should be equal or less than 80 symbols.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-11-04 03:07:13 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Viktor Ashirov
2019-09-03 08:02:15 UTC
Build tested: 389-ds-base-1.4.3.8-4.module+el8.3.0+7193+dfd1e8ad.x86_64 When I do a silent install, the error message is displayed: # dscreate from-file test.inf Starting installation... Error: Server identifier should not be longer than 80 symbols But when I do interactive install, it is displayed only after asking all other questions: [root@server-rhel8 ds]# dscreate interactive Install Directory Server (interactive mode) =========================================== selinux is disabled, will not relabel ports or files. Selinux support will be disabled, continue? [yes]: Enter system's hostname [server-rhel8.example.com]: Enter the instance name [server-rhel8]: 1234567890abcdefghijlmnopqrstuvwxyz1234567890abcdefghijlmnopqrstuvwxyz1234567890abcdefghijlmnopqrstuvwxyz1234567890abcdefghijlmnopqrstuvwxyz1234567890abcdefghijlmnopqrstuvwxyz1234567890abcdefghijlmnopqrstuvwxyz Enter port number [389]: Create self-signed certificate database [yes]: Enter secure port number [636]: Enter Directory Manager DN [cn=Directory Manager]: Enter the Directory Manager password: Confirm the Directory Manager Password: Enter the database suffix (or enter "none" to skip) [dc=server-rhel8,dc=example,dc=com]: Create sample entries in the suffix [no]: Create just the top suffix entry [no]: Do you want to start the instance after the installation? [yes]: Are you ready to install? [no]: yes Starting installation... Error: Server identifier should not be longer than 80 symbols But when for some other checks like spaces or non-ascii characters, it is displayed immediately: https://pagure.io/389-ds-base/blob/master/f/src/lib389/lib389/instance/setup.py#_310 Enter the instance name [server-rhel8]: f f Server identifier can not contain a space I think it should be consistent and be displayed right after entering the value. Moving to ASSIGNED. Build tested: 389-ds-base-1.4.3.8-5.module+el8.3.0+7569+08175a8a.x86_64 dscreate interactive ... Enter the instance name [server-rhel8]: 1234567890abcdefghijlmnopqrstuvwxyz1234567890abcdefghijlmnopqrstuvwxyz1234567890abcdefghijlmnopqrstuvwxyz1234567890abcdefghijlmnopqrstuvwxyz1234567890abcdefghijlmnopqrstuvwxyz1234567890abcdefghijlmnopqrstuvwxyz Server identifier should not be longer than 80 symbols ... The warning shows immediately. Marking as VERIFIED. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (389-ds:1.4 bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2020:4695 |