nouveau fichier : configure_ldap
nouveau fichier : local.protected.php
This commit is contained in:
		
							
								
								
									
										5
									
								
								sio2/SISR/08-lldap/configure_ldap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								sio2/SISR/08-lldap/configure_ldap
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
wget https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz #recuperer l'archive du wiki
 | 
			
		||||
chown -R root:root doku #donner les droits 
 | 
			
		||||
chown -R www-data:www-data conf data lib
 | 
			
		||||
apt install php-xml php-ldap
 | 
			
		||||
nano local.protected.php
 | 
			
		||||
							
								
								
									
										13
									
								
								sio2/SISR/08-lldap/local.protected.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								sio2/SISR/08-lldap/local.protected.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
<?php
 | 
			
		||||
$conf['useacl']         = 1;           //enable ACL
 | 
			
		||||
$conf['authtype']       = 'authldap';  //enable this Auth plugin
 | 
			
		||||
$conf['superuser'] = 'admin';
 | 
			
		||||
$conf['plugin']['authldap']['server']      = 'ldap://192.168.0.26:3890'; #IP of your lldap
 | 
			
		||||
$conf['plugin']['authldap']['usertree']    = 'ou=people,dc=labo1,dc=lan';
 | 
			
		||||
$conf['plugin']['authldap']['grouptree']   = 'ou=groups,dc=labo1,dc=lan';
 | 
			
		||||
$conf['plugin']['authldap']['userfilter']  = '(&(uid=%{user})(objectClass=person))';
 | 
			
		||||
$conf['plugin']['authldap']['groupfilter'] = '(&(member=%{dn})(objectClass=groupOfUniqueNames))';
 | 
			
		||||
$conf['plugin']['authldap']['attributes']  = array('cn', 'displayname', 'mail', 'givenname', 'objectclass', 'sn', 'uid', 'memberof');
 | 
			
		||||
$conf['plugin']['authldap']['version']    = 3;
 | 
			
		||||
$conf['plugin']['authldap']['binddn']     = 'cn=admin,ou=people,dc=labo1,dc=lan';
 | 
			
		||||
$conf['plugin']['authldap']['bindpw']     = 'Azerty1+';
 | 
			
		||||
		Reference in New Issue
	
	Block a user