summaryrefslogtreecommitdiffstats
path: root/source/libsmb
Commit message (Collapse)AuthorAgeFilesLines
* Fix debug handling in libsmbclient.c.Richard Sharpe2003-04-051-2/+2
| | | | | Also, PLEASE, PLEASE, PLEASE, do not include bashism and Cisms in shell scripts.
* Some more good stuff from coolo.Richard Sharpe2003-04-042-42/+94
|
* Some castiness for Don McCall.Richard Sharpe2003-04-041-2/+2
|
* More of coolo's changes for UTF-8 and some minor fixes of mine.Richard Sharpe2003-04-021-17/+37
|
* Commit some more fixes for Coolo ...Richard Sharpe2003-04-022-44/+25
|
* Add const (from a patch by Stephan Kulow <coolo@kde.org>)Jelmer Vernooij2003-04-022-14/+15
|
* added simple tests for SMBchkpath and SMBioctlAndrew Tridgell2003-03-301-1/+31
|
* Don't modify the incoming packet when checking the signiture.Andrew Bartlett2003-03-301-10/+26
| | | | Andrew Bartlett
* added a simple test for the old SMBtcon interfaceAndrew Tridgell2003-03-291-1/+42
|
* More patches from coolo. One of these functions needs to be movedRichard Sharpe2003-03-281-42/+78
| | | | elsewhere so other code can use it.
* Some fixes to URL syntax from coolo.Richard Sharpe2003-03-281-2/+85
|
* Fix debug (thanks metze)Andrew Bartlett2003-03-251-1/+1
| | | | Andrew Bartlett
* Add mapping for Bad Network PathJelmer Vernooij2003-03-241-0/+1
|
* NTLM Authentication:Andrew Bartlett2003-03-231-18/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add a 'privileged' mode to Winbindd. This is achieved by means of a directory under lockdir, that the admin can change the group access for. - This mode is now required to access with 'CRAP' authentication feature. - This *will* break the current SQUID helper, so I've fixed up our ntlm_auth replacement: - Update our NTLMSSP code to cope with 'datagram' mode, where we don't get a challenge. - Use this to make our ntlm_auth utility suitable for use in current Squid 2.5 servers. - Tested - works for Win2k clients, but not Win9X at present. NTLMSSP updates are needed. - Now uses fgets(), not x_fgets() to cope with Squid environment (I think somthing to do with non-blocking stdin). - Add much more robust connection code to wb_common.c - it will not connect to a server of a different protocol version, and it will automatically try and reconnect to the 'privileged' pipe if possible. - This could help with 'privileged' idmap operations etc in future. - Add a generic HEX encode routine to util_str.c, - fix a small line of dodgy C in StrnCpy_fn() - Correctly pull our 'session key' out of the info3 from th the DC. This is used in both the auth code, and in for export over the winbind pipe to ntlm_auth. - Given the user's challenge/response and access to the privileged pipe, allow external access to the 'session key'. To be used for MSCHAPv2 integration. Andrew Bartlett
* Valgrind found a few memory leaks!Andrew Bartlett2003-03-221-2/+10
| | | | Andrew Bartlett
* Don't use EDQUOT on systems where it's not availableJelmer Vernooij2003-03-221-3/+5
|
* Use FUNCTION_MACRO, not __FUNCTION__Jelmer Vernooij2003-03-221-2/+2
|
* Don't use errno's when they're not availableJelmer Vernooij2003-03-221-1/+15
|
* Small clenaup patches:Andrew Bartlett2003-03-221-1/+2
| | | | | | | | | | | | | - safe_string.h - don't assume that __FUNCTION__ is available - process.c - use new workaround from safe_string.h for the same - util.c - Show how many bytes we smb_panic()ed trying to smb_xmalloc() - gencache.c - Keep valgrind quiet by always null terminating. - clistr.c - Add copyright - srvstr.h - move srvstr_push into a .c file again, as a real function. - srvstr.c - revive, with 'safe' checked srvstr_push - loadparm.c - set a default for the display charset. Andrew Bartlett
* Fix compile on IA64 by noting that this should be the integer, not a pointerAndrew Bartlett2003-03-221-1/+1
| | | | to the integer for SIVAL().
* Clobber the 'SAFETY_MARGIN' in libsmb.Andrew Bartlett2003-03-211-3/+7
| | | | Andrew Bartlett
* Patch from colo (on IRC) to get libsmbclient building due to pstring/fstringAndrew Bartlett2003-03-211-19/+19
| | | | | | | | issues. Also pick up these link failures at compile time (rather than runtime). Andrew Bartlett
* Add more mappings to the nterr->errno mapping table. It should be fairlyJelmer Vernooij2003-03-211-3/+75
| | | | complete now.
* Patch from Samuel Thibault to convert messages from unix to dos charset. WorksJelmer Vernooij2003-03-201-3/+14
| | | | | on 2000. sending messages to 9x needs to be fixed, but that didn't work anyway
* Removed unused var.Jeremy Allison2003-03-181-2/+0
| | | | Jeremy.
* Fix a memory leak - 'smbcontrol smbd pool-usage' is your freind!Andrew Bartlett2003-03-171-0/+2
| | | | Andrew Bartlett
* Minor fixes.Andrew Bartlett2003-03-151-2/+2
| | | | | | | | - signed/unsigned - quieten warning about assignment as truth value - whitespace Andrew Bartlett
* String handling parinoia fixes.Andrew Bartlett2003-03-151-7/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* specify the size of these buffersAndrew Bartlett2003-03-151-2/+2
|
* Specify buffer sizesAndrew Bartlett2003-03-151-2/+2
|
* Be parinoid, malloc an extra SAFETY_MARGIN on the client's inbuf and outbuf.Andrew Bartlett2003-03-151-2/+2
| | | | Andrew Bartlett
* client-side smbpasswd fixes - use pstrcpy_base to avoid clobber_region bugsAndrew Bartlett2003-03-151-6/+6
| | | | Andrew Bartlett
* Add const, and a signed/unsigned fix.Andrew Bartlett2003-03-151-3/+3
|
* We haven't implemented The Singing Contexts so far.Rafal Szczesniak2003-03-141-1/+1
| | | | | | | Who knows what .NET server brings, though ...? ;-) Rafal
* /tmp/newfun.msgRafal Szczesniak2003-03-141-3/+61
|
* Found by metze with the clobber-region check - if it's a pstring, use pstrcpy().Andrew Bartlett2003-03-141-1/+1
| | | | Andrew Bartlett
* win2000 can take much longer than the specified time to respond to aAndrew Tridgell2003-03-131-1/+1
| | | | | lock - so to make the torture tests valid I give it a grace time of 10 seconds instead of 2
* Change size parameters from signed to unsigned to fix up warnings.Jeremy Allison2003-03-124-95/+190
| | | | Jeremy.
* Some conversion to pstrcpy_base.Volker Lendecke2003-03-101-6/+6
| | | | Volker
* Further work on NTLMSSP-based SMB signing. Current status is that I cannnotAndrew Bartlett2003-03-104-48/+424
| | | | | | | | | | | | | | | | get Win2k to send a valid signiture in it's session setup reply - which it will give to win2k clients. So, I need to look at becoming 'more like MS', but for now I'll get this code into the tree. It's actually based on the TNG cli_pipe_ntlmssp.c, as it was slightly easier to understand than our own (but only the utility functions remain in any way intact...). This includes the mysical 'NTLM2' code - I have no idea if it actually works. (I couldn't get TNG to use it for its pipes either). Andrew Bartlett
* Try not to clobber the session request.Andrew Bartlett2003-03-091-3/+15
|
* Change the way we sign SMB packets, to a function pointer interface.Andrew Bartlett2003-03-094-146/+338
| | | | | | | | The intention is to allow for NTLMSSP and kerberos signing of packets, but for now it's just what I call 'simple' signing. (aka SMB signing per the SNIA spec) Andrew Bartlett
* Make it clear that this is a fstrcpy().Andrew Bartlett2003-03-081-2/+2
|
* Writable string const fixes.Jeremy Allison2003-03-051-1/+1
| | | | Jeremy.
* Connectathon fix. W2K -> W2K over port 445 doing a tconX does the fullJeremy Allison2003-03-051-7/+2
| | | | | | \\server\share syntax, not just a "share" tconX syntax. This broke interop with a vendor. Jeremy.
* Do my janitorial duties to encourage others to do so.Richard Sharpe2003-03-031-1/+1
| | | | Fix lingering large offset problems in smbtar etc.
* Add constAndrew Bartlett2003-03-031-1/+1
|
* the new DEVELOPER checks for string overflows have (as expected)Andrew Tridgell2003-03-011-3/+3
| | | | | | broken a lot of stuff. These two macros are meant to make life easier when fixing these bugs. I'm guessing we will see more macros like this (eg. fstrcpy_base)
* Netlogon-unigroup changes needed for the winbind RID-to-SID conversion.Andrew Bartlett2003-02-261-12/+25
| | | | | | | This changes the cache format, which will simply invalidate existing entries, leaving them dead in the cache. Andrew Bartlett
* Fix unused variable warning when ENCTYPE_ARCFOUR_HMAC is not defined.Tim Potter2003-02-251-0/+2
|