Ticket #9 (closed defect: fixed)

Opened 19 months ago

Last modified 12 months ago

Connect fails with NT_STATUS_BAD_NETWORK_NAME due to garbage characters

Reported by: guest Owned by: psmedley
Priority: major Milestone:
Component: Server Version:
Keywords: connect failure garbage characters drive share Cc: herwig.bauernfeind@…
Blocking: Blocked By:

Description

The problem is found in 3.0.25rc1, rc2 and rc3. It was not there in 3.0.25pre2 and earlier.

When a whole drive (i.e. K:/ or K:) is shared in smb.conf AND a loglevel of 3 or 4 is defined in smb.conf, connecting to the share will fail with a NT_STATUS_BAD_NETWORK_NAME.

I have provided some logs as attachments to this ticket. Browsing the logs (search for "K:/" in the log.samba.192.168.1.3 files), you will see that it is quite obvious, why this fails, as there are garbage characters after the share name:

If the smb.conf section looks like:


[k]

path = k:/


the logfile entry at loglevel 3 or 4 will be:

[2007/04/13 17:20:15, 0] smbd/service.c:make_connection_snum(1014)

'K:/d 548 ' does not exist or permission denied when connecting to [k]

Note the the garbage after K:/ !

A workaround for this problem is either not to use loglevel 3 or 4 or use a different notation in smb.conf:


[k]

path = k:/./


Both measures make the problem go away.

Additional notes:

- The problem does not occur with with loglevel 1, 5, 6 and 10, others not tested.

- WinXP is sometimes able to connect successfully at the second attempt, smbclient.exe however can never connect.

Attachments

logs.zip (24.4 kB) - added by guest 19 months ago.
logfiles that show the failure including used smb.conf

Change History

Changed 19 months ago by guest

logfiles that show the failure including used smb.conf

follow-up: ↓ 2   Changed 18 months ago by diver

  • status changed from new to closed
  • resolution set to fixed

works with samba 3.0.25a

in reply to: ↑ 1   Changed 18 months ago by diver

  • status changed from closed to reopened
  • resolution fixed deleted

Replying to diver:

works with samba 3.0.25a

seems not to work 100%

  Changed 16 months ago by guest

Now that external scripts are working, this error turned into a major annoyance, because the suggested workaround (i.e. append ./ ) breaks the possibility to modify the share from (WinXP) client, because the clients gets a "does not exist" error and refuses further changes.

  Changed 13 months ago by guest

This bug is gone with my private Samba 3.0.26a build. The only difference to the official builds is that my build is built with -mcpu=athlon-mp instead of -mcpu=pentium3.

  Changed 12 months ago by guest

  • status changed from reopened to closed
  • resolution set to fixed

Seems to be fixed with Paul's 3.0.28 build.

Note: See TracTickets for help on using tickets.