sftpgo-ldap-http-server v0.2
This is a related project to the sftpgo-ldap
one (that project can be used for regular web server scenarios, or alternatively via the PHP CLI).
This project actually integrates in the amphp/http-server
allowing it to function as a very simple HTTP server, that way you can run it locally on an SFTPGo server, and tie it to the external_auth_hook
parameter (e.g. by default this project will run on Port 9001 and will be accessible via http://localhost:9001/
.
Furthermore, the PHP runtime, along with the LDAP and Sockets extensions have been embedded into an EXE file generated by the ExeOutput for PHP product, making things a bit more portable).
This allows you to take the ZIP below and bring it onto your SFTPGo server pretty easily. Just unzip the file into a directory on your SFTPGo server and open up a command prompt in that same directory you extracted the files into, and you can run sftpgo-ldap-http-server.exe
directly to start up an HTTP server (make sure that you have copied configuration.example.php
first so that you have a configuration.php
file present in the Data
folder included in the ZIP.
(There is also an OpenLDAP folder present in the ZIP file...you may move it to your C:\
root folder to help avoid TLS-related issues mentioned in the README...if you've already done this then you can safely delete/ignore that directory after unzipping).