#!/usr/bin/perl -w
# This script (sophomorix-test-workflow-schoolisolation) is maintained by Rüdiger Beck
# It is Free Software (License GPLv3)
# If you find errors, contact the author
# jeffbeck@web.de  or  jeffbeck@linuxmuster.net

# modules
use strict;
use Getopt::Long;
Getopt::Long::Configure ("bundling");
use Sophomorix::SophomorixBase qw(
                                 print_line
                                 print_title
                                 check_options
                                 );
use Sophomorix::SophomorixSambaAD qw(
                                 AD_bind_admin
                                 AD_unbind_admin
                                 AD_dns_get
                                 AD_object_search
                                    );
use Sophomorix::SophomorixTest qw(
                                 AD_object_nonexist
                                 AD_dn_nonexist
                                 AD_test_object
                                 directory_tree_test
                                 start_fs_test
                                 end_fs_test
                                 run_command
                                 AD_test_session_count
                                 ACL_test
                                 file_test_lines
                                 AD_user_timeupdate
                                 AD_get_samaccountname
                                 );

$Conf::log_level=1;
my $add_check=0;
my $modify_1_check=0;
my $modify_2_check=0;
my $modify_3_check=0;
my $modify_4_check=0;
my $modify_5_check=0;
my $modify_6_check=0;
my $workflow_10_check=0;
my $workflow_11_check=0;
my $workflow_12_check=0;
my $workflow_13_check=0;
my $workflow_14_check=0;
my $workflow_15_check=0;
my $workflow_16_check=0;
my $workflow_17_check=0;
my $workflow_18_check=0;
my $workflow_19_check=0;
my $workflow_20_check=0;
my $workflow_21_check=0;
my $kill_projects_check=0;

my $add_do=0;
my $modify_1_do=0;
my $modify_2_do=0;
my $modify_3_do=0;
my $modify_4_do=0;
my $modify_5_do=0;
my $modify_6_do=0;
my $workflow_10_do=0;
my $workflow_11_do=0;
my $workflow_12_do=0;
my $workflow_13_do=0;
my $workflow_14_do=0;
my $workflow_15_do=0;
my $workflow_16_do=0;
my $workflow_17_do=0;
my $workflow_18_do=0;
my $workflow_19_do=0;
my $workflow_20_do=0;
my $workflow_21_do=0;
my $kill_adminclasses_1_do=0;
my $kill_adminclasses_2_do=0;
my $kill_projects_do=0;
my $kill_projects_test=0;

my $full=0;
my $help=0;
my $all_options="";
my $json=0;

my $ntacl=1;
my $nontacl=0;
my %fs_test_result=();

my $testopt=GetOptions(
           "help|h" => \$help,
           "verbose|v+" => \$Conf::log_level,
           "json|j+" => \$json,
           "nontacl|n" => \$nontacl,
           "add-check" => \$add_check,
           "add-do" => \$add_do,
           "modify-1-check" => \$modify_1_check,
           "modify-2-check" => \$modify_2_check,
           "modify-3-check" => \$modify_3_check,
           "modify-4-check" => \$modify_4_check,
           "modify-5-check" => \$modify_5_check,
           "modify-6-check" => \$modify_6_check,
           "workflow-10-check" => \$workflow_10_check,
           "workflow-11-check" => \$workflow_11_check,
           "workflow-12-check" => \$workflow_12_check,
           "workflow-13-check" => \$workflow_13_check,
           "workflow-14-check" => \$workflow_14_check,
           "workflow-15-check" => \$workflow_15_check,
           "workflow-16-check" => \$workflow_16_check,
           "workflow-17-check" => \$workflow_17_check,
           "workflow-18-check" => \$workflow_18_check,
           "workflow-19-check" => \$workflow_19_check,
           "workflow-20-check" => \$workflow_20_check,
           "workflow-21-check" => \$workflow_21_check,
           "modify-1-do" => \$modify_1_do,
           "modify-2-do" => \$modify_2_do,
           "modify-3-do" => \$modify_3_do,
           "modify-4-do" => \$modify_4_do,
           "modify-5-do" => \$modify_5_do,
           "modify-6-do" => \$modify_6_do,
           "workflow-10-do" => \$workflow_10_do,
           "workflow-11-do" => \$workflow_11_do,
           "workflow-12-do" => \$workflow_12_do,
           "workflow-13-do" => \$workflow_13_do,
           "workflow-14-do" => \$workflow_14_do,
           "workflow-15-do" => \$workflow_15_do,
           "workflow-16-do" => \$workflow_16_do,
           "workflow-17-do" => \$workflow_17_do,
           "workflow-18-do" => \$workflow_18_do,
           "workflow-19-do" => \$workflow_19_do,
           "workflow-20-do" => \$workflow_20_do,
           "workflow-21-do" => \$workflow_21_do,
           "kill-projects-check" => \$kill_projects_check,
           "kill-adminclasses-1-do" => \$kill_adminclasses_1_do,
           "kill-adminclasses-2-do" => \$kill_adminclasses_2_do,
           "kill-projects-do" => \$kill_projects_do,
           "kill-projects-test" => \$kill_projects_test,
           "full|f" => \$full,
          );

# Prüfen, ob Optionen erkannt wurden, sonst Abbruch
&check_options($testopt);

if ($nontacl==1){
    $ntacl=0;
}

if ($Conf::log_level==1){
    $all_options="";
} elsif ($Conf::log_level==2){
    $all_options="-v";
} elsif ($Conf::log_level==3){
    $all_options="-vv";
}

if ($json==0){
    # nothing to do
} elsif ($json==1){
    $all_options=$all_options." -j";
} elsif ($json==2){
    $all_options=$all_options." -jj";
} elsif ($json==3){
    $all_options=$all_options." -jjj";
} 

my ($ldap,$root_dse) = &AD_bind_admin();
my $root_dns=&AD_dns_get($root_dse);

# --help
if ($help==1) {
   # Scriptname ermitteln
   my @list = split(/\//,$0);
   my $scriptname = pop @list;
   # Befehlsbeschreibung
   print('
sophomorix-test-workflow-schoolisolation tests the usual workflow of new user files.
Some identical users in different schools must be managed seperately.

New user files will overwrite existing user files.  

Run sophomorix-test-workflow-schoolisolation ONLY on test servers
without existing users and groups.

Options
  -h  / --help

Full automated test:

  -f, --full 
   full test (adding, modifying, killing users)

Step by step Test:

  Adding users:
      sophomorix-test-workflow-schoolisolation --add-check
      sophomorix-test-workflow-schoolisolation --add-do
  Work with the users: update school bsz
      sophomorix-test-workflow-schoolisolation --modify-1-check
      sophomorix-test-workflow-schoolisolation --modify-1-do
  Work with the users: update school default-school
      sophomorix-test-workflow-schoolisolation --modify-2-check
      sophomorix-test-workflow-schoolisolation --modify-2-do
  Work with the users: update school bsz
      sophomorix-test-workflow-schoolisolation --modify-3-check
      sophomorix-test-workflow-schoolisolation --modify-3-do
  Work with the users: update school default-school
      sophomorix-test-workflow-schoolisolation --modify-4-check
      sophomorix-test-workflow-schoolisolation --modify-4-do
  Work with the users: bsz.extrastudents.csv in school bsz
      sophomorix-test-workflow-schoolisolation --modify-5-check
      sophomorix-test-workflow-schoolisolation --modify-5-do
  Work with the users: extrastudents.csv in school default-school
      sophomorix-test-workflow-schoolisolation --modify-6-check
      sophomorix-test-workflow-schoolisolation --modify-6-do

  Workflow with the users: bsz
      sophomorix-test-workflow-schoolisolation --workflow-10-check
      sophomorix-test-workflow-schoolisolation --workflow-10-do
  Workflow with the users: default-school
      sophomorix-test-workflow-schoolisolation --workflow-11-check
      sophomorix-test-workflow-schoolisolation --workflow-11-do
  Workflow with the users: bsz
      sophomorix-test-workflow-schoolisolation --workflow-12-check
      sophomorix-test-workflow-schoolisolation --workflow-12-do
  Workflow with the users: default-school
      sophomorix-test-workflow-schoolisolation --workflow-13-check
      sophomorix-test-workflow-schoolisolation --workflow-13-do
  Workflow with the users: bsz
      sophomorix-test-workflow-schoolisolation --workflow-14-check
      sophomorix-test-workflow-schoolisolation --workflow-14-do
  Workflow with the users: default-school
      sophomorix-test-workflow-schoolisolation --workflow-15-check
      sophomorix-test-workflow-schoolisolation --workflow-15-do
  Workflow with the users: bsz
      sophomorix-test-workflow-schoolisolation --workflow-16-check
      sophomorix-test-workflow-schoolisolation --workflow-16-do
  Workflow with the users: default-school
      sophomorix-test-workflow-schoolisolation --workflow-17-check
      sophomorix-test-workflow-schoolisolation --workflow-17-do
  Workflow with the users: bsz
      sophomorix-test-workflow-schoolisolation --workflow-18-check
      sophomorix-test-workflow-schoolisolation --workflow-18-do
  Workflow with the users: default-school
      sophomorix-test-workflow-schoolisolation --workflow-19-check
      sophomorix-test-workflow-schoolisolation --workflow-19-do
  Workflow with the users: bsz
      sophomorix-test-workflow-schoolisolation --workflow-20-check
      sophomorix-test-workflow-schoolisolation --workflow-20-do
  Workflow with the users: default-school
      sophomorix-test-workflow-schoolisolation --workflow-21-check
      sophomorix-test-workflow-schoolisolation --workflow-21-do  

  Kill classes in bsz and test:
      sophomorix-test-workflow-schoolisolation --kill-adminclasses-1-do
  Kill classes in default-school and test:
      sophomorix-test-workflow-schoolisolation --kill-adminclasses-1-do

');
   exit;
}




############################################################
# Check preliminaries
############################################################

&run_command("mkdir -p /var/lib/sophomorix/check-result");

# --full
if ($full==1){
    $add_check=1;
    $add_do=1;
    $modify_1_check=1;
    $modify_1_do=1;
    $modify_2_check=1;
    $modify_2_do=1;
    $modify_3_check=1;
    $modify_3_do=1;
    $modify_4_check=1;
    $modify_4_do=1;
    $modify_5_check=1;
    $modify_5_do=1;
    $modify_6_check=1;
    $modify_6_do=1;
    $workflow_10_check=1;
    $workflow_10_do=1;
    $workflow_11_check=1;
    $workflow_11_do=1;
    $workflow_12_check=1;
    $workflow_12_do=1;
    $workflow_13_check=1;
    $workflow_13_do=1;
    $workflow_14_check=1;
    $workflow_14_do=1;
    $workflow_15_check=1;
    $workflow_15_do=1;
    $workflow_16_check=1;
    $workflow_16_do=1;
    $workflow_17_check=1;
    $workflow_17_do=1;
    $workflow_18_check=1;
    $workflow_18_do=1;
    $workflow_19_check=1;
    $workflow_19_do=1;
    $workflow_20_check=1;
    $workflow_20_do=1;
    $workflow_21_check=1;
    $workflow_21_do=1;
    $kill_adminclasses_1_do=1;
    $kill_adminclasses_2_do=1;
    $kill_projects_check=1;
    $kill_projects_do=1;
    $kill_projects_test=1;
}



############################################################
# --add-check --add-do
############################################################
if ($add_check==1){
    my $command_newfile_1="sophomorix-newfile $all_options --keep-file --name students.csv ".
                          "/usr/share/sophomorix-developer/testdata/students.csv-workflow-schoolisolation-0.utf8";
    my $command_newfile_2="sophomorix-newfile $all_options --keep-file --name bsz.students.csv ".
                          "/usr/share/sophomorix-developer/testdata/bsz.students.csv-workflow-schoolisolation-0.utf8";

    my $command_newfile_3="sophomorix-newfile $all_options --keep-file --name teachers.csv ".
                          "/usr/share/sophomorix-developer/testdata/teachers.csv-workflow-schoolisolation-0.utf8";
    my $command_newfile_4="sophomorix-newfile $all_options --keep-file --name bsz.teachers.csv ".
                          "/usr/share/sophomorix-developer/testdata/bsz.teachers.csv-workflow-schoolisolation-0.utf8";
    &run_command($command_newfile_1);
    &run_command($command_newfile_2);
    &run_command($command_newfile_3);
    &run_command($command_newfile_4);

    my $command_add="sophomorix-check $all_options ";
    &run_command($command_add);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.add",18);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.update",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.kill",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.nochange",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.error",0);
}

############################################################
if ($add_do==1){
    &run_command("sophomorix-add $all_options");
    &run_command("sophomorix-update $all_options");
    &run_command("sophomorix-kill $all_options");

    # bsz, default-school (alphabetically ordered when creating accounts)
    # i.E.: 
    #  Hugo Peréz of bsz gets perezhu 
    #  Hugo Peréz of default-school gets perezhu1

    # bsz teacher b-bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-bjarna24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"b-bjarna24",
                   sAMAccountname=>"b-bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "b-bjarna24@".$root_dns,
                   mail => "b-bjarna24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });
    # bsz teacher b-skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-skula24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"b-skula24",
                   sAMAccountname=>"b-skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-skula24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "b-skula24@".$root_dns,
                   mail => "b-skula24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });
    # bsz teacher b-rukri24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-rukri24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Rúnar Kristinsson",
                   givenName=>"Rúnar",
                   name=>"b-rukri24",
                   sAMAccountname=>"b-rukri24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-rukri24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-rukri24",
                   sn=>"Kristinsson",
                   userPrincipalName => "b-rukri24@".$root_dns,
                   mail => "b-rukri24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Runar",
                   sophomorixSurnameASCII  => "Kristinsson",
                   sophomorixFirstnameInitial => "R.",
                   sophomorixSurnameInitial  => "K.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "05.09.1969",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });
    # bsz teacher b-oe24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-oe24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"b-oe24",
                   sAMAccountname=>"b-oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-oe24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-oe24",
                   sn=>"Ömür",
                   userPrincipalName => "b-oe24@".$root_dns,
                   mail => "b-oe24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });
    # bsz teacher b-wu24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-wu24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"b-wu24",
                   sAMAccountname=>"b-wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-wu24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-wu24",
                   sn=>"Würth",
                   userPrincipalName => "b-wu24@".$root_dns,
                   mail => "b-wu24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });
    # bsz student stefanol
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol,OU=12a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol",
                   sAMAccountname=>"stefanol",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\12a\\stefanol",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/12a/stefanol",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol@".$root_dns,
                   mail => "stefanol@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-12a",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1977",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-12a|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });
    # bsz student muelleju
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju,OU=7a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju",
                   sAMAccountname=>"muelleju",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\7a\\muelleju",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/7a/muelleju",
                   sn=>"Müller",
                   userPrincipalName => "muelleju@".$root_dns,
                   mail => "muelleju@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-7a",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "unid1234",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-7a|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });
    # bsz student perezhu
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Peréz",
                   givenName=>"Hugo",
                   name=>"perezhu",
                   sAMAccountname=>"perezhu",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\10a\\perezhu",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/10a/perezhu",
                   sn=>"Peréz",
                   userPrincipalName => "perezhu@".$root_dns,
                   mail => "perezhu@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-10a",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-10a|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });
    # bsz student maieran
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=maieran,OU=8a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Andrè Maier",
                   givenName=>"Andrè",
                   name=>"maieran",
                   sAMAccountname=>"maieran",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\8a\\maieran",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/8a/maieran",
                   sn=>"Maier",
                   userPrincipalName => "maieran@".$root_dns,
                   mail => "maieran@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-8a",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Andre",
                   sophomorixSurnameASCII  => "Maier",
                   sophomorixFirstnameInitial => "A.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "12.12.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "unid2345",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-8a|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz group test
    # bsz-teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-teachers,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "bsz-teachers@"."teacherclass.net",
        sophomorixMembers=>"b-oe24|b-wu24|b-bjarna24|b-skula24|b-rukri24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-teachers",
        member => "global-teachers|b-oe24|b-wu24|b-bjarna24|b-skula24|b-rukri24",
        });
    # bsz-students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-students,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "bsz-students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-students",
        member => "bsz-7a|bsz-8a|bsz-10a|bsz-12a|global-students",
        });
    # bsz-7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7a,OU=7a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7a@"."adminclass.net",
        description=>"bsz-7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"muelleju",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "muelleju",
	});
    # bsz-8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-8a,OU=8a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-8a@"."adminclass.net",
        description=>"bsz-8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"maieran",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "maieran",
        });
    # bsz-10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-10a,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-10a@"."adminclass.net",
        description=>"bsz-10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"perezhu",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "perezhu",
        });
    # bsz-12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-12a,OU=12a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-12a@"."adminclass.net",
        description=>"bsz-12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"stefanol",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "stefanol",
        });

    # default-school teacher bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=bjarna24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"bjarna24",
                   sAMAccountname=>"bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "bjarna24@".$root_dns,
                   mail => "bjarna24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });
    # default-school teacher skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=skula24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"skula24",
                   sAMAccountname=>"skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\skula24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "skula24@".$root_dns,
                   mail => "skula24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });
    # default-school teacher rukri24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=rukri24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Rúnar Kristinsson",
                   givenName=>"Rúnar",
                   name=>"rukri24",
                   sAMAccountname=>"rukri24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\rukri24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/rukri24",
                   sn=>"Kristinsson",
                   userPrincipalName => "rukri24@".$root_dns,
                   mail => "rukri24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Runar",
                   sophomorixSurnameASCII  => "Kristinsson",
                   sophomorixFirstnameInitial => "R.",
                   sophomorixSurnameInitial  => "K.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "05.09.1969",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher oe24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=oe24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"oe24",
                   sAMAccountname=>"oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\oe24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/oe24",
                   sn=>"Ömür",
                   userPrincipalName => "oe24@".$root_dns,
                   mail => "oe24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });
    # default-school teacher wu24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=wu24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"wu24",
                   sAMAccountname=>"wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\wu24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/wu24",
                   sn=>"Würth",
                   userPrincipalName => "wu24@".$root_dns,
                   mail => "wu24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });
    # default-school student stefanol1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol1,OU=12a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol1",
                   sAMAccountname=>"stefanol1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\12a\\stefanol1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/12a/stefanol1",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol1@".$root_dns,
                   mail => "stefanol1@"."linuxmuster.local",
                   sophomorixAdminClass => "12a",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1977",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|12a|wifi|internet|webfilter|intranet|printing",
                  });
    # default-school student muelleju1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju1,OU=7a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju1",
                   sAMAccountname=>"muelleju1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\7a\\muelleju1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/7a/muelleju1",
                   sn=>"Müller",
                   userPrincipalName => "muelleju1@".$root_dns,
                   mail => "muelleju1@"."linuxmuster.local",
                   sophomorixAdminClass => "7a",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|7a|wifi|internet|webfilter|intranet|printing",
                  });
    # default-school student perezhu1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu1,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Peréz",
                   givenName=>"Hugo",
                   name=>"perezhu1",
                   sAMAccountname=>"perezhu1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\10a\\perezhu1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/10a/perezhu1",
                   sn=>"Peréz",
                   userPrincipalName => "perezhu1@".$root_dns,
                   mail => "perezhu1@"."linuxmuster.local",
                   sophomorixAdminClass => "10a",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|10a|wifi|internet|webfilter|intranet|printing",
                  });
    # default-school student maieran1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=maieran1,OU=8a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Andrè Maier",
                   givenName=>"Andrè",
                   name=>"maieran1",
                   sAMAccountname=>"maieran1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\8a\\maieran1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/8a/maieran1",
                   sn=>"Maier",
                   userPrincipalName => "maieran1@".$root_dns,
                   mail => "maieran1@"."linuxmuster.local",
                   sophomorixAdminClass => "8a",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Andre",
                   sophomorixSurnameASCII  => "Maier",
                   sophomorixFirstnameInitial => "A.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "12.12.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|8a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school group test
    # teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=teachers,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "teachers@".$root_dns,
        sophomorixMembers=>"oe24|wu24|bjarna24|skula24|rukri24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-teachers",
        member => "global-teachers|oe24|wu24|bjarna24|skula24|rukri24",
		    });
    # students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=students,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-students",
        member => "7a|8a|10a|12a|global-students",
        });
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=7a,OU=7a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "7a@".$root_dns,
        description=>"7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"muelleju1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "muelleju1",
	});
    # 8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=8a,OU=8a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "8a@".$root_dns,
        description=>"8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"maieran1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "maieran1",
	});
    # 10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=10a,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "10a@".$root_dns,
        description=>"10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"perezhu1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "perezhu1",
        });
    # 12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=12a,OU=12a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "12a@".$root_dns,
        description=>"12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"stefanol1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "stefanol1",
        });
}



############################################################
# --modify-1-check --modify-1-do
############################################################
if ($modify_1_check==1){
    # changes to bsz.students.csv:
    #   Andre correct spelling: Andrè -> André (matched my unid)
    #   Perez correct spelling: Peréz -> Pérez (approx match)
    #   Stefanson bithdate 1977 -> 1973 (approx match)

    my $command_newfile="sophomorix-newfile $all_options --keep-file --name bsz.students.csv ".
                        "/usr/share/sophomorix-developer/testdata/bsz.students.csv-workflow-schoolisolation-1.utf8";
    &run_command($command_newfile);

    my $command_check="sophomorix-check $all_options ";
    &run_command($command_check);

    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.add",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.update",3);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.kill",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.nochange",15);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.error",0);

    &run_command($command_check);

    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.add",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.update",3);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.kill",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.nochange",15);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.error",0);
}

