https://github.com/grahamedgecombe/ssh-ldap-publickey
A program for looking up SSH public keys with LDAP.
https://github.com/grahamedgecombe/ssh-ldap-publickey
c ldap ssh
Last synced: about 1 year ago
JSON representation
A program for looking up SSH public keys with LDAP.
- Host: GitHub
- URL: https://github.com/grahamedgecombe/ssh-ldap-publickey
- Owner: grahamedgecombe
- License: isc
- Created: 2014-08-14T20:24:41.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-08-15T21:20:05.000Z (almost 12 years ago)
- Last Synced: 2025-04-11T02:04:05.383Z (about 1 year ago)
- Topics: c, ldap, ssh
- Language: C
- Homepage: http://grahamedgecombe.com/projects/ssh-ldap-publickey
- Size: 141 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE
Awesome Lists containing this project
README
ssh-ldap-publickey
==================
A program for looking up SSH public keys with LDAP. Inspired by, and (mostly)
compatible with, Andrii Grytsenko's [openssh-ldap-publickey][1] Perl script.
It can be used with OpenSSH to fetch the authorized keys for a user from an LDAP
directory, instead of from the user's `~/.ssh/authorized_keys` file.
Prerequisites
-------------
* C99 compiler
* libldap and liblber
Building
--------
Run `make` to build the project.
Installation
------------
Run `make install` to install the project to `/usr/local`. You can set the
`PREFIX` environment variable to change this to something else e.g. `/usr`. The
`DESTDIR` variable is also supported.
Usage
-----
Ensure your system's `ldap.conf` file is configured correctly, then add the
following directives to your `sshd_config` file:
AuthorizedKeysCommand /path/to/ssh-ldap-publickey
AuthorizedKeysCommandUser nobody
OpenSSH's `AuthorizedKeysCommand` support requires version 6.1 or greater.
Debian Package
--------------
The repository also contains the files for creating a Debian package, which can
be done with the `dpkg-buildpackage` command. Alternatively, I distribute
pre-built versions for the stable i386 and amd64 versions of Debian in my
[personal APT repository][2].
License
-------
ssh-ldap-publickey is available under the [ISC license][3], please see the
`LICENSE` file for the licensing terms.
`ssh-ldap-publickey.schema` was created by Eric Auge as part of his
[OpenSSH-LPK patch][4], which was released under the
[3-clause BSD license][5]. Please see the `debian/copyright` file for the
licensing terms.
[1]: https://github.com/AndriiGrytsenko/openssh-ldap-publickey
[2]: http://grahamedgecombe.com/apt-repository
[3]: http://opensource.org/licenses/ISC
[4]: https://code.google.com/p/openssh-lpk/
[5]: http://opensource.org/licenses/BSD-3-Clause