*DEPRECATED, UNMAINTAINED* node.js HTTPS static file server using LDAP for auth
JavaScript Makefile
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
tools
.gitignore
AUTHORS
CHANGES.md
LICENSE.txt
Makefile
README.md
TODO.txt
index.html.in
package.json
server.js

README.md

WARNING: This repo is no longer maintained or used. It was once published as the npm stuff module but ownership of that was transferred to siddharthkp.

A static file server over HTTPS and using LDAP for auth.

Usage:

git clone https://github.com/trentm/stuff.git
cd stuff
npm install

# Create a "config/stuff.json" file, minimally with these entries.
# Note: Yes, I know there are no docs for these yet.
mkdir config
echo '{
  "staticDir": "/path/to/dir/to/serve",
  "sslKeyFile": "/path/to/ssl-key-file.pem",
  "sslCertFile": "/path/to/ssl-cert-file.pem",
  "ldap": {
    "url": "ldaps://ldap.example.com",
    "adminDn": "uid=myapp,ou=users,o=example.com",
    "adminPassword": "mypassword",
    "searchBase": "ou=users,o=example.com",
    "searchFilter": "(uid={{username}})"
  }
}' > config/stuff.json

# Run the server.
node server.js

This is still pretty alpha.

License

MIT. See LICENSE.txt

Configuration

  • ldap.usernameField (String): The field name in a LDAP user record that indicates the username. This is used to log the username for each request log line.

(obviously missing most of the config vars here)