############################################################
if ($modify_1_do==1){
    &run_command("sophomorix-add $all_options");
    &run_command("sophomorix-update $all_options");
    &run_command("sophomorix-kill $all_options");


    # bsz teacher b-bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-bjarna24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"b-bjarna24",
                   sAMAccountname=>"b-bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "b-bjarna24@".$root_dns,
                   mail => "b-bjarna24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-skula24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"b-skula24",
                   sAMAccountname=>"b-skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-skula24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "b-skula24@".$root_dns,
                   mail => "b-skula24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-rukri24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-rukri24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Rúnar Kristinsson",
                   givenName=>"Rúnar",
                   name=>"b-rukri24",
                   sAMAccountname=>"b-rukri24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-rukri24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-rukri24",
                   sn=>"Kristinsson",
                   userPrincipalName => "b-rukri24@".$root_dns,
                   mail => "b-rukri24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Runar",
                   sophomorixSurnameASCII  => "Kristinsson",
                   sophomorixFirstnameInitial => "R.",
                   sophomorixSurnameInitial  => "K.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "05.09.1969",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-oe24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-oe24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"b-oe24",
                   sAMAccountname=>"b-oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-oe24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-oe24",
                   sn=>"Ömür",
                   userPrincipalName => "b-oe24@".$root_dns,
                   mail => "b-oe24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-wu24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-wu24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"b-wu24",
                   sAMAccountname=>"b-wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-wu24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-wu24",
                   sn=>"Würth",
                   userPrincipalName => "b-wu24@".$root_dns,
                   mail => "b-wu24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student stefanol
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol,OU=12a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol",
                   sAMAccountname=>"stefanol",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\12a\\stefanol",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/12a/stefanol",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol@".$root_dns,
                   mail => "stefanol@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-12a",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1973",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-12a|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student muelleju
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju,OU=7a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju",
                   sAMAccountname=>"muelleju",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\7a\\muelleju",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/7a/muelleju",
                   sn=>"Müller",
                   userPrincipalName => "muelleju@".$root_dns,
                   mail => "muelleju@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-7a",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "unid1234",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-7a|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student perezhu
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Pérez",
                   givenName=>"Hugo",
                   name=>"perezhu",
                   sAMAccountname=>"perezhu",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\10a\\perezhu",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/10a/perezhu",
                   sn=>"Pérez",
                   userPrincipalName => "perezhu@".$root_dns,
                   mail => "perezhu@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-10a",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-10a|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student maieran
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=maieran,OU=8a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"André Maier",
                   givenName=>"André",
                   name=>"maieran",
                   sAMAccountname=>"maieran",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\8a\\maieran",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/8a/maieran",
                   sn=>"Maier",
                   userPrincipalName => "maieran@".$root_dns,
                   mail => "maieran@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-8a",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Andre",
                   sophomorixSurnameASCII  => "Maier",
                   sophomorixFirstnameInitial => "A.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "12.12.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "unid2345",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-8a|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz group test
    # bsz-teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-teachers,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "bsz-teachers@"."teacherclass.net",
        sophomorixMembers=>"b-oe24|b-wu24|b-bjarna24|b-skula24|b-rukri24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-teachers",
        member => "global-teachers|b-oe24|b-wu24|b-bjarna24|b-skula24|b-rukri24",
        });
    # bsz-students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-students,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "bsz-students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-students",
        member => "bsz-7a|bsz-8a|bsz-10a|bsz-12a|global-students",
        });
    # bsz-7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7a,OU=7a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7a@"."adminclass.net",
        description=>"bsz-7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"muelleju",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "muelleju",
	});
    # bsz-8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-8a,OU=8a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-8a@"."adminclass.net",
        description=>"bsz-8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"maieran",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "maieran",
        });
    # bsz-10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-10a,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-10a@"."adminclass.net",
        description=>"bsz-10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"perezhu",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "perezhu",
        });
    # bsz-12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-12a,OU=12a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-12a@"."adminclass.net",
        description=>"bsz-12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"stefanol",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "stefanol",
        });

    # default-school teacher bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=bjarna24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"bjarna24",
                   sAMAccountname=>"bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "bjarna24@".$root_dns,
                   mail => "bjarna24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=skula24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"skula24",
                   sAMAccountname=>"skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\skula24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "skula24@".$root_dns,
                   mail => "skula24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher rukri24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=rukri24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Rúnar Kristinsson",
                   givenName=>"Rúnar",
                   name=>"rukri24",
                   sAMAccountname=>"rukri24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\rukri24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/rukri24",
                   sn=>"Kristinsson",
                   userPrincipalName => "rukri24@".$root_dns,
                   mail => "rukri24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Runar",
                   sophomorixSurnameASCII  => "Kristinsson",
                   sophomorixFirstnameInitial => "R.",
                   sophomorixSurnameInitial  => "K.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "05.09.1969",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher oe24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=oe24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"oe24",
                   sAMAccountname=>"oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\oe24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/oe24",
                   sn=>"Ömür",
                   userPrincipalName => "oe24@".$root_dns,
                   mail => "oe24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher wu24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=wu24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"wu24",
                   sAMAccountname=>"wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\wu24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/wu24",
                   sn=>"Würth",
                   userPrincipalName => "wu24@".$root_dns,
                   mail => "wu24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student stefanol1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol1,OU=12a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol1",
                   sAMAccountname=>"stefanol1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\12a\\stefanol1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/12a/stefanol1",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol1@".$root_dns,
                   mail => "stefanol1@"."linuxmuster.local",
                   sophomorixAdminClass => "12a",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1977",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|12a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student muelleju1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju1,OU=7a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju1",
                   sAMAccountname=>"muelleju1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\7a\\muelleju1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/7a/muelleju1",
                   sn=>"Müller",
                   userPrincipalName => "muelleju1@".$root_dns,
                   mail => "muelleju1@"."linuxmuster.local",
                   sophomorixAdminClass => "7a",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|7a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student perezhu1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu1,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Peréz",
                   givenName=>"Hugo",
                   name=>"perezhu1",
                   sAMAccountname=>"perezhu1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\10a\\perezhu1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/10a/perezhu1",
                   sn=>"Peréz",
                   userPrincipalName => "perezhu1@".$root_dns,
                   mail => "perezhu1@"."linuxmuster.local",
                   sophomorixAdminClass => "10a",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|10a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student maieran1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=maieran1,OU=8a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Andrè Maier",
                   givenName=>"Andrè",
                   name=>"maieran1",
                   sAMAccountname=>"maieran1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\8a\\maieran1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/8a/maieran1",
                   sn=>"Maier",
                   userPrincipalName => "maieran1@".$root_dns,
                   mail => "maieran1@"."linuxmuster.local",
                   sophomorixAdminClass => "8a",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Andre",
                   sophomorixSurnameASCII  => "Maier",
                   sophomorixFirstnameInitial => "A.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "12.12.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|8a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school group test
    # teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=teachers,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "teachers@".$root_dns,
        sophomorixMembers=>"oe24|wu24|bjarna24|skula24|rukri24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-teachers",
        member => "global-teachers|oe24|wu24|bjarna24|skula24|rukri24",
		    });
    # students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=students,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-students",
        member => "7a|8a|10a|12a|global-students",
        });
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=7a,OU=7a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "7a@".$root_dns,
        description=>"7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"muelleju1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "muelleju1",
	});
    # 8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=8a,OU=8a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "8a@".$root_dns,
        description=>"8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"maieran1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "maieran1",
	});
    # 10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=10a,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "10a@".$root_dns,
        description=>"10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"perezhu1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "perezhu1",
        });
    # 12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=12a,OU=12a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "12a@".$root_dns,
        description=>"12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"stefanol1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "stefanol1",
        });
}



############################################################
# --modify-2-check --modify-2-do
############################################################
if ($modify_2_check==1){
    # changes to students.csv:
    #   Andre correct spelling: Andrè -> André (approx match)
    #   Perez correct spelling: Peréz -> Pérez (approx match)
    #   Stefanson bithdate 1977 -> 1975 (approx match)

    my $command_newfile="sophomorix-newfile $all_options --keep-file --name students.csv ".
                        "/usr/share/sophomorix-developer/testdata/students.csv-workflow-schoolisolation-2.utf8";
    &run_command($command_newfile);

    my $command_check="sophomorix-check $all_options ";
    &run_command($command_check);

    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.add",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.update",3);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.kill",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.nochange",15);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.error",0);

    &run_command($command_check);

    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.add",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.update",3);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.kill",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.nochange",15);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.error",0);
}

############################################################
if ($modify_2_do==1){
    &run_command("sophomorix-add $all_options");
    &run_command("sophomorix-update $all_options");
    &run_command("sophomorix-kill $all_options");

    # bsz teacher b-bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-bjarna24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"b-bjarna24",
                   sAMAccountname=>"b-bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "b-bjarna24@".$root_dns,
                   mail => "b-bjarna24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-skula24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"b-skula24",
                   sAMAccountname=>"b-skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-skula24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "b-skula24@".$root_dns,
                   mail => "b-skula24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-rukri24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-rukri24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Rúnar Kristinsson",
                   givenName=>"Rúnar",
                   name=>"b-rukri24",
                   sAMAccountname=>"b-rukri24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-rukri24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-rukri24",
                   sn=>"Kristinsson",
                   userPrincipalName => "b-rukri24@".$root_dns,
                   mail => "b-rukri24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Runar",
                   sophomorixSurnameASCII  => "Kristinsson",
                   sophomorixFirstnameInitial => "R.",
                   sophomorixSurnameInitial  => "K.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "05.09.1969",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-oe24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-oe24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"b-oe24",
                   sAMAccountname=>"b-oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-oe24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-oe24",
                   sn=>"Ömür",
                   userPrincipalName => "b-oe24@".$root_dns,
                   mail => "b-oe24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-wu24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-wu24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"b-wu24",
                   sAMAccountname=>"b-wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-wu24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-wu24",
                   sn=>"Würth",
                   userPrincipalName => "b-wu24@".$root_dns,
                   mail => "b-wu24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student stefanol
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol,OU=12a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol",
                   sAMAccountname=>"stefanol",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\12a\\stefanol",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/12a/stefanol",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol@".$root_dns,
                   mail => "stefanol@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-12a",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1973",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-12a|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student muelleju
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju,OU=7a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju",
                   sAMAccountname=>"muelleju",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\7a\\muelleju",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/7a/muelleju",
                   sn=>"Müller",
                   userPrincipalName => "muelleju@".$root_dns,
                   mail => "muelleju@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-7a",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "unid1234",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-7a|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student perezhu
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Pérez",
                   givenName=>"Hugo",
                   name=>"perezhu",
                   sAMAccountname=>"perezhu",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\10a\\perezhu",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/10a/perezhu",
                   sn=>"Pérez",
                   userPrincipalName => "perezhu@".$root_dns,
                   mail => "perezhu@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-10a",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-10a|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student maieran
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=maieran,OU=8a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"André Maier",
                   givenName=>"André",
                   name=>"maieran",
                   sAMAccountname=>"maieran",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\8a\\maieran",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/8a/maieran",
                   sn=>"Maier",
                   userPrincipalName => "maieran@".$root_dns,
                   mail => "maieran@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-8a",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Andre",
                   sophomorixSurnameASCII  => "Maier",
                   sophomorixFirstnameInitial => "A.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "12.12.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "unid2345",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-8a|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz group test
    # bsz-teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-teachers,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "bsz-teachers@"."teacherclass.net",
        sophomorixMembers=>"b-oe24|b-wu24|b-bjarna24|b-skula24|b-rukri24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-teachers",
        member => "global-teachers|b-oe24|b-wu24|b-bjarna24|b-skula24|b-rukri24",
        });
    # bsz-students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-students,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "bsz-students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-students",
        member => "bsz-7a|bsz-8a|bsz-10a|bsz-12a|global-students",
        });
    # bsz-7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7a,OU=7a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7a@"."adminclass.net",
        description=>"bsz-7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"muelleju",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "muelleju",
	});
    # bsz-8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-8a,OU=8a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-8a@"."adminclass.net",
        description=>"bsz-8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"maieran",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "maieran",
        });
    # bsz-10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-10a,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-10a@"."adminclass.net",
        description=>"bsz-10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"perezhu",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "perezhu",
        });
    # bsz-12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-12a,OU=12a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-12a@"."adminclass.net",
        description=>"bsz-12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"stefanol",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "stefanol",
        });

    # default-school teacher bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=bjarna24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"bjarna24",
                   sAMAccountname=>"bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "bjarna24@".$root_dns,
                   mail => "bjarna24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=skula24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"skula24",
                   sAMAccountname=>"skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\skula24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "skula24@".$root_dns,
                   mail => "skula24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher rukri24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=rukri24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Rúnar Kristinsson",
                   givenName=>"Rúnar",
                   name=>"rukri24",
                   sAMAccountname=>"rukri24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\rukri24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/rukri24",
                   sn=>"Kristinsson",
                   userPrincipalName => "rukri24@".$root_dns,
                   mail => "rukri24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Runar",
                   sophomorixSurnameASCII  => "Kristinsson",
                   sophomorixFirstnameInitial => "R.",
                   sophomorixSurnameInitial  => "K.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "05.09.1969",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher oe24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=oe24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"oe24",
                   sAMAccountname=>"oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\oe24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/oe24",
                   sn=>"Ömür",
                   userPrincipalName => "oe24@".$root_dns,
                   mail => "oe24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher wu24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=wu24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"wu24",
                   sAMAccountname=>"wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\wu24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/wu24",
                   sn=>"Würth",
                   userPrincipalName => "wu24@".$root_dns,
                   mail => "wu24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student stefanol1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol1,OU=12a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol1",
                   sAMAccountname=>"stefanol1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\12a\\stefanol1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/12a/stefanol1",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol1@".$root_dns,
                   mail => "stefanol1@"."linuxmuster.local",
                   sophomorixAdminClass => "12a",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1975",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|12a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student muelleju1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju1,OU=7a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju1",
                   sAMAccountname=>"muelleju1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\7a\\muelleju1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/7a/muelleju1",
                   sn=>"Müller",
                   userPrincipalName => "muelleju1@".$root_dns,
                   mail => "muelleju1@"."linuxmuster.local",
                   sophomorixAdminClass => "7a",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|7a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student perezhu1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu1,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Pérez",
                   givenName=>"Hugo",
                   name=>"perezhu1",
                   sAMAccountname=>"perezhu1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\10a\\perezhu1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/10a/perezhu1",
                   sn=>"Pérez",
                   userPrincipalName => "perezhu1@".$root_dns,
                   mail => "perezhu1@"."linuxmuster.local",
                   sophomorixAdminClass => "10a",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|10a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student maieran1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=maieran1,OU=8a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"André Maier",
                   givenName=>"André",
                   name=>"maieran1",
                   sAMAccountname=>"maieran1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\8a\\maieran1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/8a/maieran1",
                   sn=>"Maier",
                   userPrincipalName => "maieran1@".$root_dns,
                   mail => "maieran1@"."linuxmuster.local",
                   sophomorixAdminClass => "8a",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Andre",
                   sophomorixSurnameASCII  => "Maier",
                   sophomorixFirstnameInitial => "A.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "12.12.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|8a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school group test
    # teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=teachers,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "teachers@".$root_dns,
        sophomorixMembers=>"oe24|wu24|bjarna24|skula24|rukri24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-teachers",
        member => "global-teachers|oe24|wu24|bjarna24|skula24|rukri24",
		    });
    # students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=students,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-students",
        member => "7a|8a|10a|12a|global-students",
        });
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=7a,OU=7a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "7a@".$root_dns,
        description=>"7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"muelleju1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "muelleju1",
	});
    # 8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=8a,OU=8a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "8a@".$root_dns,
        description=>"8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"maieran1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "maieran1",
	});
    # 10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=10a,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "10a@".$root_dns,
        description=>"10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"perezhu1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "perezhu1",
        });
    # 12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=12a,OU=12a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "12a@".$root_dns,
        description=>"12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"stefanol1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "stefanol1",
        });

}



############################################################
# --modify-3-check --modify-3-do
############################################################
if ($modify_3_check==1){
    my $command_newfile_1="sophomorix-newfile $all_options --keep-file --name bsz.students.csv ".
                        "/usr/share/sophomorix-developer/testdata/bsz.students.csv-workflow-schoolisolation-3.utf8";
    my $command_newfile_2="sophomorix-newfile $all_options --keep-file --name bsz.teachers.csv ".
                        "/usr/share/sophomorix-developer/testdata/bsz.teachers.csv-workflow-schoolisolation-3.utf8";
    &run_command($command_newfile_1);
    &run_command($command_newfile_2);

    my $command_check="sophomorix-check $all_options ";
    &run_command($command_check);

    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.add",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.update",4);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.kill",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.nochange",14);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.error",0);

    &run_command($command_check);

    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.add",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.update",4);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.kill",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.nochange",14);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.error",0);
}

############################################################
if ($modify_3_do==1){
    &run_command("sophomorix-add $all_options");
    &run_command("sophomorix-update $all_options");
    &run_command("sophomorix-kill $all_options");

    # bsz teacher b-bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-bjarna24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"b-bjarna24",
                   sAMAccountname=>"b-bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "b-bjarna24@".$root_dns,
                   mail => "b-bjarna24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-skula24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"b-skula24",
                   sAMAccountname=>"b-skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-skula24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "b-skula24@".$root_dns,
                   mail => "b-skula24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-rukri24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-rukri24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Rúnar Kristinsson",
                   givenName=>"Rúnar",
                   name=>"b-rukri24",
                   sAMAccountname=>"b-rukri24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-rukri24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-rukri24",
                   sn=>"Kristinsson",
                   userPrincipalName => "b-rukri24@".$root_dns,
                   mail => "b-rukri24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Runar",
                   sophomorixSurnameASCII  => "Kristinsson",
                   sophomorixFirstnameInitial => "R.",
                   sophomorixSurnameInitial  => "K.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "05.09.1969",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-oe24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-oe24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"b-oe24",
                   sAMAccountname=>"b-oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-oe24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-oe24",
                   sn=>"Ömür",
                   userPrincipalName => "b-oe24@".$root_dns,
                   mail => "b-oe24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-wu24 -> student in 10a
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-wu24,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"b-wu24",
                   sAMAccountname=>"b-wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\10a\\b-wu24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/10a/b-wu24",
                   sn=>"Würth",
                   userPrincipalName => "b-wu24@".$root_dns,
                   mail => "b-wu24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-10a",
                   sophomorixExitAdminClass => "bsz-teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-10a|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student stefanol -> teacher
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol",
                   sAMAccountname=>"stefanol",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\stefanol",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/stefanol",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol@".$root_dns,
                   mail => "stefanol@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "bsz-12a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1973",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student muelleju
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju,OU=7b,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju",
                   sAMAccountname=>"muelleju",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\7b\\muelleju",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/7b/muelleju",
                   sn=>"Müller",
                   userPrincipalName => "muelleju@".$root_dns,
                   mail => "muelleju@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-7b",
                   sophomorixExitAdminClass => "bsz-7a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "unid1234",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-7b|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student perezhu
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Pérez",
                   givenName=>"Hugo",
                   name=>"perezhu",
                   sAMAccountname=>"perezhu",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\10a\\perezhu",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/10a/perezhu",
                   sn=>"Pérez",
                   userPrincipalName => "perezhu@".$root_dns,
                   mail => "perezhu@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-10a",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-10a|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student maieran
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=maieran,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"André Maier",
                   givenName=>"André",
                   name=>"maieran",
                   sAMAccountname=>"maieran",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\10a\\maieran",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/10a/maieran",
                   sn=>"Maier",
                   userPrincipalName => "maieran@".$root_dns,
                   mail => "maieran@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-10a",
                   sophomorixExitAdminClass => "bsz-8a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Andre",
                   sophomorixSurnameASCII  => "Maier",
                   sophomorixFirstnameInitial => "A.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "12.12.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "unid2345",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-10a|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz group test
    # bsz-teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-teachers,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "bsz-teachers@"."teacherclass.net",
        sophomorixMembers=>"b-oe24|b-bjarna24|b-skula24|b-rukri24|stefanol",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-teachers",
        member => "global-teachers|b-oe24|b-bjarna24|b-skula24|b-rukri24|stefanol",
        });
    # bsz-students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-students,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "bsz-students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-students",
        member => "bsz-7a|bsz-7b|bsz-8a|bsz-10a|bsz-12a|global-students",
        });
    # bsz-7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7a,OU=7a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7a@"."adminclass.net",
        description=>"bsz-7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-7b
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7b,OU=7b,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7b",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7b@"."adminclass.net",
        description=>"bsz-7b",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"muelleju",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "muelleju",
	});
    # bsz-8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-8a,OU=8a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-8a@"."adminclass.net",
        description=>"bsz-8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });
    # bsz-10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-10a,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-10a@"."adminclass.net",
        description=>"bsz-10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"perezhu|maieran|b-wu24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "perezhu|maieran|b-wu24",
        });
    # bsz-12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-12a,OU=12a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-12a@"."adminclass.net",
        description=>"bsz-12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });

    # default-school teacher bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=bjarna24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"bjarna24",
                   sAMAccountname=>"bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "bjarna24@".$root_dns,
                   mail => "bjarna24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=skula24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"skula24",
                   sAMAccountname=>"skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\skula24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "skula24@".$root_dns,
                   mail => "skula24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher rukri24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=rukri24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Rúnar Kristinsson",
                   givenName=>"Rúnar",
                   name=>"rukri24",
                   sAMAccountname=>"rukri24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\rukri24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/rukri24",
                   sn=>"Kristinsson",
                   userPrincipalName => "rukri24@".$root_dns,
                   mail => "rukri24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Runar",
                   sophomorixSurnameASCII  => "Kristinsson",
                   sophomorixFirstnameInitial => "R.",
                   sophomorixSurnameInitial  => "K.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "05.09.1969",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher oe24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=oe24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"oe24",
                   sAMAccountname=>"oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\oe24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/oe24",
                   sn=>"Ömür",
                   userPrincipalName => "oe24@".$root_dns,
                   mail => "oe24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher wu24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=wu24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"wu24",
                   sAMAccountname=>"wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\wu24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/wu24",
                   sn=>"Würth",
                   userPrincipalName => "wu24@".$root_dns,
                   mail => "wu24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student stefanol1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol1,OU=12a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol1",
                   sAMAccountname=>"stefanol1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\12a\\stefanol1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/12a/stefanol1",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol1@".$root_dns,
                   mail => "stefanol1@"."linuxmuster.local",
                   sophomorixAdminClass => "12a",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1975",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|12a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student muelleju1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju1,OU=7a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju1",
                   sAMAccountname=>"muelleju1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\7a\\muelleju1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/7a/muelleju1",
                   sn=>"Müller",
                   userPrincipalName => "muelleju1@".$root_dns,
                   mail => "muelleju1@"."linuxmuster.local",
                   sophomorixAdminClass => "7a",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|7a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student perezhu1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu1,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Pérez",
                   givenName=>"Hugo",
                   name=>"perezhu1",
                   sAMAccountname=>"perezhu1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\10a\\perezhu1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/10a/perezhu1",
                   sn=>"Pérez",
                   userPrincipalName => "perezhu1@".$root_dns,
                   mail => "perezhu1@"."linuxmuster.local",
                   sophomorixAdminClass => "10a",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|10a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student maieran1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=maieran1,OU=8a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"André Maier",
                   givenName=>"André",
                   name=>"maieran1",
                   sAMAccountname=>"maieran1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\8a\\maieran1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/8a/maieran1",
                   sn=>"Maier",
                   userPrincipalName => "maieran1@".$root_dns,
                   mail => "maieran1@"."linuxmuster.local",
                   sophomorixAdminClass => "8a",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Andre",
                   sophomorixSurnameASCII  => "Maier",
                   sophomorixFirstnameInitial => "A.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "12.12.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|8a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school group test
    # teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=teachers,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "teachers@".$root_dns,
        sophomorixMembers=>"oe24|wu24|bjarna24|skula24|rukri24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-teachers",
        member => "global-teachers|oe24|wu24|bjarna24|skula24|rukri24",
		    });
    # students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=students,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-students",
        member => "7a|8a|10a|12a|global-students",
        });
    # 7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=7a,OU=7a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "7a@".$root_dns,
        description=>"7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"muelleju1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "muelleju1",
	});
    # 8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=8a,OU=8a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "8a@".$root_dns,
        description=>"8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"maieran1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "maieran1",
	});
    # 10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=10a,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "10a@".$root_dns,
        description=>"10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"perezhu1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "perezhu1",
        });
    # 12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=12a,OU=12a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "12a@".$root_dns,
        description=>"12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"stefanol1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "stefanol1",
        });
}



