Hello community, here is the log from the commit of package yast2-users for openSUSE:Factory checked in at 2020-07-21 15:45:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yast2-users (Old) and /work/SRC/openSUSE:Factory/.yast2-users.new.3592 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-users" Tue Jul 21 15:45:59 2020 rev:233 rq:821043 version:4.3.4 Changes: -------- --- /work/SRC/openSUSE:Factory/yast2-users/yast2-users.changes 2020-07-01 14:26:05.574655540 +0200 +++ /work/SRC/openSUSE:Factory/.yast2-users.new.3592/yast2-users.changes 2020-07-21 15:47:54.208111189 +0200 @@ -1,0 +2,8 @@ +Tue Jul 14 15:06:32 UTC 2020 - José Iván López González <[email protected]> + +- Use available kadmin.local binary (either at /usr/lib/mit/sbin + or /usr/sbin). +- Related to bsc#1174078. +- 4.3.4 + +------------------------------------------------------------------- Old: ---- yast2-users-4.3.3.tar.bz2 New: ---- yast2-users-4.3.4.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-users.spec ++++++ --- /var/tmp/diff_new_pack.fjtQve/_old 2020-07-21 15:47:55.604112916 +0200 +++ /var/tmp/diff_new_pack.fjtQve/_new 2020-07-21 15:47:55.608112920 +0200 @@ -17,7 +17,7 @@ Name: yast2-users -Version: 4.3.3 +Version: 4.3.4 Release: 0 Summary: YaST2 - User and Group Configuration License: GPL-2.0-only ++++++ yast2-users-4.3.3.tar.bz2 -> yast2-users-4.3.4.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-users-4.3.3/package/yast2-users.changes new/yast2-users-4.3.4/package/yast2-users.changes --- old/yast2-users-4.3.3/package/yast2-users.changes 2020-06-30 13:07:33.000000000 +0200 +++ new/yast2-users-4.3.4/package/yast2-users.changes 2020-07-15 09:41:52.000000000 +0200 @@ -1,4 +1,12 @@ ------------------------------------------------------------------- +Tue Jul 14 15:06:32 UTC 2020 - José Iván López González <[email protected]> + +- Use available kadmin.local binary (either at /usr/lib/mit/sbin + or /usr/sbin). +- Related to bsc#1174078. +- 4.3.4 + +------------------------------------------------------------------- Mon Jun 29 15:28:01 UTC 2020 - Imobach Gonzalez Sosa <[email protected]> - Honor the 'target' argument when cloning the system. If it is diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-users-4.3.3/package/yast2-users.spec new/yast2-users-4.3.4/package/yast2-users.spec --- old/yast2-users-4.3.3/package/yast2-users.spec 2020-06-30 13:07:33.000000000 +0200 +++ new/yast2-users-4.3.4/package/yast2-users.spec 2020-07-15 09:41:52.000000000 +0200 @@ -17,7 +17,7 @@ Name: yast2-users -Version: 4.3.3 +Version: 4.3.4 Release: 0 Summary: YaST2 - User and Group Configuration License: GPL-2.0-only diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-users-4.3.3/src/modules/UsersPluginKerberos.pm new/yast2-users-4.3.4/src/modules/UsersPluginKerberos.pm --- old/yast2-users-4.3.3/src/modules/UsersPluginKerberos.pm 2020-06-30 13:07:33.000000000 +0200 +++ new/yast2-users-4.3.4/src/modules/UsersPluginKerberos.pm 2020-07-15 09:41:52.000000000 +0200 @@ -79,6 +79,18 @@ return 0; } +# internal function: +# check the path of kadmin.local binary +# +# Note that the lastest kbr5 package provides the kadmin.local binary at /usr/sbin, +# but older kbr5 uses /usr/lib/mit/sbin path. +sub kadmin_path { + my $path = "/usr/sbin/kadmin.local"; + my $old_path = "/usr/lib/mit/sbin/kadmin.local"; + + return -x $path ? $path : $old_path; +} + ##------------------------------------------ ##--------------------- global API functions @@ -150,7 +162,7 @@ y2debug ("Kerberos plugin not present"); return 0; } - my $out = SCR->Execute (".target.bash_output", "/usr/lib/mit/sbin/kadmin.local -nq 'list_principals ".String->Quote("".$data->{uid})."*' | /usr/bin/grep '".String->Quote("".$data->{uid})."*'"); + my $out = SCR->Execute (".target.bash_output", "${\kadmin_path()} -nq 'list_principals ".String->Quote("".$data->{uid})."*' | /usr/bin/grep '".String->Quote("".$data->{uid})."*'"); if ($out->{"stdout"} =~ /^$data->{uid}/ ) { y2milestone ("Kerberos plugin present"); return 1; @@ -240,7 +252,7 @@ sub Write { my ($self, $config, $data) = @_; - my $command = '/usr/lib/mit/sbin/kadmin.local'; + my $command = kadmin_path(); my $input = ""; #y2milestone(Dumper($data));
