Thread:Extension talk:LDAP Authentication/LDAP Auto Authetication

Hello,

I have configured the LDAP Authetication/AD and users are able to login using their windows account and password. Now, I will like the mediawiki to have a autologin function so they will not need to enters their credentials.

I have implemented the following require_once( "$IP/extensions/LdapAuthentication/LdapAuthentication.php" ); require_once( "$IP/extensions/LdapAuthentication/LdapAutoAuthentication.php" ); //$wgAuth = new LdapAuthenticationPlugin; #Commented out for autologin $wgLDAPAutoAuthDomain = "MYDOMAIN"; //uncomment for auto login $wgDiff3 = "";

$wgLDAPDomainNames = array( "MYDOMAIN" ); $wgLDAPServerNames = array( "MYDOMAIN" => "MYDOMAINSERVER" ); $wgLDAPSearchStrings = array( "MYDOMAIN" => "USER-NAME@MYDOMAIN" );
 * 1) Authenticate against Active Directory

$wgLDAPEncryptionType = array( "MYDOMAIN" => "clear" ); $wgLDAPUseLocal = false; $wgMinimalPasswordLength = 1;

$wgLDAPBaseDNs = array( 'MYDOMAIN' => 'cn=Users,dc=domain,dc=com' ); $wgLDAPSearchAttributes = array( 'MYDOMAIN' => 'sAMAccountName' ); $wgLDAPGroupUseFullDN = array( "MYDOMAIN"=>true ); $wgLDAPBaseDNs = array( 'MYDOMAIN' => 'dc=MYDOMAIN,dc=example,dc=com' ); $wgLDAPSearchAttributes = array( 'MYDOMAIN' => 'sAMAccountName' ); $wgLDAPGroupsUseMemberOf = array( "MYDOMAIN" => true );

//The objectclass of the groups we want to search for $wgLDAPGroupObjectclass = array( "MYDOMAIN"=>"group" );

//The attribute used for group members $wgLDAPGroupAttribute = array( "MYDOMAIN"=>"member" );

//The naming attribute of the group $wgLDAPGroupNameAttribute = array( "MYDOMAIN"=>"cn" ); $userid = $_SERVER['REMOTE_USER']; $wgLDAPAutoAuthUsername = $userid; AutoAuthSetup;

Once I implemented the above, the domain name in my dropdownlist become empty and the username and password I entered denies my entry into the site although it is correct.

Why is this happening? Please assist! Greatly appreciated it! Thanks!