Thread:Extension talk:LDAP Authentication/Log in / create account screen - 'Login error Incorrect password entered. Please try again.'/reply (5)

Hi Michael - thanks again for taking a look. I've recapped on what is going on again - but still can't write to the log file???

To summarize again where I am - still getting the same error message on the create account screen: 'Login error - Incorrect password entered. Please try again.'


 * Not sure what this is necessarily in reference to? Is it the 2 passwords the I enter to create the account or is it ldap trying to bind to a password?

Current setup of LocalSettings.php -

error_reporting(-1); ini_set('display_errors',1);

$wgLDAPDebug = 3; //for debugging LDAP $wgShowExceptionDetails = true; //for debugging MediaWiki

$wgDebugLogGroups["LDAP"] = "/var/www/html/wiki/wikidebug.log"; $wgDebugLogFile = "/var/www/html/wiki/wikidebug-{$wgDBname}.log";

require_once 'extensions/LdapAuthentication/LdapAuthentication.php'; $wgAuth = new LdapAuthenticationPlugin; $wgLDAPDomainNames = array("xxxxx.net"); $wgLDAPServerNames = array("xxxxx.net" => "ldap.xxxxx.net"); $wgLDAPUseLocal = false; $wgLDAPEncryptionType = array("xxxxx.net" => "clear"); $wgLDAPPort = array("xxxxx.net" => 389); $wgLDAPSearchAttributes = array("xxxxx.net" => "cn"); $wgLDAPBaseDNs = array("xxxxx.net" => "dc=xxxxx,dc=net");

- End of file

Warning: ldap_start_tls: Unable to start TLS: Protocal error in /var/www/html/wiki/extensions/LdapAuthentication/LdapAuthentication.php on line 622
 * Note: I did receive an error msg to the screen:


 * So - I changed "tls" to "clear" and that error went away.

The file has same permissions as: wikidebug-{$wgDBname}.log  as shown:
 * What I don't get is why I'm still not seeing log messages written to wikidebug.log ???

ls -lZ -rw-r--r--. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 wikidebug-my_wiki.log -rw-r--r--. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 wikidebug.log

ls -lt -rw-r--r--. 1 apache apache 93849 Sep 15 16:06 wikidebug-my_wiki.log -rw-r--r--. 1 apache apache 12744 Sep 15 16:03 LocalSettings.php -rw-r--r--. 1 apache apache     0 Sep 12 09:59 wikidebug.log

= separate test file
========

<?php $ldaphost = 'ldap://ldap.xxxxx.net'; $ldapport = 389; $ds = ldap_connect($ldaphost, $ldapport) or die("Could not connect to $ldaphost"); ldap_set_option($ldapconn, LDAP_OPT_PROTOCOL_VERSION, 3); ldap_set_option($ldapconn, LDAP_OPT_REFERRALS, 0); //ldap_set_option($ds, LDAP_OPT_DEBUG_LEVEL, 7); if ($ds) {   $username = "cn=xxxxx,ou=Roles,dc=xxxxx,dc=net"; $upasswd = "passwordhere";

$ldapbind = ldap_bind($ds, $username, $upasswd);

if ($ldapbind) {print "Congratulations! $username is authenticated.";} else {print "Access Denied!";}

} ?> Output of this test page:

Congratulations! cn=xxxxx,ou=Roles,dc=xxxxx,dc=net is authenticated.

- so I presume then Apache and php ldap modules are working properly.
 * NOTE: This tells me that I'm able to access the ldap server via apache and authenticate

=
==================================

Any help - direction - advice is GREATLY appreciated!