############################################################
# --modify-4-check --modify-4-do
############################################################
if ($modify_4_check==1){
    my $command_newfile_1="sophomorix-newfile $all_options --keep-file --name students.csv ".
                        "/usr/share/sophomorix-developer/testdata/students.csv-workflow-schoolisolation-4.utf8";
    my $command_newfile_2="sophomorix-newfile $all_options --keep-file --name teachers.csv ".
                        "/usr/share/sophomorix-developer/testdata/teachers.csv-workflow-schoolisolation-4.utf8";
    &run_command($command_newfile_1);
    &run_command($command_newfile_2);

    my $command_check="sophomorix-check $all_options ";
    &run_command($command_check);

    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.add",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.update",4);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.kill",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.nochange",14);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.error",0);

    &run_command($command_check);

    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.add",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.update",4);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.kill",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.nochange",14);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.error",0);
}

############################################################
if ($modify_4_do==1){
    &run_command("sophomorix-add $all_options");
    &run_command("sophomorix-update $all_options");
    &run_command("sophomorix-kill $all_options");

    # bsz teacher b-bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-bjarna24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"b-bjarna24",
                   sAMAccountname=>"b-bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "b-bjarna24@".$root_dns,
                   mail => "b-bjarna24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-skula24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"b-skula24",
                   sAMAccountname=>"b-skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-skula24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "b-skula24@".$root_dns,
                   mail => "b-skula24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-rukri24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-rukri24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Rúnar Kristinsson",
                   givenName=>"Rúnar",
                   name=>"b-rukri24",
                   sAMAccountname=>"b-rukri24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-rukri24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-rukri24",
                   sn=>"Kristinsson",
                   userPrincipalName => "b-rukri24@".$root_dns,
                   mail => "b-rukri24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Runar",
                   sophomorixSurnameASCII  => "Kristinsson",
                   sophomorixFirstnameInitial => "R.",
                   sophomorixSurnameInitial  => "K.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "05.09.1969",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-oe24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-oe24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"b-oe24",
                   sAMAccountname=>"b-oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-oe24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-oe24",
                   sn=>"Ömür",
                   userPrincipalName => "b-oe24@".$root_dns,
                   mail => "b-oe24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-wu24 -> student in 10a
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-wu24,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"b-wu24",
                   sAMAccountname=>"b-wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\10a\\b-wu24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/10a/b-wu24",
                   sn=>"Würth",
                   userPrincipalName => "b-wu24@".$root_dns,
                   mail => "b-wu24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-10a",
                   sophomorixExitAdminClass => "bsz-teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-10a|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student stefanol -> teacher
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol",
                   sAMAccountname=>"stefanol",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\stefanol",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/stefanol",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol@".$root_dns,
                   mail => "stefanol@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "bsz-12a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1973",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student muelleju
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju,OU=7b,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju",
                   sAMAccountname=>"muelleju",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\7b\\muelleju",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/7b/muelleju",
                   sn=>"Müller",
                   userPrincipalName => "muelleju@".$root_dns,
                   mail => "muelleju@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-7b",
                   sophomorixExitAdminClass => "bsz-7a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "unid1234",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-7b|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student perezhu
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Pérez",
                   givenName=>"Hugo",
                   name=>"perezhu",
                   sAMAccountname=>"perezhu",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\10a\\perezhu",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/10a/perezhu",
                   sn=>"Pérez",
                   userPrincipalName => "perezhu@".$root_dns,
                   mail => "perezhu@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-10a",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-10a|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student maieran
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=maieran,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"André Maier",
                   givenName=>"André",
                   name=>"maieran",
                   sAMAccountname=>"maieran",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\10a\\maieran",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/10a/maieran",
                   sn=>"Maier",
                   userPrincipalName => "maieran@".$root_dns,
                   mail => "maieran@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-10a",
                   sophomorixExitAdminClass => "bsz-8a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Andre",
                   sophomorixSurnameASCII  => "Maier",
                   sophomorixFirstnameInitial => "A.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "12.12.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "unid2345",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-10a|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz group test
    # bsz-teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-teachers,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "bsz-teachers@"."teacherclass.net",
        sophomorixMembers=>"b-oe24|b-bjarna24|b-skula24|b-rukri24|stefanol",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-teachers",
        member => "global-teachers|b-oe24|b-bjarna24|b-skula24|b-rukri24|stefanol",
        });
    # bsz-students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-students,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "bsz-students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-students",
        member => "bsz-7a|bsz-7b|bsz-8a|bsz-10a|bsz-12a|global-students",
        });
    # bsz-7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7a,OU=7a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7a@"."adminclass.net",
        description=>"bsz-7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-7b
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7b,OU=7b,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7b",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7b@"."adminclass.net",
        description=>"bsz-7b",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"muelleju",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "muelleju",
	});
    # bsz-8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-8a,OU=8a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-8a@"."adminclass.net",
        description=>"bsz-8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });
    # bsz-10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-10a,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-10a@"."adminclass.net",
        description=>"bsz-10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"perezhu|maieran|b-wu24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "perezhu|maieran|b-wu24",
        });
    # bsz-12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-12a,OU=12a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-12a@"."adminclass.net",
        description=>"bsz-12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });

    # default-school teacher bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=bjarna24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"bjarna24",
                   sAMAccountname=>"bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "bjarna24@".$root_dns,
                   mail => "bjarna24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=skula24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"skula24",
                   sAMAccountname=>"skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\skula24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "skula24@".$root_dns,
                   mail => "skula24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher rukri24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=rukri24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Rúnar Kristinsson",
                   givenName=>"Rúnar",
                   name=>"rukri24",
                   sAMAccountname=>"rukri24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\rukri24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/rukri24",
                   sn=>"Kristinsson",
                   userPrincipalName => "rukri24@".$root_dns,
                   mail => "rukri24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Runar",
                   sophomorixSurnameASCII  => "Kristinsson",
                   sophomorixFirstnameInitial => "R.",
                   sophomorixSurnameInitial  => "K.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "05.09.1969",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher oe24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=oe24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"oe24",
                   sAMAccountname=>"oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\oe24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/oe24",
                   sn=>"Ömür",
                   userPrincipalName => "oe24@".$root_dns,
                   mail => "oe24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher wu24 -> student
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=wu24,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"wu24",
                   sAMAccountname=>"wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\10a\\wu24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/10a/wu24",
                   sn=>"Würth",
                   userPrincipalName => "wu24@".$root_dns,
                   mail => "wu24@"."linuxmuster.local",
                   sophomorixAdminClass => "10a",
                   sophomorixExitAdminClass => "teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|10a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student stefanol1 -> teacher
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol1,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol1",
                   sAMAccountname=>"stefanol1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\stefanol1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/stefanol1",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol1@".$root_dns,
                   mail => "stefanol1@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "12a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1975",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student muelleju1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju1,OU=7b,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju1",
                   sAMAccountname=>"muelleju1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\7b\\muelleju1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/7b/muelleju1",
                   sn=>"Müller",
                   userPrincipalName => "muelleju1@".$root_dns,
                   mail => "muelleju1@"."linuxmuster.local",
                   sophomorixAdminClass => "7b",
                   sophomorixExitAdminClass => "7a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|7b|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student perezhu1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu1,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Pérez",
                   givenName=>"Hugo",
                   name=>"perezhu1",
                   sAMAccountname=>"perezhu1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\10a\\perezhu1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/10a/perezhu1",
                   sn=>"Pérez",
                   userPrincipalName => "perezhu1@".$root_dns,
                   mail => "perezhu1@"."linuxmuster.local",
                   sophomorixAdminClass => "10a",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|10a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student maieran1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=maieran1,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"André Maier",
                   givenName=>"André",
                   name=>"maieran1",
                   sAMAccountname=>"maieran1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\10a\\maieran1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/10a/maieran1",
                   sn=>"Maier",
                   userPrincipalName => "maieran1@".$root_dns,
                   mail => "maieran1@"."linuxmuster.local",
                   sophomorixAdminClass => "10a",
                   sophomorixExitAdminClass => "8a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Andre",
                   sophomorixSurnameASCII  => "Maier",
                   sophomorixFirstnameInitial => "A.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "12.12.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|10a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school group test
    # teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=teachers,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "teachers@".$root_dns,
        sophomorixMembers=>"oe24|bjarna24|skula24|rukri24|stefanol1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-teachers",
        member => "global-teachers|oe24|bjarna24|skula24|rukri24|stefanol1",
		    });
    # students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=students,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-students",
        member => "7a|7b|8a|10a|12a|global-students",
        });
    # 7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=7a,OU=7a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "7a@".$root_dns,
        description=>"7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 7b
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=7b,OU=7b,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"7b",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "7b@".$root_dns,
        description=>"7b",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"muelleju1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "muelleju1",
	});
    # 8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=8a,OU=8a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "8a@".$root_dns,
        description=>"8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=10a,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "10a@".$root_dns,
        description=>"10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"perezhu1|maieran1|wu24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "perezhu1|maieran1|wu24",
        });
    # 12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=12a,OU=12a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "12a@".$root_dns,
        description=>"12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
        });
}



############################################################
# --modify-5-check --modify-5-do
############################################################
if ($modify_5_check==1){
    my $command_newfile_1="sophomorix-newfile $all_options --keep-file --name bsz.students.csv ".
                        "/usr/share/sophomorix-developer/testdata/bsz.students.csv-workflow-schoolisolation-5.utf8";
    my $command_newfile_2="sophomorix-newfile $all_options --keep-file --name bsz.teachers.csv ".
                        "/usr/share/sophomorix-developer/testdata/bsz.teachers.csv-workflow-schoolisolation-5.utf8";
    my $command_cp_file="cp /usr/share/sophomorix-developer/testdata/bsz.extrastudents.csv-workflow-schoolisolation-5.utf8 ".
                        "/etc/linuxmuster/sophomorix/bsz/bsz.extrastudents.csv";
    &run_command($command_newfile_1);
    &run_command($command_newfile_2);
    &run_command($command_cp_file);

    my $command_check="sophomorix-check $all_options ";
    &run_command($command_check);

    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.add",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.update",2);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.kill",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.nochange",16);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.error",0);

    &run_command($command_check);

    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.add",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.update",2);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.kill",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.nochange",16);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.error",0);
}

############################################################
if ($modify_5_do==1){
    &run_command("sophomorix-add $all_options");
    &run_command("sophomorix-update $all_options");
    &run_command("sophomorix-kill $all_options");

    # bsz teacher b-bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-bjarna24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"b-bjarna24",
                   sAMAccountname=>"b-bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "b-bjarna24@".$root_dns,
                   mail => "b-bjarna24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-skula24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"b-skula24",
                   sAMAccountname=>"b-skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-skula24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "b-skula24@".$root_dns,
                   mail => "b-skula24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-rukri24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-rukri24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Rúnar Kristinsson",
                   givenName=>"Rúnar",
                   name=>"b-rukri24",
                   sAMAccountname=>"b-rukri24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-rukri24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-rukri24",
                   sn=>"Kristinsson",
                   userPrincipalName => "b-rukri24@".$root_dns,
                   mail => "b-rukri24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Runar",
                   sophomorixSurnameASCII  => "Kristinsson",
                   sophomorixFirstnameInitial => "R.",
                   sophomorixSurnameInitial  => "K.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "05.09.1969",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-oe24 -> extrastudents.csv in Klasse alumni
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-oe24,OU=alumni,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"b-oe24",
                   sAMAccountname=>"b-oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\alumni\\b-oe24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/alumni/b-oe24",
                   sn=>"Ömür",
                   userPrincipalName => "b-oe24@".$root_dns,
                   mail => "b-oe24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-alumni",
                   sophomorixExitAdminClass => "bsz-teachers",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-alumni|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-wu24 -> student in 10a
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-wu24,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"b-wu24",
                   sAMAccountname=>"b-wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\10a\\b-wu24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/10a/b-wu24",
                   sn=>"Würth",
                   userPrincipalName => "b-wu24@".$root_dns,
                   mail => "b-wu24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-10a",
                   sophomorixExitAdminClass => "bsz-teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-10a|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student stefanol -> teacher
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol",
                   sAMAccountname=>"stefanol",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\stefanol",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/stefanol",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol@".$root_dns,
                   mail => "stefanol@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "bsz-12a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1973",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student muelleju
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju,OU=7b,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju",
                   sAMAccountname=>"muelleju",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\7b\\muelleju",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/7b/muelleju",
                   sn=>"Müller",
                   userPrincipalName => "muelleju@".$root_dns,
                   mail => "muelleju@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-7b",
                   sophomorixExitAdminClass => "bsz-7a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "unid1234",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-7b|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student perezhu -> extrastudents.csv, Klasse web
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu,OU=web,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Pérez",
                   givenName=>"Hugo",
                   name=>"perezhu",
                   sAMAccountname=>"perezhu",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\web\\perezhu",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/web/perezhu",
                   sn=>"Pérez",
                   userPrincipalName => "perezhu@".$root_dns,
                   mail => "perezhu@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-web",
                   sophomorixExitAdminClass => "bsz-10a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-web|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student maieran
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=maieran,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"André Maier",
                   givenName=>"André",
                   name=>"maieran",
                   sAMAccountname=>"maieran",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\10a\\maieran",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/10a/maieran",
                   sn=>"Maier",
                   userPrincipalName => "maieran@".$root_dns,
                   mail => "maieran@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-10a",
                   sophomorixExitAdminClass => "bsz-8a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Andre",
                   sophomorixSurnameASCII  => "Maier",
                   sophomorixFirstnameInitial => "A.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "12.12.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "unid2345",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-10a|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz group test
    # bsz-teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-teachers,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "bsz-teachers@"."teacherclass.net",
        sophomorixMembers=>"b-bjarna24|b-skula24|b-rukri24|stefanol",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-teachers",
        member => "global-teachers|b-bjarna24|b-skula24|b-rukri24|stefanol",
        });
    # bsz-students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-students,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "bsz-students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-students",
        member => "bsz-alumni|bsz-web|bsz-7a|bsz-7b|bsz-8a|bsz-10a|bsz-12a|global-students",
        });
    # bsz-alumni
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-alumni,OU=alumni,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-alumni",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-alumni@"."adminclass.net",
        description=>"bsz-alumni",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"b-oe24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "b-oe24",
	});
    # bsz-web
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-web,OU=web,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-web",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-web@"."adminclass.net",
        description=>"bsz-web",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"perezhu",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "perezhu",
	});
    # bsz-7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7a,OU=7a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7a@"."adminclass.net",
        description=>"bsz-7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-7b
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7b,OU=7b,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7b",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7b@"."adminclass.net",
        description=>"bsz-7b",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"muelleju",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "muelleju",
	});
    # bsz-8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-8a,OU=8a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-8a@"."adminclass.net",
        description=>"bsz-8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });
    # bsz-10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-10a,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-10a@"."adminclass.net",
        description=>"bsz-10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"maieran|b-wu24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "maieran|b-wu24",
        });
    # bsz-12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-12a,OU=12a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-12a@"."adminclass.net",
        description=>"bsz-12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });

    # default-school teacher bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=bjarna24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"bjarna24",
                   sAMAccountname=>"bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "bjarna24@".$root_dns,
                   mail => "bjarna24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=skula24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"skula24",
                   sAMAccountname=>"skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\skula24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "skula24@".$root_dns,
                   mail => "skula24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher rukri24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=rukri24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Rúnar Kristinsson",
                   givenName=>"Rúnar",
                   name=>"rukri24",
                   sAMAccountname=>"rukri24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\rukri24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/rukri24",
                   sn=>"Kristinsson",
                   userPrincipalName => "rukri24@".$root_dns,
                   mail => "rukri24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Runar",
                   sophomorixSurnameASCII  => "Kristinsson",
                   sophomorixFirstnameInitial => "R.",
                   sophomorixSurnameInitial  => "K.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "05.09.1969",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher oe24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=oe24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"oe24",
                   sAMAccountname=>"oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\oe24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/oe24",
                   sn=>"Ömür",
                   userPrincipalName => "oe24@".$root_dns,
                   mail => "oe24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher wu24 -> student
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=wu24,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"wu24",
                   sAMAccountname=>"wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\10a\\wu24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/10a/wu24",
                   sn=>"Würth",
                   userPrincipalName => "wu24@".$root_dns,
                   mail => "wu24@"."linuxmuster.local",
                   sophomorixAdminClass => "10a",
                   sophomorixExitAdminClass => "teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|10a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student stefanol1 -> teacher
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol1,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol1",
                   sAMAccountname=>"stefanol1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\stefanol1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/stefanol1",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol1@".$root_dns,
                   mail => "stefanol1@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "12a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1975",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student muelleju1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju1,OU=7b,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju1",
                   sAMAccountname=>"muelleju1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\7b\\muelleju1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/7b/muelleju1",
                   sn=>"Müller",
                   userPrincipalName => "muelleju1@".$root_dns,
                   mail => "muelleju1@"."linuxmuster.local",
                   sophomorixAdminClass => "7b",
                   sophomorixExitAdminClass => "7a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|7b|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student perezhu1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu1,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Pérez",
                   givenName=>"Hugo",
                   name=>"perezhu1",
                   sAMAccountname=>"perezhu1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\10a\\perezhu1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/10a/perezhu1",
                   sn=>"Pérez",
                   userPrincipalName => "perezhu1@".$root_dns,
                   mail => "perezhu1@"."linuxmuster.local",
                   sophomorixAdminClass => "10a",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|10a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student maieran1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=maieran1,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"André Maier",
                   givenName=>"André",
                   name=>"maieran1",
                   sAMAccountname=>"maieran1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\10a\\maieran1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/10a/maieran1",
                   sn=>"Maier",
                   userPrincipalName => "maieran1@".$root_dns,
                   mail => "maieran1@"."linuxmuster.local",
                   sophomorixAdminClass => "10a",
                   sophomorixExitAdminClass => "8a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Andre",
                   sophomorixSurnameASCII  => "Maier",
                   sophomorixFirstnameInitial => "A.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "12.12.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|10a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school group test
    # teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=teachers,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "teachers@".$root_dns,
        sophomorixMembers=>"oe24|bjarna24|skula24|rukri24|stefanol1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-teachers",
        member => "global-teachers|oe24|bjarna24|skula24|rukri24|stefanol1",
		    });
    # students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=students,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-students",
        member => "7a|7b|8a|10a|12a|global-students",
        });
    # 7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=7a,OU=7a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "7a@".$root_dns,
        description=>"7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 7b
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=7b,OU=7b,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"7b",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "7b@".$root_dns,
        description=>"7b",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"muelleju1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "muelleju1",
	});
    # 8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=8a,OU=8a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "8a@".$root_dns,
        description=>"8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=10a,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "10a@".$root_dns,
        description=>"10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"perezhu1|maieran1|wu24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "perezhu1|maieran1|wu24",
        });
    # 12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=12a,OU=12a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "12a@".$root_dns,
        description=>"12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
        });
}



############################################################
# --modify-6-check --modify-6-do
############################################################
if ($modify_6_check==1){
    my $command_newfile_1="sophomorix-newfile $all_options --keep-file --name students.csv ".
                        "/usr/share/sophomorix-developer/testdata/students.csv-workflow-schoolisolation-6.utf8";
    my $command_newfile_2="sophomorix-newfile $all_options --keep-file --name teachers.csv ".
                        "/usr/share/sophomorix-developer/testdata/teachers.csv-workflow-schoolisolation-6.utf8";
    my $command_cp_file="cp /usr/share/sophomorix-developer/testdata/extrastudents.csv-workflow-schoolisolation-6.utf8 ".
                        "/etc/linuxmuster/sophomorix/default-school/extrastudents.csv";
    &run_command($command_newfile_1);
    &run_command($command_newfile_2);
    &run_command($command_cp_file);

    my $command_check="sophomorix-check $all_options ";
    &run_command($command_check);

    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.add",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.update",2);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.kill",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.nochange",16);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.error",0);

    &run_command($command_check);

    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.add",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.update",2);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.kill",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.nochange",16);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.error",0);
}

