summaryrefslogtreecommitdiff
path: root/source3/nmbd
AgeCommit message (Collapse)AuthorFilesLines
2004-01-13sync HEAD with recent changes in 3.0Gerald Carter1-1/+1
(This used to be commit c98399e3c9d74e19b7c9d806ca8028b48866931e)
2004-01-11update copyright to -2004Stefan Metzmacher1-1/+1
metze (This used to be commit fcb3c9c61ecd787b8d3e5a53ee8f9e04daae76fe)
2003-11-05Fix for bug #771. Fix packet length for browse list reply.Jeremy Allison1-1/+1
Jeremy. (This used to be commit dfea28a7731a0625e37ac43658f21b25e2fcce21)
2003-11-01From 3_0:Volker Lendecke1-2/+2
This binds the nmbd sending socket to the 'socket address'. Hmmm. This is correct in 2.2. Obviously I did not test my 3.0 checkin at that time. Now it hit me at a customer's site... Volker (This used to be commit b9179aed4d7e8ec95e0f8ff79e36403377773f0a)
2003-10-30Nearing the end of the GUID -> struct uuid changes.Jim McDonough1-3/+6
(This used to be commit 0e8fcfac702515f8870c979262bf881d1155efdc)
2003-10-29Fixes to check for wraps which could cause coredumps.Jeremy Allison1-0/+3
Jeremy. (This used to be commit 124a8ddae63adff4f601242a8e6d05abcaf4d9bf)
2003-10-22Put strcasecmp/strncasecmp on the banned list (except for needed callsJeremy Allison1-1/+1
in iconv.c and nsswitch/). Using them means you're not thinking about multibyte at all and I really want to discourage that. Jeremy. (This used to be commit 5c050a735f86927c7ef2a98b6f3a56abe39e4674)
2003-09-29Merge from 3.0:Tim Potter1-2/+8
>Apply some NULL pointer paranoia to previous wins hook fix. >Fix broken wins hook functionality. A i18n fixe caused the name type >to be appended to the netbios name between angle brackets. This interfered >the 'sh -c' used to implement smbrun(). Closes bug #528. (This used to be commit 12659ae74965f8a088361cb4fbf8730cdad84af1)
2003-09-09sync 3.0 into HEAD for the last timeGerald Carter26-7746/+7251
(This used to be commit c17a7dc9a190156a069da3e861c18fd3f81224ad)
2003-08-02port latest changes from SAMBA_3_0 treeSimo Sorce1-2/+1
(This used to be commit 3101c236b8241dc0183995ffceed551876427de4)
2003-07-16trying to get HEAD building again. If you want the codeGerald Carter13-350/+423
prior to this merge, checkout HEAD_PRE_3_0_0_BETA_3_MERGE (This used to be commit adb98e7b7cd0f025b52c570e4034eebf4047b1ad)
2003-05-27Merge from 3.0: remove bogus static initialisers.Tim Potter1-2/+2
(This used to be commit 79a654bbe5952a704dcad6b65aa66288a54e02e4)
2003-05-10Reverse previous patch from Stefan and me after comments by Andrew Bartlett.Jelmer Vernooij1-2/+0
(This used to be commit d31509fe88da8727521586dced1da2c73bfee2bc)
2003-05-10Patch from metze and me that adds dummy smb_register_*() functionsJelmer Vernooij1-0/+2
(This used to be commit 367a5cad1edf6a49783806d5a8b59a62d8856706)
2003-05-08fix bug #47; revert registration of workgroup<1b> to 2.2 behaviorGerald Carter1-1/+1
(This used to be commit 26824f572d29bebd3791bad6f6690b35984705cd)
2003-05-07We used to use the name "*",0x0 here, but some WindowsJeremy Allison1-1/+9
servers don't answer that name. However we *know* they have the name workgroup#1b (as we just looked it up). So do the node status request on this name instead. Found at LBL labs. Jeremy. (This used to be commit c5b1654c28e33823a58c6447c152996a1eed1d0d)
2003-04-28Typo in error messageVolker Lendecke1-1/+1
Volker (This used to be commit a1cae680f98a128ab73306196a303d76e41f24c2)
2003-04-25As nobody really objected to this patch, I opted to create facts :-)Volker Lendecke1-1/+3
This uses 'socket address' as the source address for nmbd. This way we can again synchronize with the DMB if we have 'bind interfaces only' to a virtual interface. I'd love to see this in 2.2.9, but that is up to jerry or jra. Volker (This used to be commit 5e305e425592ede977880a347b2ed811d6376f75)
2003-04-07Remove duplicate "tallocdump" message from tdb messaging system. TheTim Potter1-20/+0
same functionality exists as "pool-usage". Move initialisation of this and dmalloc messages inside message_init(). (This used to be commit af6ecafcbbf65dbedc49b3a86da39ce608bdadac)
2003-03-30update copyright notice since it we are now almost 4 months into 2003Gerald Carter1-1/+1
(This used to be commit 6a17c23a549e1e2ce2b428421fbf0b81b37ad0c1)
2003-03-24Don't use old usage() function, but the one from popt.Jelmer Vernooij1-1/+0
Remove some useless arguments (This used to be commit 8df30059ef100a4d5e21501d7746427b4d312589)
2003-03-24Revoke some of the popt patch from metze I applied earlier today. It addedJelmer Vernooij1-0/+1
some double options and broke some parameters. (This used to be commit d5f9b0275c91512e1926504f22aaeec2d104430d)
2003-03-24Patch from metze to generalise POPT_COMMON_SAMBA, with some minor changesJelmer Vernooij1-5/+0
(This used to be commit 2ddfed298d7f0b6e690275725a39c3ef107077ae)
2003-03-22Add nicer --help headersJelmer Vernooij1-7/+3
(This used to be commit e56ab71f1237a71c6ad4f321ce1db4e9397efd73)
2003-03-20use pstrcpy_base()Jim McDonough1-1/+1
(This used to be commit 9387caf3cebecd50de2b295560355b779135d8c3)
2003-03-19replace pstrcpyJim McDonough1-1/+1
(This used to be commit c6eb950b6879d7566ded33dd6a3853cf2d5310db)
2003-03-16Fix nmbd under -DDEVELOPER (pstrcpy on not-pstring).Andrew Bartlett1-5/+10
Make a new macro to help in this situation, and add memcpy() parinoia Andrew Bartlett (This used to be commit 4d00626b6e003952df6715fa80615ec028facdf4)
2003-03-15String handling parinoia fixes.Andrew Bartlett2-2/+2
This patch enables the compile-time checking of strings assable by means of sizeof(). (Original code had the configure check reversed). This is extended to all safe_strcpy() users, push_string and pull_string, as well as the cli and srv derivitives. There is an attempt to cap strings at the end of the cli buffer, and clobber_region() of the speified length (when not -1 :-). Becouse of the way they are declared, the 'overmalloc a string' users of safe_strcpy() have been changed to use overmalloc_safe_strcpy() (which skips some of the checks). This whole ball of mud worked fine, until I pulled out my 'fix' for our statcache. When jeremy fixes that, we should be able to get back to testing this stuff. This patch also includes a 'marker' of the last caller to clobber_region (ie, the function that called pstrcpy() that called clobber_region) to assist in debugging problems that may have smashed the stack. This is printed at smb_panic() time. (Original idea and patch by metze). It also removes some unsused functions, and #if 0's some others that are unused but probably should be used in the near future. For now, this patch gives us some confidence on one class of trivial parsing error in our code. Andrew Bartlett (This used to be commit 31f4827acc2a2f00399a5528fc83a0dae5cebaf4)
2003-03-10check a pointer before dereferencing it; not sure why userdata == NULL thoughGerald Carter1-1/+1
(This used to be commit 6fca29ddcdb111af24ee051b555ab4eec8cadd1d)
2003-03-08Make sure that the 'remote' machine name can only be set once. For some weirdAndrew Bartlett1-1/+1
reason, during a Win2003 installation, when you select 'domain join' it sends one machine name in the name exchange, and litraly 'machinename' during the NTLMSSP login. Also fix up winbindd's logfile handling, so that it matches smbd and nmbd. (This helps me, by seperating the logs by pid). Andrew Bartlett (This used to be commit afe5a3832f79131fb74461577f1db0e5e8bf4b6d)
2003-03-05A couple more fixes for fstrcpy() into a malloced region. In this case it'sAndrew Bartlett2-5/+5
all perfectly legit - the region is an fstring in length, but might not always be, and it is the last peice of code to fail my automated test. Andrew Bartlett (This used to be commit 762d61b37d053568b6346e249ba7ef594320153a)
2003-01-28Make this an fstrcat(), as this seems to fix some weird issue with the serverAndrew Bartlett1-2/+2
name being truncated... (either way, it's the correct thing to do). Andrew Bartlett (This used to be commit a058960c15944ac5a415307f0b016553ef42e101)
2003-01-14The last of the fstring/pstring mixups, and an extra 'static'.Andrew Bartlett2-2/+2
(This used to be commit b328b67fd8fd605636ed58ffd33cf5be3d480672)
2003-01-03patch to include support for daemontools from Michael HandlerGerald Carter1-3/+21
(This used to be commit 4c48c475a28450ad4fd8dcc8263e841c0c39a80e)
2003-01-02BIG patch...Andrew Bartlett6-10/+11
This patch makes Samba compile cleanly with -Wwrite-strings. - That is, all string literals are marked as 'const'. These strings are always read only, this just marks them as such for passing to other functions. What is most supprising is that I didn't need to change more than a few lines of code (all in 'net', which got a small cleanup of net.h and extern variables). The rest is just adding a lot of 'const'. As far as I can tell, I have not added any new warnings - apart from making all of tdbutil.c's function const (so they warn for adding that const string to struct). Andrew Bartlett (This used to be commit 92a777d0eaa4fb3a1c7835816f93c6bdd456816d)
2002-12-20Forward port the change to talloc_init() to make all talloc contextsJeremy Allison1-0/+20
named. Ensure we can query them. Jeremy. (This used to be commit 842e08e52a665ae678eea239759bb2de1a0d7b33)
2002-12-19Protect nmbd against malformed reply packets. Some reports on the lists showingJeremy Allison1-1/+10
these. Jeremy. (This used to be commit 65d5bf65c439aee1450e330a9f2bd829d9b2c2d0)
2002-12-03Stop using hacks for dns host/domain names.Jim McDonough1-3/+5
(This used to be commit 1d0086aadb4fa57b127e80e455835dd6eb387f71)
2002-12-01Remove extra headers, and ensure that we correctly bail out of winbindd if weAndrew Bartlett5-5/+0
can't create the socket. Andrew Bartlett (This used to be commit 13b9af53bff8e42126a38f93c3bdd5b4d9b20aba)
2002-11-23Lots of fixes for error paths where tdb_fetch() data need freeing.Jeremy Allison1-3/+10
Found via a post from Arcady Chernyak <Arcady.Chernyak@efi.com>. Jeremy. (This used to be commit 19f86f1f72aca924e9e320e20a175b5d21de45ad)
2002-11-15Fix from "Stefan (metze) Metzmacher" <metze@metzemix.de> for nmbd 1c groupJeremy Allison1-0/+16
release. Jeremy. (This used to be commit 507ff510e7e7d63e02be5b11d974fc05839e6eaf)
2002-11-12Removed global_myworkgroup, global_myname, global_myscope. Added liberalJeremy Allison18-295/+158
dashes of const. This is a rather large check-in, some things may break. It does compile though :-). Jeremy. (This used to be commit 82b8f749a36b42e22186297482aad2abb04fab8a)
2002-11-08Compleatly remove support for logfile truncation. All logs are opened forAndrew Bartlett1-5/+0
append writes. (blessed by jra) Andrew Bartlett (This used to be commit 81633064dd196c40541ecece8def51745f514646)
2002-11-04Make IRIX happyJelmer Vernooij1-16/+15
(This used to be commit aeb94bb0d7ad84b52a5f729a3e83f4fb00005771)
2002-11-02Add more options to popt_common and use them. Current ones are:Jelmer Vernooij1-21/+7
-V Version information -n Set netbios name -l Set directory to store log files in -d Set debuglevel -s Load specified configuration file -O Set socket options (This used to be commit 1602d5894947b59fd36c161053a66c0afe2c959c)
2002-11-02Convert to poptJelmer Vernooij1-87/+30
(This used to be commit 9ea7440ac4a3dbb98e34ccb8ee78e0bd782fa704)
2002-10-08Ensure we register the 1c name on the unicast subnet.Jeremy Allison1-0/+10
Jeremy. (This used to be commit ca6146c2d345902446665ebfa88f78a06eb58831)
2002-10-03fixed 3 bugs in the wins server code related to precedence of ! and &Andrew Tridgell1-2/+2
in C please note that: if (! a & b) is not the same as: if (! (a & b)) (This used to be commit ec6a098c2edf6aa44f85b031459b737496080898)
2002-09-10Patch from Andy Levine andyl@epicrealm.com who discovered that W2K DMB'sJeremy Allison1-1/+5
return empty NetServerEnum2 on port 445, but not on port 139. Jeremy. (This used to be commit a9112a1e4b24ccd94be4d0d055ddc9d1bdfef1be)
2002-08-22fix for difference in strsep and strtok semanticsHerb Lewis1-0/+1
(This used to be commit 51e0a4adc7c6cc09e53003726b31201a091e9f35)