Issue 32 in nsscache: sshkey patch --

16 views
Skip to first unread message

nssc...@googlecode.com

unread,
May 14, 2014, 6:59:15 PM5/14/14
to nsscache...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 32 by mimiandd...@gmail.com: sshkey patch --
http://code.google.com/p/nsscache/issues/detail?id=32

What version of the product are you using? On what operating system?
nsscache-0.23

Please provide any additional information below.
Wanted something that will spit out sshpublickey from LDAP and
authorizedkeycommand from sshd can look up.

Thought it would be nice to have if someone wants to. verify doesnt work
though.

Attachments:
sshkey.patch 10.2 KB

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

nssc...@googlecode.com

unread,
May 14, 2014, 11:10:58 PM5/14/14
to nsscache...@googlegroups.com
Updates:
Status: Started

Comment #1 on issue 32 by j...@spacepants.org: sshkey patch --
http://code.google.com/p/nsscache/issues/detail?id=32

Thanks for the patch! Do you have an example of how to use it? (E.g. a
snippet for /etc/ssh/sshd_config and /etc/nsscache.conf ?

nssc...@googlecode.com

unread,
May 15, 2014, 12:29:11 PM5/15/14
to nsscache...@googlegroups.com

Comment #2 on issue 32 by mimiandd...@gmail.com: sshkey patch --
http://code.google.com/p/nsscache/issues/detail?id=32

Hi,

nsscache.conf
sshPublicKey should exist in the base ou=people,dc=yourdomain,dc=com

[sshkey]

ldap_base = ou=yourdomain,dc=com

sshd_config should include a line similar to this that will look up the
publickey
AuthorizedKeysCommand /usr/libexec/openssh/getpublickey.sh

where getpublickey looks like this:
awk -F: -v name="$1" '$0 ~ name {print $2}' /etc/sshkey.cache| tr -d "[']"
| sed -e 's/, /\n/g'

This would spit out correct single or multiple publicskeys stored in
sshPublicKey

hope someone finds it useful .

nssc...@googlecode.com

unread,
May 17, 2014, 3:01:31 AM5/17/14
to nsscache...@googlegroups.com
Updates:
Status: Fixed

Comment #3 on issue 32 by j...@spacepants.org: sshkey patch --
http://code.google.com/p/nsscache/issues/detail?id=32

This issue was closed by revision 82d78cfc0f3a.
Reply all
Reply to author
Forward
0 new messages