############################################################
if ($modify_6_do==1){
    &run_command("sophomorix-add $all_options");
    &run_command("sophomorix-update $all_options");
    &run_command("sophomorix-kill $all_options");

    # bsz teacher b-bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-bjarna24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"b-bjarna24",
                   sAMAccountname=>"b-bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "b-bjarna24@".$root_dns,
                   mail => "b-bjarna24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-skula24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"b-skula24",
                   sAMAccountname=>"b-skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-skula24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "b-skula24@".$root_dns,
                   mail => "b-skula24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-rukri24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-rukri24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Rúnar Kristinsson",
                   givenName=>"Rúnar",
                   name=>"b-rukri24",
                   sAMAccountname=>"b-rukri24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-rukri24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-rukri24",
                   sn=>"Kristinsson",
                   userPrincipalName => "b-rukri24@".$root_dns,
                   mail => "b-rukri24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Runar",
                   sophomorixSurnameASCII  => "Kristinsson",
                   sophomorixFirstnameInitial => "R.",
                   sophomorixSurnameInitial  => "K.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "05.09.1969",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-oe24 -> extrastudents.csv in Klasse alumni
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-oe24,OU=alumni,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"b-oe24",
                   sAMAccountname=>"b-oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\alumni\\b-oe24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/alumni/b-oe24",
                   sn=>"Ömür",
                   userPrincipalName => "b-oe24@".$root_dns,
                   mail => "b-oe24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-alumni",
                   sophomorixExitAdminClass => "bsz-teachers",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-alumni|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-wu24 -> student in 10a
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-wu24,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"b-wu24",
                   sAMAccountname=>"b-wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\10a\\b-wu24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/10a/b-wu24",
                   sn=>"Würth",
                   userPrincipalName => "b-wu24@".$root_dns,
                   mail => "b-wu24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-10a",
                   sophomorixExitAdminClass => "bsz-teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-10a|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student stefanol -> teacher
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol",
                   sAMAccountname=>"stefanol",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\stefanol",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/stefanol",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol@".$root_dns,
                   mail => "stefanol@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "bsz-12a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1973",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student muelleju
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju,OU=7b,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju",
                   sAMAccountname=>"muelleju",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\7b\\muelleju",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/7b/muelleju",
                   sn=>"Müller",
                   userPrincipalName => "muelleju@".$root_dns,
                   mail => "muelleju@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-7b",
                   sophomorixExitAdminClass => "bsz-7a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "unid1234",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-7b|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student perezhu -> extrastudents.csv, Klasse web
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu,OU=web,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Pérez",
                   givenName=>"Hugo",
                   name=>"perezhu",
                   sAMAccountname=>"perezhu",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\web\\perezhu",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/web/perezhu",
                   sn=>"Pérez",
                   userPrincipalName => "perezhu@".$root_dns,
                   mail => "perezhu@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-web",
                   sophomorixExitAdminClass => "bsz-10a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-web|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student maieran
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=maieran,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"André Maier",
                   givenName=>"André",
                   name=>"maieran",
                   sAMAccountname=>"maieran",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\10a\\maieran",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/10a/maieran",
                   sn=>"Maier",
                   userPrincipalName => "maieran@".$root_dns,
                   mail => "maieran@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-10a",
                   sophomorixExitAdminClass => "bsz-8a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Andre",
                   sophomorixSurnameASCII  => "Maier",
                   sophomorixFirstnameInitial => "A.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "12.12.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "unid2345",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-10a|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz group test
    # bsz-teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-teachers,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "bsz-teachers@"."teacherclass.net",
        sophomorixMembers=>"b-bjarna24|b-skula24|b-rukri24|stefanol",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-teachers",
        member => "global-teachers|b-bjarna24|b-skula24|b-rukri24|stefanol",
        });
    # bsz-students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-students,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "bsz-students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-students",
        member => "bsz-alumni|bsz-web|bsz-7a|bsz-7b|bsz-8a|bsz-10a|bsz-12a|global-students",
        });
    # bsz-alumni
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-alumni,OU=alumni,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-alumni",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-alumni@"."adminclass.net",
        description=>"bsz-alumni",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"b-oe24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "b-oe24",
	});
    # bsz-web
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-web,OU=web,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-web",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-web@"."adminclass.net",
        description=>"bsz-web",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"perezhu",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "perezhu",
	});
    # bsz-7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7a,OU=7a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7a@"."adminclass.net",
        description=>"bsz-7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-7b
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7b,OU=7b,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7b",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7b@"."adminclass.net",
        description=>"bsz-7b",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"muelleju",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "muelleju",
	});
    # bsz-8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-8a,OU=8a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-8a@"."adminclass.net",
        description=>"bsz-8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });
    # bsz-10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-10a,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-10a@"."adminclass.net",
        description=>"bsz-10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"maieran|b-wu24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "maieran|b-wu24",
        });
    # bsz-12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-12a,OU=12a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-12a@"."adminclass.net",
        description=>"bsz-12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });

    # default-school teacher bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=bjarna24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"bjarna24",
                   sAMAccountname=>"bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "bjarna24@".$root_dns,
                   mail => "bjarna24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=skula24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"skula24",
                   sAMAccountname=>"skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\skula24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "skula24@".$root_dns,
                   mail => "skula24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher rukri24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=rukri24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Rúnar Kristinsson",
                   givenName=>"Rúnar",
                   name=>"rukri24",
                   sAMAccountname=>"rukri24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\rukri24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/rukri24",
                   sn=>"Kristinsson",
                   userPrincipalName => "rukri24@".$root_dns,
                   mail => "rukri24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Runar",
                   sophomorixSurnameASCII  => "Kristinsson",
                   sophomorixFirstnameInitial => "R.",
                   sophomorixSurnameInitial  => "K.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "05.09.1969",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher oe24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=oe24,OU=alumni,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"oe24",
                   sAMAccountname=>"oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\alumni\\oe24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/alumni/oe24",
                   sn=>"Ömür",
                   userPrincipalName => "oe24@".$root_dns,
                   mail => "oe24@"."linuxmuster.local",
                   sophomorixAdminClass => "alumni",
                   sophomorixExitAdminClass => "teachers",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|alumni|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher wu24 -> student
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=wu24,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"wu24",
                   sAMAccountname=>"wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\10a\\wu24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/10a/wu24",
                   sn=>"Würth",
                   userPrincipalName => "wu24@".$root_dns,
                   mail => "wu24@"."linuxmuster.local",
                   sophomorixAdminClass => "10a",
                   sophomorixExitAdminClass => "teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|10a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student stefanol1 -> teacher
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol1,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol1",
                   sAMAccountname=>"stefanol1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\stefanol1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/stefanol1",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol1@".$root_dns,
                   mail => "stefanol1@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "12a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1975",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student muelleju1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju1,OU=7b,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju1",
                   sAMAccountname=>"muelleju1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\7b\\muelleju1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/7b/muelleju1",
                   sn=>"Müller",
                   userPrincipalName => "muelleju1@".$root_dns,
                   mail => "muelleju1@"."linuxmuster.local",
                   sophomorixAdminClass => "7b",
                   sophomorixExitAdminClass => "7a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|7b|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student perezhu1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu1,OU=web,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Pérez",
                   givenName=>"Hugo",
                   name=>"perezhu1",
                   sAMAccountname=>"perezhu1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\web\\perezhu1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/web/perezhu1",
                   sn=>"Pérez",
                   userPrincipalName => "perezhu1@".$root_dns,
                   mail => "perezhu1@"."linuxmuster.local",
                   sophomorixAdminClass => "web",
                   sophomorixExitAdminClass => "10a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|web|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student maieran1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=maieran1,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"André Maier",
                   givenName=>"André",
                   name=>"maieran1",
                   sAMAccountname=>"maieran1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\10a\\maieran1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/10a/maieran1",
                   sn=>"Maier",
                   userPrincipalName => "maieran1@".$root_dns,
                   mail => "maieran1@"."linuxmuster.local",
                   sophomorixAdminClass => "10a",
                   sophomorixExitAdminClass => "8a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Andre",
                   sophomorixSurnameASCII  => "Maier",
                   sophomorixFirstnameInitial => "A.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "12.12.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|10a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school group test
    # teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=teachers,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "teachers@".$root_dns,
        sophomorixMembers=>"bjarna24|skula24|rukri24|stefanol1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-teachers",
        member => "global-teachers|bjarna24|skula24|rukri24|stefanol1",
		    });
    # students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=students,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-students",
        member => "alumni|web|7a|7b|8a|10a|12a|global-students",
        });
    # alumni
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=alumni,OU=alumni,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"alumni",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "alumni@".$root_dns,
        description=>"alumni",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"oe24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "oe24",
	});
    # web
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=web,OU=web,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"web",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "web@".$root_dns,
        description=>"web",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"perezhu1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "perezhu1",
	});
    # 7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=7a,OU=7a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "7a@".$root_dns,
        description=>"7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 7b
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=7b,OU=7b,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"7b",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "7b@".$root_dns,
        description=>"7b",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"muelleju1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "muelleju1",
	});
    # 8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=8a,OU=8a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "8a@".$root_dns,
        description=>"8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=10a,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "10a@".$root_dns,
        description=>"10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"maieran1|wu24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "maieran1|wu24",
        });
    # 12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=12a,OU=12a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "12a@".$root_dns,
        description=>"12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
        });
}



############################################################
# --workflow-10-check --workflow-10-do
############################################################
if ($workflow_10_check==1){

    my $command_newfile_1="sophomorix-newfile $all_options --keep-file --name bsz.students.csv ".
                        "/usr/share/sophomorix-developer/testdata/bsz.students.csv-workflow-schoolisolation-10.utf8";
    my $command_newfile_2="sophomorix-newfile $all_options --keep-file --name bsz.teachers.csv ".
                        "/usr/share/sophomorix-developer/testdata/bsz.teachers.csv-workflow-schoolisolation-10.utf8";
    my $command_cp_file="cp /usr/share/sophomorix-developer/testdata/bsz.extrastudents.csv-workflow-schoolisolation-10.utf8 ".
                        "/etc/linuxmuster/sophomorix/bsz/bsz.extrastudents.csv";
    &run_command($command_newfile_1);
    &run_command($command_newfile_2);
    &run_command($command_cp_file);

    my $command_check="sophomorix-check $all_options ";
    &run_command($command_check);

    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.add",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.update",8);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.kill",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.nochange",10);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.error",0);

    &run_command($command_check);

    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.add",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.update",8);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.kill",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.nochange",10);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.error",0);
}

############################################################
if ($workflow_10_do==1){
    &run_command("sophomorix-add $all_options");
    &run_command("sophomorix-update $all_options");
    &run_command("sophomorix-kill $all_options");

    # bsz teacher b-bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-bjarna24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"b-bjarna24",
                   sAMAccountname=>"b-bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\b-bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/b-bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "b-bjarna24@".$root_dns,
                   mail => "b-bjarna24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-teachers",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-skula24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"b-skula24",
                   sAMAccountname=>"b-skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\b-skula24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/b-skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "b-skula24@".$root_dns,
                   mail => "b-skula24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-rukri24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-rukri24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Rúnar Kristinsson",
                   givenName=>"Rúnar",
                   name=>"b-rukri24",
                   sAMAccountname=>"b-rukri24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\b-rukri24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/b-rukri24",
                   sn=>"Kristinsson",
                   userPrincipalName => "b-rukri24@".$root_dns,
                   mail => "b-rukri24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Runar",
                   sophomorixSurnameASCII  => "Kristinsson",
                   sophomorixFirstnameInitial => "R.",
                   sophomorixSurnameInitial  => "K.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "05.09.1969",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-oe24 -> extrastudents.csv in Klasse alumni
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-oe24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"b-oe24",
                   sAMAccountname=>"b-oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\b-oe24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/b-oe24",
                   sn=>"Ömür",
                   userPrincipalName => "b-oe24@".$root_dns,
                   mail => "b-oe24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-alumni",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-wu24 -> student in 10a
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-wu24,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"b-wu24",
                   sAMAccountname=>"b-wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\10a\\b-wu24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/10a/b-wu24",
                   sn=>"Würth",
                   userPrincipalName => "b-wu24@".$root_dns,
                   mail => "b-wu24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-10a",
                   sophomorixExitAdminClass => "bsz-teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-10a|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student stefanol -> teacher
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol",
                   sAMAccountname=>"stefanol",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\stefanol",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/stefanol",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol@".$root_dns,
                   mail => "stefanol@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-teachers",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1973",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student muelleju
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju",
                   sAMAccountname=>"muelleju",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\muelleju",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/muelleju",
                   sn=>"Müller",
                   userPrincipalName => "muelleju@".$root_dns,
                   mail => "muelleju@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-7b",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "unid1234",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student perezhu -> extrastudents.csv, Klasse web
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Pérez",
                   givenName=>"Hugo",
                   name=>"perezhu",
                   sAMAccountname=>"perezhu",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\perezhu",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/perezhu",
                   sn=>"Pérez",
                   userPrincipalName => "perezhu@".$root_dns,
                   mail => "perezhu@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-web",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student maieran
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=maieran,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"André Maier",
                   givenName=>"André",
                   name=>"maieran",
                   sAMAccountname=>"maieran",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\maieran",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/maieran",
                   sn=>"Maier",
                   userPrincipalName => "maieran@".$root_dns,
                   mail => "maieran@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-10a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Andre",
                   sophomorixSurnameASCII  => "Maier",
                   sophomorixFirstnameInitial => "A.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "12.12.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "unid2345",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz group test
    # bsz-teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-teachers,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "bsz-teachers@"."teacherclass.net",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-teachers",
        member => "global-teachers",
        });
    # bsz-students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-students,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "bsz-students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-students",
        member => "bsz-alumni|bsz-attic|bsz-web|bsz-7a|bsz-7b|bsz-8a|bsz-10a|bsz-12a|global-students",
        });
    # bsz-alumni
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-alumni,OU=alumni,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-alumni",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-alumni@"."adminclass.net",
        description=>"bsz-alumni",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-attic
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-attic,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-attic",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-attic@"."adminclass.net",
        description=>"bsz-attic",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"b-oe24|perezhu|muelleju|maieran|b-bjarna24|b-skula24|b-rukri24|stefanol",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "b-oe24|perezhu|muelleju|maieran|b-bjarna24|b-skula24|b-rukri24|stefanol",
	});
    # bsz-web
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-web,OU=web,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-web",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-web@"."adminclass.net",
        description=>"bsz-web",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7a,OU=7a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7a@"."adminclass.net",
        description=>"bsz-7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-7b
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7b,OU=7b,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7b",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7b@"."adminclass.net",
        description=>"bsz-7b",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-8a,OU=8a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-8a@"."adminclass.net",
        description=>"bsz-8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });
    # bsz-10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-10a,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-10a@"."adminclass.net",
        description=>"bsz-10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"b-wu24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "b-wu24",
        });
    # bsz-12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-12a,OU=12a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-12a@"."adminclass.net",
        description=>"bsz-12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });

    # default-school teacher bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=bjarna24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"bjarna24",
                   sAMAccountname=>"bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "bjarna24@".$root_dns,
                   mail => "bjarna24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=skula24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"skula24",
                   sAMAccountname=>"skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\skula24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "skula24@".$root_dns,
                   mail => "skula24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher rukri24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=rukri24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Rúnar Kristinsson",
                   givenName=>"Rúnar",
                   name=>"rukri24",
                   sAMAccountname=>"rukri24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\rukri24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/rukri24",
                   sn=>"Kristinsson",
                   userPrincipalName => "rukri24@".$root_dns,
                   mail => "rukri24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "unknown",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Runar",
                   sophomorixSurnameASCII  => "Kristinsson",
                   sophomorixFirstnameInitial => "R.",
                   sophomorixSurnameInitial  => "K.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "05.09.1969",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher oe24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=oe24,OU=alumni,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"oe24",
                   sAMAccountname=>"oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\alumni\\oe24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/alumni/oe24",
                   sn=>"Ömür",
                   userPrincipalName => "oe24@".$root_dns,
                   mail => "oe24@"."linuxmuster.local",
                   sophomorixAdminClass => "alumni",
                   sophomorixExitAdminClass => "teachers",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|alumni|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher wu24 -> student
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=wu24,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"wu24",
                   sAMAccountname=>"wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\10a\\wu24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/10a/wu24",
                   sn=>"Würth",
                   userPrincipalName => "wu24@".$root_dns,
                   mail => "wu24@"."linuxmuster.local",
                   sophomorixAdminClass => "10a",
                   sophomorixExitAdminClass => "teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|10a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student stefanol1 -> teacher
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol1,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol1",
                   sAMAccountname=>"stefanol1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\stefanol1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/stefanol1",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol1@".$root_dns,
                   mail => "stefanol1@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "12a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1975",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student muelleju1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju1,OU=7b,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju1",
                   sAMAccountname=>"muelleju1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\7b\\muelleju1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/7b/muelleju1",
                   sn=>"Müller",
                   userPrincipalName => "muelleju1@".$root_dns,
                   mail => "muelleju1@"."linuxmuster.local",
                   sophomorixAdminClass => "7b",
                   sophomorixExitAdminClass => "7a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|7b|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student perezhu1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu1,OU=web,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Pérez",
                   givenName=>"Hugo",
                   name=>"perezhu1",
                   sAMAccountname=>"perezhu1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\web\\perezhu1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/web/perezhu1",
                   sn=>"Pérez",
                   userPrincipalName => "perezhu1@".$root_dns,
                   mail => "perezhu1@"."linuxmuster.local",
                   sophomorixAdminClass => "web",
                   sophomorixExitAdminClass => "10a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|web|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student maieran1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=maieran1,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"André Maier",
                   givenName=>"André",
                   name=>"maieran1",
                   sAMAccountname=>"maieran1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\10a\\maieran1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/10a/maieran1",
                   sn=>"Maier",
                   userPrincipalName => "maieran1@".$root_dns,
                   mail => "maieran1@"."linuxmuster.local",
                   sophomorixAdminClass => "10a",
                   sophomorixExitAdminClass => "8a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Andre",
                   sophomorixSurnameASCII  => "Maier",
                   sophomorixFirstnameInitial => "A.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "12.12.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|10a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school group test
    # teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=teachers,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "teachers@".$root_dns,
        sophomorixMembers=>"bjarna24|skula24|rukri24|stefanol1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-teachers",
        member => "global-teachers|bjarna24|skula24|rukri24|stefanol1",
		    });
    # students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=students,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-students",
        member => "alumni|web|7a|7b|8a|10a|12a|global-students",
        });
    # alumni
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=alumni,OU=alumni,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"alumni",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "alumni@".$root_dns,
        description=>"alumni",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"oe24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "oe24",
	});
    # web
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=web,OU=web,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"web",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "web@".$root_dns,
        description=>"web",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"perezhu1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "perezhu1",
	});
    # 7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=7a,OU=7a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "7a@".$root_dns,
        description=>"7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 7b
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=7b,OU=7b,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"7b",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "7b@".$root_dns,
        description=>"7b",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"muelleju1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "muelleju1",
	});
    # 8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=8a,OU=8a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "8a@".$root_dns,
        description=>"8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=10a,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "10a@".$root_dns,
        description=>"10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"maieran1|wu24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "maieran1|wu24",
        });
    # 12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=12a,OU=12a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "12a@".$root_dns,
        description=>"12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
        });
}



############################################################
# --workflow-11-check --workflow-11-do
############################################################
if ($workflow_11_check==1){


    my $command_newfile_1="sophomorix-newfile $all_options --keep-file --name students.csv ".
                        "/usr/share/sophomorix-developer/testdata/students.csv-workflow-schoolisolation-11.utf8";
    my $command_newfile_2="sophomorix-newfile $all_options --keep-file --name teachers.csv ".
                        "/usr/share/sophomorix-developer/testdata/teachers.csv-workflow-schoolisolation-11.utf8";
    my $command_cp_file="cp /usr/share/sophomorix-developer/testdata/extrastudents.csv-workflow-schoolisolation-11.utf8 ".
                        "/etc/linuxmuster/sophomorix/default-school/extrastudents.csv";
    &run_command($command_newfile_1);
    &run_command($command_newfile_2);
    &run_command($command_cp_file);

    my $command_check="sophomorix-check $all_options ";
    &run_command($command_check);

    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.add",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.update",8);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.kill",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.nochange",10);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.error",0);

    &run_command($command_check);

    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.add",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.update",8);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.kill",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.nochange",10);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.error",0);
}

############################################################
if ($workflow_11_do==1){
    &run_command("sophomorix-add $all_options");
    &run_command("sophomorix-update $all_options");
    &run_command("sophomorix-kill $all_options");

    # bsz teacher b-bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-bjarna24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"b-bjarna24",
                   sAMAccountname=>"b-bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\b-bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/b-bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "b-bjarna24@".$root_dns,
                   mail => "b-bjarna24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-teachers",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-skula24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"b-skula24",
                   sAMAccountname=>"b-skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\b-skula24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/b-skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "b-skula24@".$root_dns,
                   mail => "b-skula24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-rukri24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-rukri24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Rúnar Kristinsson",
                   givenName=>"Rúnar",
                   name=>"b-rukri24",
                   sAMAccountname=>"b-rukri24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\b-rukri24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/b-rukri24",
                   sn=>"Kristinsson",
                   userPrincipalName => "b-rukri24@".$root_dns,
                   mail => "b-rukri24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Runar",
                   sophomorixSurnameASCII  => "Kristinsson",
                   sophomorixFirstnameInitial => "R.",
                   sophomorixSurnameInitial  => "K.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "05.09.1969",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-oe24 -> extrastudents.csv in Klasse alumni
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-oe24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"b-oe24",
                   sAMAccountname=>"b-oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\b-oe24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/b-oe24",
                   sn=>"Ömür",
                   userPrincipalName => "b-oe24@".$root_dns,
                   mail => "b-oe24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-alumni",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-wu24 -> student in 10a
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-wu24,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"b-wu24",
                   sAMAccountname=>"b-wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\10a\\b-wu24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/10a/b-wu24",
                   sn=>"Würth",
                   userPrincipalName => "b-wu24@".$root_dns,
                   mail => "b-wu24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-10a",
                   sophomorixExitAdminClass => "bsz-teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-10a|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student stefanol -> teacher
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol",
                   sAMAccountname=>"stefanol",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\stefanol",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/stefanol",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol@".$root_dns,
                   mail => "stefanol@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-teachers",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1973",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student muelleju
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju",
                   sAMAccountname=>"muelleju",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\muelleju",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/muelleju",
                   sn=>"Müller",
                   userPrincipalName => "muelleju@".$root_dns,
                   mail => "muelleju@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-7b",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "unid1234",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student perezhu -> extrastudents.csv, Klasse web
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Pérez",
                   givenName=>"Hugo",
                   name=>"perezhu",
                   sAMAccountname=>"perezhu",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\perezhu",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/perezhu",
                   sn=>"Pérez",
                   userPrincipalName => "perezhu@".$root_dns,
                   mail => "perezhu@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-web",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student maieran
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=maieran,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"André Maier",
                   givenName=>"André",
                   name=>"maieran",
                   sAMAccountname=>"maieran",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\maieran",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/maieran",
                   sn=>"Maier",
                   userPrincipalName => "maieran@".$root_dns,
                   mail => "maieran@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-10a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Andre",
                   sophomorixSurnameASCII  => "Maier",
                   sophomorixFirstnameInitial => "A.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "12.12.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "unid2345",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz group test
    # bsz-teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-teachers,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "bsz-teachers@"."teacherclass.net",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-teachers",
        member => "global-teachers",
        });
    # bsz-students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-students,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "bsz-students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-students",
        member => "bsz-alumni|bsz-attic|bsz-web|bsz-7a|bsz-7b|bsz-8a|bsz-10a|bsz-12a|global-students",
        });
    # bsz-alumni
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-alumni,OU=alumni,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-alumni",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-alumni@"."adminclass.net",
        description=>"bsz-alumni",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-attic
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-attic,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-attic",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-attic@"."adminclass.net",
        description=>"bsz-attic",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"b-oe24|perezhu|muelleju|maieran|b-bjarna24|b-skula24|b-rukri24|stefanol",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "b-oe24|perezhu|muelleju|maieran|b-bjarna24|b-skula24|b-rukri24|stefanol",
	});
    # bsz-web
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-web,OU=web,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-web",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-web@"."adminclass.net",
        description=>"bsz-web",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7a,OU=7a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7a@"."adminclass.net",
        description=>"bsz-7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-7b
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7b,OU=7b,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7b",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7b@"."adminclass.net",
        description=>"bsz-7b",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-8a,OU=8a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-8a@"."adminclass.net",
        description=>"bsz-8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });
    # bsz-10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-10a,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-10a@"."adminclass.net",
        description=>"bsz-10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"b-wu24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "b-wu24",
        });
    # bsz-12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-12a,OU=12a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-12a@"."adminclass.net",
        description=>"bsz-12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });

    # default-school teacher bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=bjarna24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"bjarna24",
                   sAMAccountname=>"bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "bjarna24@".$root_dns,
                   mail => "bjarna24@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "teachers",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=skula24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"skula24",
                   sAMAccountname=>"skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\skula24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "skula24@".$root_dns,
                   mail => "skula24@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher rukri24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=rukri24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Rúnar Kristinsson",
                   givenName=>"Rúnar",
                   name=>"rukri24",
                   sAMAccountname=>"rukri24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\rukri24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/rukri24",
                   sn=>"Kristinsson",
                   userPrincipalName => "rukri24@".$root_dns,
                   mail => "rukri24@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Runar",
                   sophomorixSurnameASCII  => "Kristinsson",
                   sophomorixFirstnameInitial => "R.",
                   sophomorixSurnameInitial  => "K.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "05.09.1969",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher oe24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=oe24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"oe24",
                   sAMAccountname=>"oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\oe24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/oe24",
                   sn=>"Ömür",
                   userPrincipalName => "oe24@".$root_dns,
                   mail => "oe24@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "alumni",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher wu24 -> student
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=wu24,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"wu24",
                   sAMAccountname=>"wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\10a\\wu24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/10a/wu24",
                   sn=>"Würth",
                   userPrincipalName => "wu24@".$root_dns,
                   mail => "wu24@"."linuxmuster.local",
                   sophomorixAdminClass => "10a",
                   sophomorixExitAdminClass => "teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|10a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student stefanol1 -> teacher
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol1",
                   sAMAccountname=>"stefanol1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\stefanol1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/stefanol1",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol1@".$root_dns,
                   mail => "stefanol1@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "teachers",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1975",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student muelleju1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju1",
                   sAMAccountname=>"muelleju1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\muelleju1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/muelleju1",
                   sn=>"Müller",
                   userPrincipalName => "muelleju1@".$root_dns,
                   mail => "muelleju1@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "7b",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student perezhu1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Pérez",
                   givenName=>"Hugo",
                   name=>"perezhu1",
                   sAMAccountname=>"perezhu1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\perezhu1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/perezhu1",
                   sn=>"Pérez",
                   userPrincipalName => "perezhu1@".$root_dns,
                   mail => "perezhu1@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "web",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student maieran1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=maieran1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"André Maier",
                   givenName=>"André",
                   name=>"maieran1",
                   sAMAccountname=>"maieran1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\maieran1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/maieran1",
                   sn=>"Maier",
                   userPrincipalName => "maieran1@".$root_dns,
                   mail => "maieran1@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "10a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Andre",
                   sophomorixSurnameASCII  => "Maier",
                   sophomorixFirstnameInitial => "A.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "12.12.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school group test
    # teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=teachers,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "teachers@".$root_dns,
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-teachers",
        member => "global-teachers",
		    });
    # students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=students,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-students",
        member => "alumni|attic|web|7a|7b|8a|10a|12a|global-students",
        });
    # alumni
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=alumni,OU=alumni,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"alumni",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "alumni@".$root_dns,
        description=>"alumni",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # attic
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=attic,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"attic",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "attic@".$root_dns,
        description=>"attic",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"oe24|perezhu1|muelleju1|maieran1|bjarna24|skula24|rukri24|stefanol1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "oe24|perezhu1|muelleju1|maieran1|bjarna24|skula24|rukri24|stefanol1",
	});
    # web
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=web,OU=web,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"web",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "web@".$root_dns,
        description=>"web",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=7a,OU=7a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "7a@".$root_dns,
        description=>"7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 7b
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=7b,OU=7b,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"7b",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "7b@".$root_dns,
        description=>"7b",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=8a,OU=8a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "8a@".$root_dns,
        description=>"8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=10a,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "10a@".$root_dns,
        description=>"10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"wu24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "wu24",
        });
    # 12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=12a,OU=12a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "12a@".$root_dns,
        description=>"12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
        });
}



