mirror of
https://github.com/misterunknown/ifm.git
synced 2025-10-04 11:01:34 +02:00
note that the authentication mechanism "file" allows valid htpasswd files
@@ -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`.
|
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:
|
Currently there are three supported authentication sources:
|
||||||
* inline
|
* inline
|
||||||
* file
|
* file
|
||||||
* ldap
|
* ldap
|
||||||
|
|
||||||
#### inline
|
### inline
|
||||||
* syntax: `inline;<USERNAME>:<PASSWORDHASH>`
|
* syntax: `inline;<USERNAME>:<PASSWORDHASH>`
|
||||||
* <PASSWORDHASH> has to be a password hash which was generated by PHPs `password_hash` function.
|
* <PASSWORDHASH> has to be a password hash which was generated by PHPs `password_hash` function.
|
||||||
|
|
||||||
#### file
|
### file
|
||||||
* syntax: `file;<PATH_TO_FILE>`
|
* syntax: `file;<PATH_TO_FILE>`
|
||||||
* The file has to be readable and has to contain one line.
|
* The file should be a valid htpasswd file. It can be generated using the [htpasswd](https://github.com/misterunknown/ifm#run-image) utility.
|
||||||
* The syntax in the file is analogue to the "inline" syntax: <USERNAME>:<PASSWORDHASH>
|
|
||||||
|
|
||||||
#### ldap
|
### ldap
|
||||||
* syntax: `ldap;<SERVER>;<ROOTDN>`
|
* syntax: `ldap;<SERVER>;<ROOTDN>`
|
||||||
* <SERVER> has to be the ip or name of the server. You can optional specify the port separated with a colon.
|
* <SERVER> has to be the ip or name of the server. You can optional specify the port separated with a colon.
|
||||||
* <ROOTDN> specifies the rootdn. The IFM prepends "uid=" and the entered username.
|
* <ROOTDN> specifies the rootdn. The IFM prepends "uid=" and the entered username.
|
Reference in New Issue
Block a user