Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1432325

Summary: sssctl config-check does not check any special characters in domain name of domain section
Product: Red Hat Enterprise Linux 7 Reporter: Madhuri <mupadhye>
Component: sssdAssignee: SSSD Maintainers <sssd-maint>
Status: CLOSED UPSTREAM QA Contact: Madhuri <mupadhye>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.4CC: grajaiya, jhrozek, lslebodn, mkosek, mzidek, pbrezina, sgadekar, sgoveas, tscherf
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-08 10:36:52 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 Madhuri 2017-03-15 06:40:46 UTC
Description of problem:sssctl config-check does not check any special character in domain section of sssd after forward slash.


Version-Release number of selected component (if applicable):
sssd-1.15.1-1.el7.x86_64


How reproducible:
Always.


Steps to Reproduce:
1. yum install sssd sssd-tools.
2. Create sssd.conf with special character in domain name of domain section.
3. Run sssctl config-check.

Actual results:
sssctl config-check does not check the special character in domain name.  


Expected results:
sssctl config-check should check the special character in domain name.  


Additional info:
# cat /etc/sssd/sssd.conf

[sssd]
config_file_version = 2
domains = LDAP
services = nss, pam
debug_level = 9

[domain/LDA@P]

Comment 4 Lukas Slebodnik 2017-03-15 14:07:28 UTC
Upstream ticket:
https://pagure.io/SSSD/sssd/issue/3334

Comment 5 Lukas Slebodnik 2017-03-15 18:25:37 UTC
Is is not a regression;
There was always following regex "section_re = ^domain/.*$"

Please remove regression keyword.

Comment 6 Madhuri 2017-03-16 05:33:40 UTC
If I add domain section like [domain/LDA@P]

The error message for rhel7.3 is as below:

# sssctl config-check

(Thu Mar 16 10:39:43:798357 2017) [sssd] [confdb_get_domain_internal] (0x0010): Unknown domain [LDAP]
(Thu Mar 16 10:39:43:798434 2017) [sssd] [confdb_get_domains] (0x0010): Error (2 [No such file or directory]) retrieving domain [LDAP], skipping!
(Thu Mar 16 10:39:43:798453 2017) [sssd] [confdb_get_domains] (0x0010): No properly configured domains, fatal error!

From the above error messages (debug log), It’s easy to find something going wrong with domain section of configuration file.

The error messages for rhel7.4 is as below with --debug=10

#sssctl --debug=10 config-check

(Thu Mar 16 10:47:25:214531 2017) [sssd] [sss_ini_get_config] (0x0400): Using only main configuration file due to errors in merging
Issues identified by validators: 0

Messages generated during configuration merging: 0

Used configuration snippet files: 0

But from above error messages, It's difficult to find what's going wrong with configuration file.

Comment 7 Lukas Slebodnik 2017-03-16 06:47:02 UTC
It was bug in "sssctl config-check"; that such debug messages were printed.
DEBUG messages cannot be translated and therefore should not be considered as expected output.

It is not a regression.

Comment 8 Jakub Hrozek 2017-08-03 19:18:08 UTC
*** Bug 1459786 has been marked as a duplicate of this bug. ***

Comment 9 Jakub Hrozek 2017-08-08 10:36:52 UTC
Thank you for filing this bug. Since the issue is tracked in the SSSD upstream tracker and the fix will make its way to RHEL in the next rebase which contains the fix for this bug, I'm going to close this bugzilla with the resolution of UPSTREAM.