Hello community, here is the log from the commit of package yast2-users for openSUSE:Factory checked in at 2014-04-13 13:13:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yast2-users (Old) and /work/SRC/openSUSE:Factory/.yast2-users.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-users" Changes: -------- --- /work/SRC/openSUSE:Factory/yast2-users/yast2-users.changes 2014-04-06 09:55:38.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.yast2-users.new/yast2-users.changes 2014-04-13 13:13:08.000000000 +0200 @@ -1,0 +2,6 @@ +Thu Apr 4 15:06:27 UTC 2014 - [email protected] + +- hide Kerberos passwords from process list +- 3.1.21 + +------------------------------------------------------------------- Old: ---- yast2-users-3.1.20.tar.bz2 New: ---- yast2-users-3.1.21.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-users.spec ++++++ --- /var/tmp/diff_new_pack.XT34JL/_old 2014-04-13 13:13:10.000000000 +0200 +++ /var/tmp/diff_new_pack.XT34JL/_new 2014-04-13 13:13:10.000000000 +0200 @@ -17,7 +17,7 @@ Name: yast2-users -Version: 3.1.20 +Version: 3.1.21 Release: 0 BuildRoot: %{_tmppath}/%{name}-%{version}-build ++++++ yast2-users-3.1.20.tar.bz2 -> yast2-users-3.1.21.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-users-3.1.20/package/yast2-users.changes new/yast2-users-3.1.21/package/yast2-users.changes --- old/yast2-users-3.1.20/package/yast2-users.changes 2014-04-04 09:52:49.000000000 +0200 +++ new/yast2-users-3.1.21/package/yast2-users.changes 2014-04-07 10:42:50.000000000 +0200 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Thu Apr 4 15:06:27 UTC 2014 - [email protected] + +- hide Kerberos passwords from process list +- 3.1.21 + +------------------------------------------------------------------- Fri Apr 4 06:56:10 UTC 2014 - [email protected] - fix warning about constant redefinition (bnc#871805) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-users-3.1.20/package/yast2-users.spec new/yast2-users-3.1.21/package/yast2-users.spec --- old/yast2-users-3.1.20/package/yast2-users.spec 2014-04-04 09:52:49.000000000 +0200 +++ new/yast2-users-3.1.21/package/yast2-users.spec 2014-04-07 10:42:50.000000000 +0200 @@ -17,7 +17,7 @@ Name: yast2-users -Version: 3.1.20 +Version: 3.1.21 Release: 0 BuildRoot: %{_tmppath}/%{name}-%{version}-build diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-users-3.1.20/src/modules/UsersPluginKerberos.pm new/yast2-users-3.1.21/src/modules/UsersPluginKerberos.pm --- old/yast2-users-3.1.20/src/modules/UsersPluginKerberos.pm 2014-04-04 09:52:50.000000000 +0200 +++ new/yast2-users-3.1.21/src/modules/UsersPluginKerberos.pm 2014-04-07 10:42:50.000000000 +0200 @@ -33,6 +33,7 @@ use YaST::YCP qw(:LOGGING sformat); use YaPI; use Data::Dumper; +use IPC::Open3; textdomain("users"); @@ -236,19 +237,37 @@ sub Write { my ($self, $config, $data) = @_; + my $command = '/usr/lib/mit/sbin/kadmin.local'; + my $input = ""; + + #y2milestone(Dumper($data)); -#y2milestone(Dumper($data)); if( $data->{what} eq 'add_user' ) { - my $out = SCR->Execute (".target.bash_output", '/usr/lib/mit/sbin/kadmin.local -q "addprinc -pw '.$data->{text_userpassword}.' '.$data->{uid}.'"'); + $input = "addprinc -pw \"$data->{text_userpassword}\" $data->{uid}"; } - elsif( $data->{what} eq 'del_user' ) { - my $out = SCR->Execute (".target.bash_output", '/usr/lib/mit/sbin/kadmin.local -q "delprinc '.$data->{uid}.'"'); + elsif( $data->{what} eq 'delete_user' ) { + $input = "delprinc -force $data->{uid}"; } elsif( $data->{what} eq 'edit_user' ) { - if( defined $data->{text_userpassword} ) { - my $out = SCR->Execute (".target.bash_output", '/usr/lib/mit/sbin/kadmin.local -q "change_password -pw '.$data->{text_userpassword}.' '.$data->{uid}.'"'); - } + if( defined $data->{text_userpassword} ) { + $input = "change_password -pw \"$data->{text_userpassword}\" $data->{uid}"; + } + } + + if ( defined $input ) { + my $pid = open3(\*IN, \*OUT, \*ERR, "$command") + or do { + $error = __("Cannot execute kadmin.local."); + return YaST::YCP::Boolean (0); + }; + print IN "$input\n"; + + close IN; + close OUT; + close ERR; + waitpid $pid, 0; } + return YaST::YCP::Boolean (1); } 42 -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
