Skip to content

Commit f3e9cd0

Browse files
committed
Add LDAP integration
1 parent deb318a commit f3e9cd0

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

home/dot_local/etc/sftpgo/sftpgo.json renamed to home/dot_local/etc/sftpgo/sftpgo.json.tmpl

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,5 +412,22 @@
412412
"domain": "",
413413
"templates_path": "templates"
414414
},
415-
"plugins": []
416-
}
415+
"plugins": [
416+
{
417+
"cmd": "/usr/local/bin/sftpgo-plugin-auth",
418+
"type": "auth",
419+
"auth_options": {
420+
"scope": 1
421+
},
422+
"args": [
423+
"serve",
424+
"--ldap-url=ldap://ldap.jumpcloud.com:389",
425+
"--ldap-base-dn=ou=Users,o={{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "JUMPCLOUD_ORG_ID")) }}{{ includeTemplate "secrets/JUMPCLOUD_ORG_ID" | decrypt | trim }}{{ else }}{{ env "JUMPCLOUD_ORG_ID" }},dc=jumpcloud,dc=com",
426+
"--ldap-bind-dn=uid={{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "JUMPCLOUD_BINDDN_USER")) }}{{ includeTemplate "secrets/JUMPCLOUD_BINDDN_USER" | decrypt | trim }}{{ else }}{{ env "JUMPCLOUD_BINDDN_USER" }},ou=Users,o={{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "JUMPCLOUD_ORG_ID")) }}{{ includeTemplate "secrets/JUMPCLOUD_ORG_ID" | decrypt | trim }}{{ else }}{{ env "JUMPCLOUD_ORG_ID" }},dc=jumpcloud,dc=com",
427+
"--ldap-password={{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "JUMPCLOUD_BINDDN_PASSWORD")) }}{{ includeTemplate "secrets/JUMPCLOUD_BINDDN_PASSWORD" | decrypt | trim }}{{ else }}{{ env "JUMPCLOUD_BINDDN_PASSWORD" }}",
428+
"--ldap-search-query=(objectClass=inetOrgPerson)"
429+
],
430+
"auto_mtls": true
431+
}
432+
]
433+
}

software.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8401,6 +8401,8 @@ softwarePackages:
84018401
sftpgo:
84028402
_bin: sftpgo
84038403
_desc: Fully featured and highly configurable SFTP server with optional HTTP/S, FTP/S and WebDAV support - S3, Google Cloud Storage, Azure Blob
8404+
_deps:
8405+
- sftpgo-plugin-auth
84048406
_docs: null
84058407
_github: https://github.com/drakkan/sftpgo
84068408
_home: null
@@ -8413,6 +8415,14 @@ softwarePackages:
84138415
github: github.com/drakkan/sftpgo
84148416
pkg: sftpgo
84158417
yay: sftpgo-bin
8418+
sftpgo-plugin-auth:
8419+
_bin: sftpgo-plugin-auth
8420+
_desc: A plugin for SFTPGo to enable LDAP/Active Directory authentication
8421+
_docs: null
8422+
_github: https://github.com/sftpgo/sftpgo-plugin-auth
8423+
_home: null
8424+
_name: sftpgo-plugin-auth
8425+
github: github.com/sftpgo/sftpgo-plugin-auth
84168426
share:
84178427
_bin: share
84188428
_desc: Quickly share files from your command line

0 commit comments

Comments
 (0)