1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-29 16:23:52 +03:00
Commit Graph

150 Commits

Author SHA1 Message Date
Kai Blin
5b3a8c8ae1 r26511: Janitorial: Fix a warning for the 'printf' attribute on gendb_search_v
While at it, also add a PRINTF_ATTRIBUTE for talloc_vasprintf.
2007-12-21 05:51:17 +01:00
Kai Blin
447bc42180 r26457: Janitorial: Don't use pstring in tdb_unpack 2007-12-21 05:50:25 +01:00
Jelmer Vernooij
a76625994a r26434: Remove display charset from iconv convenience context. 2007-12-21 05:50:04 +01:00
Jelmer Vernooij
d37136b7ab r26429: Avoid use of global_smb_iconv_convenience. 2007-12-21 05:49:56 +01:00
Jelmer Vernooij
cf8636c8b7 r26417: Make str_list_copy(mem_ctx, NULL) return NULL rather than an empty list. 2007-12-21 05:49:47 +01:00
Andrew Bartlett
880dfeadae r26386: We need to test in more than just 'interactive' mode...
Fix segfault found when running smbd without options.

Andrew Bartlett
2007-12-21 05:49:20 +01:00
Jelmer Vernooij
f6420d933b r26316: Use contexts for conversion functions. 2007-12-21 05:48:30 +01:00
Jelmer Vernooij
99113075c4 r26266: Remove more global_loadparm uses. 2007-12-21 05:47:42 +01:00
Jelmer Vernooij
56dfcb4f2f r26003: Split up DB_WRAP, as first step in an attempt to sanitize dependencies. 2007-12-21 05:45:40 +01:00
Stefan Metzmacher
26bfdff487 r25830: fix compiler warning
metze
2007-12-21 05:44:16 +01:00
Stefan Metzmacher
7d6c3e31de r25802: fix the build on solaris, void functions doesn't return values
metze
2007-12-21 05:44:05 +01:00
Günther Deschner
c96047d022 r25799: Add dump_data_skip_zeros() which omits 16 zero bytes in a row (if not at the
beginning or the end of a blob). Usefull when inspecting protocols that
exchange huge mostly empty blobs.

Guenther
2007-12-21 05:44:04 +01:00
Andrew Bartlett
606c82f625 r25661: We don't actually need to know with DEBUG(0, ... every time we ask for
some random bytes.

Andrew Bartlett
2007-12-21 05:43:03 +01:00
Andrew Bartlett
6a5630d371 r25660: Add a new interface 'generate_secret_buffer()', to be used when we
require top-quality entropy.  We don't want to waste system enropy
generating challenges (which simply need to be unpredictable, not
secret) or when generating UUIDs.

