Fixed LDAP authentication + unified app config options: authenticate_settings, security and ldap

This commit is contained in:
Dmitry Khomutov 2017-01-22 18:05:24 +07:00
commit f3bdeb2493
No known key found for this signature in database
GPG key ID: 7EB36C9576F9ECB9
17 changed files with 105 additions and 245 deletions

View file

@ -9,10 +9,12 @@ username/password pair and have forgotten the password, and if the server is on
the `forgot password` email, then editing the config file manually would be handy. To do so, just edit the `php-censor`
section in the config file (which is in [yaml format](https://en.wikipedia.org/wiki/YAML)), and add
php-censor:
authentication_settings:
state: 1
user_id: 1
```yml
php-censor:
security:
disable_auth: true
default_user_id: 1
```
where you can get the user_id by logging into the mysql database and selecting your user ID from the `users` table in
where you can get the `default_user_id by` logging into the mysql database and selecting your user ID from the `users` table in
the PHP Censor database.