{"id":18596625,"url":"https://github.com/sergiotocalini/ldapkeys","last_synced_at":"2025-05-16T13:09:05.596Z","repository":{"id":83054466,"uuid":"66119189","full_name":"sergiotocalini/ldapkeys","owner":"sergiotocalini","description":"LDAP SSH Keys","archived":false,"fork":false,"pushed_at":"2019-02-11T09:25:32.000Z","size":28,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-17T23:11:50.793Z","etag":null,"topics":["authorized-keys","ldap-ssh-keys","openssh-server"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sergiotocalini.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-19T23:58:19.000Z","updated_at":"2023-05-28T23:33:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"cd9e0a48-e49c-406e-b57a-952a6142b7b2","html_url":"https://github.com/sergiotocalini/ldapkeys","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergiotocalini%2Fldapkeys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergiotocalini%2Fldapkeys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergiotocalini%2Fldapkeys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergiotocalini%2Fldapkeys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sergiotocalini","download_url":"https://codeload.github.com/sergiotocalini/ldapkeys/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254535828,"owners_count":22087399,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authorized-keys","ldap-ssh-keys","openssh-server"],"created_at":"2024-11-07T01:25:09.146Z","updated_at":"2025-05-16T13:09:05.554Z","avatar_url":"https://github.com/sergiotocalini.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ldapkeys\nSSH LDAP keys\n\nInstallation\n------------\nDefault variables:\n\nNAME|VALUE\n----|-----\nHOST|localhost\nBINDDN|cn=binduser,ou=auth,dc=example,dc=com\nBINDPW|xxxxxx\nBASEDN|ou=people,dc=example,dc=com\nOPTIONS|\nATTR_USER|uid\nATTR_KEYS|sshPublicKey\nATTR_FILTER|\nSED|`which sed`\nLDAPSEARCH|`which ldapsearch`\nCACHE_DIR|/etc/ldap/keys\nCACHE_TTL|5\nKEYS_OWNER|nobody\n\n```\n#~ git clone https://github.com/sergiotocalini/ldapkeys.git\n#~ ./ldapkeys/install.sh \"${HOST}\" \"${BINDDN}\" \"${BINDPW}\" \"${BASEDN}\" \\\n                         \"${OPTIONS}\" \"${ATTR_USER}\" \"${ATTR_KEYS}\" \\\n                         \"${ATTR_FILTER}\" \"${SED}\" \"${LDAPSEARCH}\" \\\n                         \"${CACHE_DIR}\" \"${CACHE_TTL}\" \"${KEYS_OWNER}\"\n```\n\nConfiguration\n-------------\n```\n#~ cat /etc/ldap/ldapkeys.conf\nHOST=\"localhost\"\nBINDDN=\"cn=binduser,ou=auth,dc=example,dc=com\"\nBINDPW=\"xxxxxx\"\nBASEDN=\"ou=people,dc=example,dc=com\"\nOPTIONS=\"\"\nATTR_USER=\"uid\"\nATTR_KEYS=\"sshPublicKey\"\nATTR_FILTER=\"\"\nSED=\"/bin/sed\"\nLDAPSEARCH=\"/usr/bin/ldapsearch\"\nCACHE_DIR=\"/etc/ldap/keys\"\nCACHE_TTL=\"5\"\nKEYS_OWNER=\"nobody\"\n#~\n```\n\nExecution\n---------\n```\n#~ /usr/local/bin/ldapkeys -h\nUsage: ldapkeys [Options]\n\nOptions:\n  -h            Displays this help message.\n  -u ARG(str)   Username.\n  -c ARG(str)   ldapkeys configuration file (default=/etc/ldap/ldapkeys.conf).\n  -v            Show the script version.\n\nPlease send any bug reports to sergiotocalini@gmail.com\n#~\n```\n\n```\n#~ /usr/local/bin/ldapkeys -u ${USER}\n...\n#~\n```\n\nOpenSSH\n-------\n\n```\n#~ cat /etc/ssh/sshd_config\n...\nAuthorizedKeysCommand       /usr/local/bin/ldapkeys\nAuthorizedKeysCommandUser   nobody\n...\n#~\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergiotocalini%2Fldapkeys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsergiotocalini%2Fldapkeys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergiotocalini%2Fldapkeys/lists"}