diff -ruN smeserver-nextcloud-1.2.0.old/root/etc/e-smith/events/actions/nextcloud-occ-conf smeserver-nextcloud-1.2.0/root/etc/e-smith/events/actions/nextcloud-occ-conf --- smeserver-nextcloud-1.2.0.old/root/etc/e-smith/events/actions/nextcloud-occ-conf 2020-11-12 11:31:32.372096063 +0100 +++ smeserver-nextcloud-1.2.0/root/etc/e-smith/events/actions/nextcloud-occ-conf 2020-11-12 11:34:44.206085546 +0100 @@ -85,6 +85,7 @@ my $local = $cdb->get_value('LocalIP'); my $remote = $cdb->get_value('ExternalIP') || ""; my $comp1 = Array::Compare->new; +my $workgroup = $cdb->get_prop('smb','Workgroup'); # update trusted domains OCC "config:system:set trusted_domains 0 --value=$fqdn"; @@ -176,7 +177,7 @@ if (scalar(@matching_keys) == 0) { #if none create if ($storage eq "smb") { - $id = OCCr "files_external:create -c share=$key -c host=localhost 'ibays/$key' smb password::logincredentials --output json"; + $id = OCCr "files_external:create -c share=$key -c host=localhost -c domain=$workgroup -c root='' -c show_hidden=false -c check_acl=false -c timeout='' 'ibays/$key' smb password::logincredentials --output json"; } else { $id = OCCr "files_external:create -c datadir=/home/e-smith/files/$typ/$key 'ibays/$key' local null::null --output json"; } @@ -264,7 +265,7 @@ # if none create if (scalar(@matching_keys) == 0) { #if none create - $id = OCCr "files_external:create -c share=$key -c host=localhost '$key' smb password::logincredentials --output json"; + $id = OCCr "files_external:create -c share=$key -c host=localhost -c domain=$workgroup -c root='' -c show_hidden=false -c check_acl=false -c timeout='' '$key' smb password::logincredentials --output json"; OCC "files_external:applicable --add-user $user $id"; push @idOK,$id; print "created home dir for $key $user\n";