1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-28 17:47:29 +03:00

111 Commits

Author SHA1 Message Date
Jelmer Vernooij
b409d4120f 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
(This used to be commit 7a1eec6358bc863dfc671c542b7185d3e39d7b5a)
2007-10-10 15:02:34 -05:00
Andrew Bartlett
dfa4e5f784 r24631: Fix up format warnings, found on my Fedora 7 x86_64 workstation.
Andrew Bartlett
(This used to be commit 3d74d178bfd89127ff387939e848b240e638cc35)
2007-10-10 15:02:27 -05:00
Jelmer Vernooij
a43b026ef0 r24333: Add convenience function for checking the contents of a file in tests.
(This used to be commit 4e304101241ea7bcb9111b757bb51b16665d492d)
2007-10-10 15:01:38 -05:00
Andrew Bartlett
edca65915a 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
(This used to be commit 5ef26a2ba3561580f0a73ee61eb707573cc98cd3)
2007-10-10 15:01:33 -05:00
Andrew Tridgell
702372b343 r23807: added hex_encode_talloc()
(This used to be commit 1b105097e3f4a8475d3a2623205ecdea2aef91cf)
2007-10-10 14:59:20 -05:00
Andrew Tridgell
cd1217ff5f r23801: The FSF has moved around a lot. This fixes their Mass Ave address.
(This used to be commit 5c9b19271e0e3ad897499707003ce4703ffa4870)
2007-10-10 14:59:18 -05:00
Andrew Tridgell
4b71c210d5 r23796: main COPYING file for samba4, plus some formatting varients
(This used to be commit 76c6bfdeb51b5673bbabe0ca3d8bff3b74a327ee)
2007-10-10 14:59:14 -05:00
Andrew Tridgell
0479a2f1cb 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.
(This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
2007-10-10 14:59:12 -05:00
Andrew Bartlett
d291b8bf93 r23551: Change data_blob_equal to data_blob_cmp, suitable for sorting with qsort().
Andrew Bartlett
(This used to be commit 96ef5259c63ad6245c94c40d6059d736b1534183)
2007-10-10 14:53:26 -05:00
Jelmer Vernooij
c2781df0d5 r23289: Provide support for GCC attributes _PURE_, _NONNULL_, _DEPRECATED_, _NORETURN_ and _WARN_UNUSED_RESULT_.
(This used to be commit 44248f662f0b609dad6a7b437948f12d661a28f7)
2007-10-10 14:53:08 -05:00
Andrew Tridgell
36d7186e72 r23021: test some boundary conditions for idtree, after I saw some suspicious
behaviour
(This used to be commit e862cf17b891885f3a733819869a06895c1fb324)
2007-10-10 14:52:40 -05:00
Stefan Metzmacher
b0ddff0324 r22379: add missing file
metze
(This used to be commit 893b6f56b6aef14de7b54c57c23b8a2f885ba6ce)
2007-10-10 14:51:10 -05:00
Stefan Metzmacher
3c5618fb1b r22373: move in_list() to util_strlist.c to remove the dependency
from util.o to next_token() and strcasecmp_m()

with this the pidl tests link better on some hosts

metze
(This used to be commit 54bfc1dccc40883d602402865eff3cfae676e9af)
2007-10-10 14:51:09 -05:00
Stefan Metzmacher
6bc249edbf r22372: split out become_daemon() into it's own function
this remove the dependency of util.o to swrap_close
which causes sometrouble with the pidl tests
on some hosts

metze
(This used to be commit 8cd36c47aaf1098876bceb314cb0a1f39369cb46)
2007-10-10 14:51:09 -05:00
Stefan Metzmacher
4bb0cb7449 r22371: readd discard_const() to lib/util/util.h
metze
(This used to be commit 76fbe90596f5f26c09185129d9a4f3e2b42428e1)
2007-10-10 14:51:09 -05:00
Stefan Metzmacher
f21cdbc942 r22369: add ZERO_STRUCT() ... macros to lib/util/util.h again
to fix the openchange build...

we need to remove them from libreplace, but I'll think about that
next week.

metze
(This used to be commit 2243142b46e20825339b4f6ed0e878c18e50e45f)
2007-10-10 14:51:08 -05:00
Stefan Metzmacher
4047b20c36 r22297: move ZERO_*, ARRAY_SIZE and PTR_DIFF macros into libreplace
metze
(This used to be commit b69c950858d837d7bd734d418129ade69106a00d)
2007-10-10 14:50:59 -05:00
Stefan Metzmacher
bb36705c8d r22226: move discard_const macros to librelace
metze
(This used to be commit c2cfee6d25718fac35bd4ed982c7424f1c3ed0b7)
2007-10-10 14:50:40 -05:00
Andrew Tridgell
793db3bc50 r21740: this fixes the real cause of the large log files we had. The problem
was we were not checking the result of a convert_string() call, and it
was giving -1. We then passed -1 to fwrite() on stdout, which on aix
and macosx wrote all of available memory to stdout :)

