summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
2003-04-14Merge test cases from rsync.Martin Pool1-3/+3
(This used to be commit a0d841a59ea745bf48b0d705ad6c81e4172552ea)
2003-04-14Doc.Martin Pool1-1/+9
Add additional test case for a bug recently found in rsync by Paul Green. Appparently it was fixed here a while ago. (This used to be commit a0033cc83c837bc075dd689fdf7a69a6aa4ecd18)
2003-04-14Merge Jelmer's popt updates from HEAD.Tim Potter1-32/+240
(This used to be commit 98e84b3e83d2a365c818ea64f9418edb29d690f2)
2003-04-14Merge of new sid type (SID_NAME_COMPUTER) and tidyup.Tim Potter1-1/+2
(This used to be commit c91cf2b38df9f51dd6cb46f0742e1c57bb36b508)
2003-04-14Fix a compiler warning.Tim Potter1-1/+1
(This used to be commit bf61aeef443de36e2212668878955519eb3bd95f)
2003-04-14Whoops - missed some tdb message registrations from a previous merge.Tim Potter1-0/+5
(This used to be commit 59f8fc438a2ff5bb7ff115a19f6aacbb0ef7b653)
2003-04-14Merge of doxygen updates from HEAD.Tim Potter1-14/+14
(This used to be commit 6d7baad38fbdf0921c1d5eb59004c65cfe110975)
2003-04-14Merge removal of some unused functions. Commit mistakenly included withTim Potter1-44/+0
new rpc echo pipe. (This used to be commit b7af3cda28cea859edf6266b6bd8da17a44c85eb)
2003-04-11smbcquota patch from metzeGerald Carter1-3/+3
(This used to be commit 74fab8f0d24004b1dfd5ce0fd7402895652f941f)
2003-04-11workaround streams leak on SCO openserver 5.0.xGerald Carter1-0/+4
(This used to be commit 31eaf11d2e9c38e0f479b41c00e0db92987ae6d0)
2003-04-11workaround streams leak on SCO openserver 5.0.xGerald Carter1-0/+4
(This used to be commit ab51878a978ffb53f23f1c6d22a48f98e6ae0805)
2003-04-11A new RPC pipe! The \pipe\echo named pipe is for testing large RPCTim Potter1-44/+0
requests and responses and is only compiled in when --enable-developer is passed to configure. It includes server and client side code for generating and responding to functions on this pipe. The functions are: - AddOne: add one to the uint32 argument and return ig - EchoData: echo back a variable sized char array to the caller - SourceData: request a variable sized char array - SinkData: send a variable sized char array and throw it away There's a win32 implementation of the client and server in the junkcode CVS repository in the rpcecho-win32 subdirectory. (This used to be commit 4ccd34ef836eba05f81dc2da73fd7cfaac201798)
2003-04-09unix_strupper, unix_strlower: Remove fixed-length static buffer thatMartin Pool1-10/+31
makes these functions fail for strings over 512 characters. Now we use convert_string_allocate, which grows a buffer as necessary. (This used to be commit a55dc493ca212bde22d9e68ea8a4cc16a142c69d)
2003-04-08Merge from 3_0: Build a lookup table of valid DOS characters justMartin Pool2-5/+59
once, when init_iconv is first called. Use this in check_dos_char rather than doing the conversion every time. Much faster. (This used to be commit e8f1399323745a93ba9df97553effcf2d7629850)
2003-04-07const cleanup.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 03ad0179e343c2c5066f9df7594e6f928d737894)
2003-04-07BUGS.txt -> Bugs appendix in HOWTO CollectionJelmer Vernooij1-1/+1
(This used to be commit f95741ae882ad1d1e7f709e30ea3bae02a4aff2d)
2003-04-07BUGS.txt -> Bugs Appendix in HOWTO collectionJelmer Vernooij1-1/+1
(This used to be commit 1e1ef7a7b52f34ab784a7bac570235de221a64b6)
2003-04-07Remove duplicate "tallocdump" message from tdb messaging system. TheTim Potter1-0/+5
same functionality exists as "pool-usage". Move initialisation of this and dmalloc messages inside message_init(). (This used to be commit af6ecafcbbf65dbedc49b3a86da39ce608bdadac)
2003-04-06Fix the interface of pull_ucs2_charcnv() to take a (char **) arg, not a ↵Andrew Bartlett1-2/+2
(void **) (This used to be commit dc04b732baa0848e391baf7f148218a10e0af032)
2003-04-06Fix memory leak of the key.Andrew Bartlett1-0/+1
(This used to be commit 9daf41c41f901b46d6016c6ec63773d0b7cec617)
2003-04-06strequal() returns True for equal, not an intAndrew Tridgell1-2/+4
(This used to be commit b96590ad092e32259ce24a20a6a8a30d98dfae7d)
2003-04-06don't rely on realloc() working on NULLAndrew Tridgell1-3/+3
(This used to be commit bd00355c1d5ca4ce77fa28c53ea46834365f22d7)
2003-04-04Export lazy_initialize_conv so that it can be called fromMartin Pool1-1/+5
check_dos_char. init_iconv: Call init_doschar_table when reinitializing conversions. (This used to be commit d0b2c5d7ba5531fc695a23bba87a1551cc39e2ee)
2003-04-04check_dos_char: Change this to use a lazily-initialized lookup tableMartin Pool1-3/+49
indicating which characters are valid dos characters. This function was previously quite slow because it did two unicode conversions on every call. (This used to be commit e4ec19e03f95fb7d5b170c7e0ab5837ebc7dcd97)
2003-04-04lazy_initialize_conv: Remove redundant call to init_valid_table,Martin Pool1-4/+6
because init_iconv calls it for us. init_iconv: Add documentation about how this is reintialized when configuration is reloaded. (This used to be commit 0ee80a9018601fbba1c9558545de61cb16e94fac)
2003-04-04check_dos_char: Export this function so that it can be tested inMartin Pool1-1/+1
isolation by a test case. (This used to be commit 52520fda6a168132239e2adae963a766ec653348)
2003-04-03The ldap idmap backend from Anthony Liguori (aliguori@us.ibm.com):Jim McDonough1-0/+718
This patch moves the ldap routines out of passdb into a generic library and implements an LDAP backend for IDMAP. THe backend can be enabled with "idmap backend = ldap" in smb.conf. THere are also schema changes to make sure to update teh ldap schema files. (This used to be commit 87c7c582c60521da3a93d997386fe79935012aea)
2003-04-02Add constJelmer Vernooij1-1/+1
(This used to be commit 7dccd144b74d8c752a4b8c80fa5b3e6b2d11eaa2)
2003-04-02THE Idmap patch :-)Simo Sorce1-1/+1
includes a --with-idmap=no switch to disable idmap usage if you find problems. cosmetic fixes and param aliases to separate winbind from idamp roles. A temporarily remote idmap winbind compatibility backend. As I have time I will further change code to not call directly winbind (partly done but not tested) and a specilized module will be built in place for the current glue hack. The patch has been tested locally in my limited time, the patch is simple and clear and should not reserve problems, if any just disable it. As usual, comments and fisex are welcome :-) Simo. (This used to be commit 02781320476ed1b7ee5d943fa36f9a66ab67f208)
2003-04-02Don't set zero length for the base64 decoded string (fixes swat auth).Andrew Bartlett1-2/+2
Andrew Bartlett (This used to be commit 7ab39cba6a97ddd0879dd968167fc7809f87de6e)
2003-04-02OHKAWA Yuichi (kuri@makino.ecei.tohoku.ac.jp) points out that usingAndrew Bartlett1-2/+2
decoded.length after it's been zero'ed out by data_blob_free() doesn't give you the original length... Andrew Bartlett (This used to be commit 647a720cfb06bdf0dfc8fcdcab50aadcceb0494d)
2003-03-31- Support absolute paths in vfs and charset modulesJelmer Vernooij2-4/+7
- Fix typo in Makefile.in - Fix compatibility with older vfs modules (from patch by metze) - Build some modules shared by default and some static (and fall back to static when dlopen() is not available) (This used to be commit aa36f462d95f8a3a3a81a89c210b98a6f9fd295f)
2003-03-31Fix formatting of back traces - pathc by metzeJelmer Vernooij1-2/+3
(This used to be commit 9cc17bcfe633496ba6270fd82963ff768ae017b0)
2003-03-30- Point users at the HOWTO Collection instead of 'README' in modules/mysql.cJelmer Vernooij1-2/+26
- Make passdb work with absolute paths (passdb backend = /path/to/smbpasswd.so works now). vfs, rpc and charset will follow (This used to be commit 794d3ed03619a4e41558d9ff65783a1aa1b2be90)
2003-03-28fix CIDR hosts allow/deny notationGerald Carter1-1/+1
(This used to be commit 0dc611569427c8b63b752d0f62f2127dc1479754)
2003-03-28fix CIDR hosts allow/deny notationGerald Carter1-1/+1
(This used to be commit 84707fd95eec260a1cb22a165a0161a075f93ada)
2003-03-26Use SAFE_FREE() instead of plain free() - pointed out by metzeJelmer Vernooij1-1/+2
(This used to be commit b49436d020f8d88d42428c83ea9a278d3433d134)
2003-03-26Output backtrace to logfile in smb_panic(), as suggested by mbpJelmer Vernooij1-8/+27
(only on systems that support it, of course) (This used to be commit bf439d733df6a11a25ff561a853c3382a3b34b96)
2003-03-25We need to 'preprocess' in popt_common_samba as wellJelmer Vernooij1-1/+1
(This used to be commit 37ee8aecf4ae570c3d08e9fa94724bc9c917108f)
2003-03-24Revoke some of the popt patch from metze I applied earlier today. It addedJelmer Vernooij1-7/+18
some double options and broke some parameters. (This used to be commit d5f9b0275c91512e1926504f22aaeec2d104430d)
2003-03-24Add modules support to charsetJelmer Vernooij1-29/+55
(This used to be commit cf3d31b9801d7ccb30334a92d4dc8a0ced2ecd31)
2003-03-24Patch from metze to generalise POPT_COMMON_SAMBA, with some minor changesJelmer Vernooij1-60/+35
(This used to be commit 2ddfed298d7f0b6e690275725a39c3ef107077ae)
2003-03-24(merge from HEAD)Andrew Bartlett1-2/+22
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-2/+22
- 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-23Use True, not TRUEJelmer Vernooij1-2/+2
(This used to be commit eeeeb37fc6de60928f7efdeb05bb2c6516f24441)
2003-03-23Don't crash when initialising tdb failsJelmer Vernooij1-2/+2
(This used to be commit b18d02891be1ea3728239eee15a4aed3c3be2fea)
2003-03-22Add -U, -N, -i, -A, -W to popt.Jelmer Vernooij1-9/+231
(This used to be commit 5a88d78f67fd7853d6f7d5042807afa56091d52c)
2003-03-22(merge from HEAD) Valgrind found some memory leaks!Andrew Bartlett1-0/+4
(This used to be commit 8315b9c3119dde62aeb72ad5e20f63aee89abd0b)
2003-03-22- Use FUNCTION_MACRO, not __FUNCTION__.Jelmer Vernooij2-2/+2
- Add some const (This used to be commit e149e70717f38e082ce35d55f9b4d84ba8419af7)
2003-03-22Valgrind found a few memory leaks!Andrew Bartlett1-0/+4
Andrew Bartlett (This used to be commit fb680f610ceb9a0f350c99456cf7ab1a507543fe)