From 6c711f696f73bc59813f6834ec241aef3b626cbd Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 29 Aug 2015 20:00:53 -0400 Subject: Include documentation in the application --- docs/ldap-authentication.markdown | 234 -------------------------------------- 1 file changed, 234 deletions(-) delete mode 100644 docs/ldap-authentication.markdown (limited to 'docs/ldap-authentication.markdown') diff --git a/docs/ldap-authentication.markdown b/docs/ldap-authentication.markdown deleted file mode 100644 index 53b3d012..00000000 --- a/docs/ldap-authentication.markdown +++ /dev/null @@ -1,234 +0,0 @@ -LDAP authentication -=================== - -Requirements ------------- - -- LDAP extension for PHP -- LDAP server: - - OpenLDAP - - Microsoft Active Directory - - Novell eDirectory - -Workflow --------- - -When the LDAP authentication is activated, the login process work like that: - -1. Try first to authenticate the user by using the database -2. If the user is not found inside the database, a LDAP authentication is performed -3. If the LDAP authentication is successful, by default a local user is created automatically with no password and marked as LDAP user. - -### Differences between a local user and a LDAP user are the following: - -- LDAP users have no local passwords -- LDAP users can't modify their password with the user interface -- By default, all LDAP users have no admin privileges -- To become administrator, a LDAP user must be promoted by another administrator - -The full name and the email address are automatically fetched from the LDAP server. - -Configuration -------------- - -You have to create a custom config file named `config.php` (you can also use the template `config.default.php`). -This file must be stored in the root directory of Kanboard. - -### LDAP bind type - -There is 3 possible ways to browse the LDAP directory: - -#### Anonymous browsing - -```php -define('LDAP_BIND_TYPE', 'anonymous'); -define('LDAP_USERNAME', null); -define('LDAP_PASSWORD', null); -``` - -This is the default value but some LDAP servers don't allow that. - -#### Proxy user - -A specific user is used to browse the LDAP directory. -By example, Novell eDirectory use that method. - -```php -define('LDAP_BIND_TYPE', 'proxy'); -define('LDAP_USERNAME', 'my proxy user'); -define('LDAP_PASSWORD', 'my proxy password'); -``` - -#### User credentials - -This method use the credentials provided by the end-user. -By example, Microsoft Active Directory doesn't allow anonymous browsing by default and if you don't want to use a proxy user you can use this method. - -```php -define('LDAP_BIND_TYPE', 'user'); -define('LDAP_USERNAME', '%s@mydomain.local'); -define('LDAP_PASSWORD', null); -``` - -Here, the `LDAP_USERNAME` is use to define a replacement pattern: - -```php -define('LDAP_USERNAME', '%s@mydomain.local'); - -// Another way to do the same: - -define('LDAP_USERNAME', 'MYDOMAIN\\%s'); -``` - -### Example for Microsoft Active Directory - -Let's say we have a domain `KANBOARD` (kanboard.local) and the primary controller is `myserver.kanboard.local`. -Microsoft Active Directory doesn't allow anonymous binding by default. - -First example with a proxy user: - -```php -