To fix this, replace non-printing chars with ? in d_printf if the
string cannot be converted
(This used to be commit d20102d363f4b9214e29296ad8ec45c8d95614b5)
2007-10-10 14:49:21 -05:00
Jelmer Vernooij
bf08493a78 r21688: Add simple tests for genrand
(This used to be commit 90f23f0de86bb63ad65556ff2dab8b066236f300)
2007-10-10 14:49:12 -05:00
Jelmer Vernooij
1afda7bdde r21656: Move tests a bit closer to the things they test, should make syncing with samba3 easier.
(This used to be commit 4d755fb5d7adedd1dd8bad917b921324411bfd59)
2007-10-10 14:49:05 -05:00
Andrew Tridgell
8538af1107 r21174: many thanks to Paul Wayper for pointing out that C99 requires a
matching va_end() for each va_copy(). This doesn't matter for most
architectures, but there could be some obscure ones where it does
matter.

some of this should be ported to Samba3
(This used to be commit 21eb316473486cb6b73bb3ff9c5f3a44ecd57e4a)
2007-10-10 14:44:42 -05:00
Stefan Metzmacher
c186fb9463 r20734: always terminate the string... so that an empty data_blob
gets '\0' as "" string

metze
(This used to be commit 4f5daa830a3c02a05ba1bc7f32eedbe1d52640a1)
2007-10-10 14:40:34 -05:00
Stefan Metzmacher
bc4af8dd5e r20730: this can be const
metze
(This used to be commit 181db920476a9ebddeee1ebea17be0baf85ea59e)
2007-10-10 14:40:33 -05:00
Stefan Metzmacher
e57c36ecba r20436: add more comments and add macros signed versions of the 64 bit
macros

metze
(This used to be commit e77d0d1532e800e0a7b0a4a30cf9b4d97761ee52)
2007-10-10 14:30:36 -05:00
Stefan Metzmacher
4a40f0310c r20325: handle NULL strings in is_ipaddress()
metze
(This used to be commit b8b69ff6bec0c1d412b1f935721b45ef07e9c9f5)
2007-10-10 14:29:40 -05:00
Andrew Tridgell
5235e6518c r20091: remove blank lines at the end of text lines loaded from a file
(This used to be commit afcc797e8a25d99269f67e05fe57e952dd5d65bc)
2007-10-10 14:29:03 -05:00
Jelmer Vernooij
153349788c r19672: Make LIBSAMBA-UTIL a subsystem again for now because it has interdependencies
with LIBSAMBA-CONFIG.
(This used to be commit 4a044fb529075044755a0b5cc21446bf24bec72e)
2007-10-10 14:25:28 -05:00
Jelmer Vernooij
273d5f8666 r19671: Fix remaining unresolved symbols in shared library build.
Fix starting tests in shared library build.
(This used to be commit 3b65a0d6e491a57ed216dc0cd9c31d46e0cb6a35)
2007-10-10 14:25:27 -05:00
Jelmer Vernooij
1b4b2a291d r19539: Move pidfile to smbd/
(This used to be commit eefa64cbe392c4c4dcbf71b8bcf5128cce0339ba)
2007-10-10 14:24:46 -05:00
Andrew Tridgell
9cd2b012f3 r19504: - fixed a free error in file_lines_parse
- added a function to test for large file support

- enable CAP_LARGE_FILES only if the test passes

- don't test at large offsets if the server doesn't set
  CAP_LARGE_FILES
(This used to be commit c5423ea22bdaa055807d4e6f7ac4be934194fe45)
2007-10-10 14:24:40 -05:00
Andrew Tridgell
af870da619 r19428: moved tdbutil.c from lib/tdb/common/ to lib/util/util_tdb.c
tdbutil.c is Samba specific, so should not be part of the generic tdb
library
(This used to be commit 979dd24f5e44605fc1603b690913b8c31be7478f)
2007-10-10 14:21:30 -05:00
Rafal Szczesniak
d630105b56 r18614: a bit of work done while on the plane.
a new function converting NTTIME to struct timeval

