Hello community,
here is the log from the commit of package yast2-users
checked in at Thu Oct 16 14:38:00 CEST 2008.
--------
--- yast2-users/yast2-users.changes 2008-10-13 16:56:21.000000000 +0200
+++ /mounts/work_src_done/STABLE/yast2-users/yast2-users.changes 2008-10-16 11:50:12.919664000 +0200
@@ -1,0 +2,7 @@
+Thu Oct 16 11:32:53 CEST 2008 - jsuchome@suse.cz
+
+- check the return value of dig command (bnc#435878)
+- use domainname to get the domain name (workaround for bnc#393951)
+- 2.17.18
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
yast2-users-2.17.17.tar.bz2
New:
----
yast2-users-2.17.18.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-users.spec ++++++
--- /var/tmp/diff_new_pack.P14703/_old 2008-10-16 14:37:42.000000000 +0200
+++ /var/tmp/diff_new_pack.P14703/_new 2008-10-16 14:37:42.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-users (Version 2.17.17)
+# spec file for package yast2-users (Version 2.17.18)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -19,12 +19,12 @@
Name: yast2-users
-Version: 2.17.17
+Version: 2.17.18
Release: 1
License: GPL v2 or later
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-users-2.17.17.tar.bz2
+Source0: yast2-users-2.17.18.tar.bz2
Prefix: /usr
BuildRequires: cracklib-devel doxygen gcc-c++ perl-Digest-SHA1 perl-XML-Writer update-desktop-files yast2 yast2-core-devel yast2-devtools yast2-ldap-client yast2-perl-bindings yast2-security yast2-testsuite
Requires: yast2-perl-bindings yast2-country yast2-pam yast2-security cracklib perl-Digest-SHA1 perl-X500-DN perl-gettext
@@ -52,7 +52,7 @@
Jiri Suchomel
%prep
-%setup -n yast2-users-2.17.17
+%setup -n yast2-users-2.17.18
%build
%{prefix}/bin/y2tool y2autoconf
@@ -95,6 +95,10 @@
%{_libdir}/YaST2/plugin/libpy2ag_crack.la
%doc %{prefix}/share/doc/packages/yast2-users
%changelog
+* Thu Oct 16 2008 jsuchome@suse.cz
+- check the return value of dig command (bnc#435878)
+- use domainname to get the domain name (workaround for bnc#393951)
+- 2.17.18
* Mon Oct 13 2008 jsuchome@suse.cz
- added CLI option 'batchmode': do not ask for data (bnc#431685)
- 2.17.17
++++++ yast2-users-2.17.17.tar.bz2 -> yast2-users-2.17.18.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-users-2.17.17/src/cmdline.ycp new/yast2-users-2.17.18/src/cmdline.ycp
--- old/yast2-users-2.17.17/src/cmdline.ycp 2008-10-13 15:55:15.000000000 +0200
+++ new/yast2-users-2.17.18/src/cmdline.ycp 2008-10-13 16:56:41.000000000 +0200
@@ -4,7 +4,7 @@
* Summary: Command line interface functions.
* Authors: Jiri Suchomel
*
- * $Id: cmdline.ycp 49295 2008-07-21 14:10:36Z jsuchome $
+ * $Id: cmdline.ycp 52149 2008-10-13 14:56:39Z jsuchome $
*
* All command line interface functions.
*/
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-users-2.17.17/src/groups.ycp new/yast2-users-2.17.18/src/groups.ycp
--- old/yast2-users-2.17.17/src/groups.ycp 2008-10-13 15:47:38.000000000 +0200
+++ new/yast2-users-2.17.18/src/groups.ycp 2008-10-13 16:56:41.000000000 +0200
@@ -10,7 +10,7 @@
* Authors:
* Jiri Suchomel
*
- * $Id: groups.ycp 23424 2005-05-17 11:35:38Z jsuchome $
+ * $Id: groups.ycp 52149 2008-10-13 14:56:39Z jsuchome $
*
* Just a shortcut to invoke groups management
*/
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-users-2.17.17/src/UsersSimple.pm new/yast2-users-2.17.18/src/UsersSimple.pm
--- old/yast2-users-2.17.17/src/UsersSimple.pm 2008-10-06 13:01:12.000000000 +0200
+++ new/yast2-users-2.17.18/src/UsersSimple.pm 2008-10-16 11:31:35.000000000 +0200
@@ -1218,19 +1218,31 @@
}
my $domain = Hostname->CurrentDomain ();
+ y2milestone ("current domain : '$domain'");
+ if (!$domain && Stage->cont ())
+ {
+ my $out = SCR->Execute (".target.bash_output", "domainname");
+ if ($out->{"exit"} eq 0) {
+ $domain = $out->{"stdout"};
+ chomp $domain;
+ y2milestone ("current domain from domainname: '$domain'");
+ }
+ }
# First, check if LDAP server is available
- my $out = SCR->Execute (".target.bash_output", "dig _ldap._tcp.$domain SRV +short");
+ my $out = SCR->Execute (".target.bash_output", "dig '_ldap._tcp.$domain' SRV +short");
y2debug ("dig output: ", Dumper ($out));
my $ldap_server = "";
- foreach my $line (split (/\n/,$out->{"stdout"} || "")) {
- y2debug ("line: $line");
- if ($line !~ m/^;/) {
- $ldap_server = (split (/[ \t]/, $line))[3] || ".";
- chop $ldap_server;
- y2debug ("proposed LDAP server '$ldap_server'");
+ if ($out->{"exit"} eq 0) {
+ foreach my $line (split (/\n/,$out->{"stdout"} || "")) {
+ y2debug ("line: $line");
+ if ($line !~ m/^;/) {
+ $ldap_server = (split (/[ \t]/, $line))[3] || ".";
+ chop $ldap_server;
+ y2debug ("proposed LDAP server '$ldap_server'");
+ }
+ last if $ldap_server ne "";
}
- last if $ldap_server ne "";
}
if ($ldap_server ne "")
{
@@ -1239,17 +1251,19 @@
}
# check if AD server is available
- $out = SCR->Execute (".target.bash_output", "dig _ldap._tcp.dc._msdcs.$domain SRV +short");
+ $out = SCR->Execute (".target.bash_output", "dig '_ldap._tcp.dc._msdcs.$domain' SRV +short");
y2debug ("dig output: ", Dumper ($out));
my $ad_server = "";
- foreach my $line (split (/\n/,$out->{"stdout"} || "")) {
- y2debug ("line: $line");
- if ($line !~ m/^;/) {
- $ad_server = (split (/[ \t]/, $line))[3] || ".";
- chop $ad_server;
- y2debug ("proposed AD server '$ad_server'");
+ if ($out->{"exit"} eq 0) {
+ foreach my $line (split (/\n/,$out->{"stdout"} || "")) {
+ y2debug ("line: $line");
+ if ($line !~ m/^;/) {
+ $ad_server = (split (/[ \t]/, $line))[3] || ".";
+ chop $ad_server;
+ y2debug ("proposed AD server '$ad_server'");
+ }
+ last if $ad_server ne "";
}
- last if $ad_server ne "";
}
if ($ad_server ne "")
{
@@ -1260,7 +1274,7 @@
return 1;
}
# check for eDirectory now
- else {
+ elsif ($ldap_server) {
$out = SCR->Execute (".target.bash_output", "ldapsearch -x -h $ldap_server -s base -b '' vendorName | grep -i '^vendorName: Novell'");
y2debug ("ldapsearch output: ", Dumper ($out));
if ($out->{"exit"} eq 0) {
@@ -1270,17 +1284,18 @@
}
# Now, check if kerberos is available
- $out = SCR->Execute (".target.bash_output", "dig _kerberos._udp.$domain SRV +short");
+ $out = SCR->Execute (".target.bash_output", "dig '_kerberos._udp.$domain' SRV +short");
y2debug ("dig output: ", Dumper ($out));
my $kdc = "";
- foreach my $line (split (/\n/,$out->{"stdout"} || "")) {
-
- y2debug ("line: $line");
- if ($line !~ m/^;/) {
- $kdc = (split (/[ \t]/, $line))[3] || ".";
- chop $kdc;
+ if ($out->{"exit"} eq 0) {
+ foreach my $line (split (/\n/,$out->{"stdout"} || "")) {
+ y2debug ("line: $line");
+ if ($line !~ m/^;/) {
+ $kdc = (split (/[ \t]/, $line))[3] || ".";
+ chop $kdc;
+ }
+ last if $kdc ne "";
}
- last if $kdc ne "";
}
if ($kdc ne "" && $ldap_server ne "")
{
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-users-2.17.17/src/users.ycp new/yast2-users-2.17.18/src/users.ycp
--- old/yast2-users-2.17.17/src/users.ycp 2008-10-13 15:47:47.000000000 +0200
+++ new/yast2-users-2.17.18/src/users.ycp 2008-10-13 16:56:41.000000000 +0200
@@ -4,7 +4,7 @@
* Summary: Main file
* Authors: Jiri Suchomel
*
- * $Id: users.ycp 23424 2005-05-17 11:35:38Z jsuchome $
+ * $Id: users.ycp 52149 2008-10-13 14:56:39Z jsuchome $
*
* Main file for users and groups configuration. Uses all other files.
*/
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-users-2.17.17/VERSION new/yast2-users-2.17.18/VERSION
--- old/yast2-users-2.17.17/VERSION 2008-10-13 16:07:26.000000000 +0200
+++ new/yast2-users-2.17.18/VERSION 2008-10-16 11:33:29.000000000 +0200
@@ -1 +1 @@
-2.17.17
+2.17.18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org