Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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

Summary: Enable OpenSSH-LPK support by default
Product: Red Hat Enterprise Linux 7 Reporter: Jakub Hrozek <jhrozek>
Component: sssdAssignee: Jakub Hrozek <jhrozek>
Status: CLOSED ERRATA QA Contact: Kaushik Banerjee <kbanerje>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: dpal, grajaiya, jgalipea, lslebodn, mkosek, pbrezina, preichl
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sssd-1.12.1-1.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-05 10:33:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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