summaryrefslogtreecommitdiff
path: root/source3/libsmb
AgeCommit message (Collapse)AuthorFilesLines
2003-04-05Fix debug handling in libsmbclient.c.Richard Sharpe1-2/+2
Also, PLEASE, PLEASE, PLEASE, do not include bashism and Cisms in shell scripts. (This used to be commit 7f6367aac8c5440e1d4e97b26571b205140488ae)
2003-04-04Some more good stuff from coolo.Richard Sharpe2-42/+94
(This used to be commit 41b320ffc560117c0184999e30cc69723f40acbe)
2003-04-04Add some castiness for Don McCall.Richard Sharpe1-2/+2
(This used to be commit 57c860b41b21bafc660f84070bfe9c8d90bc28a3)
2003-04-04Some castiness for Don McCall.Richard Sharpe1-2/+2
(This used to be commit b03ac852a86cf9f436ad2b994e09fb08dd929674)
2003-04-03Fixup format warning.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 32dc4ddb04f4d3eecfdd542cb3495830067a2eed)
2003-04-02More of coolo's changes for UTF-8 and some minor fixes of mine.Richard Sharpe1-17/+37
(This used to be commit 21a99fdec321c44e31b69589248ff8d1cb927577)
2003-04-02Commit some more fixes for Coolo ...Richard Sharpe2-44/+25
(This used to be commit e1a159c55fdeaa1620a3147105be4efd205560ba)
2003-04-02Add const (from a patch by Stephan Kulow <coolo@kde.org>)Jelmer Vernooij2-14/+15
(This used to be commit 8b5ad24231e5001e612c5fd4bbde2762caef5856)
2003-03-30added simple tests for SMBchkpath and SMBioctlAndrew Tridgell1-1/+31
(This used to be commit ca982a9f1d6485e2d388d4b2e9c13806736ad91e)
2003-03-30Merge from HEAD - leave the SMB buffer untouched when checking it's SMB sig.Andrew Bartlett1-10/+26
Andrew Bartlett (This used to be commit 3d4c4b6cb3f4850f0801f140ea3dad2c8423ee52)
2003-03-30Don't modify the incoming packet when checking the signiture.Andrew Bartlett1-10/+26
Andrew Bartlett (This used to be commit 7064edf8534a6098fc4990bc516fcb45f4ff44bb)
2003-03-29added a simple test for the old SMBtcon interfaceAndrew Tridgell1-1/+42
(This used to be commit c95ae394c5dfe5e0fcc658119213b17bcb95fab5)
2003-03-28More patches from coolo. One of these functions needs to be movedRichard Sharpe1-42/+78
elsewhere so other code can use it. (This used to be commit b988e16b7da824864cac6b69910ade27885e7f50)
2003-03-28Some fixes to URL syntax from coolo.Richard Sharpe1-2/+85
(This used to be commit de49c3f48f85519b31e797730eca82cb979098dc)
2003-03-25Fix debug (thanks metze)Andrew Bartlett1-1/+1
Andrew Bartlett (This used to be commit 5562f1865c90e3f52a3178d9d9ded60909bbe5f0)
2003-03-24Add mapping for Bad Network PathJelmer Vernooij1-0/+1
(This used to be commit 1481cd9ecf1658312424c193d8cd3632766eb058)
2003-03-24(merge from HEAD)Andrew Bartlett1-18/+32
NTLM Authentication: - 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 (This used to be commit ec071ca3dcbd3881dc08e6a8d7ac2ff0bcd57664)
2003-03-23NTLM Authentication:Andrew Bartlett1-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 (This used to be commit dcdc75ebd89f504a0f6e3a3bc5b43298858d276b)
2003-03-22(merge from HEAD) Valgrind found some memory leaks!Andrew Bartlett1-2/+10
(This used to be commit 8315b9c3119dde62aeb72ad5e20f63aee89abd0b)
2003-03-22Valgrind found a few memory leaks!Andrew Bartlett1-2/+10
Andrew Bartlett (This used to be commit fb680f610ceb9a0f350c99456cf7ab1a507543fe)
2003-03-22Don't use EDQUOT on systems where it's not availableJelmer Vernooij1-3/+5
(This used to be commit 2e1e5719f188a933e6b691fbd48037a0d29497e4)
2003-03-22Use FUNCTION_MACRO, not __FUNCTION__Jelmer Vernooij1-2/+2
(This used to be commit 6df38e250af1a8e7213ad66342c71c52ce118a12)
2003-03-22Don't use errno's when they're not availableJelmer Vernooij1-1/+15
(This used to be commit b757a4374832d76500a889e4785622320881018d)
2003-03-22(merge from HEAD)Andrew Bartlett1-0/+1
Small clenaup patches: - 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. - connection.c - use safe_strcpy() Andrew Bartlett (This used to be commit c91e76bddbe1244ddc8d12b092eba875834029ac)
2003-03-22Small clenaup patches:Andrew Bartlett1-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 (This used to be commit a7eba37aadeb0b04cb1bd89deddb58be8aba825c)
2003-03-22Fix compile on IA64 by noting that this should be the integer, not a pointerAndrew Bartlett1-1/+1
to the integer for SIVAL(). (This used to be commit e8b4b136669e7e415557956d698c66c254b28ec1)
2003-03-22Fix compile on IA64 by noting that this should be the integer, not a pointerAndrew Bartlett1-1/+1
to the integer for SIVAL(). (This used to be commit 5e20868fadc4e01ea09639bc57c51d1eb687f78c)
2003-03-22Merge fixes to libsmbclient (fstring/pstring) from HEAD.Andrew Bartlett1-19/+19
Andrew Bartlett (This used to be commit 6bf04c41ed88528345f6bb19d48f5909753a8322)
2003-03-21Clobber the 'SAFETY_MARGIN' in libsmb.Andrew Bartlett1-3/+7
Andrew Bartlett (This used to be commit 05a63bd17e4c35979b3864b0969b2bfd945335d9)
2003-03-21Patch from colo (on IRC) to get libsmbclient building due to pstring/fstringAndrew Bartlett1-19/+19
issues. Also pick up these link failures at compile time (rather than runtime). Andrew Bartlett (This used to be commit 23c7342bc40daffbcd70ef04727cae2c2b2c366b)
2003-03-21Add more mappings to the nterr->errno mapping table. It should be fairlyJelmer Vernooij1-3/+75
complete now. (This used to be commit 72bb5615f3eef1c5b27716dfcabe4c8288729458)
2003-03-20Patch from Samuel Thibault to convert messages from dos to unix charsetJelmer Vernooij1-3/+14
when sending(and vice versa when receiving). (This used to be commit 5310447ec6e0df1c000e3ee14572f5b7fee31f28)
2003-03-20Patch from Samuel Thibault to convert messages from unix to dos charset. WorksJelmer Vernooij1-3/+14
on 2000. sending messages to 9x needs to be fixed, but that didn't work anyway (This used to be commit ca066502a2a3dbdd8943d515c9c6d21e62d757b6)
2003-03-18Removed unused var.Jeremy Allison1-2/+0
Jeremy. (This used to be commit f93c64b5ca1bc21f5fa89200034cd82dcbc0910b)
2003-03-18Removed unused var.Jeremy Allison1-2/+0
Jeremy. (This used to be commit fb925a72a6323d96d8fae658c4271ca05e8256de)
2003-03-18Parinoia fixes from HEAD - malloc() some extra room after the allocatedAndrew Bartlett1-2/+2
buffer size. (This used to be commit 27ec538eca0905e1f749de4c49cc2555c5932d5c)
2003-03-18Merge from HEAD:Andrew Bartlett3-154/+52
A much better SMB signing module, that allows for mulitple signing algorithms and correctly backs down from signing when the server cannot sign the reply. This also attempts to enable SMB signing on NTLMSSP connections, but I don't know what NTLMSSP flags to set yet. This would allow 'client use signing' to be set by default, for server compatability. (A seperate option value should be provided for mandetory signing, which would not back down). Andrew Bartlett (This used to be commit 1c87be7a3d127201a6ab78d22d17c971af16b86b)
2003-03-18NTLMSSP updates from HEAD.Andrew Bartlett1-12/+25
Andrew Bartlett (This used to be commit f4ae028c2ad6ff8c7da3a6ef77a92762861144e1)
2003-03-18Jeremy merged across my string parinoia fixes, but forgot to enable them! :-)Andrew Bartlett3-5/+5
This patch catches up on the rest of the work - as much string checking as is possible is done at compile time, and the rest at runtime. Lots of code converted to pstrcpy() etc, and other code reworked to correctly call sizeof(). Andrew Bartlett (This used to be commit c5b604e2ee67d74241ae2fa07ae904647d35a2be)
2003-03-18This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This ↵cvs2svn Import User2-0/+669
used to be commit f0d009c3e91979b0dc3443e16f3f545bcc64cfda)
2003-03-18Merge in the developer string options from HEAD. We need to ensure 3.0Jeremy Allison1-7/+21
is as stable as possible in the string department and some pain now will help later :-). Jeremy. (This used to be commit 86e3eddac698d90f4666b8492b4603a4efbbd67b)
2003-03-17Merge from HEAD:Andrew Bartlett1-3/+3
signed/unsigned (mostly i counters) a little bit of const. Andrew Bartlett (This used to be commit 50f0ca752e5058c4051f42a9337361373ba1f727)
2003-03-17Merge from HEAD - sync up SessionSetup code to HEAD, including Luke Howard'sAndrew Bartlett2-22/+59
session key and auth verifier patches. Andrew Bartlett (This used to be commit 3f9616a68a855acbae3f405c27ee2358fbe7ba2c)
2003-03-17pstrcpy_base merges for client-side smbpasswd.Andrew Bartlett1-9/+9
Andrew Bartlett (This used to be commit 980f2eb7c2efa1a2c83098aebecf0e25a05724cb)
2003-03-17Fix a memory leak - 'smbcontrol smbd pool-usage' is your freind!Andrew Bartlett1-0/+2
Andrew Bartlett (This used to be commit a12e8524997e329a4f4cd766d6371e384698795a)
2003-03-15Minor fixes.Andrew Bartlett1-2/+2
- signed/unsigned - quieten warning about assignment as truth value - whitespace Andrew Bartlett (This used to be commit a13ce0df4b4a776fa635a1fb804dd00d195f58d0)
2003-03-15String handling parinoia fixes.Andrew Bartlett1-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 (This used to be commit 31f4827acc2a2f00399a5528fc83a0dae5cebaf4)
2003-03-15specify the size of these buffersAndrew Bartlett1-2/+2
(This used to be commit f6ea572cd57d4e655d387fe225a5d7122d587a9b)
2003-03-15Specify buffer sizesAndrew Bartlett1-2/+2
(This used to be commit aa12379b3fd9646199a8ff3f217ec7dfef1942a5)
2003-03-15Be parinoid, malloc an extra SAFETY_MARGIN on the client's inbuf and outbuf.Andrew Bartlett1-2/+2
Andrew Bartlett (This used to be commit 2effcae13f9dfbff40b34d32c7fd82118c3fd096)