Created
March 5, 2017 22:25
-
-
Save clayfreeman/09617f32a7f4645c1f1bd40d9956c1d3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/src/providers/ad/ad_opts.c | |
+++ b/src/providers/ad/ad_opts.c | |
@@ -215,7 +215,7 @@ | |
{ "ldap_user_nds_login_disabled", NULL, SYSDB_NDS_LOGIN_DISABLED, NULL }, | |
{ "ldap_user_nds_login_expiration_time", NULL, SYSDB_NDS_LOGIN_EXPIRATION_TIME, NULL }, | |
{ "ldap_user_nds_login_allowed_time_map", NULL, SYSDB_NDS_LOGIN_ALLOWED_TIME_MAP, NULL }, | |
- { "ldap_user_ssh_public_key", NULL, SYSDB_SSH_PUBKEY, NULL }, | |
+ { "ldap_user_ssh_public_key", "sshPublicKey", SYSDB_SSH_PUBKEY, NULL }, | |
{ "ldap_user_auth_type", NULL, SYSDB_AUTH_TYPE, NULL }, | |
{ "ldap_user_certificate", NULL, SYSDB_USER_CERT, NULL }, | |
SDAP_ATTR_MAP_TERMINATOR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Introduction
This patch modifies SSSD to be able to query Active Directory for the "sshPublicKey" user attribute.
As a result, the
sss_ssh_authorizedkeys
command will work with Active Directory.Usage
Run the following commands as
root
to recompile SSSD with this patch: