Closed Macleykun closed 1 year ago
Hello,
this is not a bug, just a configuration issue, please check the plugin documentation again. I'm sorry but we no longer provide free support
Understandable! Is it possible to maybe provide an example for the plugin section in the full configuration example? Or that the issue can be left open in the hope someone else can tell me what mistake I’ve made in the config?
Start a discussion then. But you should be able to fix your problem by simply reading the plugin doc
{
"data_provider": {
"users_base_dir": "/srv/sftpgo/sftpgo/data"
},
"plugins": [
{
"cmd": "/usr/local/bin/sftpgo-plugin-auth",
"type": "auth",
"auth_options": {
"scope": 1
},
"args": [
"serve",
"--ldap-url=ldap://192.168.15.168:389",
"--ldap-base-dn=DC=mcdonalds,DC=local",
"--ldap-bind-dn=CN=Wesley de Vree,CN=Users,DC=mcdonalds,DC=local",
"--ldap-password=TestWindowsAD!2023",
"--ldap-search-query=(&(objectClass=user)(sAMAccountType=805306368)(sAMAccountName=%username%))",
"--skip-tls-verify=1"
],
"auto_mtls": true
}
]
}
Managed to find out how it worked, leaving this here (and a few other places) so others can copy paste the example and edit it to their liking.
Looking forward to play futher with sftpgo!
⚠️ This issue respects the following points: ⚠️
Bug description
When setting up sftpgo with the auth plugin i noticed the following error which i believe may be bug. When i try to use the sftpgo-plugin-auth i see this in my docker container:
I am using a Ryzen CPU on my host machine > VMware workstation VM reports x86_64 > the container itself reports also x86_64.
The reason why i report this as a bug, is that i use the drakkan/sftpgo:v2.5.4-plugins container and only when providing the configuration for the sftpgo-plugin-auth i recieve this error. It also runs fine withoud specifying the sftpgo-plugin-auth information.
Steps to reproduce
docker run --name some-sftpgo \ -p 443:8080 \ -p 2022:2022 \ --mount type=bind,source=/my/own/sftpgodata,target=/srv/sftpgo \ --mount type=bind,source=/my/own/sftpgohomeconfig,target=/var/lib/sftpgo \ --mount type=bind,source=${PWD}/mcdonalds-ssl,target=/tmp \ --mount type=bind,source=${PWD}/sftpgo.json,target=/etc/sftpgo/sftpgo.json \ -e SFTPGO_GRACE_TIME=30 \ -d "drakkan/sftpgo:v2.5.4-plugins"
Expected behavior
The container should start with the plugin chosen to be loaded by sftpgo.
SFTPGo version
2.5.4
Data provider
local (soon AD)
Installation method
Community Docker image
Configuration
Relevant log output
What are you using SFTPGo for?
Private user, home usecase (home backup/VPS), Medium business
Additional info
I'm running this local as a PoC and want to introduce it into the company. I've setup my own AD and CA for testing purposes locally. Edit-1: I noticed that there was a warning about the way i passed the args. I found out i had to change from:
"--ldap-url ldap://192.168.15.168:389",
to"--ldap-url=ldap://192.168.15.168:389",
format.