[Bug 396070] New: Join Domain Broken yast2
https://bugzilla.novell.com/show_bug.cgi?id=396070 Summary: Join Domain Broken yast2 Product: openSUSE 11.0 Version: RC 1 Platform: x86 OS/Version: openSUSE 11.0 Status: NEW Severity: Critical Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: megalexis@gmail.com QAContact: jsrain@novell.com Found By: Beta-Customer Joining a domain through yast2 is broken. The error reads: sh:-c:line0: unexpected EOF while looking for matching `" sh:-c:line1: syntax error: unexpected end of file. Dont have a clue whats causing this. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=396070 User megalexis@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=396070#c1 --- Comment #1 from Megaq Lex <megalexis@gmail.com> 2008-05-30 15:11:13 MDT --- YAST LOG: 2008-05-30 16:09:05 <1> hmp-white2(953) [Perl] modules/SambaAD.pm(SambaAD::GetADS):89 get ads: workgroup: XXXXXX 2008-05-30 16:09:06 <1> hmp-white2(953) [Perl] modules/SambaAD.pm(SambaAD::GetADS):206 returning server: 165.91.110.10 2008-05-30 16:09:06 <1> hmp-white2(953) [Perl] modules/SambaAD.pm(SambaAD::ADDomain2Workgroup):264 workgroup: XXXXXX 2008-05-30 16:09:06 <1> hmp-white2(953) [Perl] modules/SambaAD.pm(SambaAD::GetRealm):298 realm: XXX.XXXXXX 2008-05-30 16:09:06 <3> hmp-white2(953) [bash] ShellCommand.cc(shellcommand):78 Join to domain is not valid: Undetermined error 2008-05-30 16:09:06 <5> hmp-white2(953) [Perl] modules/SambaNetJoin.pm(SambaNetJoin::Test):56 LANG=C net ads testjoin -s /tmp/YaST2-00953-71ewX4/smb.conf -P => $VAR1 = { 'stderr' => 'Join to domain is not valid: Undetermined error ', 'exit' => 255, 'stdout' => '' }; 2008-05-30 16:09:41 <3> hmp-white2(953) [bash] ShellCommand.cc(shellcommand):78 sh: -c: line 0: unexpected EOF while looking for matching `'' 2008-05-30 16:09:41 <3> hmp-white2(953) [bash] ShellCommand.cc(shellcommand):78 sh: -c: line 1: syntax error: unexpected end of file 2008-05-30 16:09:41 <5> hmp-white2(953) [Perl] modules/SambaNetJoin.pm(SambaNetJoin::Join):111 KRB5_CONFIG=/tmp/YaST2-00953-71ewX4/krb5.conf net ads join -s /tmp/YaST2-00953-71ewX4/smb.conf -U 'xxxxx't' => $VAR1 = { 'stderr' => 'sh: -c: line 0: unexpected EOF while looking for matching `\'\' sh: -c: line 1: syntax error: unexpected end of file ', 'exit' => 2, 'stdout' => '' }; -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=396070 Stephan Kulow <coolo@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.provo.novell.com |jsuchome@novell.com Flag| |SHIP_STOPPER- -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=396070 User jsuchome@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=396070#c2 Jiří Suchomel <jsuchome@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |megalexis@gmail.com --- Comment #2 from Jiří Suchomel <jsuchome@novell.com> 2008-06-02 00:24:00 MDT --- Hm, it looks like the temporary krb/smb.cof is broken, but I cannot reproduce it here. Could you please try again and attach the configuration files used for join? Just wait after error occurs and look into the log for the path to them, in the situation above the y are /tmp/YaST2-00953-71ewX4/krb5.conf and /tmp/YaST2-00953-71ewX4/smb.conf. Save the files right after you see the error and don't quit YaST, because temporary files are deleted on YaST's exit. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=396070 User jsuchome@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=396070#c3 Jiří Suchomel <jsuchome@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |samba-maintainers@SuSE.de --- Comment #3 from Jiří Suchomel <jsuchome@novell.com> 2008-06-02 03:08:03 MDT --- samba-maintainers: what does the error message from 'net' command mean? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=396070 User jsuchome@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=396070#c4 --- Comment #4 from Jiří Suchomel <jsuchome@novell.com> 2008-06-02 04:18:16 MDT --- What is the name of your samba Administrator's account? Is it really xxxxx't ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=396070 User jsuchome@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=396070#c5 --- Comment #5 from Jiří Suchomel <jsuchome@novell.com> 2008-06-02 06:37:49 MDT --- Created an attachment (id=219497) --> (https://bugzilla.novell.com/attachment.cgi?id=219497) patch for /usr/share/YaST2/modules/SambaNetJoin.pm Please apply this patch to /usr/share/YaST2/modules/SambaNetJoin.pm and try again. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=396070 User jsuchome@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=396070#c6 --- Comment #6 from Jiří Suchomel <jsuchome@novell.com> 2008-06-02 06:40:04 MDT --- (From update of attachment 219497) Index: SambaNetJoin.pm =================================================================== --- SambaNetJoin.pm (revision 47068) +++ SambaNetJoin.pm (working copy) @@ -12,7 +12,7 @@ use strict; use Data::Dumper; -use YaST::YCP qw(:DATA :LOGGING); +use YaST::YCP qw(:LOGGING); use YaPI; textdomain "samba-client"; @@ -21,6 +21,7 @@ YaST::YCP::Import("SCR"); YaST::YCP::Import("SambaConfig"); YaST::YCP::Import("SambaAD"); +YaST::YCP::Import("String"); my %TestJoinCache; @@ -97,7 +98,7 @@ . ($protocol ne "ads" ? " -w '$domain'" : "") . " -s $conf_file" . (($protocol ne "ads" && $netbios_name)?" -n '$netbios_name'":"") - . " -U '" . ($user||"") . "%" . ($passwd||"") . "'"; + . " -U '" . String->Quote ($user) . "%" . String->Quote ($passwd) . "'"; if ($machine) { $machine =~ s/dc=([^,]*)//gi; # remove DC=* parts @@ -144,7 +145,7 @@ SCR->Write (".target.string", $conf_file, "[global]\n\trealm = $realm\n\tsecurity = ADS\n\tworkgroup = $domain\n"); my $cmd = "net ads leave -s $conf_file" - . " -U '" . ($user||"") . "%" . ($passwd||"") . "'"; + . " -U '" . String->Quote ($user) . "%" . String->Quote ($passwd) . "'"; my $result = SCR->Execute(".target.bash_output", $cmd); $cmd =~ s/(-U '[^%]*)%[^']*'/$1'/; # hide password in the log -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=396070 User jsuchome@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=396070#c7 Jiří Suchomel <jsuchome@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #219497|0 |1 is obsolete| | --- Comment #7 from Jiří Suchomel <jsuchome@novell.com> 2008-06-02 06:41:19 MDT --- Created an attachment (id=219501) --> (https://bugzilla.novell.com/attachment.cgi?id=219501) patch for /usr/share/YaST2/modules/SambaNetJoin.pm Ah, sorry, this should be the correct patch -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=396070 User jmcdonough@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=396070#c8 --- Comment #8 from James McDonough <jmcdonough@novell.com> 2008-06-02 12:12:10 MDT --- Hmm, unfortunately the "net ads join" error message results from trying to return an NT status code from what may have been an ldap or kerberos error. The only way to know in this case is to see a sniffer trace. It may well be clock skew... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=396070 User megalexis@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=396070#c9 Megaq Lex <megalexis@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |megalexis@gmail.com Status|NEEDINFO |NEW Info Provider|megalexis@gmail.com | --- Comment #9 from Megaq Lex <megalexis@gmail.com> 2008-06-03 08:13:37 MDT --- Patch fixed it !! Joined the domain. you can close this.. Thanks, Alex. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=396070 User megalexis@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=396070#c10 --- Comment #10 from Megaq Lex <megalexis@gmail.com> 2008-06-03 08:36:54 MDT --- Wait don't close.. I still cant log in because even though it said it joined the domain the gdm or kdm is not showing the option to log in to the domain. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=396070 User megalexis@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=396070#c11 --- Comment #11 from Megaq Lex <megalexis@gmail.com> 2008-06-03 09:07:46 MDT --- check box for offline authentication is not checked even though: winbind offline logon = yes is set. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=396070 User megalexis@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=396070#c12 --- Comment #12 from Megaq Lex <megalexis@gmail.com> 2008-06-03 09:08:39 MDT --- we need another checkbox for this: winbind use default domain = yes -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=396070 User anschneider@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=396070#c13 --- Comment #13 from Andreas Schneider <anschneider@novell.com> 2008-06-03 09:24:11 MDT --- The option 'winbind use default domain = yes' should not be used as it creates more problems than that it helps. See http://marc.info/?l=samba-technical&m=120358400415871&w=2 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=396070 User jsuchome@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=396070#c14 Jiří Suchomel <jsuchome@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #14 from Jiří Suchomel <jsuchome@novell.com> 2008-06-03 12:56:10 MDT --- Please, leave the other issues into different bug reports, this one is related to the ' character in user name or password. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com