Skip to content

Tool to pull a list of SSH public keys out of an LDAP directory

License

Notifications You must be signed in to change notification settings

wpi-acm/ssh-ldap-authorizedkeys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ssh-ldap-authorizedkeys

Go program to pull authorized keys out of LDAP. Expects two command-line arguments, the first being the location of a config file like the provided config.toml.example.

The second command line argument should be the attribute to filter by. This tool assumes the following:

  1. All SSH keys are listed under the sshPublickey attribute(s)

Example Usage

./ssh-ldap-authorizedkeys ./config.toml exampleUsername

In sshd_config, you might configure it as:

AuthorizedKeysCommand /usr/bin/ssh-ldap-authorizedkeys /etc/ssh-ldap.toml %u
AuthorizedKeysCommandUser nobody

About

Tool to pull a list of SSH public keys out of an LDAP directory

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages