Red Hat Bugzilla – Bug 1273388
ssh-ldap-helper doesn't parse TLS_CheckPeer from /etc/ssh/ldap.conf
Last modified: 2015-10-22 05:16:57 EDT
Description of problem:
A bug in ssh-ldap-helper causes it not to parse the "TLS_CheckPeer" option from /etc/ssh/ldap.conf. Consequently it is always set to "Hard" even if the user specifies otherwise.
Version-Release number of selected component (if applicable): openssh-ldap-6.6.1p1-12
Steps to Reproduce:
1. Configure LDAP server with proper schema, and set user's sshPublicKey attribute
to the public key of the user. Configure same LDAP server such that its TLS certificate is self-signed.
2. Configure LDAP client and install openssh-ldap.
3. Edit /etc/ssh/ldap.conf. Set "SSL yes" and "URI ldaps:///ldap-server-hostname". Also set "TLS_CheckPeer never".
"/usr/libexec/openssh/ssh-ldap-helper -s username" fails to work. LDAP server reports TLS handshake failure due to the helper checking the validity of the TLS certificate presented by the LDAP server. Adding the "-vvvv" argument to ssh-ldap-helper shows that the configuration parameter is not being properly parsed.
"/usr/libexec/openssh/ssh-ldap-helper -s username" should return the user's ssh public key from the LDAP server.
The bug seems to be in ldapconf.c, process_config_line() function. In the lTLS_CheckPeer case, the value is never returned to the caller.
(In reply to Michael Fischer from comment #0)
> The bug seems to be in ldapconf.c, process_config_line() function. In the
> lTLS_CheckPeer case, the value is never returned to the caller.
This issue was already addressed and the fix will be available with next update. Just tested with latest build and the option is set successfully.