############################################################
# --workflow-12-check --workflow-12-do
############################################################
if ($workflow_12_check==1){
    my $dn_b_bjarna="CN=b-bjarna24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse;
    &AD_user_timeupdate($ldap,$root_dse,$dn_b_bjarna,"20170101000001.0Z","---");
    my $dn_b_skula="CN=b-skula24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse;
    &AD_user_timeupdate($ldap,$root_dse,$dn_b_skula,"20170101000002.0Z","---");
    my $dn_b_rukri="CN=b-rukri24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse; 
    &AD_user_timeupdate($ldap,$root_dse,$dn_b_rukri,"20170101000003.0Z","---");

    my $dn_muelleju="CN=muelleju,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse;
    &AD_user_timeupdate($ldap,$root_dse,$dn_muelleju,"20170101000004.0Z","---");
    my $dn_stefanol="CN=stefanol,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse;
    &AD_user_timeupdate($ldap,$root_dse,$dn_stefanol,"20170101000005.0Z","---");
    my $dn_maieran="CN=maieran,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse; 
    &AD_user_timeupdate($ldap,$root_dse,$dn_maieran,"20170101000006.0Z","---");

    my $command_newfile_1="sophomorix-newfile $all_options --keep-file --name bsz.students.csv ".
                        "/usr/share/sophomorix-developer/testdata/bsz.students.csv-workflow-schoolisolation-12.utf8";
    my $command_newfile_2="sophomorix-newfile $all_options --keep-file --name bsz.teachers.csv ".
                        "/usr/share/sophomorix-developer/testdata/bsz.teachers.csv-workflow-schoolisolation-12.utf8";
    &run_command($command_newfile_1);
    &run_command($command_newfile_2);

    my $command_check="sophomorix-check $all_options ";
    &run_command($command_check);

    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.add",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.update",6);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.kill",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.nochange",12);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.error",0);

    &run_command($command_check);

    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.add",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.update",6);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.kill",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.nochange",12);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.error",0);
}

############################################################
if ($workflow_12_do==1){
    &run_command("sophomorix-add $all_options");
    &run_command("sophomorix-update $all_options");
    &run_command("sophomorix-kill $all_options");

    # bsz teacher b-bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-bjarna24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"b-bjarna24",
                   sAMAccountname=>"b-bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "b-bjarna24@".$root_dns,
                   mail => "b-bjarna24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "bsz-attic",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "A",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-skula24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"b-skula24",
                   sAMAccountname=>"b-skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\b-skula24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/b-skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "b-skula24@".$root_dns,
                   mail => "b-skula24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000002.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-rukri24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-rukri24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Rúnar Kristinsson",
                   givenName=>"Rúnar",
                   name=>"b-rukri24",
                   sAMAccountname=>"b-rukri24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\b-rukri24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/b-rukri24",
                   sn=>"Kristinsson",
                   userPrincipalName => "b-rukri24@".$root_dns,
                   mail => "b-rukri24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Runar",
                   sophomorixSurnameASCII  => "Kristinsson",
                   sophomorixFirstnameInitial => "R.",
                   sophomorixSurnameInitial  => "K.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "05.09.1969",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000003.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-oe24 -> extrastudents.csv in Klasse alumni
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-oe24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"b-oe24",
                   sAMAccountname=>"b-oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\b-oe24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/b-oe24",
                   sn=>"Ömür",
                   userPrincipalName => "b-oe24@".$root_dns,
                   mail => "b-oe24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-alumni",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-wu24 -> student in 10a
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-wu24,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"b-wu24",
                   sAMAccountname=>"b-wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\10a\\b-wu24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/10a/b-wu24",
                   sn=>"Würth",
                   userPrincipalName => "b-wu24@".$root_dns,
                   mail => "b-wu24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-10a",
                   sophomorixExitAdminClass => "bsz-teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-10a|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student stefanol -> teacher
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol",
                   sAMAccountname=>"stefanol",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\stefanol",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/stefanol",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol@".$root_dns,
                   mail => "stefanol@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-teachers",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1973",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000005.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student muelleju
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju,OU=7a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju",
                   sAMAccountname=>"muelleju",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\7a\\muelleju",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/7a/muelleju",
                   sn=>"Müller",
                   userPrincipalName => "muelleju@".$root_dns,
                   mail => "muelleju@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-7a",
                   sophomorixExitAdminClass => "bsz-attic",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "A",
                   sophomorixUnid => "unid1234",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-7a|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student perezhu -> extrastudents.csv, Klasse web
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Pérez",
                   givenName=>"Hugo",
                   name=>"perezhu",
                   sAMAccountname=>"perezhu",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\perezhu",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/perezhu",
                   sn=>"Pérez",
                   userPrincipalName => "perezhu@".$root_dns,
                   mail => "perezhu@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-web",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student maieran
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=maieran,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"André Maier",
                   givenName=>"André",
                   name=>"maieran",
                   sAMAccountname=>"maieran",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\maieran",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/maieran",
                   sn=>"Maier",
                   userPrincipalName => "maieran@".$root_dns,
                   mail => "maieran@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-10a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Andre",
                   sophomorixSurnameASCII  => "Maier",
                   sophomorixFirstnameInitial => "A.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "12.12.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000006.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "unid2345",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz group test
    # bsz-teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-teachers,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "bsz-teachers@"."teacherclass.net",
        sophomorixMembers=>"b-bjarna24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-teachers",
        member => "global-teachers|b-bjarna24",
        });
    # bsz-students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-students,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "bsz-students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-students",
        member => "bsz-alumni|bsz-attic|bsz-web|bsz-7a|bsz-7b|bsz-8a|bsz-10a|bsz-12a|global-students",
        });
    # bsz-alumni
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-alumni,OU=alumni,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-alumni",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-alumni@"."adminclass.net",
        description=>"bsz-alumni",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-attic
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-attic,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-attic",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-attic@"."adminclass.net",
        description=>"bsz-attic",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"b-oe24|perezhu|maieran|b-skula24|b-rukri24|stefanol",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "b-oe24|perezhu|maieran|b-skula24|b-rukri24|stefanol",
	});
    # bsz-web
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-web,OU=web,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-web",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-web@"."adminclass.net",
        description=>"bsz-web",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7a,OU=7a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7a@"."adminclass.net",
        description=>"bsz-7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"muelleju",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "muelleju",
	});
    # bsz-7b
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7b,OU=7b,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7b",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7b@"."adminclass.net",
        description=>"bsz-7b",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-8a,OU=8a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-8a@"."adminclass.net",
        description=>"bsz-8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });
    # bsz-10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-10a,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-10a@"."adminclass.net",
        description=>"bsz-10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"b-wu24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "b-wu24",
        });
    # bsz-12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-12a,OU=12a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-12a@"."adminclass.net",
        description=>"bsz-12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });

    # default-school teacher bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=bjarna24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"bjarna24",
                   sAMAccountname=>"bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "bjarna24@".$root_dns,
                   mail => "bjarna24@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "teachers",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=skula24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"skula24",
                   sAMAccountname=>"skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\skula24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "skula24@".$root_dns,
                   mail => "skula24@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher rukri24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=rukri24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Rúnar Kristinsson",
                   givenName=>"Rúnar",
                   name=>"rukri24",
                   sAMAccountname=>"rukri24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\rukri24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/rukri24",
                   sn=>"Kristinsson",
                   userPrincipalName => "rukri24@".$root_dns,
                   mail => "rukri24@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Runar",
                   sophomorixSurnameASCII  => "Kristinsson",
                   sophomorixFirstnameInitial => "R.",
                   sophomorixSurnameInitial  => "K.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "05.09.1969",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher oe24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=oe24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"oe24",
                   sAMAccountname=>"oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\oe24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/oe24",
                   sn=>"Ömür",
                   userPrincipalName => "oe24@".$root_dns,
                   mail => "oe24@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "alumni",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher wu24 -> student
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=wu24,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"wu24",
                   sAMAccountname=>"wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\10a\\wu24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/10a/wu24",
                   sn=>"Würth",
                   userPrincipalName => "wu24@".$root_dns,
                   mail => "wu24@"."linuxmuster.local",
                   sophomorixAdminClass => "10a",
                   sophomorixExitAdminClass => "teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|10a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student stefanol1 -> teacher
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol1",
                   sAMAccountname=>"stefanol1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\stefanol1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/stefanol1",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol1@".$root_dns,
                   mail => "stefanol1@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "teachers",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1975",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student muelleju1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju1",
                   sAMAccountname=>"muelleju1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\muelleju1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/muelleju1",
                   sn=>"Müller",
                   userPrincipalName => "muelleju1@".$root_dns,
                   mail => "muelleju1@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "7b",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student perezhu1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Pérez",
                   givenName=>"Hugo",
                   name=>"perezhu1",
                   sAMAccountname=>"perezhu1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\perezhu1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/perezhu1",
                   sn=>"Pérez",
                   userPrincipalName => "perezhu1@".$root_dns,
                   mail => "perezhu1@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "web",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student maieran1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=maieran1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"André Maier",
                   givenName=>"André",
                   name=>"maieran1",
                   sAMAccountname=>"maieran1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\maieran1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/maieran1",
                   sn=>"Maier",
                   userPrincipalName => "maieran1@".$root_dns,
                   mail => "maieran1@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "10a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Andre",
                   sophomorixSurnameASCII  => "Maier",
                   sophomorixFirstnameInitial => "A.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "12.12.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school group test
    # teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=teachers,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "teachers@".$root_dns,
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-teachers",
        member => "global-teachers",
		    });
    # students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=students,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-students",
        member => "alumni|attic|web|7a|7b|8a|10a|12a|global-students",
        });
    # alumni
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=alumni,OU=alumni,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"alumni",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "alumni@".$root_dns,
        description=>"alumni",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # attic
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=attic,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"attic",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "attic@".$root_dns,
        description=>"attic",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"oe24|perezhu1|muelleju1|maieran1|bjarna24|skula24|rukri24|stefanol1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "oe24|perezhu1|muelleju1|maieran1|bjarna24|skula24|rukri24|stefanol1",
	});
    # web
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=web,OU=web,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"web",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "web@".$root_dns,
        description=>"web",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=7a,OU=7a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "7a@".$root_dns,
        description=>"7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 7b
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=7b,OU=7b,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"7b",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "7b@".$root_dns,
        description=>"7b",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=8a,OU=8a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "8a@".$root_dns,
        description=>"8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=10a,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "10a@".$root_dns,
        description=>"10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"wu24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "wu24",
        });
    # 12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=12a,OU=12a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "12a@".$root_dns,
        description=>"12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
        });
}



############################################################
# --workflow-13-check --workflow-13-do
############################################################
if ($workflow_13_check==1){
    my $dn_bjarna="CN=bjarna24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse;
    &AD_user_timeupdate($ldap,$root_dse,$dn_bjarna,"20170101000001.0Z","---");
    my $dn_skula="CN=skula24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse;
    &AD_user_timeupdate($ldap,$root_dse,$dn_skula,"20170101000002.0Z","---");
    my $dn_rukri="CN=rukri24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse; 
    &AD_user_timeupdate($ldap,$root_dse,$dn_rukri,"20170101000003.0Z","---");

    my $dn_muelleju="CN=muelleju1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse;
    &AD_user_timeupdate($ldap,$root_dse,$dn_muelleju,"20170101000004.0Z","---");
    my $dn_stefanol="CN=stefanol1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse;
    &AD_user_timeupdate($ldap,$root_dse,$dn_stefanol,"20170101000005.0Z","---");
    my $dn_maieran="CN=maieran1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse; 
    &AD_user_timeupdate($ldap,$root_dse,$dn_maieran,"20170101000006.0Z","---");

    my $command_newfile_1="sophomorix-newfile $all_options --keep-file --name students.csv ".
                        "/usr/share/sophomorix-developer/testdata/students.csv-workflow-schoolisolation-13.utf8";
    my $command_newfile_2="sophomorix-newfile $all_options --keep-file --name teachers.csv ".
                        "/usr/share/sophomorix-developer/testdata/teachers.csv-workflow-schoolisolation-13.utf8";
    &run_command($command_newfile_1);
    &run_command($command_newfile_2);

    my $command_check="sophomorix-check $all_options ";
    &run_command($command_check);

    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.add",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.update",6);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.kill",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.nochange",12);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.error",0);

    &run_command($command_check);

    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.add",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.update",6);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.kill",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.nochange",12);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.error",0);
}

############################################################
if ($workflow_13_do==1){
    &run_command("sophomorix-add $all_options");
    &run_command("sophomorix-update $all_options");
    &run_command("sophomorix-kill $all_options");

    # bsz teacher b-bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-bjarna24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"b-bjarna24",
                   sAMAccountname=>"b-bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "b-bjarna24@".$root_dns,
                   mail => "b-bjarna24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "bsz-attic",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "A",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-skula24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"b-skula24",
                   sAMAccountname=>"b-skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\b-skula24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/b-skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "b-skula24@".$root_dns,
                   mail => "b-skula24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000002.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-rukri24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-rukri24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Rúnar Kristinsson",
                   givenName=>"Rúnar",
                   name=>"b-rukri24",
                   sAMAccountname=>"b-rukri24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\b-rukri24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/b-rukri24",
                   sn=>"Kristinsson",
                   userPrincipalName => "b-rukri24@".$root_dns,
                   mail => "b-rukri24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Runar",
                   sophomorixSurnameASCII  => "Kristinsson",
                   sophomorixFirstnameInitial => "R.",
                   sophomorixSurnameInitial  => "K.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "05.09.1969",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000003.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-oe24 -> extrastudents.csv in Klasse alumni
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-oe24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"b-oe24",
                   sAMAccountname=>"b-oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\b-oe24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/b-oe24",
                   sn=>"Ömür",
                   userPrincipalName => "b-oe24@".$root_dns,
                   mail => "b-oe24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-alumni",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-wu24 -> student in 10a
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-wu24,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"b-wu24",
                   sAMAccountname=>"b-wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\10a\\b-wu24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/10a/b-wu24",
                   sn=>"Würth",
                   userPrincipalName => "b-wu24@".$root_dns,
                   mail => "b-wu24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-10a",
                   sophomorixExitAdminClass => "bsz-teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-10a|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student stefanol -> teacher
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol",
                   sAMAccountname=>"stefanol",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\stefanol",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/stefanol",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol@".$root_dns,
                   mail => "stefanol@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-teachers",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1973",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000005.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student muelleju
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju,OU=7a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju",
                   sAMAccountname=>"muelleju",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\7a\\muelleju",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/7a/muelleju",
                   sn=>"Müller",
                   userPrincipalName => "muelleju@".$root_dns,
                   mail => "muelleju@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-7a",
                   sophomorixExitAdminClass => "bsz-attic",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "A",
                   sophomorixUnid => "unid1234",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-7a|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student perezhu -> extrastudents.csv, Klasse web
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Pérez",
                   givenName=>"Hugo",
                   name=>"perezhu",
                   sAMAccountname=>"perezhu",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\perezhu",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/perezhu",
                   sn=>"Pérez",
                   userPrincipalName => "perezhu@".$root_dns,
                   mail => "perezhu@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-web",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student maieran
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=maieran,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"André Maier",
                   givenName=>"André",
                   name=>"maieran",
                   sAMAccountname=>"maieran",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\maieran",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/maieran",
                   sn=>"Maier",
                   userPrincipalName => "maieran@".$root_dns,
                   mail => "maieran@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-10a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Andre",
                   sophomorixSurnameASCII  => "Maier",
                   sophomorixFirstnameInitial => "A.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "12.12.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000006.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "unid2345",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz group test
    # bsz-teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-teachers,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "bsz-teachers@"."teacherclass.net",
        sophomorixMembers=>"b-bjarna24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-teachers",
        member => "global-teachers|b-bjarna24",
        });
    # bsz-students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-students,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "bsz-students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-students",
        member => "bsz-alumni|bsz-attic|bsz-web|bsz-7a|bsz-7b|bsz-8a|bsz-10a|bsz-12a|global-students",
        });
    # bsz-alumni
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-alumni,OU=alumni,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-alumni",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-alumni@"."adminclass.net",
        description=>"bsz-alumni",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-attic
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-attic,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-attic",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-attic@"."adminclass.net",
        description=>"bsz-attic",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"b-oe24|perezhu|maieran|b-skula24|b-rukri24|stefanol",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "b-oe24|perezhu|maieran|b-skula24|b-rukri24|stefanol",
	});
    # bsz-web
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-web,OU=web,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-web",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-web@"."adminclass.net",
        description=>"bsz-web",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7a,OU=7a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7a@"."adminclass.net",
        description=>"bsz-7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"muelleju",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "muelleju",
	});
    # bsz-7b
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7b,OU=7b,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7b",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7b@"."adminclass.net",
        description=>"bsz-7b",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-8a,OU=8a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-8a@"."adminclass.net",
        description=>"bsz-8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });
    # bsz-10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-10a,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-10a@"."adminclass.net",
        description=>"bsz-10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"b-wu24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "b-wu24",
        });
    # bsz-12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-12a,OU=12a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-12a@"."adminclass.net",
        description=>"bsz-12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });

    # default-school teacher bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=bjarna24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"bjarna24",
                   sAMAccountname=>"bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "bjarna24@".$root_dns,
                   mail => "bjarna24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "attic",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "A",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=skula24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"skula24",
                   sAMAccountname=>"skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\skula24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "skula24@".$root_dns,
                   mail => "skula24@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000002.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher rukri24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=rukri24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Rúnar Kristinsson",
                   givenName=>"Rúnar",
                   name=>"rukri24",
                   sAMAccountname=>"rukri24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\rukri24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/rukri24",
                   sn=>"Kristinsson",
                   userPrincipalName => "rukri24@".$root_dns,
                   mail => "rukri24@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Runar",
                   sophomorixSurnameASCII  => "Kristinsson",
                   sophomorixFirstnameInitial => "R.",
                   sophomorixSurnameInitial  => "K.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "05.09.1969",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000003.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher oe24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=oe24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"oe24",
                   sAMAccountname=>"oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\oe24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/oe24",
                   sn=>"Ömür",
                   userPrincipalName => "oe24@".$root_dns,
                   mail => "oe24@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "alumni",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher wu24 -> student
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=wu24,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"wu24",
                   sAMAccountname=>"wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\10a\\wu24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/10a/wu24",
                   sn=>"Würth",
                   userPrincipalName => "wu24@".$root_dns,
                   mail => "wu24@"."linuxmuster.local",
                   sophomorixAdminClass => "10a",
                   sophomorixExitAdminClass => "teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|10a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student stefanol1 -> teacher
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol1",
                   sAMAccountname=>"stefanol1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\stefanol1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/stefanol1",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol1@".$root_dns,
                   mail => "stefanol1@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "teachers",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1975",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000005.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student muelleju1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju1,OU=7a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju1",
                   sAMAccountname=>"muelleju1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\7a\\muelleju1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/7a/muelleju1",
                   sn=>"Müller",
                   userPrincipalName => "muelleju1@".$root_dns,
                   mail => "muelleju1@"."linuxmuster.local",
                   sophomorixAdminClass => "7a",
                   sophomorixExitAdminClass => "attic",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "A",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|7a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student perezhu1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Pérez",
                   givenName=>"Hugo",
                   name=>"perezhu1",
                   sAMAccountname=>"perezhu1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\perezhu1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/perezhu1",
                   sn=>"Pérez",
                   userPrincipalName => "perezhu1@".$root_dns,
                   mail => "perezhu1@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "web",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student maieran1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=maieran1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"André Maier",
                   givenName=>"André",
                   name=>"maieran1",
                   sAMAccountname=>"maieran1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\maieran1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/maieran1",
                   sn=>"Maier",
                   userPrincipalName => "maieran1@".$root_dns,
                   mail => "maieran1@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "10a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Andre",
                   sophomorixSurnameASCII  => "Maier",
                   sophomorixFirstnameInitial => "A.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "12.12.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000006.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school group test
    # teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=teachers,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "teachers@".$root_dns,
        sophomorixMembers=>"bjarna24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-teachers",
        member => "global-teachers|bjarna24",
		    });
    # students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=students,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-students",
        member => "alumni|attic|web|7a|7b|8a|10a|12a|global-students",
        });
    # alumni
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=alumni,OU=alumni,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"alumni",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "alumni@".$root_dns,
        description=>"alumni",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # attic
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=attic,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"attic",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "attic@".$root_dns,
        description=>"attic",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"oe24|perezhu1|maieran1|skula24|rukri24|stefanol1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "oe24|perezhu1|maieran1|skula24|rukri24|stefanol1",
	});
    # web
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=web,OU=web,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"web",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "web@".$root_dns,
        description=>"web",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=7a,OU=7a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "7a@".$root_dns,
        description=>"7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"muelleju1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "muelleju1",
	});
    # 7b
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=7b,OU=7b,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"7b",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "7b@".$root_dns,
        description=>"7b",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=8a,OU=8a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "8a@".$root_dns,
        description=>"8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=10a,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "10a@".$root_dns,
        description=>"10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"wu24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "wu24",
        });
    # 12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=12a,OU=12a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "12a@".$root_dns,
        description=>"12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
        });
}



