Hello community,

here is the log from the commit of package yast2-auth-client for 
openSUSE:Factory checked in at 2019-07-31 14:26:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-auth-client (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-auth-client.new.4126 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-auth-client"

Wed Jul 31 14:26:09 2019 rev:35 rq:719536 version:4.2.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-auth-client/yast2-auth-client.changes      
2019-02-28 21:49:00.601381443 +0100
+++ 
/work/SRC/openSUSE:Factory/.yast2-auth-client.new.4126/yast2-auth-client.changes
    2019-07-31 14:26:11.466277537 +0200
@@ -1,0 +2,17 @@
+Thu Jun 20 09:29:49 UTC 2019 - Samuel Cabrero <[email protected]>
+
+- Fix an issue importing legacy XML based autoyast configuration;
+  (bsc#1137380);
+- Require network to be configured before importing autoyast
+  configuration; (bsc#1136139);
+- 4.2.1
+
+-------------------------------------------------------------------
+Fri May 31 12:25:50 UTC 2019 - Stasiek Michalski <[email protected]>
+
+- Add metainfo (fate#319035)
+- Revamp spec
+- Replace GenericName with Comment
+- 4.2.0
+
+-------------------------------------------------------------------

Old:
----
  yast2-auth-client-4.1.1.tar.bz2

New:
----
  yast2-auth-client-4.2.1.tar.bz2

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

Other differences:
------------------
++++++ yast2-auth-client.spec ++++++
--- /var/tmp/diff_new_pack.FfCdcl/_old  2019-07-31 14:26:12.502276738 +0200
+++ /var/tmp/diff_new_pack.FfCdcl/_new  2019-07-31 14:26:12.502276738 +0200
@@ -17,57 +17,58 @@
 
 
 Name:           yast2-auth-client
-Version:        4.1.1
+Version:        4.2.1
 Release:        0
 Url:            https://github.com/yast/yast-auth-client
 Summary:        YaST2 - Centralised System Authentication Configuration
 License:        GPL-2.0-only
 Group:          System/YaST
 
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 Source0:        %{name}-%{version}.tar.bz2
 
-BuildArch:      noarch
-Requires:       net-tools
-Requires:       yast2
-Requires:       yast2 >= 2.21.22
-Requires:       yast2-pam >= 2.20.0
-Requires:       yast2-ruby-bindings >= 1.0.0
 BuildRequires:  doxygen
 BuildRequires:  perl-XML-Writer
 BuildRequires:  update-desktop-files
 BuildRequires:  yast2
 BuildRequires:  yast2
-BuildRequires:  yast2-devtools >= 3.0.6
+BuildRequires:  yast2-devtools >= 4.2.2
 BuildRequires:  yast2-network
 BuildRequires:  yast2-pam
 BuildRequires:  yast2-testsuite
 BuildRequires:  rubygem(yast-rake)
 
 PreReq:         %fillup_prereq
+Requires:       net-tools
+Requires:       yast2
+Requires:       yast2 >= 2.21.22
+Requires:       yast2-pam >= 2.20.0
+Requires:       yast2-ruby-bindings >= 1.0.0
+
 Obsoletes:      yast2-kerberos-client
 Obsoletes:      yast2-ldap-client
 
+BuildArch:      noarch
+
 %description
 With this YaST2 module you may configure centralised system authentication, on 
a single or multipe network domains.
 
 %prep
-%setup -n %{name}-%{version}
+%setup -q
 
 %build
 
 %install
-rake install DESTDIR="%{buildroot}"
+%yast_install
+%yast_metainfo
 
 %files
-%defattr(-,root,root)
 %doc %{yast_docdir}
-%{yast_libdir}/
-%{yast_desktopdir}/
-%{yast_clientdir}/
-%{yast_libdir}/
-%{yast_scrconfdir}/
-%{yast_schemadir}/
+%{yast_libdir}
+%{yast_desktopdir}
+%{yast_metainfodir}
+%{yast_clientdir}
+%{yast_scrconfdir}
+%{yast_schemadir}
 %{yast_icondir}
 %license COPYING
 

++++++ yast2-auth-client-4.1.1.tar.bz2 -> yast2-auth-client-4.2.1.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-auth-client-4.1.1/Dockerfile 
new/yast2-auth-client-4.2.1/Dockerfile
--- old/yast2-auth-client-4.1.1/Dockerfile      2019-02-28 18:57:28.000000000 
+0100
+++ new/yast2-auth-client-4.2.1/Dockerfile      2019-07-29 11:12:00.000000000 
+0200
@@ -1,3 +1,3 @@
-FROM yastdevel/ruby
+FROM registry.opensuse.org/yast/head/containers/yast-ruby:latest
 COPY . /usr/src/app
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-auth-client-4.1.1/package/yast2-auth-client.changes 
new/yast2-auth-client-4.2.1/package/yast2-auth-client.changes
--- old/yast2-auth-client-4.1.1/package/yast2-auth-client.changes       
2019-02-28 18:57:28.000000000 +0100
+++ new/yast2-auth-client-4.2.1/package/yast2-auth-client.changes       
2019-07-29 11:12:00.000000000 +0200
@@ -1,4 +1,21 @@
 -------------------------------------------------------------------
+Thu Jun 20 09:29:49 UTC 2019 - Samuel Cabrero <[email protected]>
+
+- Fix an issue importing legacy XML based autoyast configuration;
+  (bsc#1137380);
+- Require network to be configured before importing autoyast
+  configuration; (bsc#1136139);
+- 4.2.1
+
+-------------------------------------------------------------------
+Fri May 31 12:25:50 UTC 2019 - Stasiek Michalski <[email protected]>
+
+- Add metainfo (fate#319035)
+- Revamp spec
+- Replace GenericName with Comment
+- 4.2.0
+
+-------------------------------------------------------------------
 Fri Feb 15 17:47:05 UTC 2019 - David Mulder <[email protected]>
 
 - yast auth-client and krb5.conf wrong domain_realm entry; (bsc#1122026)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-auth-client-4.1.1/package/yast2-auth-client.spec 
new/yast2-auth-client-4.2.1/package/yast2-auth-client.spec
--- old/yast2-auth-client-4.1.1/package/yast2-auth-client.spec  2019-02-28 
18:57:28.000000000 +0100
+++ new/yast2-auth-client-4.2.1/package/yast2-auth-client.spec  2019-07-29 
11:12:00.000000000 +0200
@@ -12,62 +12,63 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:           yast2-auth-client
-Version:        4.1.1
+Version:        4.2.1
 Release:        0
 Url:            https://github.com/yast/yast-auth-client
 Summary:        YaST2 - Centralised System Authentication Configuration
 License:        GPL-2.0-only
 Group:          System/YaST
 
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 Source0:        %{name}-%{version}.tar.bz2
 
-BuildArch:      noarch
-Requires:       net-tools
-Requires:       yast2
-Requires:       yast2 >= 2.21.22
-Requires:       yast2-pam >= 2.20.0
-Requires:       yast2-ruby-bindings >= 1.0.0
 BuildRequires:  doxygen
 BuildRequires:  perl-XML-Writer
 BuildRequires:  update-desktop-files
 BuildRequires:  yast2
 BuildRequires:  yast2
-BuildRequires:  yast2-devtools >= 3.0.6
+BuildRequires:  yast2-devtools >= 4.2.2
 BuildRequires:  yast2-network
 BuildRequires:  yast2-pam
 BuildRequires:  yast2-testsuite
 BuildRequires:  rubygem(yast-rake)
 
 PreReq:         %fillup_prereq
+Requires:       net-tools
+Requires:       yast2
+Requires:       yast2 >= 2.21.22
+Requires:       yast2-pam >= 2.20.0
+Requires:       yast2-ruby-bindings >= 1.0.0
+
 Obsoletes:      yast2-kerberos-client
 Obsoletes:      yast2-ldap-client
 
+BuildArch:      noarch
+
 %description
 With this YaST2 module you may configure centralised system authentication, on 
a single or multipe network domains.
 
 %prep
-%setup -n %{name}-%{version}
+%setup -q
 
 %build
 
 %install
-rake install DESTDIR="%{buildroot}"
+%yast_install
+%yast_metainfo
 
 %files
-%defattr(-,root,root)
 %doc %{yast_docdir}
-%{yast_libdir}/
-%{yast_desktopdir}/
-%{yast_clientdir}/
-%{yast_libdir}/
-%{yast_scrconfdir}/
-%{yast_schemadir}/
+%{yast_libdir}
+%{yast_desktopdir}
+%{yast_metainfodir}
+%{yast_clientdir}
+%{yast_scrconfdir}
+%{yast_schemadir}
 %{yast_icondir}
 %license COPYING
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-auth-client-4.1.1/src/desktop/auth-client.desktop 
new/yast2-auth-client-4.2.1/src/desktop/auth-client.desktop
--- old/yast2-auth-client-4.1.1/src/desktop/auth-client.desktop 2019-02-28 
18:57:28.000000000 +0100
+++ new/yast2-auth-client-4.2.1/src/desktop/auth-client.desktop 1970-01-01 
01:00:00.000000000 +0100
@@ -1,22 +0,0 @@
-[Desktop Entry]
-Type=Application
-Categories=Settings;System;Qt;X-SuSE-YaST;X-SuSE-YaST-Net_advanced;
-
-X-KDE-ModuleType=Library
-X-KDE-HasReadOnlyMode=true
-X-SuSE-YaST-Call=auth-client
-
-X-SuSE-YaST-Group=Net_advanced
-X-SuSE-YaST-RootOnly=true
-X-SuSE-YaST-AutoInst=all
-X-SuSE-YaST-AutoInstResource=auth-client
-X-SuSE-YaST-AutoInstClonable=true
-X-SuSE-YaST-AutoInstSchema=auth-client.rnc
-X-SuSE-YaST-Keywords=authentication,sssd,pam,ldap,kerberos,krb,krb5,windows,microsoft,ad,activedirectory
-
-Icon=yast-auth-client
-Exec=xdg-su -c "/sbin/yast2 auth-client"
-
-Name=User Logon Management
-GenericName=User Logon Management
-StartupNotify=true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-auth-client-4.1.1/src/desktop/ldapkrb.desktop 
new/yast2-auth-client-4.2.1/src/desktop/ldapkrb.desktop
--- old/yast2-auth-client-4.1.1/src/desktop/ldapkrb.desktop     2019-02-28 
18:57:28.000000000 +0100
+++ new/yast2-auth-client-4.2.1/src/desktop/ldapkrb.desktop     1970-01-01 
01:00:00.000000000 +0100
@@ -1,21 +0,0 @@
-[Desktop Entry]
-Type=Application
-Categories=Settings;System;Qt;X-SuSE-YaST;X-SuSE-YaST-Net_advanced;
-
-X-KDE-ModuleType=Library
-X-KDE-HasReadOnlyMode=true
-X-SuSE-YaST-Call=ldapkrb
-
-X-SuSE-YaST-Group=Net_advanced
-X-SuSE-YaST-RootOnly=true
-X-SuSE-YaST-AutoInst=all
-X-SuSE-YaST-AutoInstResource=auth-client
-X-SuSE-YaST-AutoInstClonable=true
-X-SuSE-YaST-Keywords=authentication,sssd,pam,ldap,kerberos,krb,krb5,windows,microsoft,ad,activedirectory
-
-Icon=yast-ldap-kerberos
-Exec=xdg-su -c "/sbin/yast2 ldapkrb"
-
-Name=LDAP and Kerberos Client
-GenericName=LDAP And Kerberos Client
-StartupNotify=true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-auth-client-4.1.1/src/desktop/org.opensuse.yast.AuthClient.desktop 
new/yast2-auth-client-4.2.1/src/desktop/org.opensuse.yast.AuthClient.desktop
--- 
old/yast2-auth-client-4.1.1/src/desktop/org.opensuse.yast.AuthClient.desktop    
    1970-01-01 01:00:00.000000000 +0100
+++ 
new/yast2-auth-client-4.2.1/src/desktop/org.opensuse.yast.AuthClient.desktop    
    2019-07-29 11:12:00.000000000 +0200
@@ -0,0 +1,24 @@
+[Desktop Entry]
+Type=Application
+Categories=Settings;System;Qt;X-SuSE-YaST;X-SuSE-YaST-Net_advanced;
+
+X-KDE-ModuleType=Library
+X-KDE-HasReadOnlyMode=true
+X-SuSE-YaST-Call=auth-client
+
+X-SuSE-YaST-Group=Net_advanced
+X-SuSE-YaST-RootOnly=true
+X-SuSE-YaST-AutoInst=all
+X-SuSE-YaST-AutoInstResource=auth-client
+X-SuSE-YaST-AutoInstClonable=true
+X-SuSE-YaST-AutoInstRequires=lan
+X-SuSE-YaST-AutoInstSchema=auth-client.rnc
+X-SuSE-YaST-Keywords=authentication,sssd,pam,ldap,kerberos,krb,krb5,windows,microsoft,ad,activedirectory
+
+Icon=yast-auth-client
+Exec=xdg-su -c "/sbin/yast2 auth-client"
+
+Name=YaST User Logon
+GenericName=User Logon
+Comment=User Logon Management
+StartupNotify=true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-auth-client-4.1.1/src/desktop/org.opensuse.yast.LDAPKrb.desktop 
new/yast2-auth-client-4.2.1/src/desktop/org.opensuse.yast.LDAPKrb.desktop
--- old/yast2-auth-client-4.1.1/src/desktop/org.opensuse.yast.LDAPKrb.desktop   
1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-auth-client-4.2.1/src/desktop/org.opensuse.yast.LDAPKrb.desktop   
2019-07-29 11:12:00.000000000 +0200
@@ -0,0 +1,22 @@
+[Desktop Entry]
+Type=Application
+Categories=Settings;System;Qt;X-SuSE-YaST;X-SuSE-YaST-Net_advanced;
+
+X-KDE-ModuleType=Library
+X-KDE-HasReadOnlyMode=true
+X-SuSE-YaST-Call=ldapkrb
+
+X-SuSE-YaST-Group=Net_advanced
+X-SuSE-YaST-RootOnly=true
+X-SuSE-YaST-AutoInst=all
+X-SuSE-YaST-AutoInstResource=auth-client
+X-SuSE-YaST-AutoInstClonable=true
+X-SuSE-YaST-Keywords=authentication,sssd,pam,ldap,kerberos,krb,krb5,windows,microsoft,ad,activedirectory
+
+Icon=yast-ldap-kerberos
+Exec=xdg-su -c "/sbin/yast2 ldapkrb"
+
+Name=YaST LDAP and Kerberos
+GenericName=LDAP and Kerberos
+Comment=Configure LDAP And Kerberos
+StartupNotify=true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-auth-client-4.1.1/src/lib/authui/autoclient.rb 
new/yast2-auth-client-4.2.1/src/lib/authui/autoclient.rb
--- old/yast2-auth-client-4.1.1/src/lib/authui/autoclient.rb    2019-02-28 
18:57:28.000000000 +0100
+++ new/yast2-auth-client-4.2.1/src/lib/authui/autoclient.rb    2019-07-29 
11:12:00.000000000 +0200
@@ -42,22 +42,44 @@
         def import(exported)
             if exported.has_key?('sssd')
                 # Import legacy XML configuration from SLE 12 SP0 or SP1
-                sssd = exported['sssd']
+                sssd = exported
                 if sssd.has_key?('listentry')
                     sssd = sssd['listentry']
                 end
-                enabled = sssd.fetch('sssd', nil)
+
+                sssd_enabled = sssd.fetch('sssd', nil)
+                if sssd_enabled == 'yes' || sssd_enabled == 'true'
+                    sssd_enabled = true
+                elsif sssd_enabled == 'no' || sssd_enabled == 'false'
+                    sssd_enabled = false
+                end
+
+                mkhomedir_enabled = sssd.fetch('mkhomedir', nil)
+                if mkhomedir_enabled == 'yes' || mkhomedir_enabled == 'true'
+                    mkhomedir_enabled = true
+                elsif mkhomedir_enabled == 'no' || mkhomedir_enabled == 'false'
+                    mkhomedir_enabled = false
+                end
+
                 daemon = sssd.fetch('sssd_conf', {}).fetch('sssd', nil)
-                domain = sssd.fetch('sssd_conf', {}).fetch('auth_domains', 
{}).fetch('domain', {})
+                auth_domain = sssd.fetch('sssd_conf', 
{}).fetch('auth_domains', {})
+
+                if auth_domain.is_a?(Array)
+                    domain = auth_domain[0]
+                else
+                    domain = auth_domain.fetch('domain', {})
+                end
+
                 domain_name = domain.fetch('domain_name', nil)
-                if enabled != 'yes' || daemon.nil? || domain_name.nil?
+                if !sssd_enabled || daemon.nil? || domain_name.nil?
                     log.info('legacy configuration is empty or disabled')
                     return true
                 end
                 AuthConfInst.clear
                 AuthConfInst.sssd_lint_conf # make a basic config structure
-                AuthConfInst.sssd_enabled = true
+                AuthConfInst.sssd_enabled = sssd_enabled
                 AuthConfInst.sssd_pam = true
+                AuthConfInst.mkhomedir_pam = mkhomedir_enabled
                 AuthConfInst.sssd_nss = ['passwd', 'group']
                 AuthConfInst.sssd_conf['sssd'] = daemon
                 domain.delete('domain_name')


Reply via email to