An Azure service that is used to provision Windows and Linux virtual machines.
Enable SSSD authentication logging, reproduce one failed login, and inspect the PAM/domain logs before changing certificates or rebuilding the configuration; successful user and group lookup confirms identity resolution but does not establish that the separate authentication path is working.^1^
1. Capture the authentication failure
Use an existing local administrative account or the Azure Serial Console. Back up the configuration first because /etc/sssd/sssd.conf contains authentication settings and may contain secrets.
sudo cp -p /etc/sssd/sssd.conf /root/sssd.conf.$(date +%F-%H%M)
sudo chmod 600 /etc/sssd/sssd.conf
sudo vi /etc/sssd/sssd.conf
Temporarily add this under [sssd], [pam], and the active [domain/...] section:
debug_level = 9
Restart SSSD using the RHEL 6 service command, attempt exactly one login, and record the time and username:
sudo service sssd restart
date
ssh ldapuser@localhost
sudo tail -n 200 /var/log/sssd/sssd_pam.log
sudo tail -n 200 /var/log/sssd/sssd_*.log
sudo tail -n 200 /var/log/secure
Look for the first substantive error:
-
certificate verify failed,peer certificate, or TLS errors → follow section 2. -
PAMcannot contact SSSD or cannot open its socket → follow section 3. -
Access denied,not allowed, netgroup, or group evaluation errors → follow section 4. - Kerberos/KDC/DC selection errors, if this is AD-backed LDAP → follow section 5.
After collecting the evidence, remove the temporary debug_level = 9 entries or return them to their prior values; level 9 logging is verbose and can consume disk space.
2. If the log reports a certificate or TLS failure
Do not replace certificates merely because authentication stopped suddenly. First identify the certificate file configured by SSSD:
sudo grep -Ei 'ldap_uri|ldap_id_use_start_tls|ldap_tls' \
/etc/sssd/sssd.conf
date -u
sudo find /etc/openldap/cacerts /etc/pki/tls/certs \
-type f -maxdepth 2 -ls 2>/dev/null
Then validate the LDAP server’s presented chain, substituting its real FQDN and port:
openssl s_client -connect ldap.example.com:636 \
-servername ldap.example.com -showcerts </dev/null
Check for:
- an expired server, intermediate, or CA certificate;
- hostname mismatch;
- an incomplete certificate chain;
- a CA file referenced by
ldap_tls_cacertthat was removed or replaced; - incorrect system time.
Red Hat documents certificate-based LDAP authentication through SSSD and CA-handling failures separately.^2^ Use the certificate verification procedure to establish the broken chain before modifying trust.^3^
Only if the trust store is confirmed damaged or incorrect should it be rebuilt or reset. Back up /etc/pki first because resetting trusted CAs can affect every TLS-enabled application on the VM.^4^
3. If PAM is not reaching SSSD
Inspect rather than rerun authconfig immediately:
sudo service sssd status
sudo grep -R "pam_sss.so" /etc/pam.d
sudo grep -E '^(passwd|group|shadow):' /etc/nsswitch.conf
sudo ls -ld /var/lib/sss /var/lib/sss/pipes
sudo tail -n 100 /var/log/secure
Authentication requires pam_sss.so in the applicable PAM stack, normally including password-auth and/or system-auth. Compare these files with the last known-good backup or another identically configured RHEL 6 host. Avoid blindly running authconfig --update, because it can rewrite locally customized PAM files.
Also check whether the filesystem is full and whether configuration permissions remain valid:
df -h
df -i
sudo stat /etc/sssd/sssd.conf
sudo restorecon -Rv /etc/sssd /var/lib/sss
sudo ausearch -m avc -ts recent 2>/dev/null | tail -50
4. If authentication is explicitly denied
Review access_provider, ldap_access_filter, simple_allow_*, netgroup rules, and group restrictions in the active domain section. A user can remain visible through NSS while an SSSD access rule rejects login. If netgroups are involved and nscd is enabled, Red Hat documents a matching condition where users cannot authenticate through SSSD.^5^
Do not clear SSSD’s cache until logs and configuration are saved; cache deletion removes offline credentials and can make recovery harder.
5. If this is AD/Kerberos-backed LDAP
Check the domain log for KDC discovery, clock skew, keytab, or domain-controller selection errors. Red Hat documents cases where identity lookup succeeds but authentication fails when SSSD is pinned to unsuitable domain controllers.^6^
Azure recovery access
If LDAP users cannot sign in but the VM still runs, use Azure portal → VM → Help → Serial console and sign in with a local password-based administrator. Serial Console is independent of SSH and network state; it requires boot diagnostics and appropriate VM permissions.^7^
Use offline az vm repair only if neither SSH nor Serial Console provides access. It creates a repair VM with a copy of the OS disk and requires Contributor or Owner-level resource permissions; restoring swaps the repaired disk back into the original VM.^8^
Plan migration to a supported RHEL release after recovery. Azure documentation listing RHEL 6.10 for particular operations, such as VM region moves, does not extend RHEL’s operating-system or SSSD support lifecycle.^9^
References
- General SSSD Debugging Procedures - Red Hat Customer Portal
- Ldap authentication through SSSD using certificates - Red Hat Customer Portal
- How to Verify and Troubleshoot SSL/TLS Certificates on Red Hat Enterprise Linux
- How to reset the list of trusted CA certificates in RHEL 6 and later? - Red Hat Customer Portal
- Users from netgroup are not able to authenticate through sssd when nscd is turned on. - Red Hat Customer Portal
- AD authentication failure with successful identity lookup when SSSD is pinned to non-local domain controllers - Red Hat Customer Portal
- Azure Serial Console for Linux
- Repair a Linux VM by using the Azure Virtual Machine repair commands
- Support for moving Azure VMs between Azure regions