Thread:Extension talk:LDAP Authentication/LDAP Authentication with read-only access for everyone else not in a group

I have LDAP Authentication installed and it is running great. My only problem is, that if you're not a logged in user, you can't see any of the content.

We want an AD group for admins only, and the rest of the company is read only without having an account, so I guess that would be anonymous users?

Wiki Version: 	1.21.1 LDAP Authentication Version: 2.0d

I have this in the LocalSettings.php

Here is my configuration:
 * 1) LDAP Authentication

require_once( "$IP/extensions/LdapAuthentication/LdapAuthentication.php" ); $wgAuth = new LdapAuthenticationPlugin;
 * 1) require_once( "$IP/extensions/LdapAuthentication/LdapAutoAuthentication.php" );
 * 1) $wgLDAPAutoAuthDomain = 'DOMAIN';
 * 2) Remove the domain portion of the displayed username. Example: "DOMAIN\username" to "username"
 * 3) list($dom,$userid) = split('[\]',$_SERVER['REMOTE_USER']);
 * 4) $wgLDAPAutoAuthUsername = $userid;
 * 5) AutoAuthSetup;

$wgLDAPDomainNames = array('DOMAIN'); $wgLDAPServerNames = array('DOMAIN' => "SERVER.DOMAIN.com SERVER.DOMAIN.com" ); $wgLDAPSearchStrings = array('DOMAIN' => 'USER-NAME@DOMAIN');

$wgLDAPUseLDAPGroups = array( "DOMAIN"=>true ); $wgLDAPGroupObjectclass = array("DOMAIN"=>"group"); $wgLDAPGroupAttribute = array("DOMAIN"=>"member"); $wgLDAPGroupNameAttribute = array("DOMAIN"=>"cn"); $wgLDAPGroupsUseMemberOf = array("DOMAIN"=>false); $wgLDAPGroupUseFullDN = array("DOMAIN"=>true); $wgLDAPEncryptionType = array('DOMAIN' => 'clear');

$wgLDAPDebug = 3; $wgDebugLogGroups["ldap"] = "/tmp/debug.log" ;

$wgLDAPGroupSearchNestedGroups = array("DOMAIN"=>false); $wgLDAPBaseDNs = array( "DOMAIN"=>"dc=DOMAIN,dc=com" ); $wgLDAPPreferences = array("DOMAIN"=>array( "email"=>"mail","realname"=>"cn","nickname"=>"samaccountname")); $wgLDAPRequiredGroups = array("DOMAIN"=>array("CN=DOMAIN-wiki-admins,OU=Groups,OU=Information Technology,DC=DOMAIN,DC=com")); $wgLDAPSearchAttributes = array( 'DOMAIN' => 'sAMAccountName' ); $wgLDAPUseLocal = false; $wgLDAPDisableAutoCreate = array( 'DOMAIN' => true);