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 894738 - Failover to ldap_chpass_backup_uri doesn't work
Summary: Failover to ldap_chpass_backup_uri doesn't work
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: sssd
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jakub Hrozek
QA Contact: Kaushik Banerjee
URL:
Whiteboard:
Depends On:
Blocks: 902691
TreeView+ depends on / blocked
 
Reported: 2013-01-13 15:23 UTC by Kaushik Banerjee
Modified: 2020-05-02 17:14 UTC (History)
6 users (show)

Fixed In Version: sssd-1.9.2-72.el6
Doc Type: Bug Fix
Doc Text:
No documentation needed.
Clone Of:
Environment:
Last Closed: 2013-02-21 09:43:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github SSSD sssd issues 2802 0 None None None 2020-05-02 17:14:15 UTC
Red Hat Product Errata RHSA-2013:0508 0 normal SHIPPED_LIVE Low: sssd security, bug fix and enhancement update 2013-02-20 21:30:10 UTC

Description Kaushik Banerjee 2013-01-13 15:23:47 UTC
Description of problem:
Failover to ldap_chpass_backup_uri doesn't work

Version-Release number of selected component (if applicable):
1.9.2-68

How reproducible:
Always

Steps to Reproduce:
1. Domain section in sssd.conf:
ldap_search_base = dc=example,dc=com
id_provider = ldap
ldap_uri = ldap://ldapsrv.example.com
ldap_chpass_uri = ldap://invalidsrv.example.com
ldap_chpass_backup_uri = ldap://ldapsrv.example.com

2. Try to change the password of a user:

# ssh -l puser1 localhost
puser1@localhost's password: 
Last login: Fri Jan 11 20:49:34 2013 from localhost
-sh-4.1$ passwd
Changing password for user puser1.
Current Password: 
System is offline, password change not possible
passwd: Authentication token manipulation error
-sh-4.1$ 

  
Actual results:
Password change fails. Looks like failover to ldap_chpass_backup_uri doesn't happen. 

Logs show:
(Sun Jan 13 20:14:20 2013) [sssd[be[LDAP]]] [fo_resolve_service_done] (0x0020): Failed to resolve server 'invalidsrv.example.com': Domain name not found
(Sun Jan 13 20:14:20 2013) [sssd[be[LDAP]]] [set_server_common_status] (0x0100): Marking server 'invalidsrv.example.com' as 'not working'
(Sun Jan 13 20:14:20 2013) [sssd[be[LDAP]]] [be_resolve_server_process] (0x0080): Couldn't resolve server (invalidsrv.example.com), resolver returned (11)
(Sun Jan 13 20:14:20 2013) [sssd[be[LDAP]]] [be_resolve_server_process] (0x1000): Trying with the next one!
(Sun Jan 13 20:14:20 2013) [sssd[be[LDAP]]] [fo_resolve_service_send] (0x0100): Trying to resolve service 'LDAP_CHPASS'
(Sun Jan 13 20:14:20 2013) [sssd[be[LDAP]]] [get_server_status] (0x1000): Status of server 'invalidsrv.example.com' is 'not working'
(Sun Jan 13 20:14:20 2013) [sssd[be[LDAP]]] [get_server_status] (0x1000): Status of server 'invalidsrv.example.com' is 'not working'
(Sun Jan 13 20:14:20 2013) [sssd[be[LDAP]]] [fo_resolve_service_send] (0x0020): No available servers for service 'LDAP_CHPASS'
(Sun Jan 13 20:14:20 2013) [sssd[be[LDAP]]] [be_resolve_server_done] (0x1000): Server resolution failed: 5
(Sun Jan 13 20:14:20 2013) [sssd[be[LDAP]]] [be_mark_offline] (0x2000): Going offline!

Expected results:
Failover to ldap_chpass_backup_uri should work.

Additional info:

Comment 2 Jakub Hrozek 2013-01-14 07:56:31 UTC
Upstream ticket:
https://fedorahosted.org/sssd/ticket/1760

Comment 3 Jakub Hrozek 2013-01-15 19:39:34 UTC
Pushed upstream.

Comment 5 Kaushik Banerjee 2013-01-20 11:03:21 UTC
Verified in version 1.9.2-74

Report from beaker automation run:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: failover-ldap_chpass_backup_uri_001 Server1 down, Server2 online
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   LOG    ] :: Stopping LDAP Server on Server1 and sleeping for 1 second
:: [   PASS   ] :: File '/var/log/sssd/sssd_LDAP.log' should contain 'Primary server reactivation timeout set to 31 seconds'
:: [   PASS   ] :: Authentication successful, as expected
:: [   PASS   ] :: Running 'auth_success puser1 NewPass_123'
:: [   LOG    ] :: Starting LDAP Server on Server1 and sleeping for 5 seconds
:: [   LOG    ] :: Duration: 14s
:: [   LOG    ] :: Assertions: 3 good, 0 bad
:: [   PASS   ] :: RESULT: failover-ldap_chpass_backup_uri_001 Server1 down, Server2 online

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: failover-ldap_chpass_backup_uri_003 First Server in the list cannot be resolved
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   LOG    ] :: Sleeping for 5 seconds
:: [   PASS   ] :: File '/var/log/sssd/sssd_LDAP.log' should contain 'Primary server reactivation timeout set to 31 seconds'
:: [   PASS   ] :: Authentication successful, as expected
:: [   PASS   ] :: Running 'auth_success puser1 NewPass_123'
:: [   LOG    ] :: Duration: 10s
:: [   LOG    ] :: Assertions: 3 good, 0 bad
:: [   PASS   ] :: RESULT: failover-ldap_chpass_backup_uri_003 First Server in the list cannot be resolved

Comment 6 errata-xmlrpc 2013-02-21 09:43:26 UTC
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, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2013-0508.html


Note You need to log in before you can comment on or make changes to this bug.