1
0
mirror of https://github.com/misterunknown/ifm.git synced 2025-08-17 21:31:29 +02:00

Adding new ldap filter feature and example

Marco Dickert
2019-12-05 12:01:50 +01:00
parent 0f54f1b622
commit 518d894772

@@ -17,6 +17,12 @@ Currently there are three supported authentication sources:
* The file should be a valid htpasswd file. It can be generated using the [htpasswd](https://httpd.apache.org/docs/current/programs/htpasswd.html) utility.
### ldap
* syntax: `ldap;<SERVER>;<ROOTDN>`
* syntax: `ldap;<SERVER>;<ROOTDN>[;<FILTER>]`
* `<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.
* `<FILTER>` is optional and specifies a common ldap filter string, which can for example be used to specify a group or something
full ldap example:
```
ldap;cn=accounts,dc=company,dc=com;(&(!(nsAccountLock=TRUE))(memberOf=cn=web_editors,cn=groups,cn=accounts,dc=example,dc=com))
```