Bug 1376057
| Summary: | Misleading error messages for wrong replica credentials | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Sankar Ramalingam <sramling> |
| Component: | 389-ds-base | Assignee: | Noriko Hosoi <nhosoi> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Viktor Ashirov <vashirov> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.4 | CC: | mreynolds, nkinder, rmeggins, sramling |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-12-07 18:06:50 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
Sankar Ramalingam
2016-09-14 14:35:09 UTC
Indeed, it could be misleading:
> [14/Sep/2016:16:43:47.323809796 +051800] slapi_ldap_bind - Error: could not bind id [cn=SyncManager,cn=config] authentication mechanism [SIMPLE]: error 49 (Invalid credentials) errno 0 (Success)
The issue is, the error 49 is from the Directory server's level (ACL), not from the system level (errno). In the system level, there is no problem.
1223 slapi_log_error(SLAPI_LOG_FATAL, LOG_ERR, "slapi_ldap_bind",
1224 "Error: could not bind id "
1225 "[%s] authentication mechanism [%s]: error %d (%s) errno %d (%s)\n",
1226 bindid ? bindid : "(anon)",
1227 mech ? mech : "SIMPLE",
1228 rc, ldap_err2string(rc), errno, slapd_system_strerror(errno));
For instance, we could replace "errno" with "system error". Or even we could suppress "errno %d (%s)" part if errno is 0.
But I believe this is not a new issue and this is not a blocker bug. Plus there are more places having the similar log messages.
I propose to push this to 7.5.
^7.5^7.4^ :p (In reply to Noriko Hosoi from comment #2) > Indeed, it could be misleading: > > > [14/Sep/2016:16:43:47.323809796 +051800] slapi_ldap_bind - Error: could not bind id [cn=SyncManager,cn=config] authentication mechanism [SIMPLE]: error 49 (Invalid credentials) errno 0 (Success) > > The issue is, the error 49 is from the Directory server's level (ACL), not > from the system level (errno). In the system level, there is no problem. > > 1223 slapi_log_error(SLAPI_LOG_FATAL, LOG_ERR, "slapi_ldap_bind", > 1224 "Error: could not bind id " > 1225 "[%s] authentication mechanism [%s]: error %d (%s) errno %d > (%s)\n", > 1226 bindid ? bindid : "(anon)", > 1227 mech ? mech : "SIMPLE", > 1228 rc, ldap_err2string(rc), errno, slapd_system_strerror(errno)); > > For instance, we could replace "errno" with "system error". Or even we > could suppress "errno %d (%s)" part if errno is 0. > > But I believe this is not a new issue and this is not a blocker bug. Plus > there are more places having the similar log messages. I agree with your Noriko. > > I propose to push this to 7.5. This was fixed upstream via: https://fedorahosted.org/389/ticket/48978 and will be included in 7.4 (389-ds-base-1.3.6) |