]> source.dussan.org Git - gitblit.git/commit
Retrieve public SSH keys from LDAP.
authorFlorian Zschocke <florian.zschocke@devolo.de>
Fri, 25 Nov 2016 17:21:27 +0000 (18:21 +0100)
committerFlorian Zschocke <florian.zschocke@devolo.de>
Tue, 29 Nov 2016 11:01:42 +0000 (12:01 +0100)
commitf639d966cb5e7026cb30e6b25be55fb681feb896
tree5fd7523733eefbcf976132c458f195ef7acf9e5d
parent967c2422591b70a82bd8fc991e87088e880f5024
Retrieve public SSH keys from LDAP.

Add new class `LdapPublicKeyManager` which retrieves public SSH keys
from LDAP.

The attribute can be configured with the new configuration option
`realm.ldap.sshPublicKey`. The setting can be a simple attribute name,
like `sshPublicKey`, or an attribute name and a prefix for the value,
like `altSecurityIdentities:SshKey`, in which case attributes are selected
that have the name `altSecurityIdentities` and whose values start with
`SshKey:`.
src/main/distrib/data/defaults.properties
src/main/java/com/gitblit/auth/LdapAuthProvider.java
src/main/java/com/gitblit/ldap/LdapConnection.java
src/main/java/com/gitblit/transport/ssh/LdapKeyManager.java [new file with mode: 0644]
src/test/java/com/gitblit/tests/LdapConnectionTest.java
src/test/java/com/gitblit/tests/LdapPublicKeyManagerTest.java [new file with mode: 0644]