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 1137013 - Enable OpenSSH-LPK support by default
Summary: Enable OpenSSH-LPK support by default
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: sssd
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jakub Hrozek
QA Contact: Kaushik Banerjee
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-03 20:23 UTC by Jakub Hrozek
Modified: 2020-05-02 17:00 UTC (History)
7 users (show)

Fixed In Version: sssd-1.12.1-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-05 10:33:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github SSSD sssd issues 2602 0 None closed Enable OpenSSH-LPK support by default 2021-02-17 09:16:33 UTC
Red Hat Product Errata RHBA-2015:0441 0 normal SHIPPED_LIVE sssd bug fix and enhancement update 2015-03-05 15:05:27 UTC

Description Jakub Hrozek 2014-09-03 20:23:49 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/sssd/ticket/1560

OpenSSH formatted public keys are now supported in SSSD. This means that the OpenSSH-LPK <http://code.google.com/p/openssh-lpk/> schema is supported as well. It can be enabled by setting the ldap_user_ssh_public_key option to sshPublicKey.

In the LDAP provider, ldap_user_ssh_public_key has no default value. Make sshPublicKey the default value for it, so that OpenSSH-LPK support is enabled by default.

Comment 1 Jakub Hrozek 2014-09-09 08:40:26 UTC
* master: 9cd7a75654c64ce9ba320e0fee60e194dca437c1

Comment 3 Kaushik Banerjee 2015-01-27 15:37:53 UTC
Verified in version sssd-1.12.2-47.el7

Add a user in openldap server with the following ldif:
dn: uid=sshuser1,dc=example,dc=com
objectClass: posixAccount
objectClass: account
objectClass: ldapPublicKey
uidNumber: 123344233
gidNumber: 124264233
homeDirectory: /home/sshuser1
userPassword: Secret123
uid: sshuser1
cn: sshuser1
sshPublicKey: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC5dGycoymjvbZGLia4spL/e1acgwRmzDVnV5MBQR2c7JseQI/7Jsz95tKDqHsB3/KzDGFjXca6l7UAqdJ311IlOLa8eScRTCrDvvfFOmD/yj42zCI00zHv8OhyWNSnNADv41hDfif9osLd4O5zj/C9UVrpfzQaVh7pgFw6NLUxxaKLwjHRomzLt4pDgXaBsg/Gw9k1Ox+yr3PKdED9FPkcYVTrrsdMElkbhcP+yo4VxGJVz9aQQF2HAM9naHKrQ4ybGrS7hgPcGboznj4KXR8aAlwFsoPFK1G4NTdCcmARVT42dO3bCvsP3pJlhUTTxfnEuYKC8784j4gJmhpXDxbd root@client

Setup sssd with the following in domain section:
[domain/LDAP]
debug_level = 0xFFF0
id_provider = ldap
ldap_uri = ldap://<ldap server>
ldap_search_base = dc=example,dc=com
ldap_tls_cacert = /etc/openldap/certs/servercert.pem

# cat /etc/ssh/sshd_config | tail -n2
AuthorizedKeysCommand /usr/bin/sss_ssh_authorizedkeys
AuthorizedKeysCommandUser nobody


# ssh sshuser1@localhost
Last login: Tue Jan 27 20:57:33 2015 from localhost
-sh-4.2$ 

# tailf /var/log/secure
Jan 27 21:00:41 dhcp207-237 sshd[30877]: Accepted publickey for sshuser1 from ::1 port 47612 ssh2: RSA 5f:a5:30:d8:6f:13:e1:8c:ef:d8:24:56:71:79:8a:98

# tailf /var/log/sssd/sssd_LDAP.log
(Tue Jan 27 21:00:41 2015) [sssd[be[LDAP]]] [sdap_attrs_add_ldap_attr] (0x2000): Adding sshPublicKey [c3NoLXJzYSBBQUFBQjNOemFDMXljMkVBQUFBREFRQUJBQUFCQVFDNWRHeWNveW1qdmJaR0xpYTRzcEwvZTFhY2d3Um16RFZuVjVNQlFSMmM3SnNlUUkvN0pzejk1dEtEcUhzQjMvS3pER0ZqWGNhNmw3VUFxZEozMTFJbE9MYThlU2NSVENyRHZ2ZkZPbUQveWo0MnpDSTAwekh2OE9oeVdOU25OQUR2NDFoRGZpZjlvc0xkNE81emovQzlVVnJwZnpRYVZoN3BnRnc2TkxVeHhhS0x3akhSb216THQ0cERnWGFCc2cvR3c5azFPeCt5cjNQS2RFRDlGUGtjWVZUcnJzZE1FbGtiaGNQK3lvNFZ4R0pWejlhUVFGMkhBTTluYUhLclE0eWJHclM3aGdQY0dib3puajRLWFI4YUFsd0Zzb1BGSzFHNE5UZENjbUFSVlQ0MmRPM2JDdnNQM3BKbGhVVFR4Zm5FdVlLQzg3ODRqNGdKbWhwWER4YmQgcm9vdEBkaGNwMjA3LTIzNy5sYWIuZW5nLnBuc

Comment 5 errata-xmlrpc 2015-03-05 10:33:36 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.

https://rhn.redhat.com/errata/RHBA-2015-0441.html


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