diff --git a/Authentication.md b/Authentication.md new file mode 100644 index 0000000..381f504 --- /dev/null +++ b/Authentication.md @@ -0,0 +1,23 @@ +The IFM provides a simple authentication. Note that the permissions are always the same, so you can't have different users with different permissions out-of-the-box. + +To activate the authentication you have to set `auth` to 1 and set a valid value for `auth_source`. + +### authentication mechanisms +Currently there are three supported authentication sources: +* inline +* file +* ldap + +#### inline +* syntax: `inline;:` +* has to be a password hash which was generated by PHPs `password_hash` function. + +#### 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: : + +#### 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