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