############################################################
# --workflow-14-check --workflow-14-do
############################################################
if ($workflow_14_check==1){
    my $dn_rukri="CN=b-rukri24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse; 
    &AD_user_timeupdate($ldap,$root_dse,$dn_rukri,"---","20180101000003.0Z");
    my $dn_maieran="CN=maieran,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse; 
    &AD_user_timeupdate($ldap,$root_dse,$dn_maieran,"---","20180101000006.0Z");

    my $command_newfile_1="sophomorix-newfile $all_options --keep-file --name bsz.students.csv ".
                        "/usr/share/sophomorix-developer/testdata/bsz.students.csv-workflow-schoolisolation-14.utf8";
    my $command_newfile_2="sophomorix-newfile $all_options --keep-file --name bsz.teachers.csv ".
                        "/usr/share/sophomorix-developer/testdata/bsz.teachers.csv-workflow-schoolisolation-14.utf8";
    &run_command($command_newfile_1);
    &run_command($command_newfile_2);

    my $command_check="sophomorix-check $all_options ";
    &run_command($command_check);

    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.add",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.update",4);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.kill",2);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.nochange",14);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.error",0);

    &run_command($command_check);

    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.add",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.update",4);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.kill",2);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.nochange",14);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.error",0);
}

############################################################
if ($workflow_14_do==1){
    &run_command("sophomorix-add $all_options");
    &run_command("sophomorix-update $all_options");
    &run_command("sophomorix-kill $all_options");

    # bsz teacher b-bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-bjarna24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"b-bjarna24",
                   sAMAccountname=>"b-bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "b-bjarna24@".$root_dns,
                   mail => "b-bjarna24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "bsz-attic",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "A",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-skula24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"b-skula24",
                   sAMAccountname=>"b-skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-skula24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "b-skula24@".$root_dns,
                   mail => "b-skula24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "bsz-attic",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "A",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    &AD_object_nonexist($ldap,$root_dse,"user","b-rukri24");

    # bsz teacher b-oe24 -> extrastudents.csv in Klasse alumni
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-oe24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"b-oe24",
                   sAMAccountname=>"b-oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\b-oe24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/b-oe24",
                   sn=>"Ömür",
                   userPrincipalName => "b-oe24@".$root_dns,
                   mail => "b-oe24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-alumni",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-wu24 -> student in 10a
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-wu24,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"b-wu24",
                   sAMAccountname=>"b-wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\10a\\b-wu24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/10a/b-wu24",
                   sn=>"Würth",
                   userPrincipalName => "b-wu24@".$root_dns,
                   mail => "b-wu24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-10a",
                   sophomorixExitAdminClass => "bsz-teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-10a|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student stefanol -> teacher
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol,OU=12a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol",
                   sAMAccountname=>"stefanol",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\12a\\stefanol",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/12a/stefanol",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol@".$root_dns,
                   mail => "stefanol@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-12a",
                   sophomorixExitAdminClass => "bsz-attic",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1973",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "A",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-12a|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student muelleju
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju,OU=7a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju",
                   sAMAccountname=>"muelleju",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\7a\\muelleju",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/7a/muelleju",
                   sn=>"Müller",
                   userPrincipalName => "muelleju@".$root_dns,
                   mail => "muelleju@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-7a",
                   sophomorixExitAdminClass => "bsz-attic",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "A",
                   sophomorixUnid => "unid1234",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-7a|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student perezhu -> extrastudents.csv, Klasse web
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Pérez",
                   givenName=>"Hugo",
                   name=>"perezhu",
                   sAMAccountname=>"perezhu",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\perezhu",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/perezhu",
                   sn=>"Pérez",
                   userPrincipalName => "perezhu@".$root_dns,
                   mail => "perezhu@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-web",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student maieran
    &AD_object_nonexist($ldap,$root_dse,"user","maieran");

    # bsz group test
    # bsz-teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-teachers,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "bsz-teachers@"."teacherclass.net",
        sophomorixMembers=>"b-bjarna24|b-skula24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-teachers",
        member => "global-teachers|b-bjarna24|b-skula24",
        });
    # bsz-students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-students,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "bsz-students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-students",
        member => "bsz-alumni|bsz-attic|bsz-web|bsz-7a|bsz-7b|bsz-8a|bsz-10a|bsz-12a|global-students",
        });
    # bsz-alumni
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-alumni,OU=alumni,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-alumni",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-alumni@"."adminclass.net",
        description=>"bsz-alumni",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-attic
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-attic,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-attic",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-attic@"."adminclass.net",
        description=>"bsz-attic",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"b-oe24|perezhu",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "b-oe24|perezhu",
	});
    # bsz-web
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-web,OU=web,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-web",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-web@"."adminclass.net",
        description=>"bsz-web",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7a,OU=7a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7a@"."adminclass.net",
        description=>"bsz-7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"muelleju",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "muelleju",
	});
    # bsz-7b
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7b,OU=7b,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7b",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7b@"."adminclass.net",
        description=>"bsz-7b",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-8a,OU=8a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-8a@"."adminclass.net",
        description=>"bsz-8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });
    # bsz-10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-10a,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-10a@"."adminclass.net",
        description=>"bsz-10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"b-wu24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "b-wu24",
        });
    # bsz-12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-12a,OU=12a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-12a@"."adminclass.net",
        description=>"bsz-12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"stefanol",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "stefanol",
        });

    # default-school teacher bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=bjarna24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"bjarna24",
                   sAMAccountname=>"bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "bjarna24@".$root_dns,
                   mail => "bjarna24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "attic",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "A",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=skula24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"skula24",
                   sAMAccountname=>"skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\skula24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "skula24@".$root_dns,
                   mail => "skula24@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000002.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher rukri24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=rukri24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Rúnar Kristinsson",
                   givenName=>"Rúnar",
                   name=>"rukri24",
                   sAMAccountname=>"rukri24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\rukri24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/rukri24",
                   sn=>"Kristinsson",
                   userPrincipalName => "rukri24@".$root_dns,
                   mail => "rukri24@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Runar",
                   sophomorixSurnameASCII  => "Kristinsson",
                   sophomorixFirstnameInitial => "R.",
                   sophomorixSurnameInitial  => "K.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "05.09.1969",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000003.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher oe24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=oe24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"oe24",
                   sAMAccountname=>"oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\oe24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/oe24",
                   sn=>"Ömür",
                   userPrincipalName => "oe24@".$root_dns,
                   mail => "oe24@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "alumni",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher wu24 -> student
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=wu24,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"wu24",
                   sAMAccountname=>"wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\10a\\wu24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/10a/wu24",
                   sn=>"Würth",
                   userPrincipalName => "wu24@".$root_dns,
                   mail => "wu24@"."linuxmuster.local",
                   sophomorixAdminClass => "10a",
                   sophomorixExitAdminClass => "teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|10a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student stefanol1 -> teacher
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol1",
                   sAMAccountname=>"stefanol1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\stefanol1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/stefanol1",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol1@".$root_dns,
                   mail => "stefanol1@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "teachers",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1975",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000005.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student muelleju1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju1,OU=7a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju1",
                   sAMAccountname=>"muelleju1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\7a\\muelleju1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/7a/muelleju1",
                   sn=>"Müller",
                   userPrincipalName => "muelleju1@".$root_dns,
                   mail => "muelleju1@"."linuxmuster.local",
                   sophomorixAdminClass => "7a",
                   sophomorixExitAdminClass => "attic",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "A",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|7a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student perezhu1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Pérez",
                   givenName=>"Hugo",
                   name=>"perezhu1",
                   sAMAccountname=>"perezhu1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\perezhu1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/perezhu1",
                   sn=>"Pérez",
                   userPrincipalName => "perezhu1@".$root_dns,
                   mail => "perezhu1@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "web",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student maieran1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=maieran1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"André Maier",
                   givenName=>"André",
                   name=>"maieran1",
                   sAMAccountname=>"maieran1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\maieran1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/maieran1",
                   sn=>"Maier",
                   userPrincipalName => "maieran1@".$root_dns,
                   mail => "maieran1@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "10a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Andre",
                   sophomorixSurnameASCII  => "Maier",
                   sophomorixFirstnameInitial => "A.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "12.12.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000006.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school group test
    # teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=teachers,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "teachers@".$root_dns,
        sophomorixMembers=>"bjarna24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-teachers",
        member => "global-teachers|bjarna24",
		    });
    # students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=students,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-students",
        member => "alumni|attic|web|7a|7b|8a|10a|12a|global-students",
        });
    # alumni
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=alumni,OU=alumni,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"alumni",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "alumni@".$root_dns,
        description=>"alumni",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # attic
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=attic,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"attic",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "attic@".$root_dns,
        description=>"attic",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"oe24|perezhu1|maieran1|skula24|rukri24|stefanol1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "oe24|perezhu1|maieran1|skula24|rukri24|stefanol1",
	});
    # web
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=web,OU=web,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"web",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "web@".$root_dns,
        description=>"web",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=7a,OU=7a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "7a@".$root_dns,
        description=>"7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"muelleju1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "muelleju1",
	});
    # 7b
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=7b,OU=7b,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"7b",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "7b@".$root_dns,
        description=>"7b",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=8a,OU=8a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "8a@".$root_dns,
        description=>"8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=10a,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "10a@".$root_dns,
        description=>"10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"wu24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "wu24",
        });
    # 12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=12a,OU=12a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "12a@".$root_dns,
        description=>"12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
        });
}



############################################################
# --workflow-15-check --workflow-15-do
############################################################
if ($workflow_15_check==1){
    my $dn_rukri="CN=rukri24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse; 
    &AD_user_timeupdate($ldap,$root_dse,$dn_rukri,"---","20180101000003.0Z");

    my $dn_maieran="CN=maieran1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse; 
    &AD_user_timeupdate($ldap,$root_dse,$dn_maieran,"---","20180101000006.0Z");

    my $command_newfile_1="sophomorix-newfile $all_options --keep-file --name students.csv ".
                        "/usr/share/sophomorix-developer/testdata/students.csv-workflow-schoolisolation-15.utf8";
    my $command_newfile_2="sophomorix-newfile $all_options --keep-file --name teachers.csv ".
                        "/usr/share/sophomorix-developer/testdata/teachers.csv-workflow-schoolisolation-15.utf8";
    &run_command($command_newfile_1);
    &run_command($command_newfile_2);

    my $command_check="sophomorix-check $all_options ";
    &run_command($command_check);

    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.add",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.update",4);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.kill",2);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.nochange",12);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.error",0);

    &run_command($command_check);

    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.add",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.update",4);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.kill",2);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.nochange",12);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.error",0);
}

############################################################
if ($workflow_15_do==1){
    &run_command("sophomorix-add $all_options");
    &run_command("sophomorix-update $all_options");
    &run_command("sophomorix-kill $all_options");

    # bsz teacher b-bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-bjarna24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"b-bjarna24",
                   sAMAccountname=>"b-bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "b-bjarna24@".$root_dns,
                   mail => "b-bjarna24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "bsz-attic",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "A",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-skula24,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"b-skula24",
                   sAMAccountname=>"b-skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\teachers\\b-skula24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/teachers/b-skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "b-skula24@".$root_dns,
                   mail => "b-skula24@"."teacher.bsz.de",
                   sophomorixAdminClass => "bsz-teachers",
                   sophomorixExitAdminClass => "bsz-attic",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "A",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|bsz-teachers|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    &AD_object_nonexist($ldap,$root_dse,"user","b-rukri24");

    # bsz teacher b-oe24 -> extrastudents.csv in Klasse alumni
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-oe24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"b-oe24",
                   sAMAccountname=>"b-oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\b-oe24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/b-oe24",
                   sn=>"Ömür",
                   userPrincipalName => "b-oe24@".$root_dns,
                   mail => "b-oe24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-alumni",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-wu24 -> student in 10a
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-wu24,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"b-wu24",
                   sAMAccountname=>"b-wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\10a\\b-wu24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/10a/b-wu24",
                   sn=>"Würth",
                   userPrincipalName => "b-wu24@".$root_dns,
                   mail => "b-wu24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-10a",
                   sophomorixExitAdminClass => "bsz-teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-10a|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student stefanol -> teacher
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol,OU=12a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol",
                   sAMAccountname=>"stefanol",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\12a\\stefanol",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/12a/stefanol",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol@".$root_dns,
                   mail => "stefanol@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-12a",
                   sophomorixExitAdminClass => "bsz-attic",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1973",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "A",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-12a|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student muelleju
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju,OU=7a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju",
                   sAMAccountname=>"muelleju",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\7a\\muelleju",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/7a/muelleju",
                   sn=>"Müller",
                   userPrincipalName => "muelleju@".$root_dns,
                   mail => "muelleju@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-7a",
                   sophomorixExitAdminClass => "bsz-attic",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "A",
                   sophomorixUnid => "unid1234",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-7a|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student perezhu -> extrastudents.csv, Klasse web
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Pérez",
                   givenName=>"Hugo",
                   name=>"perezhu",
                   sAMAccountname=>"perezhu",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\perezhu",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/perezhu",
                   sn=>"Pérez",
                   userPrincipalName => "perezhu@".$root_dns,
                   mail => "perezhu@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-web",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student maieran
    &AD_object_nonexist($ldap,$root_dse,"user","maieran");

    # bsz group test
    # bsz-teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-teachers,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "bsz-teachers@"."teacherclass.net",
        sophomorixMembers=>"b-bjarna24|b-skula24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-teachers",
        member => "global-teachers|b-bjarna24|b-skula24",
        });
    # bsz-students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-students,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "bsz-students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-students",
        member => "bsz-alumni|bsz-attic|bsz-web|bsz-7a|bsz-7b|bsz-8a|bsz-10a|bsz-12a|global-students",
        });
    # bsz-alumni
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-alumni,OU=alumni,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-alumni",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-alumni@"."adminclass.net",
        description=>"bsz-alumni",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-attic
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-attic,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-attic",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-attic@"."adminclass.net",
        description=>"bsz-attic",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"b-oe24|perezhu",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "b-oe24|perezhu",
	});
    # bsz-web
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-web,OU=web,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-web",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-web@"."adminclass.net",
        description=>"bsz-web",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7a,OU=7a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7a@"."adminclass.net",
        description=>"bsz-7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"muelleju",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "muelleju",
	});
    # bsz-7b
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7b,OU=7b,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7b",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7b@"."adminclass.net",
        description=>"bsz-7b",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-8a,OU=8a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-8a@"."adminclass.net",
        description=>"bsz-8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });
    # bsz-10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-10a,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-10a@"."adminclass.net",
        description=>"bsz-10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"b-wu24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "b-wu24",
        });
    # bsz-12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-12a,OU=12a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-12a@"."adminclass.net",
        description=>"bsz-12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"stefanol",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "stefanol",
        });

    # default-school teacher bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=bjarna24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"bjarna24",
                   sAMAccountname=>"bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "bjarna24@".$root_dns,
                   mail => "bjarna24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "attic",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "A",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=skula24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"skula24",
                   sAMAccountname=>"skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\skula24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "skula24@".$root_dns,
                   mail => "skula24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "attic",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "A",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher rukri24
    &AD_object_nonexist($ldap,$root_dse,"user","rukri24");

    # default-school teacher oe24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=oe24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"oe24",
                   sAMAccountname=>"oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\oe24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/oe24",
                   sn=>"Ömür",
                   userPrincipalName => "oe24@".$root_dns,
                   mail => "oe24@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "alumni",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher wu24 -> student
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=wu24,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"wu24",
                   sAMAccountname=>"wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\10a\\wu24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/10a/wu24",
                   sn=>"Würth",
                   userPrincipalName => "wu24@".$root_dns,
                   mail => "wu24@"."linuxmuster.local",
                   sophomorixAdminClass => "10a",
                   sophomorixExitAdminClass => "teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|10a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student stefanol1 -> teacher
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol1,OU=12a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol1",
                   sAMAccountname=>"stefanol1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\12a\\stefanol1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/12a/stefanol1",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol1@".$root_dns,
                   mail => "stefanol1@"."linuxmuster.local",
                   sophomorixAdminClass => "12a",
                   sophomorixExitAdminClass => "attic",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1977",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "A",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|12a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student muelleju1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju1,OU=7a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju1",
                   sAMAccountname=>"muelleju1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\7a\\muelleju1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/7a/muelleju1",
                   sn=>"Müller",
                   userPrincipalName => "muelleju1@".$root_dns,
                   mail => "muelleju1@"."linuxmuster.local",
                   sophomorixAdminClass => "7a",
                   sophomorixExitAdminClass => "attic",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "A",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|7a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student perezhu1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Pérez",
                   givenName=>"Hugo",
                   name=>"perezhu1",
                   sAMAccountname=>"perezhu1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\perezhu1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/perezhu1",
                   sn=>"Pérez",
                   userPrincipalName => "perezhu1@".$root_dns,
                   mail => "perezhu1@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "web",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student maieran1
    &AD_object_nonexist($ldap,$root_dse,"user","maieran1");

    # default-school group test
    # teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=teachers,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "teachers@".$root_dns,
        sophomorixMembers=>"bjarna24|skula24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-teachers",
        member => "global-teachers|bjarna24|skula24",
		    });
    # students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=students,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-students",
        member => "alumni|attic|web|7a|7b|8a|10a|12a|global-students",
        });
    # alumni
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=alumni,OU=alumni,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"alumni",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "alumni@".$root_dns,
        description=>"alumni",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # attic
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=attic,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"attic",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "attic@".$root_dns,
        description=>"attic",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"oe24|perezhu1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "oe24|perezhu1",
	});
    # web
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=web,OU=web,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"web",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "web@".$root_dns,
        description=>"web",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=7a,OU=7a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "7a@".$root_dns,
        description=>"7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"muelleju1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "muelleju1",
	});
    # 7b
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=7b,OU=7b,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"7b",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "7b@".$root_dns,
        description=>"7b",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=8a,OU=8a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "8a@".$root_dns,
        description=>"8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=10a,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "10a@".$root_dns,
        description=>"10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"wu24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "wu24",
        });
    # 12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=12a,OU=12a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "12a@".$root_dns,
        description=>"12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"stefanol1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "stefanol1",
        });
}



############################################################
# --workflow-16-check --workflow-16-do
############################################################
if ($workflow_16_check==1){

    my $command_newfile_1="sophomorix-newfile $all_options --keep-file --name bsz.students.csv ".
                        "/usr/share/sophomorix-developer/testdata/bsz.students.csv-workflow-schoolisolation-16.utf8";
    my $command_newfile_2="sophomorix-newfile $all_options --keep-file --name bsz.teachers.csv ".
                        "/usr/share/sophomorix-developer/testdata/bsz.teachers.csv-workflow-schoolisolation-16.utf8";
    &run_command($command_newfile_1);
    &run_command($command_newfile_2);

    my $command_check="sophomorix-check $all_options ";
    &run_command($command_check);

    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.add",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.update",5);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.kill",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.nochange",9);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.error",0);
}

############################################################
if ($workflow_16_do==1){
    &run_command("sophomorix-add $all_options");
    &run_command("sophomorix-update $all_options");
    &run_command("sophomorix-kill $all_options");

    # bsz teacher b-bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-bjarna24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"b-bjarna24",
                   sAMAccountname=>"b-bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\b-bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/b-bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "b-bjarna24@".$root_dns,
                   mail => "b-bjarna24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-teachers",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-skula24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"b-skula24",
                   sAMAccountname=>"b-skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\b-skula24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/b-skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "b-skula24@".$root_dns,
                   mail => "b-skula24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    &AD_object_nonexist($ldap,$root_dse,"user","b-rukri24");

    # bsz teacher b-oe24 -> extrastudents.csv in Klasse alumni
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-oe24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"b-oe24",
                   sAMAccountname=>"b-oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\b-oe24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/b-oe24",
                   sn=>"Ömür",
                   userPrincipalName => "b-oe24@".$root_dns,
                   mail => "b-oe24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-alumni",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-wu24 -> student in 10a
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-wu24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"b-wu24",
                   sAMAccountname=>"b-wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\b-wu24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/b-wu24",
                   sn=>"Würth",
                   userPrincipalName => "b-wu24@".$root_dns,
                   mail => "b-wu24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-10a",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student stefanol -> teacher
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol",
                   sAMAccountname=>"stefanol",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\stefanol",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/stefanol",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol@".$root_dns,
                   mail => "stefanol@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-12a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1973",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student muelleju
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju",
                   sAMAccountname=>"muelleju",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\muelleju",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/muelleju",
                   sn=>"Müller",
                   userPrincipalName => "muelleju@".$root_dns,
                   mail => "muelleju@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-7a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "unid1234",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student perezhu -> extrastudents.csv, Klasse web
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Pérez",
                   givenName=>"Hugo",
                   name=>"perezhu",
                   sAMAccountname=>"perezhu",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\perezhu",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/perezhu",
                   sn=>"Pérez",
                   userPrincipalName => "perezhu@".$root_dns,
                   mail => "perezhu@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-web",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student maieran
    &AD_object_nonexist($ldap,$root_dse,"user","maieran");

    # bsz group test
    # bsz-teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-teachers,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "bsz-teachers@"."teacherclass.net",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-teachers",
        member => "global-teachers",
        });
    # bsz-students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-students,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "bsz-students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-students",
        member => "bsz-alumni|bsz-attic|bsz-web|bsz-7a|bsz-7b|bsz-8a|bsz-10a|bsz-12a|global-students",
        });
    # bsz-alumni
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-alumni,OU=alumni,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-alumni",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-alumni@"."adminclass.net",
        description=>"bsz-alumni",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-attic
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-attic,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-attic",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-attic@"."adminclass.net",
        description=>"bsz-attic",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"b-oe24|perezhu|stefanol|b-wu24|muelleju|b-bjarna24|b-skula24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "b-oe24|perezhu|stefanol|b-wu24|muelleju|b-bjarna24|b-skula24",
	});
    # bsz-web
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-web,OU=web,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-web",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-web@"."adminclass.net",
        description=>"bsz-web",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7a,OU=7a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7a@"."adminclass.net",
        description=>"bsz-7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-7b
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7b,OU=7b,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7b",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7b@"."adminclass.net",
        description=>"bsz-7b",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-8a,OU=8a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-8a@"."adminclass.net",
        description=>"bsz-8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });
    # bsz-10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-10a,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-10a@"."adminclass.net",
        description=>"bsz-10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });
    # bsz-12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-12a,OU=12a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-12a@"."adminclass.net",
        description=>"bsz-12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });

    # default-school teacher bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=bjarna24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"bjarna24",
                   sAMAccountname=>"bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "bjarna24@".$root_dns,
                   mail => "bjarna24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "attic",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "A",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=skula24,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"skula24",
                   sAMAccountname=>"skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\teachers\\skula24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/teachers/skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "skula24@".$root_dns,
                   mail => "skula24@"."linuxmuster.local",
                   sophomorixAdminClass => "teachers",
                   sophomorixExitAdminClass => "attic",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "teacher",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: false|lm:quotas:apply: true",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "A",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-teacher|teachers|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher rukri24
    &AD_object_nonexist($ldap,$root_dse,"user","rukri24");

    # default-school teacher oe24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=oe24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"oe24",
                   sAMAccountname=>"oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\oe24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/oe24",
                   sn=>"Ömür",
                   userPrincipalName => "oe24@".$root_dns,
                   mail => "oe24@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "alumni",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher wu24 -> student
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=wu24,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"wu24",
                   sAMAccountname=>"wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\10a\\wu24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/10a/wu24",
                   sn=>"Würth",
                   userPrincipalName => "wu24@".$root_dns,
                   mail => "wu24@"."linuxmuster.local",
                   sophomorixAdminClass => "10a",
                   sophomorixExitAdminClass => "teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "U",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|10a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student stefanol1 -> teacher
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol1,OU=12a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol1",
                   sAMAccountname=>"stefanol1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\12a\\stefanol1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/12a/stefanol1",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol1@".$root_dns,
                   mail => "stefanol1@"."linuxmuster.local",
                   sophomorixAdminClass => "12a",
                   sophomorixExitAdminClass => "attic",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1977",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "A",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|12a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student muelleju1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju1,OU=7a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju1",
                   sAMAccountname=>"muelleju1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\7a\\muelleju1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/7a/muelleju1",
                   sn=>"Müller",
                   userPrincipalName => "muelleju1@".$root_dns,
                   mail => "muelleju1@"."linuxmuster.local",
                   sophomorixAdminClass => "7a",
                   sophomorixExitAdminClass => "attic",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "default",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "A",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|7a|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student perezhu1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Pérez",
                   givenName=>"Hugo",
                   name=>"perezhu1",
                   sAMAccountname=>"perezhu1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\perezhu1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/perezhu1",
                   sn=>"Pérez",
                   userPrincipalName => "perezhu1@".$root_dns,
                   mail => "perezhu1@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "web",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student maieran1
    &AD_object_nonexist($ldap,$root_dse,"user","maieran1");

    # default-school group test
    # teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=teachers,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "teachers@".$root_dns,
        sophomorixMembers=>"bjarna24|skula24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-teachers",
        member => "global-teachers|bjarna24|skula24",
		    });
    # students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=students,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-students",
        member => "alumni|attic|web|7a|7b|8a|10a|12a|global-students",
        });
    # alumni
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=alumni,OU=alumni,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"alumni",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "alumni@".$root_dns,
        description=>"alumni",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # attic
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=attic,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"attic",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "attic@".$root_dns,
        description=>"attic",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"oe24|perezhu1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "oe24|perezhu1",
	});
    # web
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=web,OU=web,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"web",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "web@".$root_dns,
        description=>"web",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=7a,OU=7a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "7a@".$root_dns,
        description=>"7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"muelleju1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "muelleju1",
	});
    # 7b
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=7b,OU=7b,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"7b",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "7b@".$root_dns,
        description=>"7b",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=8a,OU=8a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "8a@".$root_dns,
        description=>"8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=10a,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "10a@".$root_dns,
        description=>"10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"wu24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "wu24",
        });
    # 12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=12a,OU=12a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "12a@".$root_dns,
        description=>"12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"stefanol1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "stefanol1",
        });
}



