From 187bdcb7a4761f249c0f69787a2224250a5219de Mon Sep 17 00:00:00 2001 From: nomisge Date: Wed, 10 Sep 2025 19:19:29 +0200 Subject: [PATCH] Fix Projects in Installation with custom Workgroup not beeing deletable With this line deleting projects within a multischool installation with differing workgroup works. A proper fix would probably not use Filesys::SmbClient at all, but it works., --- sophomorix-samba/modules/SophomorixSambaAD.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/sophomorix-samba/modules/SophomorixSambaAD.pm b/sophomorix-samba/modules/SophomorixSambaAD.pm index 5597f57e..da787bff 100644 --- a/sophomorix-samba/modules/SophomorixSambaAD.pm +++ b/sophomorix-samba/modules/SophomorixSambaAD.pm @@ -1557,6 +1557,7 @@ sub AD_group_kill { my $smb = new Filesys::SmbClient(username => $DevelConf::sophomorix_file_admin, password => $smb_admin_pass, + workgroup => $ref_sophomorix_config->{'samba'}{'smb.conf'}{'global'}{'workgroup'}, debug => 0); my $return1=$smb->rmdir_recurse($smb_share);