Topic on Extension talk:LDAP Authentication

Auto Create and Grant Access

1
Dturtill (talkcontribs)

Is there anyway that I can configure this so that It will auto create accounts and grant them Specific permissions (read \ Write \ Admin) based on what AD group they are in please

I currently have it enabled so that it will allow you to log in if you are in certain groups but then I need to populate the permissions manually

here is current details

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

$wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = array( "test" );
$wgLDAPServerNames = array( "test"=> "srvadfshqgw.test.test.co.uk srvadfsbrtn.test.test.co.uk"  );
$wgLDAPSearchStrings = array("test" => "test\\USER-NAME",);
$wgLDAPEncryptionType = array( "test"=>"ssl" );
#$wgLDAPUseLocal = false;
$wgMinimalPasswordLength = 1;
$wgLDAPBaseDNs = array( "test"=> "DC=test,DC=test,DC=co,DC=uk" );
$wgLDAPSearchAttributes = array( "test"=>"sAMAccountName" );
$wgLDAPRetrievePrefs = array( "test" => "true" );
$wgLDAPPreferences = array('test' => array( 'email' => 'mail','realname' => 'displayname'));
$wgLDAPDebug = 1; //for debugging LDAP;
$wgDebugLogGroups["ldap"] = "/tmp/wikidebuglog-{$wgDBname}.log";
#$wgLDAPRequiredGroups = array( "test"=> array("cn=Bimtest_Admin,ou=Groups for testing,ou=test,dc=test,dc=test,dc=co,dc=uk","cn=Bimtest_Read,ou=Groups for testing,ou=test,dc=test,dc=test,dc=co,dc=uk") );
$wgLDAPGroupUseFullDN = array( "test"=>true );
$wgLDAPGroupsUseMemberOf = array( "test"=>true );
$wgLDAPGroupObjectclass = array( "test"=>"group" );
$wgLDAPGroupAttribute = array( "test"=>"member" );
$wgLDAPGroupSearchNestedGroups = array( "test"=>true );
$wgLDAPGroupNameAttribute = array( "test"=>"cn" );
$wgLDAPGroupSearchNestedGroups = array( "test"=>true );
$wgLDAPActiveDirectory = array( "test" => true);
#$wgLDAPDisableAutoCreate = array(

  'test' => true;

thanks

Reply to "Auto Create and Grant Access"