Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package yast2-samba-client for 
openSUSE:Factory checked in at 2023-01-31 16:08:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-samba-client (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-samba-client.new.32243 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-samba-client"

Tue Jan 31 16:08:52 2023 rev:113 rq:1062090 version:4.5.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-samba-client/yast2-samba-client.changes    
2022-11-18 15:42:45.222356634 +0100
+++ 
/work/SRC/openSUSE:Factory/.yast2-samba-client.new.32243/yast2-samba-client.changes
 2023-01-31 16:23:01.418615503 +0100
@@ -1,0 +2,6 @@
+Thu Jan 26 16:57:13 UTC 2023 - David Mulder <dmul...@suse.com>
+
+- Add join option for enabling group policy; (bsc#1207604).
+ - 4.5.3
+
+-------------------------------------------------------------------

Old:
----
  yast2-samba-client-4.5.2.tar.bz2

New:
----
  yast2-samba-client-4.5.3.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ yast2-samba-client.spec ++++++
--- /var/tmp/diff_new_pack.x498jT/_old  2023-01-31 16:23:01.794617769 +0100
+++ /var/tmp/diff_new_pack.x498jT/_new  2023-01-31 16:23:01.798617793 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package yast2-samba-client
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-samba-client
-Version:        4.5.2
+Version:        4.5.3
 Release:        0
 Summary:        YaST2 - Samba Client Configuration
 License:        GPL-2.0-only

++++++ yast2-samba-client-4.5.2.tar.bz2 -> yast2-samba-client-4.5.3.tar.bz2 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-samba-client-4.5.2/package/yast2-samba-client.changes 
new/yast2-samba-client-4.5.3/package/yast2-samba-client.changes
--- old/yast2-samba-client-4.5.2/package/yast2-samba-client.changes     
2022-11-07 10:18:44.000000000 +0100
+++ new/yast2-samba-client-4.5.3/package/yast2-samba-client.changes     
2023-01-30 16:50:05.000000000 +0100
@@ -1,4 +1,10 @@
 -------------------------------------------------------------------
+Thu Jan 26 16:57:13 UTC 2023 - David Mulder <dmul...@suse.com>
+
+- Add join option for enabling group policy; (bsc#1207604).
+ - 4.5.3
+
+-------------------------------------------------------------------
 Fri Nov  4 10:16:54 UTC 2022 - Samuel Cabrero <scabr...@suse.de>
 
 - Enable pam_mount also for gdm-password service; (bsc#1204830);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-samba-client-4.5.2/package/yast2-samba-client.spec 
new/yast2-samba-client-4.5.3/package/yast2-samba-client.spec
--- old/yast2-samba-client-4.5.2/package/yast2-samba-client.spec        
2022-11-07 10:18:44.000000000 +0100
+++ new/yast2-samba-client-4.5.3/package/yast2-samba-client.spec        
2023-01-30 16:50:05.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-samba-client
-Version:        4.5.2
+Version:        4.5.3
 Release:        0
 Summary:        YaST2 - Samba Client Configuration
 License:        GPL-2.0-only
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-samba-client-4.5.2/src/include/samba-client/dialogs.rb 
new/yast2-samba-client-4.5.3/src/include/samba-client/dialogs.rb
--- old/yast2-samba-client-4.5.2/src/include/samba-client/dialogs.rb    
2022-11-07 10:18:44.000000000 +0100
+++ new/yast2-samba-client-4.5.3/src/include/samba-client/dialogs.rb    
2023-01-30 16:50:05.000000000 +0100
@@ -635,6 +635,14 @@
                         Samba.GetSSHSupport
                       )
                     ),
+                    Left(
+                      # checkbox label
+                      CheckBox(
+                        Id(:gpupdate),
+                        _("&Group Policy Application"),
+                        Samba.GetApplyGroupPolicy
+                      )
+                    ),
                     VSpacing(0.2)
                   )
                 ),
@@ -680,7 +688,7 @@
         Stage.cont ? Label.NextButton : Label.OKButton
       )
       #    CWMFirewallInterfaces::OpenFirewallInit (firewall_widget, "");
-      Builtins.foreach([:mkhomedir, :caching, :ssh]) do |t|
+      Builtins.foreach([:mkhomedir, :caching, :ssh, :gpupdate]) do |t|
         UI.ChangeWidget(Id(t), :Enabled, Samba.GetWinbind || Stage.cont)
       end
       Builtins.foreach([:group, :max_shares, :guest_ch]) do |t|
@@ -719,6 +727,7 @@
           UI.ChangeWidget(Id(:mkhomedir), :Enabled, use_winbind)
           UI.ChangeWidget(Id(:caching), :Enabled, use_winbind)
           UI.ChangeWidget(Id(:ssh), :Enabled, use_winbind)
+          UI.ChangeWidget(Id(:gpupdate), :Enabled, use_winbind)
         elsif ret == :share_ch
           Builtins.foreach([:group, :max_shares, :guest_ch]) do |t|
             UI.ChangeWidget(
@@ -900,6 +909,10 @@
             use_winbind &&
               Convert.to_boolean(UI.QueryWidget(Id(:caching), :Value))
           )
+          Samba.SetApplyGroupPolicy(
+            use_winbind &&
+              Convert.to_boolean(UI.QueryWidget(Id(:gpupdate), :Value))
+          )
 
           new_share = Convert.to_boolean(UI.QueryWidget(Id(:share_ch), :Value))
           if new_share && !allow_share && SharesExist(Samba.shares_dir)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-samba-client-4.5.2/src/modules/Samba.rb 
new/yast2-samba-client-4.5.3/src/modules/Samba.rb
--- old/yast2-samba-client-4.5.2/src/modules/Samba.rb   2022-11-07 
10:18:44.000000000 +0100
+++ new/yast2-samba-client-4.5.3/src/modules/Samba.rb   2023-01-30 
16:50:05.000000000 +0100
@@ -404,6 +404,18 @@
       enable
     end
 
+    # Get the current status of apply group policy
+    def GetApplyGroupPolicy
+      enabled = SambaConfig.GlobalGetStr("apply group policies", "")
+      enabled == "yes"
+    end
+
+    # Set the new value for apply group policy
+    def SetApplyGroupPolicy(enable)
+      SambaConfig.GlobalSetStr("apply group policies", enable ? "yes" : nil)
+      enable
+    end
+
     # Read the current status of ssh single-sign-on support (fate #303415)
     def ReadSSHSupport
       ssh = nil

Reply via email to