Topic on Extension talk:LDAP Authentication

Not working with MW 1.27

3
193.33.2.101 (talkcontribs)

I am trying to use it but it is not working. I have download the 1.27 version and 1.26 versión. But nothing change. I commented the lines that some users said:

self::saveDomain( $user, $_SESSION['wsDomain'] );

And still not working... My Localsettings is like this:

require_once( "$IP/extensions/LdapAuthentication/LdapAuthentication.php" );

$wgAuth = new LdapAuthenticationPlugin();

$wgLDAPDomainNames = array( 'domain.ES' );

$wgLDAPServerNames = array('domain.ES' => 'server1.domain.es server2.domain.es');

$wgLDAPUseLocal = true;

$wgLDAPSearchStrings = array( 'domain.ES' => 'USER-NAME@domain.ES' );

$wgLDAPEncryptionType = array('domain.ES'=>'clear' );

Please HELP! :(

193.33.2.101 (talkcontribs)

I finally fixed it!. I updated my MW to 1.27.1 and I did the following steps: 1. At environment variables, in the PATH, I added : ";C:\xampp\php" 2. At C:\xampp\php\php.ini, we uncommented the line ";extenion=php_ldap.dll" 3. I created the folder C:\OpenLDAP\sysconf and inside I created the file ldap.conf with the following content: "TLS_REQCERT never". 4. I restart the server.

I got the error Auto-creation of a local account failed: Automatic account creation is not allowed" when I tried to log in. I added the line "$wgGroupPermissions['*']['autocreateaccount'] = true;" at LocalSettings and it is working!

70.67.200.45 (talkcontribs)

For anyone else with this error:

Do set $wgGroupPermissions['*']['autocreateaccount'] = true;

And then delete your site cookie and refresh the page to get a new session ID before trying again; your session gets an account creation blacklist flag when it fails the first time.

Reply to "Not working with MW 1.27"