summaryrefslogtreecommitdiff
path: root/source3/nmbd
AgeCommit message (Collapse)AuthorFilesLines
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 d7e35dfb9283d560d0ed2ab231f36ed92767dace)
2003-09-29Apply some NULL pointer paranoia to previous wins hook fix.Tim Potter1-2/+2
(This used to be commit 0281c5b764971c5300b99b82d89c812ded5a1335)
2003-09-29Fix broken wins hook functionality. A i18n fixe caused the name typeTim Potter1-2/+8
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 92b37b3ef097e84adace1295af42853c07ddbec2)
2003-09-05More tuning from cachegrind. Change most trim_string() calls to trim_char(0,Jeremy Allison2-3/+3
as that's what they do. Fix string_replace() to fast-path ascii. Jeremy. (This used to be commit f35e9a8b909d3c74be47083ccc4a4e91a14938db)
2003-09-01Fix comment strings to 43 bytes as per spec.Jeremy Allison1-3/+2
Jeremy. (This used to be commit f1ec43fae400455d20931ab2d3ecd8f9a6609050)
2003-08-28Add length warning on register name.Jeremy Allison1-2/+12
Jeremy. (This used to be commit 68d02ebbcd9bc4cf7c84763d03c903b1f2e55fb8)
2003-08-28Fixed off-by-one bugs in workgroup name comparisons. Complain when aJeremy Allison3-9/+16
workgroup name is >15 characters. Jeremy. (This used to be commit 35a0b3c035d50474eda97b015676885722737a95)
2003-08-27Ensure we use correct length nstrings for workgroup and browser names.Jeremy Allison7-21/+20
Jeremy. (This used to be commit be534c8adf6c3cb8921ce49dbb79991c632d501e)
2003-08-27fix segfault on empty wins server name registration replyGerald Carter1-2/+4
(This used to be commit 743560284cebd686be1094ce1d657e6d06c291b0)
2003-08-27Fix the character set handling properly in nmbd. Also fix bug whereJeremy Allison21-5739/+5325
iconv wasn't re-initialised on reading of "charset" parameters. This caused workgroup name to be set incorrectly if it contained an extended character. Jeremy. (This used to be commit 84ae44678a6c59c999bc1023fdd9b7ad87f4ec18)
2003-08-23Half-way though the big conversion of all nmbd access to wire elements beingJeremy Allison8-1985/+1895
converted to pull/push_ascii. This will not work right at the moment for non English codepages, but compiles - I will finish the work over the weekend. Then nmbd should be completely codepage correct. Jeremy. (This used to be commit 236d6adadf32397b28028ea82ae2ec027366f7c8)
2003-08-22Use correct size (17 not 16) when doing a push_ascii(). Ensure thatJeremy Allison1-1/+1
wins hook is called with unix charset. Jeremy. (This used to be commit ecb80573870103de7b3f332fb53bf6b952f25ee7)
2003-08-22Ensure nmb_namestr() converts back from CH_DOS to CH_UNIX.Jeremy Allison1-8/+0
Jeremy. (This used to be commit eb792727437c74417f5ef7614b300ab84f06fdaf)
2003-08-20metze's autogenerate patch for version.hGerald Carter1-1/+1
(This used to be commit ae452e51b02672a56adf18aa7a7e365eeaba9272)
2003-08-01Update my copyrights according to my agreement with IBMJim McDonough1-1/+1
(This used to be commit a2bd8f0bfa12f2a1e33c96bc9dabcc0e2171700d)
2003-08-01Fix copyright statements for various pieces of Anthony Liguori's work.Jim McDonough1-1/+0
(This used to be commit 15d2bc47854df75f8b2644ccbc887d0357d9cd27)
2003-07-15Add support for MSG_SMB_CONF_UPDATED and MSG_SHUTDOWN to all daemons (smbd, ↵Alexander Bokovoy1-5/+26
nmbd, winbindd). Reviewed by jerry and tridge. (This used to be commit 02c5e2fc6f0721ebd82a9e6a2b34190607de55fe)
2003-07-03Removed strupper/strlower macros that automatically map to ↵Jeremy Allison8-83/+76
strupper_m/strlower_m. I really want people to think about when they're using multibyte strings. Jeremy. (This used to be commit ff222716a08af65d26ad842ce4c2841cc6540959)
2003-05-20Fix bug #98: DNS compression is required for proper building of theJim McDonough1-25/+42
netlogon for ads packet. repeated DNS components will not be properly encoded otherwise. (This used to be commit 1e85a9ed8da2e48b0ef586599742ed515bd91ecd)
2003-05-10Reverse previous patch from Stefan and me after comments by Andrew BartlettJelmer Vernooij1-2/+0
(This used to be commit d817eaf0ecca2d878ab1ffcf7a747a02d71c811e)
2003-05-10Patch from metze and me that adds dummy smb_register_*() functions soJelmer Vernooij1-0/+2
that is now possible to, for example, load a module which contains an auth method into a binary without the auth/ subsystem built in. (This used to be commit 74d9ecfe2dd7364643d32acb62ade957bd71cd0d)
2003-05-08fix bug #47; revert registration of workgroup<1b> to 2.2 behaviorGerald Carter1-1/+1
(This used to be commit 016f6b4e19c2b8e4f5e1d010cc428ca194650140)
2003-05-08This puts back wins.dat into nmbd for easy editing. It leaves most ofVolker Lendecke1-194/+222
the other infrastructure with name owners etc in place. If anybody is really going to tackle winsrepld, it will probably not be hard to put the additional info back. Volker (This used to be commit eb82daa84a5339f28ebf431ee1044b7e1e4a4300)
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 41e3abe8b80026812ea7dd7ad535e8e41e26daa4)
2003-04-28Fix a confusing error messageVolker Lendecke1-1/+1
Volker (This used to be commit 69df898afb45e2e577a10649f66f5352887044a2)
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 fe637c690b671ddb5ccbf506825a9ede6abf6668)
2003-04-23Merge the 'safe' parts of my StrnCpy patch - many of the users really wantedAndrew Bartlett7-16/+27
a pstrcpy/fstrcpy or at most a safe_strcpy(). These have the advantage of being compiler-verifiable. Get these out of the way, along with a rewrite of 'get_short_archi' in the spoolss client and server. (This pushes around const string pointers, rather than copied strings). Andrew Bartlett (This used to be commit 32fb801ddc035e8971e9911ed4b6e51892e9d1cc)
2003-04-16fixed the popt option handling in nmbd, so that -i now worksAndrew Tridgell1-34/+37
(This used to be commit 2bb93421e665cdc0c4a2d8a539f76856e4d32249)
2003-04-14Merge:Tim Potter1-20/+0
- debugging tdb messages now initialised and handled in lib/messages.c (This used to be commit da216706a420b31beaac91553a4eb90181de814a)
2003-04-14Merge Jelmer's popt updates from HEAD.Tim Potter1-12/+3
(This used to be commit 98e84b3e83d2a365c818ea64f9418edb29d690f2)
2003-03-30update copyright notice since it we are now almost 4 months into 2003Gerald Carter1-1/+1
(This used to be commit 0751d2f117b4274dd19388d856de75d9fc739865)
2003-03-20use pstrcpy_base()Jim McDonough1-1/+1
(This used to be commit 2e3710f67293b01084026549246d494103b2d536)
2003-03-19replace pstrcpyJim McDonough1-1/+1
(This used to be commit c5876f9f07bfff4e03f3a70136515c9daab20afd)
2003-03-18NMBD string parinoia and memcpy() parinoia fixes from HEAD.Andrew Bartlett3-10/+15
Andrew Bartlett (This used to be commit fb29caddd987f94989f852584b912eeee45b50da)
2003-03-18Add an extra parameter to our 'set_remote_machine_name' andAndrew Bartlett1-1/+1
'set_local_machine_name' so that the client can't change it from under us. (.NET RC2 and WinXP install calls the machine 'machinename' during NTLMSSP on the domain join). Andrew Bartlett (This used to be commit 4c7163e7c2cc09bd95faa05156ee480957a7a4d8)
2003-03-10check a pointer before dereferencing it; not sure why userdata == NULL thoughGerald Carter1-1/+1
(This used to be commit 944752024ba6ab762b12c29ee867e37401dac12b)
2003-01-28Merge from HEAD:Andrew Bartlett1-2/+2
- NTLMSSP over SPENGO (sesssion-setup-and-x) cleanup and code refactor. - also consequential changes to the NTLMSSP and SPNEGO parsing functions - and the client code that uses the same functions - Add ntlm_auth, a NTLMSSP authentication interface for use by applications like Squid and Apache. - also consquential changes to use common code for base64 encode/decode. - Winbind changes to support ntlm_auth (I don't want this program to need to read smb.conf, instead getting all it's details over the pipe). - nmbd changes for fstrcat() instead of fstrcpy(). Andrew Bartlett (This used to be commit fbb46da79cf322570a7e3318100c304bbf33409e)
2003-01-15*lots of small merges form HEADGerald Carter2-2/+2
*sync up configure.in *don't build torture tools in make all *make sure to remove torture tools as part of make clean (This used to be commit 0fb724b3216eeeb97e61ff12755ca3a31bcad6ef)
2003-01-14Merge from HEAD:Andrew Bartlett1-1/+2
- fstring/pstring mixups - the detection code that found them (disabled) - a bit of whitespace - a static Andrew Bartlett (This used to be commit 9b70fa868e7d9481f584c83fc4046174e1dedfd9)
2003-01-03patch to include support for daemontools from Michael HandlerGerald Carter1-3/+21
(This used to be commit a8db1b611d83bfd8dcf60f1e6d8fcbf57c798528)
2003-01-03Merge from HEAD - make Samba compile with -Wwrite-strings without additionalAndrew Bartlett6-9/+9
warnings. (Adds a lot of const). Andrew Bartlett (This used to be commit 3a7458f9472432ef12c43008414925fd1ce8ea0c)
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 09a218a9f6fb0bd922940467bf8500eb4f1bcf84)
2002-12-19Protect nmbd against malformed reply packets. Some reports on the lists showingJeremy Allison1-1/+10
these. Jeremy. (This used to be commit 4bc49cc943504d1a9a73894f6810bc755ee6e324)
2002-12-12Merge of #include <smb.h> removals.Tim Potter5-5/+0
(This used to be commit bdb6e76ab5031365c50f7bbcd5e52c4f7a039024)
2002-12-03Stop using hacks for dns host/domain names.Jim McDonough1-3/+5
(This used to be commit e707e2cc7c7483f6bcfbbaf8d3d99614a05a9ecf)
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 5d5762d1787db4392d2dff16024097c638b2d494)
2002-11-15Fix from "Stefan (metze) Metzmacher" <metze@metzemix.de> for nmbd 1c groupJeremy Allison1-0/+16
release. Jeremy. (This used to be commit 7d9552e9c58e533f451a720c9c9c54b8abf3a454)
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 f755711df8f74f9b8e8c1a2b0d07d02a931eeb89)
2002-11-09Last sync with HEADJelmer Vernooij1-5/+0
(This used to be commit 1175b62337f5c29954cd5e8dfdc2327c9c80748c)
2002-11-09Sync with HEADJelmer Vernooij1-101/+29
(This used to be commit 1a25dc776ddc36de9a214e023becff1ceb10290c)