############################################################
# --workflow-17-check --workflow-17-do
############################################################
if ($workflow_17_check==1){

    my $command_newfile_1="sophomorix-newfile $all_options --keep-file --name students.csv ".
                        "/usr/share/sophomorix-developer/testdata/students.csv-workflow-schoolisolation-17.utf8";
    my $command_newfile_2="sophomorix-newfile $all_options --keep-file --name teachers.csv ".
                        "/usr/share/sophomorix-developer/testdata/teachers.csv-workflow-schoolisolation-17.utf8";
    &run_command($command_newfile_1);
    &run_command($command_newfile_2);

    my $command_check="sophomorix-check $all_options ";
    &run_command($command_check);

    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.add",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.update",5);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.kill",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.nochange",9);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.error",0);
}

############################################################
if ($workflow_17_do==1){
    &run_command("sophomorix-add $all_options");
    &run_command("sophomorix-update $all_options");
    &run_command("sophomorix-kill $all_options");

    # bsz teacher b-bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-bjarna24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"b-bjarna24",
                   sAMAccountname=>"b-bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\b-bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/b-bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "b-bjarna24@".$root_dns,
                   mail => "b-bjarna24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-teachers",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-skula24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"b-skula24",
                   sAMAccountname=>"b-skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\b-skula24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/b-skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "b-skula24@".$root_dns,
                   mail => "b-skula24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    &AD_object_nonexist($ldap,$root_dse,"user","b-rukri24");

    # bsz teacher b-oe24 -> extrastudents.csv in Klasse alumni
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-oe24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"b-oe24",
                   sAMAccountname=>"b-oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\b-oe24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/b-oe24",
                   sn=>"Ömür",
                   userPrincipalName => "b-oe24@".$root_dns,
                   mail => "b-oe24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-alumni",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-wu24 -> student in 10a
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-wu24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"b-wu24",
                   sAMAccountname=>"b-wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\b-wu24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/b-wu24",
                   sn=>"Würth",
                   userPrincipalName => "b-wu24@".$root_dns,
                   mail => "b-wu24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-10a",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student stefanol -> teacher
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol",
                   sAMAccountname=>"stefanol",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\stefanol",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/stefanol",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol@".$root_dns,
                   mail => "stefanol@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-12a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1973",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student muelleju
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju",
                   sAMAccountname=>"muelleju",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\muelleju",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/muelleju",
                   sn=>"Müller",
                   userPrincipalName => "muelleju@".$root_dns,
                   mail => "muelleju@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-7a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "unid1234",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student perezhu -> extrastudents.csv, Klasse web
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Pérez",
                   givenName=>"Hugo",
                   name=>"perezhu",
                   sAMAccountname=>"perezhu",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\perezhu",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/perezhu",
                   sn=>"Pérez",
                   userPrincipalName => "perezhu@".$root_dns,
                   mail => "perezhu@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-web",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student maieran
    &AD_object_nonexist($ldap,$root_dse,"user","maieran");

    # bsz group test
    # bsz-teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-teachers,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "bsz-teachers@"."teacherclass.net",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-teachers",
        member => "global-teachers",
        });
    # bsz-students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-students,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "bsz-students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-students",
        member => "bsz-alumni|bsz-attic|bsz-web|bsz-7a|bsz-7b|bsz-8a|bsz-10a|bsz-12a|global-students",
        });
    # bsz-alumni
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-alumni,OU=alumni,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-alumni",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-alumni@"."adminclass.net",
        description=>"bsz-alumni",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-attic
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-attic,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-attic",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-attic@"."adminclass.net",
        description=>"bsz-attic",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"b-oe24|perezhu|stefanol|b-wu24|muelleju|b-bjarna24|b-skula24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "b-oe24|perezhu|stefanol|b-wu24|muelleju|b-bjarna24|b-skula24",
	});
    # bsz-web
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-web,OU=web,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-web",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-web@"."adminclass.net",
        description=>"bsz-web",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7a,OU=7a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7a@"."adminclass.net",
        description=>"bsz-7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-7b
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7b,OU=7b,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7b",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7b@"."adminclass.net",
        description=>"bsz-7b",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-8a,OU=8a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-8a@"."adminclass.net",
        description=>"bsz-8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });
    # bsz-10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-10a,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-10a@"."adminclass.net",
        description=>"bsz-10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });
    # bsz-12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-12a,OU=12a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-12a@"."adminclass.net",
        description=>"bsz-12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });

    # default-school teacher bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=bjarna24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"bjarna24",
                   sAMAccountname=>"bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "bjarna24@".$root_dns,
                   mail => "bjarna24@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "teachers",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=skula24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"skula24",
                   sAMAccountname=>"skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\skula24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "skula24@".$root_dns,
                   mail => "skula24@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher rukri24
    &AD_object_nonexist($ldap,$root_dse,"user","rukri24");

    # default-school teacher oe24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=oe24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"oe24",
                   sAMAccountname=>"oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\oe24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/oe24",
                   sn=>"Ömür",
                   userPrincipalName => "oe24@".$root_dns,
                   mail => "oe24@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "alumni",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher wu24 -> student
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=wu24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"wu24",
                   sAMAccountname=>"wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\wu24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/wu24",
                   sn=>"Würth",
                   userPrincipalName => "wu24@".$root_dns,
                   mail => "wu24@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "10a",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student stefanol1 -> teacher
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol1",
                   sAMAccountname=>"stefanol1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\stefanol1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/stefanol1",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol1@".$root_dns,
                   mail => "stefanol1@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "12a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1977",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student muelleju1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju1",
                   sAMAccountname=>"muelleju1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\muelleju1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/muelleju1",
                   sn=>"Müller",
                   userPrincipalName => "muelleju1@".$root_dns,
                   mail => "muelleju1@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "7a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student perezhu1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Pérez",
                   givenName=>"Hugo",
                   name=>"perezhu1",
                   sAMAccountname=>"perezhu1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\perezhu1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/perezhu1",
                   sn=>"Pérez",
                   userPrincipalName => "perezhu1@".$root_dns,
                   mail => "perezhu1@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "web",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student maieran1
    &AD_object_nonexist($ldap,$root_dse,"user","maieran1");

    # default-school group test
    # teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=teachers,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "teachers@".$root_dns,
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-teachers",
        member => "global-teachers",
		    });
    # students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=students,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-students",
        member => "alumni|attic|web|7a|7b|8a|10a|12a|global-students",
        });
    # alumni
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=alumni,OU=alumni,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"alumni",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "alumni@".$root_dns,
        description=>"alumni",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # attic
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=attic,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"attic",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "attic@".$root_dns,
        description=>"attic",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"oe24|perezhu1|stefanol1|wu24|muelleju1|bjarna24|skula24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "oe24|perezhu1|stefanol1|wu24|muelleju1|bjarna24|skula24",
	});
    # web
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=web,OU=web,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"web",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "web@".$root_dns,
        description=>"web",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=7a,OU=7a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "7a@".$root_dns,
        description=>"7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 7b
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=7b,OU=7b,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"7b",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "7b@".$root_dns,
        description=>"7b",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=8a,OU=8a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "8a@".$root_dns,
        description=>"8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=10a,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "10a@".$root_dns,
        description=>"10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
        });
    # 12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=12a,OU=12a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "12a@".$root_dns,
        description=>"12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
        });
}



############################################################
# --workflow-18-check --workflow-18-do
############################################################
if ($workflow_18_check==1){

    # set back toleration time of all 7 remaining users in bsz
    my $dn_b_bjarna="CN=b-bjarna24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse;
    &AD_user_timeupdate($ldap,$root_dse,$dn_b_bjarna,"20170101000001.0Z","---");
    my $dn_b_skula="CN=b-skula24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse;
    &AD_user_timeupdate($ldap,$root_dse,$dn_b_skula,"20170101000001.0Z","---");
    my $dn_b_oe="CN=b-oe24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse;
    &AD_user_timeupdate($ldap,$root_dse,$dn_b_oe,"20170101000001.0Z","---");
    my $dn_b_wu="CN=b-wu24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse;
    &AD_user_timeupdate($ldap,$root_dse,$dn_b_wu,"20170101000001.0Z","---");
    my $dn_muelleju="CN=muelleju,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse;
    &AD_user_timeupdate($ldap,$root_dse,$dn_muelleju,"20170101000001.0Z","---");
    my $dn_stefanol="CN=stefanol,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse;
    &AD_user_timeupdate($ldap,$root_dse,$dn_stefanol,"20170101000001.0Z","---");
    my $dn_perezhu="CN=perezhu,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse; 
    &AD_user_timeupdate($ldap,$root_dse,$dn_perezhu,"20170101000001.0Z","---");

    my $command_check="sophomorix-check $all_options ";
    &run_command($command_check);

    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.add",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.update",7);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.kill",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.nochange",7);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.error",0);
}

############################################################
if ($workflow_18_do==1){
    &run_command("sophomorix-add $all_options");
    &run_command("sophomorix-update $all_options");
    &run_command("sophomorix-kill $all_options");

    # bsz teacher b-bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-bjarna24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"b-bjarna24",
                   sAMAccountname=>"b-bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\b-bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/b-bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "b-bjarna24@".$root_dns,
                   mail => "b-bjarna24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-teachers",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000001.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-skula24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"b-skula24",
                   sAMAccountname=>"b-skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\b-skula24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/b-skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "b-skula24@".$root_dns,
                   mail => "b-skula24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000001.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    &AD_object_nonexist($ldap,$root_dse,"user","b-rukri24");

    # bsz teacher b-oe24 -> extrastudents.csv in Klasse alumni
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-oe24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"b-oe24",
                   sAMAccountname=>"b-oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\b-oe24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/b-oe24",
                   sn=>"Ömür",
                   userPrincipalName => "b-oe24@".$root_dns,
                   mail => "b-oe24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-alumni",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000001.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-wu24 -> student in 10a
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-wu24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"b-wu24",
                   sAMAccountname=>"b-wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\b-wu24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/b-wu24",
                   sn=>"Würth",
                   userPrincipalName => "b-wu24@".$root_dns,
                   mail => "b-wu24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-10a",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000001.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student stefanol -> teacher
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol",
                   sAMAccountname=>"stefanol",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\stefanol",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/stefanol",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol@".$root_dns,
                   mail => "stefanol@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-12a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1973",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000001.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student muelleju
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju",
                   sAMAccountname=>"muelleju",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\muelleju",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/muelleju",
                   sn=>"Müller",
                   userPrincipalName => "muelleju@".$root_dns,
                   mail => "muelleju@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-7a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000001.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "unid1234",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student perezhu -> extrastudents.csv, Klasse web
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Pérez",
                   givenName=>"Hugo",
                   name=>"perezhu",
                   sAMAccountname=>"perezhu",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\perezhu",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/perezhu",
                   sn=>"Pérez",
                   userPrincipalName => "perezhu@".$root_dns,
                   mail => "perezhu@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-web",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000001.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student maieran
    &AD_object_nonexist($ldap,$root_dse,"user","maieran");

    # bsz group test
    # bsz-teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-teachers,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "bsz-teachers@"."teacherclass.net",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-teachers",
        member => "global-teachers",
        });
    # bsz-students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-students,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "bsz-students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-students",
        member => "bsz-alumni|bsz-attic|bsz-web|bsz-7a|bsz-7b|bsz-8a|bsz-10a|bsz-12a|global-students",
        });
    # bsz-alumni
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-alumni,OU=alumni,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-alumni",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-alumni@"."adminclass.net",
        description=>"bsz-alumni",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-attic
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-attic,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-attic",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-attic@"."adminclass.net",
        description=>"bsz-attic",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"b-oe24|perezhu|stefanol|b-wu24|muelleju|b-bjarna24|b-skula24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "b-oe24|perezhu|stefanol|b-wu24|muelleju|b-bjarna24|b-skula24",
	});
    # bsz-web
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-web,OU=web,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-web",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-web@"."adminclass.net",
        description=>"bsz-web",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7a,OU=7a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7a@"."adminclass.net",
        description=>"bsz-7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-7b
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7b,OU=7b,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7b",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7b@"."adminclass.net",
        description=>"bsz-7b",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-8a,OU=8a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-8a@"."adminclass.net",
        description=>"bsz-8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });
    # bsz-10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-10a,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-10a@"."adminclass.net",
        description=>"bsz-10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });
    # bsz-12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-12a,OU=12a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-12a@"."adminclass.net",
        description=>"bsz-12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });

    # default-school teacher bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=bjarna24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"bjarna24",
                   sAMAccountname=>"bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "bjarna24@".$root_dns,
                   mail => "bjarna24@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "teachers",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=skula24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"skula24",
                   sAMAccountname=>"skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\skula24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "skula24@".$root_dns,
                   mail => "skula24@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher rukri24
    &AD_object_nonexist($ldap,$root_dse,"user","rukri24");

    # default-school teacher oe24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=oe24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"oe24",
                   sAMAccountname=>"oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\oe24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/oe24",
                   sn=>"Ömür",
                   userPrincipalName => "oe24@".$root_dns,
                   mail => "oe24@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "alumni",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher wu24 -> student
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=wu24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"wu24",
                   sAMAccountname=>"wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\wu24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/wu24",
                   sn=>"Würth",
                   userPrincipalName => "wu24@".$root_dns,
                   mail => "wu24@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "10a",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student stefanol1 -> teacher
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol1",
                   sAMAccountname=>"stefanol1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\stefanol1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/stefanol1",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol1@".$root_dns,
                   mail => "stefanol1@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "12a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1977",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student muelleju1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju1",
                   sAMAccountname=>"muelleju1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\muelleju1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/muelleju1",
                   sn=>"Müller",
                   userPrincipalName => "muelleju1@".$root_dns,
                   mail => "muelleju1@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "7a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student perezhu1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Pérez",
                   givenName=>"Hugo",
                   name=>"perezhu1",
                   sAMAccountname=>"perezhu1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\perezhu1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/perezhu1",
                   sn=>"Pérez",
                   userPrincipalName => "perezhu1@".$root_dns,
                   mail => "perezhu1@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "web",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "exists",
                   sophomorixDeactivationDate => "default",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "T",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66048",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student maieran1
    &AD_object_nonexist($ldap,$root_dse,"user","maieran1");

    # default-school group test
    # teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=teachers,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "teachers@".$root_dns,
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-teachers",
        member => "global-teachers",
		    });
    # students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=students,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-students",
        member => "alumni|attic|web|7a|7b|8a|10a|12a|global-students",
        });
    # alumni
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=alumni,OU=alumni,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"alumni",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "alumni@".$root_dns,
        description=>"alumni",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # attic
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=attic,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"attic",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "attic@".$root_dns,
        description=>"attic",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"oe24|perezhu1|stefanol1|wu24|muelleju1|bjarna24|skula24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "oe24|perezhu1|stefanol1|wu24|muelleju1|bjarna24|skula24",
	});
    # web
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=web,OU=web,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"web",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "web@".$root_dns,
        description=>"web",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=7a,OU=7a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "7a@".$root_dns,
        description=>"7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 7b
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=7b,OU=7b,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"7b",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "7b@".$root_dns,
        description=>"7b",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=8a,OU=8a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "8a@".$root_dns,
        description=>"8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=10a,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "10a@".$root_dns,
        description=>"10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
        });
    # 12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=12a,OU=12a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "12a@".$root_dns,
        description=>"12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
        });
}



############################################################
# --workflow-19-check --workflow-19-do
############################################################
if ($workflow_19_check==1){

    # set back toleration time of all 7 remaining users in default-school
    my $dn_b_bjarna="CN=bjarna24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse;
    &AD_user_timeupdate($ldap,$root_dse,$dn_b_bjarna,"20170101000002.0Z","---");
    my $dn_b_skula="CN=skula24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse;
    &AD_user_timeupdate($ldap,$root_dse,$dn_b_skula,"20170101000002.0Z","---");
    my $dn_b_oe="CN=oe24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse;
    &AD_user_timeupdate($ldap,$root_dse,$dn_b_oe,"20170101000002.0Z","---");
    my $dn_b_wu="CN=wu24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse;
    &AD_user_timeupdate($ldap,$root_dse,$dn_b_wu,"20170101000002.0Z","---");
    my $dn_muelleju="CN=muelleju1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse;
    &AD_user_timeupdate($ldap,$root_dse,$dn_muelleju,"20170101000002.0Z","---");
    my $dn_stefanol="CN=stefanol1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse;
    &AD_user_timeupdate($ldap,$root_dse,$dn_stefanol,"20170101000002.0Z","---");
    my $dn_perezhu="CN=perezhu1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse; 
    &AD_user_timeupdate($ldap,$root_dse,$dn_perezhu,"20170101000002.0Z","---");

    my $command_check="sophomorix-check $all_options ";
    &run_command($command_check);

    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.add",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.update",7);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.kill",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.nochange",7);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.error",0);
}

############################################################
if ($workflow_19_do==1){
    &run_command("sophomorix-add $all_options");
    &run_command("sophomorix-update $all_options");
    &run_command("sophomorix-kill $all_options");

    # bsz teacher b-bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-bjarna24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"b-bjarna24",
                   sAMAccountname=>"b-bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\b-bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/b-bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "b-bjarna24@".$root_dns,
                   mail => "b-bjarna24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-teachers",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000001.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-skula24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"b-skula24",
                   sAMAccountname=>"b-skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\b-skula24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/b-skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "b-skula24@".$root_dns,
                   mail => "b-skula24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000001.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    &AD_object_nonexist($ldap,$root_dse,"user","b-rukri24");

    # bsz teacher b-oe24 -> extrastudents.csv in Klasse alumni
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-oe24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"b-oe24",
                   sAMAccountname=>"b-oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\b-oe24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/b-oe24",
                   sn=>"Ömür",
                   userPrincipalName => "b-oe24@".$root_dns,
                   mail => "b-oe24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-alumni",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000001.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz teacher b-wu24 -> student in 10a
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=b-wu24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"b-wu24",
                   sAMAccountname=>"b-wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\b-wu24",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/b-wu24",
                   sn=>"Würth",
                   userPrincipalName => "b-wu24@".$root_dns,
                   mail => "b-wu24@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-10a",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000001.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student stefanol -> teacher
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol",
                   sAMAccountname=>"stefanol",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\stefanol",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/stefanol",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol@".$root_dns,
                   mail => "stefanol@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-12a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1973",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000001.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student muelleju
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju",
                   sAMAccountname=>"muelleju",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\muelleju",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/muelleju",
                   sn=>"Müller",
                   userPrincipalName => "muelleju@".$root_dns,
                   mail => "muelleju@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-7a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000001.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "unid1234",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student perezhu -> extrastudents.csv, Klasse web
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Pérez",
                   givenName=>"Hugo",
                   name=>"perezhu",
                   sAMAccountname=>"perezhu",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\bsz\\students\\attic\\perezhu",
                   unixHomeDirectory=>"/srv/samba/schools/bsz/students/attic/perezhu",
                   sn=>"Pérez",
                   userPrincipalName => "perezhu@".$root_dns,
                   mail => "perezhu@"."student.bsz.de",
                   sophomorixAdminClass => "bsz-attic",
                   sophomorixExitAdminClass => "bsz-web",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"bsz:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "bsz",
                   sophomorixSchoolname => "bsz",
                   sophomorixAdminFile => "bsz.extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000001.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|bsz-attic|bsz-wifi|bsz-internet|bsz-webfilter|bsz-intranet|bsz-printing",
                  });

    # bsz student maieran
    &AD_object_nonexist($ldap,$root_dse,"user","maieran");

    # bsz group test
    # bsz-teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-teachers,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "bsz-teachers@"."teacherclass.net",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-teachers",
        member => "global-teachers",
        });
    # bsz-students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-students,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "bsz-students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-students",
        member => "bsz-alumni|bsz-attic|bsz-web|bsz-7a|bsz-7b|bsz-8a|bsz-10a|bsz-12a|global-students",
        });
    # bsz-alumni
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-alumni,OU=alumni,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-alumni",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-alumni@"."adminclass.net",
        description=>"bsz-alumni",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-attic
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-attic,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-attic",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-attic@"."adminclass.net",
        description=>"bsz-attic",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"b-oe24|perezhu|stefanol|b-wu24|muelleju|b-bjarna24|b-skula24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "b-oe24|perezhu|stefanol|b-wu24|muelleju|b-bjarna24|b-skula24",
	});
    # bsz-web
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-web,OU=web,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-web",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-web@"."adminclass.net",
        description=>"bsz-web",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7a,OU=7a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7a@"."adminclass.net",
        description=>"bsz-7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-7b
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7b,OU=7b,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7b",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7b@"."adminclass.net",
        description=>"bsz-7b",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-8a,OU=8a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-8a@"."adminclass.net",
        description=>"bsz-8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });
    # bsz-10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-10a,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-10a@"."adminclass.net",
        description=>"bsz-10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });
    # bsz-12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-12a,OU=12a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-12a@"."adminclass.net",
        description=>"bsz-12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });

    # default-school teacher bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=bjarna24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"bjarna24",
                   sAMAccountname=>"bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "bjarna24@".$root_dns,
                   mail => "bjarna24@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "teachers",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000002.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=skula24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"skula24",
                   sAMAccountname=>"skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\skula24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "skula24@".$root_dns,
                   mail => "skula24@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000002.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher rukri24
    &AD_object_nonexist($ldap,$root_dse,"user","rukri24");

    # default-school teacher oe24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=oe24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"oe24",
                   sAMAccountname=>"oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\oe24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/oe24",
                   sn=>"Ömür",
                   userPrincipalName => "oe24@".$root_dns,
                   mail => "oe24@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "alumni",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000002.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher wu24 -> student
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=wu24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"wu24",
                   sAMAccountname=>"wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\wu24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/wu24",
                   sn=>"Würth",
                   userPrincipalName => "wu24@".$root_dns,
                   mail => "wu24@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "10a",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000002.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student stefanol1 -> teacher
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol1",
                   sAMAccountname=>"stefanol1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\stefanol1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/stefanol1",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol1@".$root_dns,
                   mail => "stefanol1@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "12a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1977",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000002.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student muelleju1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju1",
                   sAMAccountname=>"muelleju1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\muelleju1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/muelleju1",
                   sn=>"Müller",
                   userPrincipalName => "muelleju1@".$root_dns,
                   mail => "muelleju1@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "7a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000002.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student perezhu1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Pérez",
                   givenName=>"Hugo",
                   name=>"perezhu1",
                   sAMAccountname=>"perezhu1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\perezhu1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/perezhu1",
                   sn=>"Pérez",
                   userPrincipalName => "perezhu1@".$root_dns,
                   mail => "perezhu1@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "web",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000002.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student maieran1
    &AD_object_nonexist($ldap,$root_dse,"user","maieran1");    

    # default-school group test
    # teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=teachers,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "teachers@".$root_dns,
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-teachers",
        member => "global-teachers",
		    });
    # students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=students,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-students",
        member => "alumni|attic|web|7a|7b|8a|10a|12a|global-students",
        });
    # alumni
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=alumni,OU=alumni,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"alumni",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "alumni@".$root_dns,
        description=>"alumni",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # attic
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=attic,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"attic",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "attic@".$root_dns,
        description=>"attic",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"oe24|perezhu1|stefanol1|wu24|muelleju1|bjarna24|skula24",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "oe24|perezhu1|stefanol1|wu24|muelleju1|bjarna24|skula24",
	});
    # web
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=web,OU=web,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"web",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "web@".$root_dns,
        description=>"web",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=7a,OU=7a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "7a@".$root_dns,
        description=>"7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 7b
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=7b,OU=7b,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"7b",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "7b@".$root_dns,
        description=>"7b",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=8a,OU=8a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "8a@".$root_dns,
        description=>"8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=10a,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "10a@".$root_dns,
        description=>"10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
        });
    # 12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=12a,OU=12a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "12a@".$root_dns,
        description=>"12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
        });
}



