Samba + OpenLDAP et MediaWiki
Bonjour à tous,
J'ai mis en place un domaine avec Samba couplé à OpenLdap et qui fonctionne très bien!
Dans notre parc, nous avons un MediaWiki (v1.15.1) qui enregistre les comptes en local et nous souhaitons que l'authentification passe par LDAP (afin que les utilisateurs n'aient pas 15 000 mdp).
J'ai suivit quelques tuto m'indiquant de télécharger l’extension Ldapauthentification.php, ce que j'ai fait. J'ai ensuite modifier mon fichier LocalSettings.php afin d'indiquer à MediaWiki de passer par LDAP pour les authentification. En allant sur le Mediawiki via navigateur Web j'ai un espèce de warning qui apparaît en font (warning: missing argument 2 for ldap authentication plugin...) et l'authentification ne fonctionne pas.
Du coup j'ai regardé sur mon serveur MediaWiki si il n'existait pas déjà un Ldapauthentification.php pour ma version, il y en avait un, donc j'ai viré le nouveau et mis celui qui était déjà présent.. Et toujours aucun succès.
Bref je vous montre ma conf dans LocalSettings.php:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
########################################################################################################################
### LDAP Authentication Plugin
#
$wgServer="http://192.168.25.150";
require_once( "$IP/extensions/LDAP/LdapAuthentication.php" );
$wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = array( "test" );
$wgLDAPServerNames = array( "test"=> "192.168.25.149" );;
$wgLDAPEncryptionType = array( "test"=> "clear");
$wgLDAPBaseDNs = array( "test"=>"ou=Users,dc=test,dc=local" );
$wgLDAPSearchAttributes = array( "testADLDAPdomain"=>"sAMAccountName" );
$wgLDAPUseLocal = true; |
Quelqu'un aurait une idée???
De plus j'ai une petite question: imaginons que ça marche, comment se passe la création de compte? Suffit-il de simplement se loguer sous MediaWiki avec les même identifiants/mdp que ceux pour la session au domaine et le compte utilisateur sera automatiquement créé sur la base ou c'est une autre manip????