Chris Lalancette
2003-Dec-04 15:27 UTC
[Samba] connection.tdb difference IP vs. NetBIOS name
Hello all, I am having a problem with Samba 3.0.0 (I have actually tested this with 3.0.1pre3, and seem to have the same problem). I am trying to add a new message to smbcontrol. I have put the code into smbcontrol.c, and I can deliver messages to the samba processes (using the command line: ./smbcontrol smbd <mymsg>). The problem is that messages get delivered to the Samba processes differently depending on whether I am connecting to them by IP address, or by NetBIOS name. If I use the NetBIOS name, the message gets delivered to all processes; if I use the IP address, the message really only gets delivered to the main smbd process (the reason that this is important is that I would like to not use nmbd, if possible). I have tracked this down in the code, and it seems that the difference is in the way new connections get added to the connection.tdb database. My question is whether this is intentional, a bug in the client, or a bug in Samba? (Also, is this the right mailing list for this, or should I get on technical?) DETAILS: Server: Redhat Linux 9, kernel 2.4.20, dual 2.4GHz Xeon, 2GB memory, Samba 3.0.0 compiled with gcc 3.2.2. Client: Windows 2000 (running in VMware) Thanks in advance for your help. From, Chris
Gerald (Jerry) Carter
2003-Dec-04 16:29 UTC
[Samba] connection.tdb difference IP vs. NetBIOS name
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Chris Lalancette wrote: | Hello all, | I am having a problem with Samba 3.0.0 (I have actually tested | this with 3.0.1pre3, and seem to have the same problem). I am trying to | add a new message to smbcontrol. I have put the code into smbcontrol.c, | and I can deliver messages to the samba processes (using the command | line: ./smbcontrol smbd <mymsg>). The problem is that | messages get delivered to the Samba processes differently depending on | whether I am connecting to them by IP address, or by NetBIOS name. If I | use the NetBIOS name, the message gets delivered to all processes; if I | use the IP address, the message really only gets delivered to the main | smbd process (the reason that this is important is that I would like to | not use nmbd, if possible). I have tracked this down in the code, and it | seems that the difference is in the way new connections get added to the | connection.tdb database. My question is whether this is intentional, a | bug in the client, or a bug in Samba? (Also, is this the right mailing | list for this, or should I get on technical?) If you are in the code (bug fixes, patches, etc...) you should be on sambna-technical. If it is a qucik things, then you can try to catch someone on irc.freenode.netc (#samba-technical). cheers, jerry ~ ---------------------------------------------------------------------- ~ Hewlett-Packard ------------------------- http://www.hp.com ~ SAMBA Team ---------------------- http://www.samba.org ~ GnuPG Key ---- http://www.plainjoe.org/gpg_public.asc ~ "If we're adding to the noise, turn off this song" --Switchfoot (2003) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE/z2D/IR7qMdg1EfYRAli3AJ9GzTNkWLINVZKiBrHnhuIEfghAHwCg6mbe lviSNMFfacoNtaI1bEaRGcg=NBpz -----END PGP SIGNATURE-----