summaryrefslogtreecommitdiffstats
path: root/source/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* | fix byte ordering when using CIDR notation in hosts allow/deny; spotted by ↵Gerald Carter2003-04-181-0/+4
| | | | | | | | Eloy Paris
* | Only declare backtrace variables when using themJelmer Vernooij2003-04-161-0/+2
| |
* | Add support for the new modules system to lib/iconv.c (merge from HEAD)Jelmer Vernooij2003-04-161-151/+130
| |
* | merge in metze' smbcquotas patch from HEADGerald Carter2003-04-151-3/+3
| |
* | Add some more functions for the modules (backport from HEAD):Jelmer Vernooij2003-04-141-9/+88
| | | | | | | | | | - init_modules() - smb_probe_module()
* | Backport my backtrace patch from HEADJelmer Vernooij2003-04-141-0/+21
| |
* | Merge across tridge's Realloc fix.Jeremy Allison2003-04-141-3/+3
| | | | | | | | Jeremy.
* | Merge from HEAD 1.36.Martin Pool2003-04-141-12/+46
| |
* | Merge Jelmer's popt updates from HEAD.Tim Potter2003-04-141-32/+240
| |
* | Merge of new sid type (SID_NAME_COMPUTER) and tidyup.Tim Potter2003-04-141-1/+2
| |
* | Fix a compiler warning.Tim Potter2003-04-141-1/+1
| |
* | Whoops - missed some tdb message registrations from a previous merge.Tim Potter2003-04-141-0/+5
| |
* | Merge of doxygen updates from HEAD.Tim Potter2003-04-141-14/+14
| |
* | Merge removal of some unused functions. Commit mistakenly included withTim Potter2003-04-141-44/+0
| | | | | | | | new rpc echo pipe.
* | workaround streams leak on SCO openserver 5.0.xGerald Carter2003-04-111-0/+4
| |
* | const cleanup.Jeremy Allison2003-04-071-1/+1
| | | | | | | | Jeremy.
* | BUGS.txt -> Bugs appendix in HOWTO CollectionJelmer Vernooij2003-04-071-1/+1
| |
* | Export lazy_initialize_conv so that it can be called fromMartin Pool2003-04-041-1/+5
| | | | | | | | | | | | check_dos_char. init_iconv: Call init_doschar_table when reinitializing conversions.
* | check_dos_char: Change this to use a lazily-initialized lookup tableMartin Pool2003-04-041-3/+49
| | | | | | | | | | | | indicating which characters are valid dos characters. This function was previously quite slow because it did two unicode conversions on every call.
* | lazy_initialize_conv: Remove redundant call to init_valid_table,Martin Pool2003-04-041-4/+6
| | | | | | | | | | | | | | because init_iconv calls it for us. init_iconv: Add documentation about how this is reintialized when configuration is reloaded.
* | check_dos_char: Export this function so that it can be tested inMartin Pool2003-04-041-1/+1
| | | | | | | | isolation by a test case.
* | Don't set zero length for the base64 decoded string (fixes swat auth).Andrew Bartlett2003-04-021-2/+2
| | | | | | | | Andrew Bartlett
* | fix CIDR hosts allow/deny notationGerald Carter2003-03-281-1/+1
| |
* | (merge from HEAD)Andrew Bartlett2003-03-241-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
* | (merge from HEAD) Valgrind found some memory leaks!Andrew Bartlett2003-03-221-0/+4
| |
* | (merge from HEAD)Andrew Bartlett2003-03-222-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Patch from Samuel Thibault to convert messages from dos to unix charsetJelmer Vernooij2003-03-201-1/+1
| | | | | | | | when sending(and vice versa when receiving).
* | lib/messages.c: Check return from chainlock before modifying message queue.Jeremy Allison2003-03-201-1/+3
| | | | | | | | | | Apply the job returned limit across all requests for job queues. Jeremy.
* | use strnlen to prevent coredumpsJim McDonough2003-03-191-3/+3
| |
* | Merge mbp's HEAD changes.Jeremy Allison2003-03-181-33/+71
| | | | | | | | Jeremy.
* | Add const.Andrew Bartlett2003-03-181-2/+2
| |
* | Add an extra parameter to our 'set_remote_machine_name' andAndrew Bartlett2003-03-181-2/+29
| | | | | | | | | | | | | | | | | | '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 commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.cvs2svn Import User2003-03-181-0/+60
|\|
| * Split "clobber" function and variables into its own file before itMartin Pool2003-03-182-39/+60
| | | | | | | | grows too much larger.
| * Update comment: Valgrind 1.9.4 seems to always respect clientMartin Pool2003-03-181-1/+1
| | | | | | | | requests, without needing --client-perms=yes.
| * global_globber_region_function/line ought to be recorded beforeMartin Pool2003-03-181-3/+15
| | | | | | | | | | | | | | | | | | | | clobbering the region, just in case clobbering causes us to crash immediately. (That might happen if we just shot ourselves in the stack and strcpy was not inlined.) Also, in DEVELOPER mode and when Valgrind is available, mark the clobbered region as uninitialized. This is an even stronger protection than clobbering with 0xf1.
| * - Make ReadDirName return a const char*.Andrew Bartlett2003-03-161-1/+1
| | | | | | | | | | | | | | | | - Consequential changes from that - mark our fstring/pstring assumptions in function prototypes Andrew Bartlett
| * Remove an unused function and fix the build.Andrew Bartlett2003-03-151-36/+0
| | | | | | | | Andrew Bartlett
| * String handling parinoia fixes.Andrew Bartlett2003-03-153-112/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * fix WinXP & Win2K3 remote_arch and check pointer in ntlmssp code before ↵Gerald Carter2003-03-141-0/+16
| | | | | | | | dereferencing
| * adding some initiaial code to sert %a to Win2K3 (using Native LanMan string ↵Gerald Carter2003-03-121-0/+3
| | | | | | | | from .NET RC2)
| * Add constAndrew Bartlett2003-03-121-2/+2
| |
| * This patch attemptes to clean up winbindd's mutex locking.Andrew Bartlett2003-03-111-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current locking scheme in winbind is a complete mess - indeed, the next step should be to push the locking into cli_full_connection(), but I'll leave it for now. This patch works on the noted behaviour that 2 parts of the connection process need protection - and independent protection. Tim Potter did some work on this a little while back, verifying the second case. The two cases are: - between connect() and first session setup - during the auth2 phase of the netlogon pipe setup. I've removed the counter on the lock, as I fail to see what it gains us. This patch also adds 'anonymous fallback' to our winbindd -> DC connection. If the authenticated connection fails (wbinfo -A specifed) - say that account isn't trusted by a trusted DC - then we try an anonymous. Both tpot and mbp like the patch. Andrew Bartlett
| * Remove valgrind_strlen function, hopefully no longer needed withMartin Pool2003-03-111-9/+0
| | | | | | | | recent Valgrind relases and clashing with -DVALGRIND.
| * Clobber strings with 0xf1f1f1f1 before writing to them to check bufferMartin Pool2003-03-101-8/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | lengths are correct. Attempts to pstrcpy into an fstring or allocated string should fail in developer builds. This builds on abartlet's earlier overflow probe for safe_strcpy, but by clobbering the whole string with a nonzero value is more likely to find overflows on the stack. This is only used in -DDEVELOPER mode. Reviewed by abartlet, tpot.
| * This is C, not C++Andrew Bartlett2003-03-081-4/+4
| |
| * Make sure that the 'remote' machine name can only be set once. For some weirdAndrew Bartlett2003-03-081-2/+29
| | | | | | | | | | | | | | | | | | | | | | | | 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
| * Some progress towards gums and tdbsam2Simo Sorce2003-03-071-0/+18
| | | | | | | | genparser works fine, and it is a marvelous tool to store objects in tdb :)
| * dlsym takes a const char *.Jeremy Allison2003-03-031-1/+1
| | | | | | | | Jeremy.
| * Doxygen janitor: add note that strequal is in fact case-insensitive.Martin Pool2003-02-281-6/+8
| |