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 1273388 - ssh-ldap-helper doesn't parse TLS_CheckPeer from /etc/ssh/ldap.conf
Summary: ssh-ldap-helper doesn't parse TLS_CheckPeer from /etc/ssh/ldap.conf
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: openssh
Version: 7.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Jakub Jelen
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-20 10:56 UTC by Michael Fischer
Modified: 2015-10-22 09:16 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-10-22 09:16:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Michael Fischer 2015-10-20 10:56:17 UTC
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".

Actual results:

"/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.

Expected results:

"/usr/libexec/openssh/ssh-ldap-helper -s username" should return the user's ssh public key from the LDAP server.

Additional info:

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.

Comment 2 Jakub Jelen 2015-10-22 09:16:57 UTC
(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.


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