Bug 1579 - \\server\service%username no longer works
\\server\service%username no longer works
Status: RESOLVED LATER
Product: Samba 3.0
Classification: Unclassified
Component: File Services
3.0.4
x86 Linux
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-08-02 04:27 UTC by Alun Jones
Modified: 2007-05-20 09:23 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alun Jones 2004-08-02 04:27:57 UTC
I recently upgraded a couple of our systems from Samba 2.2.7 to 3.0.4 and
noticed that connecting to shares of the form "\\server\service%username"
appears to have stopped working. The man page still refers to this form of
connection, but when I connect, I get NT_STATUS_BAD_NETWORK_NAME back.

We still have quite a number of Windows 98 clients whose users login under a
different username from that used on central systems. This is going to be a
problem if I roll out the upgrade onto the production systems. 

We also have a similar need on our Windows 2003 Citrix servers - if they
connect all users to "\\server\temp" (where the samba config looks at the
username and gives each user their own temporary space), then sometimes the
servers appear to mix up who belongs to which connection. We solved this a
couple of years back by using the percent hack to make the citrix server see
each connection as having a distinct name (\\server\temp%auj).

I hacked the sources to ignore everything after a "%" (by nulling it out
around line 791 of smbd/service.c), and this works for the Citrix case. It
won't, of course, solve the problem for Windows 98 users.
Comment 1 Gerald (Jerry) Carter 2005-02-03 07:12:39 UTC
I think this is just one the causualties on the move from 
2.2.x to 3.0.x.  Marking this one later in case anyone wants 
to revisit it.