Bug 2275 - libsmbclient generates unique netbios name
libsmbclient generates unique netbios name
Product: Samba 3.0
Classification: Unclassified
Component: libsmbclient
All Linux
: P3 normal
: none
Assigned To: Derrell Lipman
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2005-01-23 04:17 UTC by Joel
Modified: 2005-08-24 10:21 UTC (History)
0 users

See Also:

replaces PID with hostname (1.09 KB, patch)
2005-01-23 04:27 UTC, Joel
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joel 2005-01-23 04:17:26 UTC
If grabbing the netbios name from the config file fails, a unique one is
generated. Since this name contains the PID, it is quite unique and if it
registers with WINS each time coupled with high usage, the WINS server will fill
up needlessly. Replace PID with the hostname fixes this.
Comment 1 Joel 2005-01-23 04:27:08 UTC
Created attachment 909 [details]
replaces PID with hostname

Probably a better way to do this, but it illustrates my point.
Comment 2 Derrell Lipman 2005-03-29 15:22:42 UTC
If there is no config file, initialization already uses the hostname as the
global "myname" value.  global_myname() will return the hostname, converted to
upper case.  Only in the very rare case where the host name could not be
determined or an error occurred, would the PID and username be used to generate
a netbios name.

Unless I'm missing something, this seems to be a non-issue.  Re-open this bug if
you are experiencing something different than I described.
Comment 3 Gerald (Jerry) Carter 2005-08-24 10:21:40 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.