rafal
(This used to be commit e9ebbb8661ac6efc5bf07798a64cdb9f7c7eea50)
2007-10-10 14:18:56 -05:00
Stefan Metzmacher
4a854fe809 r18593: try to get the same socket_wrapper file building in samba3 and samba4
this is preparation of adding libreplace to samba3 later.

metze
(This used to be commit 26228e4b2e8debd84caebe84bb34bfbbf2ad405c)
2007-10-10 14:18:54 -05:00
Stefan Metzmacher
a46e12d0e0 r18213: don't list LIBREPLACE depdendecies explicit and
always at it as first private dependencies

metze
(This used to be commit 135d096776b53ae09ffc2b4f767dfbd18139570f)
2007-10-10 14:17:50 -05:00
Stefan Metzmacher
01dee6e3dd r18138: LIBREPLACE provides stuff from -ldl so it should depend on it
metze
(This used to be commit b4e4c115ab23bcc3b116a3736ddf2e88bab6f4cf)
2007-10-10 14:17:38 -05:00
Andrew Tridgell
bbc78c9c14 r18137: more LIBREPLACE deps
(This used to be commit 2d813d1e6deb99b06e43462885be848a5399b9a8)
2007-10-10 14:17:38 -05:00
Andrew Tridgell
014f70008f r18130: the move to system/ in libreplace broke some things ... should be
happier now
(This used to be commit 18542f184f75074e56a9793a9e3b6c6d747bb9e6)
2007-10-10 14:17:37 -05:00
Jelmer Vernooij
0e8d1e9412 r18126: Fix -ldl dependency problem
(This used to be commit ce31b736a9418889538b5778ceb0b18071cdfebd)
2007-10-10 14:17:36 -05:00
Jelmer Vernooij
0329d755a7 r17930: Merge noinclude branch:
* Move dlinklist.h, smb.h to subsystem-specific directories
 * Clean up ads.h and move what is left of it to dsdb/
   (only place where it's used)
(This used to be commit f7afa1cb77f3cfa7020b57de12e6003db7cfcc42)
2007-10-10 14:16:54 -05:00
Stefan Metzmacher
1d8fa3ccac r17790: replace uses -ldl and should directly depend on it
metze
(This used to be commit 560a3058e53479133015d1b0a7cd149393c45438)
2007-10-10 14:16:43 -05:00
Stefan Metzmacher
a485fa050c r17783: fix compiler warnings
metze
(This used to be commit c999dd02100e59bfd34585850c354ac2e9708cbb)
2007-10-10 14:16:41 -05:00
Stefan Metzmacher
9fd23a6e91 r17782: fix compiler warning
metze
(This used to be commit 97f6980372e2d06bdae461c737f9e0279f30b9b9)
2007-10-10 14:16:41 -05:00
Andrew Bartlett
3d603bdd66 r17633: Return NULL at the end of the file, or else we can't tell the
difference between end of file and a blank line.

Andrew Bartlett
(This used to be commit 6fd6239a0f16154c13713bf1398b2873d1103335)
2007-10-10 14:16:17 -05:00
Andrew Bartlett
c047a88f41 r17221: Add some integer wrap parinoia to data_blob_append().
Andrew Bartlett
(This used to be commit 7c5a25a423da3db982396ac507df985fa934be73)
2007-10-10 14:10:20 -05:00
Andrew Bartlett
dc2715b49c r17167: indent
(This used to be commit 4dcdc5a3ad6847be6c6199854121ae4ccadaa673)
2007-10-10 14:10:15 -05:00
Stefan Metzmacher
54fba07f01 r16923: remove unused substitude code
metze
(This used to be commit ea88c8c99eff2203d13f9877e590d9d7f2fbb910)
2007-10-10 14:10:01 -05:00
Stefan Metzmacher
ec2b3baf09 r16922: move some macros out of talloc.h as the don't belong to talloc
metze
(This used to be commit 4c68e315e2288eef97527911daf18622a994ac31)
2007-10-10 14:10:01 -05:00
Jelmer Vernooij
9bd4cfad47 r16517: Get rid of pointless safe_free() (not SAFE_FREE()!) function.
(This used to be commit 6bc91497827a66af6d9adf26c689e9cc458d8ecf)
2007-10-10 14:09:31 -05:00
Jelmer Vernooij
4bd40183af r16516: Get rid of file_exists() as there already is a file_exist().
(This used to be commit c4b3c2b18c6df43c8a4808fab72bc45439ba9421)
2007-10-10 14:09:31 -05:00