<div dir="ltr"><div>Hi everyone,<br><br>I found this thread about openldap served ssh keys and <span class="">sssd</span> integration :<br><a href="https://lists.fedorahosted.org/pipermail/sssd-users/2013-March/000442.html" target="_blank">https://lists.fedorahosted.org/pipermail/<span class="">sssd</span>-users/2013-March/000442.html</a><br>

<br></div>then I subscribed to this list :-)<br><div><br>I try to make that work but I stay stick : could you help ?<br><br></div><div>Here is where I am:<br></div><div><div><br></div><div>1- I have loaded &quot;openssh-lpk_openldap.schema&quot; in openldap<br>

<br>2- I have configured my account in the directory to know about<br>    &quot;sshPublicKey&quot; attribute, and I have inserted my key :<br><br># ldapsearch -x -h localhost -b dc=guillard,dc=corp  &quot;(uid=olivier)&quot; sshPublicKey<br>
<br>
dn: uid=olivier,dc=guillard,dc=corp<br>sshPublicKey: ssh-dss AAAAB3NzaC1kc3MAAAEBAKXF<br>.....<br>BaO51jw8RUAt1u5QDa3UQiQ6X8Vq0j2MUh3LeXfk= guillard@corp<br><br></div><div>3- I also have configured <span class="">sssd</span> to tell him to look up for ssh keys in ldap:<br>
<br># cat /etc/<span class="">sssd</span>/<span class="">sssd</span>.conf:<br><br>   [domain/default]<br><br></div><div>    ... (the conf is correct: everything works fine for login§/passwords for example) <br><br></div><div>
    # I have added this in the default/section<br></div><div>
   ldap_user_ssh_public_key = True<br><br></div><div>   [<span class="">sssd</span>]<br>   services = nss, pam, ssh<br>   domains = default<br><br>   [nss]<br><br>   [pam]<br><br>   [ssh]<br><br></div><div>4- I have restarted sssd (I get no error)<br>
</div><div><br>And now I&#39;m stuck<br>
</div><div><br># /usr/bin/sss_ssh_authorizedkeys olivier<br><br></div><div>  -&gt; does not return anything<br></div><div><br></div><div>Anyone could help : what have I forgotten ?<br><br></div><div>Any indication about what I should add in ssh_config to tell<br>
sshd to look for keys in sssd cache would also help.<br><br></div><div>Thanks !<br></div><br><div>---<br></div>Olivier</div></div>