############################################################
# --workflow-20-check --workflow-20-do
############################################################
if ($workflow_20_check==1){
    # set back deactivation time of all 7 remaining users in bsz
    my $dn_b_bjarna="CN=b-bjarna24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse;
    &AD_user_timeupdate($ldap,$root_dse,$dn_b_bjarna,"---","20170101000001.0Z");
    my $dn_b_skula="CN=b-skula24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse;
    &AD_user_timeupdate($ldap,$root_dse,$dn_b_skula,"---","20170101000002.0Z");
    my $dn_b_oe="CN=b-oe24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse;
    &AD_user_timeupdate($ldap,$root_dse,$dn_b_oe,"---","20170101000002.0Z");
    my $dn_b_wu="CN=b-wu24,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse;
    &AD_user_timeupdate($ldap,$root_dse,$dn_b_wu,"---","20170101000002.0Z");
    my $dn_muelleju="CN=muelleju,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse;
    &AD_user_timeupdate($ldap,$root_dse,$dn_muelleju,"---","20170101000004.0Z");
    my $dn_stefanol="CN=stefanol,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse;
    &AD_user_timeupdate($ldap,$root_dse,$dn_stefanol,"---","20170101000005.0Z");
    my $dn_perezhu="CN=perezhu,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse; 
    &AD_user_timeupdate($ldap,$root_dse,$dn_perezhu,"---","20170101000006.0Z");

    my $command_check="sophomorix-check $all_options ";
    &run_command($command_check);

    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.add",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.update",7);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.kill",7);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.nochange",7);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.error",0);
}

############################################################
if ($workflow_20_do==1){
    &run_command("sophomorix-add $all_options");
    &run_command("sophomorix-update $all_options");
    &run_command("sophomorix-kill $all_options");

    # bsz test
    &AD_object_nonexist($ldap,$root_dse,"user","b-bjarna24");
    &AD_object_nonexist($ldap,$root_dse,"user","b-skula24");
    &AD_object_nonexist($ldap,$root_dse,"user","b-rukri24");
    &AD_object_nonexist($ldap,$root_dse,"user","b-oe24");
    &AD_object_nonexist($ldap,$root_dse,"user","b-wu24");
    &AD_object_nonexist($ldap,$root_dse,"user","stefanol");
    &AD_object_nonexist($ldap,$root_dse,"user","muelleju");
    &AD_object_nonexist($ldap,$root_dse,"user","perezhu");
    &AD_object_nonexist($ldap,$root_dse,"user","maieran");

    # bsz group test
    # bsz-teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-teachers,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "bsz-teachers@"."teacherclass.net",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-teachers",
        member => "global-teachers",
        });
    # bsz-students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-students,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "bsz-students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-students",
        member => "bsz-attic|bsz-web|bsz-alumni|bsz-7a|bsz-7b|bsz-8a|bsz-10a|bsz-12a|global-students",
        });
    # bsz-alumni
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-alumni,OU=alumni,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-alumni",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-alumni@"."adminclass.net",
        description=>"bsz-alumni",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-attic
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-attic,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-attic",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-attic@"."adminclass.net",
        description=>"bsz-attic",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-web
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-web,OU=web,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-web",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-web@"."adminclass.net",
        description=>"bsz-web",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7a,OU=7a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7a@"."adminclass.net",
        description=>"bsz-7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-7b
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7b,OU=7b,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7b",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7b@"."adminclass.net",
        description=>"bsz-7b",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-8a,OU=8a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-8a@"."adminclass.net",
        description=>"bsz-8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });
    # bsz-10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-10a,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-10a@"."adminclass.net",
        description=>"bsz-10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });
    # bsz-12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-12a,OU=12a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-12a@"."adminclass.net",
        description=>"bsz-12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });

    # default-school teacher bjarna24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=bjarna24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Elmar Bjarnason",
                   givenName=>"Jürgen Elmar",
                   name=>"bjarna24",
                   sAMAccountname=>"bjarna24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\bjarna24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/bjarna24",
                   sn=>"Bjarnason",
                   userPrincipalName => "bjarna24@".$root_dns,
                   mail => "bjarna24@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "teachers",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Juergen Elmar",
                   sophomorixSurnameASCII  => "Bjarnason",
                   sophomorixFirstnameInitial => "J. E.",
                   sophomorixSurnameInitial  => "B.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "04.03.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000002.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher skula24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=skula24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ari Freyr Skúlason",
                   givenName=>"Ari Freyr",
                   name=>"skula24",
                   sAMAccountname=>"skula24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\skula24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/skula24",
                   sn=>"Skúlason",
                   userPrincipalName => "skula24@".$root_dns,
                   mail => "skula24@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "teachers",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Ari Freyr",
                   sophomorixSurnameASCII  => "Skulason",
                   sophomorixFirstnameInitial => "A. F.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "14.05.1987",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "teachers.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000002.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher rukri24
    &AD_object_nonexist($ldap,$root_dse,"user","rukri24");

    # default-school teacher oe24
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=oe24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Gökhan Ömür",
                   givenName=>"Gökhan",
                   name=>"oe24",
                   sAMAccountname=>"oe24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\oe24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/oe24",
                   sn=>"Ömür",
                   userPrincipalName => "oe24@".$root_dns,
                   mail => "oe24@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "alumni",
#                   sophomorixFirstPassword => "LinuxMuster23!",
                   sophomorixFirstnameASCII => "Goekhan",
                   sophomorixSurnameASCII  => "Oemuer",
                   sophomorixFirstnameInitial => "G.",
                   sophomorixSurnameInitial  => "Ö.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "15.09.1976",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000002.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school teacher wu24 -> student
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=wu24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Désirée Würth",
                   givenName=>"Désirée",
                   name=>"wu24",
                   sAMAccountname=>"wu24",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\wu24",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/wu24",
                   sn=>"Würth",
                   userPrincipalName => "wu24@".$root_dns,
                   mail => "wu24@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "10a",
#                   sophomorixFirstPassword => "LinuxMuster!",
                   sophomorixFirstnameASCII => "Desiree",
                   sophomorixSurnameASCII  => "Wuerth",
                   sophomorixFirstnameInitial => "D.",
                   sophomorixSurnameInitial  => "W.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "23.12.1972",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixMailQuota=>"---:---:",
                   sophomorixMailQuotaCalculated=>"1",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000002.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student stefanol1 -> teacher
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=stefanol1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Ólafur Indriði Stefánsson",
                   givenName=>"Ólafur Indriði",
                   name=>"stefanol1",
                   sAMAccountname=>"stefanol1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\stefanol1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/stefanol1",
                   sn=>"Stefánsson",
                   userPrincipalName => "stefanol1@".$root_dns,
                   mail => "stefanol1@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "12a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Olafur Indridi",
                   sophomorixSurnameASCII  => "Stefansson",
                   sophomorixFirstnameInitial => "Ó. I.",
                   sophomorixSurnameInitial  => "S.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "03.07.1977",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000002.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student muelleju1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=muelleju1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Jürgen Müller",
                   givenName=>"Jürgen",
                   name=>"muelleju1",
                   sAMAccountname=>"muelleju1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\muelleju1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/muelleju1",
                   sn=>"Müller",
                   userPrincipalName => "muelleju1@".$root_dns,
                   mail => "muelleju1@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "7a",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Juergen",
                   sophomorixSurnameASCII  => "Mueller",
                   sophomorixFirstnameInitial => "J.",
                   sophomorixSurnameInitial  => "M.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.11.1988",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "students.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000002.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student perezhu1
    &AD_test_object({ldap=>$ldap,
                   dn=>"CN=perezhu1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
                   #####
                   displayName=>"Hugo Pérez",
                   givenName=>"Hugo",
                   name=>"perezhu1",
                   sAMAccountname=>"perezhu1",
                   homeDrive=>"H:",
                   homeDirectory=>"\\\\bionic\\default-school\\students\\attic\\perezhu1",
                   unixHomeDirectory=>"/srv/samba/schools/default-school/students/attic/perezhu1",
                   sn=>"Pérez",
                   userPrincipalName => "perezhu1@".$root_dns,
                   mail => "perezhu1@"."linuxmuster.local",
                   sophomorixAdminClass => "attic",
                   sophomorixExitAdminClass => "web",
#                   sophomorixFirstPassword => "Muster!",
                   sophomorixFirstnameASCII => "Hugo",
                   sophomorixSurnameASCII  => "Perez",
                   sophomorixFirstnameInitial => "H.",
                   sophomorixSurnameInitial  => "P.",
                   sophomorixCloudQuotaCalculated => "---",
                   sophomorixUserToken => "---",
                   sophomorixBirthdate  => "10.10.1986",
                   sophomorixRole => "student",
                   sophomorixQuota=>"default-school:---:---:new:---:|linuxmuster-global:---:---:new:---:",
                   sophomorixSchoolPrefix => "---",
                   sophomorixSchoolname => "default-school",
                   sophomorixAdminFile => "extrastudents.csv",
                   sophomorixCreationDate => "exists",
                   sophomorixTolerationDate => "20170101000002.0Z",
                   sophomorixDeactivationDate => "exists",
                   sophomorixComment => "created by sophomorix",
                   sophomorixWebuiDashboard => "---",
                   sophomorixWebuiPermissions => "",
                   sophomorixWebuiPermissionsCalculated => "lm:printers: true|lm:quotas:apply: false",
                   sophomorixExamMode => "---",
                   sophomorixStatus => "D",
                   sophomorixUnid => "---",
                   accountExpires => "0",
                   userAccountControl => "66050",
                   memberOf => "role-student|attic|wifi|internet|webfilter|intranet|printing",
                  });

    # default-school student maieran1
    &AD_object_nonexist($ldap,$root_dse,"user","maieran1");    

    # default-school group test
    # teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=teachers,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "teachers@".$root_dns,
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-teachers",
        member => "global-teachers",
		    });
    # students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=students,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-students",
        member => "web|alumni|attic|7a|7b|8a|10a|12a|global-students",
        });
    # alumni
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=alumni,OU=alumni,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"alumni",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "alumni@".$root_dns,
        description=>"alumni",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # attic
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=attic,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"attic",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "attic@".$root_dns,
        description=>"attic",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"bjarna24|skula24|oe24|wu24|stefanol1|muelleju1|perezhu1",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "bjarna24|skula24|oe24|wu24|stefanol1|muelleju1|perezhu1",
	});
    # web
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=web,OU=web,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"web",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "web@".$root_dns,
        description=>"web",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=7a,OU=7a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "7a@".$root_dns,
        description=>"7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 7b
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=7b,OU=7b,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"7b",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "7b@".$root_dns,
        description=>"7b",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=8a,OU=8a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "8a@".$root_dns,
        description=>"8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=10a,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "10a@".$root_dns,
        description=>"10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
        });
    # 12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=12a,OU=12a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "12a@".$root_dns,
        description=>"12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
        });


}



############################################################
# --workflow-21-check --workflow-21-do
############################################################
if ($workflow_21_check==1){
    # set back deactivation time of all 7 remaining users in default-school
    my $dn_b_bjarna="CN=bjarna24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse;
    &AD_user_timeupdate($ldap,$root_dse,$dn_b_bjarna,"---","20180101000001.0Z");
    my $dn_b_skula="CN=skula24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse;
    &AD_user_timeupdate($ldap,$root_dse,$dn_b_skula,"---","20180101000002.0Z");
    my $dn_b_oe="CN=oe24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse;
    &AD_user_timeupdate($ldap,$root_dse,$dn_b_oe,"---","20180101000002.0Z");
    my $dn_b_wu="CN=wu24,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse;
    &AD_user_timeupdate($ldap,$root_dse,$dn_b_wu,"---","20180101000002.0Z");
    my $dn_muelleju="CN=muelleju1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse;
    &AD_user_timeupdate($ldap,$root_dse,$dn_muelleju,"---","20180101000004.0Z");
    my $dn_stefanol="CN=stefanol1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse;
    &AD_user_timeupdate($ldap,$root_dse,$dn_stefanol,"---","20180101000005.0Z");
    my $dn_perezhu="CN=perezhu1,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse; 
    &AD_user_timeupdate($ldap,$root_dse,$dn_perezhu,"---","20180101000006.0Z");

    my $command_check="sophomorix-check $all_options ";
    &run_command($command_check);

    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.add",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.update",7);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.kill",7);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.nochange",0);
    &file_test_lines("/var/lib/sophomorix/check-result/sophomorix.error",0);
}

############################################################
if ($workflow_21_do==1){
    &run_command("sophomorix-add $all_options");
    &run_command("sophomorix-update $all_options");
    &run_command("sophomorix-kill $all_options");

    # bsz user test
    &AD_object_nonexist($ldap,$root_dse,"user","b-bjarna24");
    &AD_object_nonexist($ldap,$root_dse,"user","b-skula24");
    &AD_object_nonexist($ldap,$root_dse,"user","b-rukri24");
    &AD_object_nonexist($ldap,$root_dse,"user","b-oe24");
    &AD_object_nonexist($ldap,$root_dse,"user","b-wu24");
    &AD_object_nonexist($ldap,$root_dse,"user","stefanol");
    &AD_object_nonexist($ldap,$root_dse,"user","muelleju");
    &AD_object_nonexist($ldap,$root_dse,"user","perezhu");
    &AD_object_nonexist($ldap,$root_dse,"user","maieran");

    # bsz group test
    # bsz-teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-teachers,OU=Teachers,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "bsz-teachers@"."teacherclass.net",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-teachers",
        member => "global-teachers",
        });
    # bsz-students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-students,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "bsz-students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "s_bsz|all-students",
        member => "bsz-attic|bsz-web|bsz-alumni|bsz-7a|bsz-7b|bsz-8a|bsz-10a|bsz-12a|global-students",
        });
    # bsz-alumni
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-alumni,OU=alumni,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-alumni",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-alumni@"."adminclass.net",
        description=>"bsz-alumni",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-attic
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-attic,OU=attic,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-attic",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-attic@"."adminclass.net",
        description=>"bsz-attic",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-web
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-web,OU=web,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-web",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-web@"."adminclass.net",
        description=>"bsz-web",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7a,OU=7a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7a@"."adminclass.net",
        description=>"bsz-7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-7b
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-7b,OU=7b,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-7b",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-7b@"."adminclass.net",
        description=>"bsz-7b",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
	});
    # bsz-8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-8a,OU=8a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-8a@"."adminclass.net",
        description=>"bsz-8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });
    # bsz-10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-10a,OU=10a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-10a@"."adminclass.net",
        description=>"bsz-10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });
    # bsz-12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=bsz-12a,OU=12a,OU=Students,OU=bsz,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"bsz-12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "bsz-12a@"."adminclass.net",
        description=>"bsz-12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"bsz:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "bsz",
        memberOf => "bsz-students",
        member => "",
        });

    # default-school user test
    &AD_object_nonexist($ldap,$root_dse,"user","bjarna24");
    &AD_object_nonexist($ldap,$root_dse,"user","skula24");
    &AD_object_nonexist($ldap,$root_dse,"user","rukri24");
    &AD_object_nonexist($ldap,$root_dse,"user","oe24");
    &AD_object_nonexist($ldap,$root_dse,"user","wu24");
    &AD_object_nonexist($ldap,$root_dse,"user","stefanol1");
    &AD_object_nonexist($ldap,$root_dse,"user","muelleju1");
    &AD_object_nonexist($ldap,$root_dse,"user","perezhu1");
    &AD_object_nonexist($ldap,$root_dse,"user","maieran1");

    # default-school group test
    # teachers
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=teachers,OU=Teachers,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"teachers",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"teacherclass",
        mail => "teachers@".$root_dns,
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-teachers",
        member => "global-teachers",
		    });
    # students
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=students,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"students",
        sophomorixCreationDate => "exists",
        sophomorixStatus=>"P",
        sophomorixType=>"ouclass",
        mail => "students@".$root_dns,
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "s_default-school|all-students",
        member => "web|alumni|attic|7a|7b|8a|10a|12a|global-students",
        });
    # alumni
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=alumni,OU=alumni,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"alumni",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "alumni@".$root_dns,
        description=>"alumni",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # attic
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=attic,OU=attic,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"attic",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "attic@".$root_dns,
        description=>"attic",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # web
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=web,OU=web,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"web",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "web@".$root_dns,
        description=>"web",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 7a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=7a,OU=7a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"7a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "7a@".$root_dns,
        description=>"7a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 7b
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=7b,OU=7b,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"7b",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "7b@".$root_dns,
        description=>"7b",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 8a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=8a,OU=8a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"8a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "8a@".$root_dns,
        description=>"8a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
	});
    # 10a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=10a,OU=10a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"10a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "10a@".$root_dns,
        description=>"10a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
        });
    # 12a
    &AD_test_object({ldap=>$ldap,
        dn=>"CN=12a,OU=12a,OU=Students,OU=default-school,OU=SCHOOLS,".$root_dse,
        sAMAccountname=>"12a",
        sophomorixCreationDate => "exists",
        sophomorixType=>"adminclass",
        mail => "12a@".$root_dns,
        description=>"12a",
        sophomorixAddQuota=>"---",
        sophomorixAddMailQuota=>"---",
        sophomorixQuota=>"default-school:---:---:|linuxmuster-global:---:---:",
        sophomorixMailQuota=>"---:---:",
        sophomorixMailAlias=>"FALSE",
        sophomorixMailList=>"FALSE",
        sophomorixStatus=>"P",
        sophomorixJoinable=>"TRUE",
        sophomorixMembers=>"",
        sophomorixAdmins=>"",
        sophomorixHidden=>"FALSE",
        sophomorixSchoolname => "default-school",
        memberOf => "students",
        member => "",
        });
}



############################################################
# --kill-adminclasses-1-do
############################################################
if ($kill_adminclasses_1_do==1){
    &run_command("sophomorix-class --kill --class bsz-alumni");#
    &run_command("sophomorix-class --kill --class bsz-attic");
    &run_command("sophomorix-class --kill --class bsz-web");
    &run_command("sophomorix-class --kill --class bsz-7a");
    &run_command("sophomorix-class --kill --class bsz-7b");
    &run_command("sophomorix-class --kill --class bsz-8a");
    &run_command("sophomorix-class --kill --class bsz-10a");
    &run_command("sophomorix-class --kill --class bsz-12a");

    &AD_object_nonexist($ldap,$root_dse,"group","bsz-alumni");
    &AD_object_nonexist($ldap,$root_dse,"group","bsz-attic");
    &AD_object_nonexist($ldap,$root_dse,"group","bsz-web");
    &AD_object_nonexist($ldap,$root_dse,"group","bsz-7a");
    &AD_object_nonexist($ldap,$root_dse,"group","bsz-7b");
    &AD_object_nonexist($ldap,$root_dse,"group","bsz-8a");
    &AD_object_nonexist($ldap,$root_dse,"group","bsz-10a");
    &AD_object_nonexist($ldap,$root_dse,"group","bsz-12a");
}



############################################################
# --kill-adminclasses-2-do
############################################################
if ($kill_adminclasses_2_do==1){
    &run_command("sophomorix-class --kill --class alumni");
    &run_command("sophomorix-class --kill --class attic");
    &run_command("sophomorix-class --kill --class web");
    &run_command("sophomorix-class --kill --class 7a");
    &run_command("sophomorix-class --kill --class 7b");
    &run_command("sophomorix-class --kill --class 8a");
    &run_command("sophomorix-class --kill --class 10a");
    &run_command("sophomorix-class --kill --class 12a");

    &AD_object_nonexist($ldap,$root_dse,"group","alumni");
    &AD_object_nonexist($ldap,$root_dse,"group","attic");
    &AD_object_nonexist($ldap,$root_dse,"group","web");
    &AD_object_nonexist($ldap,$root_dse,"group","7a");
    &AD_object_nonexist($ldap,$root_dse,"group","7b");
    &AD_object_nonexist($ldap,$root_dse,"group","8a");
    &AD_object_nonexist($ldap,$root_dse,"group","10a");
    &AD_object_nonexist($ldap,$root_dse,"group","12a");
}

&AD_unbind_admin($ldap);
