mirror of
				https://github.com/nitnelave/lldap.git
				synced 2023-04-12 14:25:13 +00:00 
			
		
		
		
	line in conf.php to be replaced
This commit is contained in:
		
							parent
							
								
									df381b54c5
								
							
						
					
					
						commit
						b8448fecd8
					
				@ -59,7 +59,13 @@ Click on the blank form "Users in LDAP database", you will get the list of the u
 | 
				
			|||||||
##To enable LDAP login:
 | 
					##To enable LDAP login:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Modify your conf.php in your dolibarr folder in htdocs/conf
 | 
					Modify your conf.php in your dolibarr folder in htdocs/conf
 | 
				
			||||||
Add those lines:
 | 
					Replace
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					// Authentication settings
 | 
				
			||||||
 | 
					$dolibarr_main_authentication='dolibarr'; 
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					with:
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
// Authentication settings
 | 
					// Authentication settings
 | 
				
			||||||
// Only  add "ldap" to only login using the ldap server, or/and "dolibar" to compare with local users. In any case, you need to have the user existing in dolibarr.
 | 
					// Only  add "ldap" to only login using the ldap server, or/and "dolibar" to compare with local users. In any case, you need to have the user existing in dolibarr.
 | 
				
			||||||
@ -71,7 +77,7 @@ $dolibarr_main_auth_ldap_servertype='openldap';
 | 
				
			|||||||
$dolibarr_main_auth_ldap_login_attribute='cn';
 | 
					$dolibarr_main_auth_ldap_login_attribute='cn';
 | 
				
			||||||
$dolibarr_main_auth_ldap_dn='ou=people,dc=example,dc=com';
 | 
					$dolibarr_main_auth_ldap_dn='ou=people,dc=example,dc=com';
 | 
				
			||||||
$dolibarr_main_auth_ldap_admin_login='cn=admin,ou=people,dc=example,dc=com';
 | 
					$dolibarr_main_auth_ldap_admin_login='cn=admin,ou=people,dc=example,dc=com';
 | 
				
			||||||
$dolibarr_main_auth_ldap_admin_pass='secret;
 | 
					$dolibarr_main_auth_ldap_admin_pass='secret';
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
You can add this line to enable debug in case anything is wrong:
 | 
					You can add this line to enable debug in case anything is wrong:
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user