Rework generate_random_buffer() to use /dev/urandom less often, only
to seed the existing RC4 based PRNG.  (With an exception to ensure we
don't waste this setup cost for very small entropy requests).

Perhaps we should be using heimdal's code for this instead?

This should drasticly reduce our entropy use, particularly in the
build farm (automated Samba build on hosts without much other source
of entropy).

Andrew Bartlett
2007-12-21 05:43:03 +01:00
Jelmer Vernooij
aafd3ea03f r25628: Fix formatting, missing include. 2007-12-21 05:43:01 +01:00
Jelmer Vernooij
b0b4668333 r25627: Remove unused global. 2007-12-21 05:43:01 +01:00
Jelmer Vernooij
84a2027540 r25626: Move some debug-specific prototypes to debug.h. 2007-12-21 05:43:00 +01:00
Jelmer Vernooij
262c1c23a6 r25624: Remove ipv4_addr hack. Only causes 4 extra includes of system/network.h because we stripped down includes. 2007-12-21 05:43:00 +01:00
Jelmer Vernooij
8d4a435601 r25566: Use -lexecinfo for backtraces on FreeBSD. Patch by Timur I. Bakeyev <timur@com.bat.ru> 2007-10-10 15:07:57 -05:00
Jelmer Vernooij
b1aae72420 r25447: Fix installation of headers. Patch by Brad Hards. 2007-10-10 15:07:35 -05:00
Jelmer Vernooij
96c1a24874 r25307: add string_sub_talloc. 2007-10-10 15:07:12 -05:00
Jelmer Vernooij
2d37ddcbd1 r25306: Add tests for string_sub(). 2007-10-10 15:07:11 -05:00
Jelmer Vernooij
72b9d6c036 r25267: Move PRINTF_ATTRIBUTE to lib/util as well. 2007-10-10 15:07:03 -05:00
Jelmer Vernooij
5bb9f041f4 r25265: Move attribute definitions to lib/util. 2007-10-10 15:07:02 -05:00
Jelmer Vernooij
20b70fbb7a r25193: Update headers to easy use by external apps. 2007-10-10 15:06:50 -05:00
Jeremy Allison
0844dbf597 r25175: Change to talloc_asprintf_append_buffer().
Jeremy.
2007-10-10 15:06:46 -05:00
Jelmer Vernooij
69de86d2d2 r25047: Fix more warnings. 2007-10-10 15:05:49 -05:00
Jelmer Vernooij
df9cebcb97 r25035: Fix some more warnings, use service pointer rather than service number in more places. 2007-10-10 15:05:43 -05:00
Jelmer Vernooij
5085c53fcf r25027: Fix more warnings. 2007-10-10 15:05:41 -05:00
Jelmer Vernooij
43f0e2622e r25014: Use talloc for allocating values as well. 2007-10-10 15:05:35 -05:00
Jelmer Vernooij
c57869e262 r25008: Remove use of pstring. 2007-10-10 15:05:33 -05:00
Jelmer Vernooij
6f224480b2 r25007: Remove more uses of pstring, move ntlmauth-specific utility function to ntlm-auth.c 2007-10-10 15:05:32 -05:00
Jelmer Vernooij
d9b2464598 r25006: Use system constant. 2007-10-10 15:05:31 -05:00
Jelmer Vernooij
08bb1ef643 r25000: Fix some more C++ compatibility warnings. 2007-10-10 15:05:27 -05:00
Andrew Bartlett
bcd994a139 r24941: Simplify samdb_result_nttime(), and remove nttime_from_string()
Andrew Bartlett
2007-10-10 15:03:40 -05:00
Jelmer Vernooij
9647f860bd r24814: Fix headers, trim core.h even more. 2007-10-10 15:03:14 -05:00
Jelmer Vernooij
ff6684adfd r24812: Fix headers for external users. 2007-10-10 15:03:13 -05:00
Jelmer Vernooij
31993cf67b r24780: More work allowing libutil to be used by external users. 2007-10-10 15:03:10 -05:00
Jelmer Vernooij
99f4124137 r24710: Use standard boolean type for easier use by external users. 2007-10-10 15:02:53 -05:00
Jelmer Vernooij
7a1eec6358 r24667: Finally merge the registry improvements that Wilco Baan Hofman and I have
been working on for at least half a year now. Contains the following
improvements:

 * proper layering (finally!) for the registry library. Distinction is
   now made between 'real' backends (local, remote, wine, etc) and
   the low-level hive backends (regf, creg, ldb, ...) that are only used
   by the local registry backend
 * tests for all important hive and registry operations
 * re-enable RPC-WINREG tests (still needs more work though, as
							   some return values aren't checked yet)
 * write support for REGF files
 * dir backend now supports setting/reading values, creating keys
 * support for storing security descriptors
 * remove CREG backend as it was incomplete, didn't match the data model
   and wasn't used at all anyway
 * support for parsing ADM files as used by the policy editor (see lib/policy)
 * support for parsing PREG files (format used by .POL files)
 * new streaming interface for registry diffs (improves speed and memory usage
	for regdiff/regpatch significantly)

   ... and fixes a large number of bugs in the registry code
2007-10-10 15:02:34 -05:00
Andrew Bartlett
3d74d178bf r24631: Fix up format warnings, found on my Fedora 7 x86_64 workstation.
Andrew Bartlett
2007-10-10 15:02:27 -05:00
Jelmer Vernooij
4e30410124 r24333: Add convenience function for checking the contents of a file in tests. 2007-10-10 15:01:38 -05:00
Andrew Bartlett
5ef26a2ba3 r24273: Fix bug #4817 by <mwallnoefer@yahoo.de>. (Unable to add a computer
from MMC Active Directory Users and Computers).

Windows sets a 14 UCS2 char buffer as the password in this case.

We need to allow random buffers to be accepted as complex passwords,
even if they don't have ASCII upper or lower case characters.  (If
half the bytes are > 127, then it's likely a random buffer).

Also make the test match the documented windows behaviour of '3 of the
4 classes: upper, lower, digit, special'.

Andrew Bartlett
2007-10-10 15:01:33 -05:00
Andrew Tridgell
1b105097e3 r23807: added hex_encode_talloc() 2007-10-10 14:59:20 -05:00
Andrew Tridgell
5c9b19271e r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 14:59:18 -05:00
Andrew Tridgell
76c6bfdeb5 r23796: main COPYING file for samba4, plus some formatting varients 2007-10-10 14:59:14 -05:00
Andrew Tridgell
fcf38a38ac r23792: convert Samba4 to GPLv3
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
2007-10-10 14:59:12 -05:00
Andrew Bartlett
96ef5259c6 r23551: Change data_blob_equal to data_blob_cmp, suitable for sorting with qsort().
Andrew Bartlett
2007-10-10 14:53:26 -05:00
Jelmer Vernooij
44248f662f r23289: Provide support for GCC attributes _PURE_, _NONNULL_, _DEPRECATED_, _NORETURN_ and _WARN_UNUSED_RESULT_. 2007-10-10 14:53:08 -05:00
Andrew Tridgell
e862cf17b8 r23021: test some boundary conditions for idtree, after I saw some suspicious
behaviour
2007-10-10 14:52:40 -05:00