Allow users to ssh to specific user through ldap and stored public keys

Posted by iElectric on Server Fault See other posts from Server Fault or by iElectric
Published on 2010-09-10T22:05:19Z Indexed on 2011/02/01 23:27 UTC
Read the original article Hit count: 256

Filed under:
|
|

I recently setup gitolite, where users access git repository with "gitolite" user through ssh.

Now I would like to integrate that into LDAP. Each user has pubkey in LDAP and if he has "git" objectClass, he would be able to access "gitolite" user through ssh.

I know it's possible to store public keys in LDAP, I'm not sure if it possible to allow authentication in "gitosis" account based on objectClass.

EDIT: To clarify, with objectClass git, user "foobar" would be able to login as "gitolite" through ssh

© Server Fault or respective owner

Related posts about ssh

Related posts about ldap