summaryrefslogtreecommitdiff
path: root/source3/namedbname.c
AgeCommit message (Collapse)AuthorFilesLines
1996-12-10Added in missing return statement.Samba Release Account1-0/+1
jra@cygnus.com (This used to be commit 61dc3087a0fbe92d703d46722338aa9e06b56ed0)
1996-11-06increased debug levels for name dump to same as that for workgroup dumpSamba Release Account1-7/+7
in log files. really verbose listings ought only to be shown at debug log level 5 and above. lkcl (This used to be commit 6f0a4d71787cf64468cdba0b2f82288c71b1499b)
1996-11-06queries for 0x1b names were resulting in dns lookups. not good.Samba Release Account1-2/+2
lkcl (This used to be commit 992ca1f32bd2bcb88bf85a71524b5643f63b322e)
1996-10-27removed getdomainname() stuff and appending a '.' to the name inSamba Release Account1-21/+1
dns_name_search(). lkcl (This used to be commit adf5a42c21cd73ee0eaf05030e01788908fbb8a5)
1996-10-27severe debugging session for nmbd. in fact, i'm surprised that browsingSamba Release Account1-3/+4
in 1.9.16 works at all! question and resource record types for queries and response netbios packets sorted out properly (see rfc1002.txt 4.2.1.3). receipt of browser announcement packets were playing up lkcl (This used to be commit b289db62f1a53f1a68ea48dbfa59720cc778d39c)
1996-10-25debugging the dns lookup changesSamba Release Account1-6/+25
lkcl (This used to be commit 3f63dd6771ee1c4cd30049478ea053caefdc262f)
1996-10-25debugged dns lookup / netbios name query code from yesterday.Samba Release Account1-48/+28
lkcl (This used to be commit 7c2f1da3773bac59ba0aeea7c0cac1134a74381c)
1996-10-24dealing with name queries and dns lookups etc.Samba Release Account1-30/+9
lkcl (This used to be commit 98cb371244fcb048ad13514140a4ea7243b2b039)
1996-10-24- added support for TMPDIR env variableAndrew Tridgell1-0/+8
- fixed fault.c for linux 2.1 - put back in the FIND_SELF failing code - cleaned up casts in encryption (This used to be commit 3af04f1580b2569c0a4f2549bf6352c7a25afa0d)
1996-10-23code was added to stop samba from replying to queries for its own names (?! :-)Samba Release Account1-7/+0
lkcl (This used to be commit 92a3d0f3e18f7e50ea24053a989fd0096264c816)
1996-10-05- replace the base36 function with one that works on more systemsAndrew Tridgell1-2/+2
(compiler bugs were the problem) - minor password cleanups (catch WfWG bug where it sets the password to a space instead of a NULL) - fix printing problem for kanji users - minor cleanups (This used to be commit 92566ecc315c29da6e9aaa67ddae33e64f5bcc67)
1996-10-05I have fixed quite a few important bugs in this commit.Andrew Tridgell1-2/+8
Luke, can you take special note of the bug fixes to nmbd so you can propogate them to your new code. - rewrote the code that used to use fromhost(). We now call gethostbyaddr() only if necessary and a maximum of once per connection. Calling gethostbyaddr() causes problems on some systems so avoiding it if possible is a good thing :-) - added the "fake oplocks" option. See the docs in smb.conf(5) and Speed.txt - fixed a serious bug in nmbd where it would try a DNS lookup on FIND_SELF queries. This caused a lot of unnecessary (and incorrect) DNS lookups to happen. FIND_SELF queries should only go to the internal name tables. - don't set FIND_SELF for name queries if we are a wins proxy, as we are supposed to be answering queries for other hosts. - fixed a bug in nmbd which had "if (search | FIND_LOCAL)" instead of "if (search & FIND_LOCAL)". Luke, this was in nameservreply.c - the above 3 bugs together meant that DNS queries were being cached, but the cache wasn't being used, so every query was going to DNS, no wonder nmbd has been chewing so much CPU time! Another side effect was that queries on names in lmhosts weren't being answered for bcast queries with "wins proxy" set. - ignore the maxxmit for seconday session setups (see CIFS spec) - close user opened files in a uLogoffX for user level security (see CIFS spec) - added uid into the files struct to support the above change (This used to be commit ea472b7217b7693627a13a7b1e428a0a6a3d8755)
1996-10-02backout all the changes to nmbd.Andrew Tridgell1-158/+125
The 1.9.16 tree is now back to 1.9.16p2 as far as nmbd is concerned apart from a small change that fixes the announce type in two places. (This used to be commit 45e66a69d320024877c8b13f12b21bf895e04410)
1996-10-02- a huge pile of changes from Luke which implement the browse.confAndrew Tridgell1-125/+158
stuff and also fix a pile of nmbd bugs. Unfortunately I found it very hard to disentangle the new features from the bug fixes so I am putting in the new code. I hope this is the last big pile of changes to the 1.9.16 series! (This used to be commit 20b6203dac4bbb43e4e7bea0b214496d76d679d9)
1996-08-24removed all of lukes recent changes. I need to do a p2 release butSamba Release Account1-144/+124
can't test the multi group changes. I also found that some of lukes changes wiped out some recent bug fixes. Is your CVS tree ok luke? (This used to be commit 8b7fe224bce64803d55ae279fa61ef3ebbbb0241)
1996-08-23- fixed bugs in nmb response packet checking.Samba Release Account1-124/+144
- added multiple workgroup code - samba can register under different (unique) NetBIOS aliases, one per workgroup it joins. lkcl (This used to be commit f24e341e7e4d8726b98d3a0f83b24f61817fe536)
1996-08-21- bit a bit manipulation bug in find_name_search()Andrew Tridgell1-19/+17
- add the * and __SAMBA__ names to all subnets - sort the name status reply list and remove duplicate entries. (This used to be commit 04353a9479c01322e34b2f59330fd74a759f6869)
1996-08-20- fix a bug in NetServerEnum where counted and total were not countedAndrew Tridgell1-12/+12
correctly if there were multiple instances of a name. This led to the infamous "not enough memory" error when browsing (but this isn't the only cause of that message) - fix a triple-chaining bug which affected OpenX following a TconX - fix a serious nmbd bug that meant nmdb would answer packets that it wasn't supposed to, causing havoc with browse lists. - never time out SELF packets. This is an interim fix until I find out why nmbd thought they should be timed out. (This used to be commit 2960c3908c2c3b01a1f2b77def60350018d298e1)
1996-08-17i wondered why there was a cvs clash on namedbname.cSamba Release Account1-7/+3
- redid tridge's fprintf for storing wins.dat, and yet again removed the unsigned long changing it to a unint32. lkcl (This used to be commit bb57170695a3582c3a1c5a89044a67ac79134d14)
1996-08-17- fixed wins.dat reloading (it wasn't happening!)Samba Release Account1-38/+42
- made nb_flags an unsigned 16 bit int in nameserv.h - nmbd was calling add_my_subnets() with an uninitialised parameter group. removed it. lkcl (This used to be commit 3d55e541569e7ab887bddc284bddcafdf86c4d22)
1996-08-17- made FAST_SHARE_MODES standard for LinuxAndrew Tridgell1-41/+32
- you can now press enter after a password prompt with "smbclient -L hostname" and it will use a blank username and password, the same as if you used -U% - changed the wins.dat store code to not go via a string variable (just use fprintf instead) - removed a "unsigned long" that luke put back in, changing it to uint32 to keep 64 bit machines happy. Naughtly luke! - allow guest non-connnected print queue listings so ms client 3 can work (This used to be commit 917160dee69bbc198985b6f3232ca2dcda809d8a)
1996-08-17- updated load_netbios_names() to cope with new wins.dat formatSamba Release Account1-3/+5
it doesn't support loading of Internet Group names yet, but then again, you can't create Internet Group names yet, so it's not a problem! (This used to be commit 960aad39ac7b9d8c9820fbf7c4cb640ba96a29d6)
1996-08-17- started on support for 'Internet Group names' - type 0x1c NetBIOS namesSamba Release Account1-37/+74
- 0x1d name query to a WINS server should always return FAIL (see WINS server help on nt/as) (This used to be commit a7330127a261f814c56e860b6de658dbef24c33f)
1996-08-17- added support for Amiga-unix (based on BSD I think)Andrew Tridgell1-29/+26
- changed the order of PROGS and SPROGS in Makefile (SPROGS first) - another 64 bit cleanup (for INADDR_NONE) - added paranoia code in DirCacheAdd() to detect looping - fixed important DirCache flush bug - rewrote the NetServerEnum code after I found it could return servers from multiple workgroups at once, and this could cause browsing havoc. Now a null workgroup query is equivalent to a query for the servers primary workgroup - got rid of my_workgroup() - got rid of "workgroup = *" comment in Makefile. We no longer support a workgroup of *, users must set the workgroup explicitly - the wins.dat file was being stored in a different format to what it was being loaded in - this could cause havoc. fixed. - uppercase our netbios name and the workgroup name at startup - if accept fails in main loop when running as a daemon then continue, don't just exit! - don't use ./ on smbclient in smbtar - better code to detect if a process exists (This used to be commit ec3d53963064b50ff33e8eff47812aac82f164ba)
1996-08-14changed "unsigned long" to "uint32" in several places (for IPAndrew Tridgell1-1/+1
addresses) to keep 64 bit machines happy. (This used to be commit b4aaec504ae66dc6a0f05d12529100cb62d47afd)
1996-08-01local_only NetServerEnum syncs can now be issued.Samba Release Account1-1/+22
bug spotted in nameservresp.c - arguments to test subnet the response is received on (same_net()) were the wrong way round (ccm@shentel.net) samba was adding WORKGROUP(1e) as a unique not a group name: fixed this bug in reply_name_status() and reply_name_query(): WINS entries weren't being looked up. name status reply adds local SELF entries to WINS SELF entries: some SELF entries are only added locally, while others are only added via WINS. name status needs to have both, combined. a sync will only occur when an ANN_LocalMasterAnnouncement is received, NOT an ANN_HostAnnouncement or an ANN_DomainAnnouncement. when samba is a member of a workgroup, it looks for (using a wins server) and announces to its domain master. NAME_QUERY_ANNOUNCE_HOST - yet another 'state' - has been created to do this: do the name query on the wins server and send the announce host to the answer to this query. jeremy @ vantive wrote the original code to do this, which used the name_query() function. i'm trying to avoid name_query: it times out and generally messes things up, but using queue_netbios_packet() and queue_netbios_pkt_wins() is... not intuitive? lkcl with help from jra (This used to be commit 6e932e4bae8b46e7ff4a55a75484bad78308336a)
1996-07-18NeXT needs #define pid_t int in includes.hSamba Release Account1-12/+5
namedbname.c:find_name_search() needed search capability on both local subnet records and WINS records. it used to return NULL if the name was not found in the local subnet records even if you asked it to search the WINS name records as well. (This used to be commit 96c2efded884ce4390c5da68afaccca9acc17558)
1996-07-17lots of changes to nmbdSamba Release Account1-9/+8
lkcl (This used to be commit 45d3b2644733333c657c48a69719fec72881f7df)
1996-07-09sorted out various timer delay bugs: nameannounce.c nameserv.cSamba Release Account1-7/+9
namedbname.c:search_for_name() wasn't looking for 0x1b as well as 0x0 and 0x20 name types. reduced number of retransmissions of packets from 4 to 3 times. added code that ensures remote lmhosts entries don't get deleted when a master browser cannot be found on a remote subnet. stopped forcing an election on remote subnets if a master browser cannot be found. stopped browse list and wins list from being written out too frequently. only add samba's names to local interfaces. add 0x1c name if we are a domain logon machine (needs more exploration). why bother reloading services when receiving a SIGTERM? sort out add_my_name_entry() and remove_name_entry() to deal with broadcast, samba as a WINS and samba using a WINS. properly. added extra debug information to help with expected response queue code. updated debug comments in become_master(). altered dump_names() DEBUG format. it looks prettier. altered wins.dat format to match DEBUG format. lkcl (This used to be commit 429f1f975e2936f2e220b656c51c211d48d47047)
1996-07-07added the recently shuffled and updated source files missed in theSamba Release Account1-0/+547
previous commit (see previous log message for details) fixed bug in nameservreply.c: wrong macro in use (RSSVAL not IVAL!). did another make proto lkcl (This used to be commit d78b319062144d14a54408fce77ccc313ad58ee3)