LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-22-2009, 12:37 PM   #1
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Rep: Reputation: 63
Samba can't see shares with names over ?8? or so characters long


I'm wondering if anyone found a way to see shares with a name such as: "my-shares-on-such-and-such-computer" This worked in 12.1/12.2 but the shares don't show with the samba version in --current (13.0+). Of note, smbclient does not list the shares either. Any thoughts appreciated.
 
Old 11-22-2009, 02:59 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Looks like a but in Samba 3.4.2. I can reproduce it but have not checked if the latest release (3.4.3) has fixed this. I can see a reference to this bug in the debian/ubuntu bugtracker but since launchpad seems to be offline I can not get to the actual patch file for 3.4.2 (fix-smbclient-long-names.patch)

Eric
 
Old 11-22-2009, 08:53 PM   #3
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Original Poster
Rep: Reputation: 63
Hello Alien Bobo

Thanks for the reply. I extracted the diff out of their office *.dsc file. Going to try and give it whirl. If I can't get it to work, well I'll just wait for the next version of Samba to hit --current then.

Thanks again.

Quote:
diff -Naurp samba-3.4.0.orig/source3/libsmb/clidfs.c samba-3.4.0/source3/libsmb/clidfs.c
--- samba-3.4.0.orig/source3/libsmb/clidfs.c 2009-07-03 07:21:14.000000000 -0400
+++ samba-3.4.0/source3/libsmb/clidfs.c 2009-10-27 16:47:39.495101259 -0400
@@ -216,6 +216,15 @@ static struct cli_state *do_connect(TALL
return NULL;
}
d_printf("Anonymous login successful\n");
+ status = cli_init_creds(c, "", lp_workgroup(), "");
+ } else {
+ status = cli_init_creds(c, username, lp_workgroup(), password);
+ }
+
+ if (!NT_STATUS_IS_OK(status)) {
+ DEBUG(10,("cli_init_creds() failed: %s\n", nt_errstr(status)));
+ cli_shutdown(c);
+ return NULL;
}

if ( show_sessetup ) {
diff -Naurp samba-3.4.0.orig/source3/libsmb/libsmb_server.c samba-3.4.0/source3/libsmb/libsmb_server.c
--- samba-3.4.0.orig/source3/libsmb/libsmb_server.c 2009-07-03 07:21:14.000000000 -0400
+++ samba-3.4.0/source3/libsmb/libsmb_server.c 2009-10-27 16:47:39.495101259 -0400
@@ -500,6 +500,14 @@ again:
}
}

+ status = cli_init_creds(c, username_used,
+ *pp_workgroup, *pp_password);
+ if (!NT_STATUS_IS_OK(status)) {
+ errno = map_errno_from_nt_status(status);
+ cli_shutdown(c);
+ return NULL;
+ }
+
DEBUG(4,(" session setup ok\n"));

status = cli_tcon_andx(c, share, "?????", *pp_password,
 
Old 11-25-2009, 12:36 AM   #4
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Original Poster
Rep: Reputation: 63
I'm going to mark this as solved since upstream at Samba they appear to have fixed this, and presumably Mr. V will add it to --current which I'm running.
 
Old 11-25-2009, 02:41 AM   #5
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Hey Old_Fogie, good to see that you're still alive and kicking!
 
Old 11-25-2009, 11:52 AM   #6
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Original Poster
Rep: Reputation: 63
...and taking names!
 
Old 11-25-2009, 12:02 PM   #7
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Hey, welcome back, Old_Fogie! Good to see you on the forum, again.
 
Old 02-02-2010, 02:37 PM   #8
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Original Poster
Rep: Reputation: 63
Just a follow up, this issue is now resolved in --current. Haway
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to modify the names of files and replace characters with other characters or symb peter88 Linux - General 2 12-10-2006 03:05 AM
Can i limit new file names created to 8 characters with samba ? amitsharma_26 Linux - Networking 1 12-16-2005 05:42 AM
GUI software that can enumerate and open the samba shares with long names - ? yozhhh Linux - Software 2 04-17-2005 03:37 AM
Can't Access Samba Shares containind Special Characters DoubleOTeC Linux - Software 2 05-14-2004 07:09 PM
Samba 3.0.2 not mangling long names correctly for Win95/98 JLindenmuth Linux - Networking 0 03-25-2004 01:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration