yan(a)seiner.com writes:
I am trying to get the LDAPAuthentication
extension working.
My latest attempt:...
Here are some other configuration variables you might need.
// Search string for username, if you're using domain\user format in AD
$wgLDAPSearchStrings = array( 'HPM' => "HPM\\USER-NAME" );
// MediaWiki uses capitalized usernames; perhaps AD uses lowercase?
$wgLDAPLowerCaseUsername = array( 'HPM' => true );
// If you're connecting to AD via SSL
$wgLDAPEncryptionType = array( 'HPM' => "ssl" );
That worked:
require_once ("$IP/extensions/LdapAuthentication/LdapAuthentication.php");
$wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = array( 'HPM');
$wgLDAPServerNames = array( 'HPM' => 'xxx.yyy.com');
$wgLDAPSearchAttributes = array( 'HPM' => 'sAMAccountName');
$wgLDAPBaseDNs = array( 'HPM' => 'dc=hpm,dc=net');
$wgLDAPEncryptionType = array( 'HPM' => 'ssl');
$wgLDAPSearchStrings = array( 'HPM' => "HPM\\USER-NAME" );
$wgLDAPPreferences = array('HPM' => array( 'email' =>
'mail','realname' =>
'displayname'));
$wgMinimalPasswordLength = 1;
Now, one more question:
My old users can no longer log in. This means I no longer have an admin
user. Is there any way I can use both the AD users and local users?