From 63130fcc1f01c6fc65dcc0770db83a5f81d1a47a Mon Sep 17 00:00:00 2001 From: Marco Dickert Date: Thu, 27 Jul 2017 15:06:56 +0200 Subject: [PATCH] note that the authentication mechanism "file" allows valid htpasswd files --- Authentication.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Authentication.md b/Authentication.md index 381f504..6a5271d 100644 --- a/Authentication.md +++ b/Authentication.md @@ -2,22 +2,21 @@ The IFM provides a simple authentication. Note that the permissions are always t To activate the authentication you have to set `auth` to 1 and set a valid value for `auth_source`. -### authentication mechanisms +## authentication mechanisms Currently there are three supported authentication sources: * inline * file * ldap -#### inline +### inline * syntax: `inline;:` * has to be a password hash which was generated by PHPs `password_hash` function. -#### file +### file * syntax: `file;` -* The file has to be readable and has to contain one line. -* The syntax in the file is analogue to the "inline" syntax: : +* The file should be a valid htpasswd file. It can be generated using the [htpasswd](https://github.com/misterunknown/ifm#run-image) utility. -#### ldap +### ldap * syntax: `ldap;;` * has to be the ip or name of the server. You can optional specify the port separated with a colon. * specifies the rootdn. The IFM prepends "uid=" and the entered username. \ No newline at end of file