1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-20 14:03:59 +03:00

3243 Commits

Author SHA1 Message Date
Jelmer Vernooij
6ca1390269 r24684: Be a bit less verbose
(This used to be commit 7a7af62dc4485d832436ed39dfba41b417ec2b10)
2007-10-10 15:02:42 -05:00
Jelmer Vernooij
3c9f28334c r24683: Add two more tests.
(This used to be commit c87576743b09773489478e6eebeb3a282d6ec21b)
2007-10-10 15:02:41 -05:00
Jelmer Vernooij
91c46fefa1 r24677: Also add built flex file for people that don't have lex.
(This used to be commit a223be56dff504f2fcbbf8fba2c7f764eb9624b0)
2007-10-10 15:02:39 -05:00
Jelmer Vernooij
f96b1778a4 r24674: Make sure results are always on a new line, fix typo in test name.
(This used to be commit 40c1635b39b4acff0acecc734583daa0217215ce)
2007-10-10 15:02:37 -05:00
Jelmer Vernooij
92be36316d r24673: Put lex/yacc output under version control for hosts that don't have those tools.
(This used to be commit 92966041501718854b174d471301219a369ad057)
2007-10-10 15:02:37 -05:00
Jelmer Vernooij
a8cbe81334 r24672: Add dummy variable to prevent errors on some compilers.
(This used to be commit d3b1acce112b3d4aa1be40a77af085e3a825be0d)
2007-10-10 15:02:36 -05:00
Jelmer Vernooij
ec180e2475 r24668: Fix header installation.
(This used to be commit e9e66693505e5b9f136bd24f5f76ccd0ae574d99)
2007-10-10 15:02:35 -05:00
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 Tridgell
09672f7e4a r24645: add in the ctdb dbwrap backend
(This used to be commit e2d173fde17ab903bddf2139d8100785280856bd)
2007-10-10 15:02:30 -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
Stefan Metzmacher
69de8f9ac8 r24626: as TALLOC_ABORT() is defined to abort() by default
wrap it into a function so that the function name
in the backtrace shows what happens.

metze
(This used to be commit 0216ff6daa276e413811ca32cca0a66b4b2abe55)
2007-10-10 15:02:26 -05:00
Stefan Metzmacher
35b16479a5 r24620: move printing out the version string and exit()
into the popt _POST processing.

Now 'smbd -V --bla' complains about an unknown option

metze
(This used to be commit 69bf7f1874c8e89b61c4baa03ff9ad191e71b804)
2007-10-10 15:02:25 -05:00
Andrew Bartlett
90e83d73f9 r24567: Try much harder not to leak memory when comparing objectCategory entires.
Andrew Bartlett
(This used to be commit 8cfa1f898e5f5a8e57e3794a80174063223247ec)
2007-10-10 15:02:16 -05:00
Andrew Bartlett
e10577585d r24566: Remove trailing newlines in ldb_debug(), these are not required.
Andrew Bartlett
(This used to be commit 2ed782f7caa98003c524d70bcb97874002be57a2)
2007-10-10 15:02:16 -05:00
Stefan Metzmacher
0d7d5a6d49 r24560: rename some DCERPC_ prefixes into NDR_
metze
(This used to be commit f874eca5dab74e930d0ec52abeb06295d2d90476)
2007-10-10 15:02:15 -05:00
Stefan Metzmacher
f14bd1a90a r24557: rename 'dcerpc_table_' -> 'ndr_table_'
metze
(This used to be commit 84651aee81aaabbebf52ffc3fbcbabb2eec6eed5)
2007-10-10 15:02:15 -05:00
Stefan Metzmacher
b8cdadced4 r24551: rename dcerpc_interface_table -> ndr_interface_table
rename dcerpc_interface_list  -> ndr_interface_list

and move them to libndr.h

metze
(This used to be commit 4adbebef5df2f833d2d4bfcdda72a34179d52f5c)
2007-10-10 15:02:12 -05:00
Andrew Bartlett
1133678c34 r24502: More work to get LOCAL-EVENT passing on all platforms:
- Make the epoll_event_context_init() call fail if epoll_create() fails.

  This should cause this backend to be skipped on host with epoll() in
  libc but not in the kernel.

- At the moment, there is no sensible way to handle failures to add an
  epoll() event, and 'fallback to select' is misnamed (so we now
  abort()).

Andrew Bartlett
(This used to be commit fb1e1eebdae740a2b66ee1ea9e1e35f21292ac14)
2007-10-10 15:02:02 -05:00
Stefan Metzmacher
8c9abc4be7 r24491: base_type() isn't supported anymore and the default for enums
is now uint16...

metze
(This used to be commit 82aad0e42c44f5b277aed743595795fcc4bad0d4)
2007-10-10 15:02:00 -05:00
Andrew Bartlett
0eb3ee3204 r24459: Fix up ldap.js and test_ldb.sh to test the domain_scope control, and
to test the behaviour of objectCategory=user searches.

It turns out (thanks to a hint on
http://blog.joeware.net/2005/12/08/147/) that objectCategory=user maps
into objectCategory=CN=Person,... (by the defaultObjectCategory of
that objectclass).

Simplify the entryUUID module by using the fact that we now set the DN
as the canoncical form of objectCategory.

Andrew Bartlett
(This used to be commit b474be9507df51982a604289215bb1868124fc24)
2007-10-10 15:01:53 -05:00
Jelmer Vernooij
b159717785 r24350: Remove offsetof() replacement to see if there are actually any
hosts that don't have it.
(This used to be commit b37d86242de1ee82b0cd760d965f8ad37a83cf09)
2007-10-10 15:01:42 -05:00
Jelmer Vernooij
bc13766a76 r24337: Make libreplace provide offsetof.
(This used to be commit 48d1aa4fcf6a323e3e6a14825f83cd20e3fc3a26)
2007-10-10 15:01:39 -05:00
Jelmer Vernooij
f3e1363281 r24336: Use standard data type uint32_t rather than tdb-specific u32.
(This used to be commit f90a698387c53508862eb6359bd4d1fba1d2b4b0)
2007-10-10 15:01:39 -05:00
Jelmer Vernooij
f1f4f665b0 r24335: Fix -N support.
(This used to be commit 18ea767d396bf6d956fd83ee3d2687d98897ae36)
2007-10-10 15:01:39 -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 Tridgell
d8c070a550 r24283: added a dbwrap API for temporary databases, based on the one from the
s3 clustering code.

This commit just establishes the API. The ctdb backend for this will
come soon.
(This used to be commit 3767e755db7b58aee4ff375896beb00b133cc413)
2007-10-10 15:01:35 -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 Bartlett
49c42e2550 r24261: Fix the standalone ldb build after I moved the objectclass module out.
Andrew Bartlett
(This used to be commit c4c3afcdcb6ac5dc220f353b25689056484ac6c9)
2007-10-10 15:01:32 -05:00
Andrew Bartlett
10c1480d16 r24259: Rework the objectclass module to use the new schema, rather than the
ldb_subclass list.

Next step will be to have this module also set the objectCategory and
default ntSecurityDescriptor

Andrew Bartlett
(This used to be commit 0f7135a4685a1117a54c2f019df6c6de22b8dd32)
2007-10-10 15:01:31 -05:00
Andrew Bartlett
58d9f6ed9d r24246: Avoid the annoying 'probable memory leak in ldb' messages, by fixing
some issues in the NBT server (this was a false positive, but easily
worked around) and DRSUAPI server.

We should take care not to use the ldb_context as a talloc pool, and
to always ensure that any results from ldb_search() are moved off that
pool with talloc_steal or talloc_free().

To work around the issue in provision, for which I can find no fault
(other than a lot of work being done in provision), I've moved the
detector trigger to 400 additional blocks.

This fixes Bug #4810 by <mwallnoefer@yahoo.de>

Andrew Bartlett
(This used to be commit 42bcf856203ae3cf43130519904828a143ac8d18)
2007-10-10 15:01:29 -05:00
Andrew Bartlett
b351641c6e r24245: Fix bug #4828 - we need to set the samba LDB debug handler early, so
we catch messages pushed out by modules during startup.

This also sets an explict mapping between ldb and Samba debug levels.

Andrew Bartlett
(This used to be commit 50913a401dda9fb29a8c05f1926c41d3473efa93)
2007-10-10 15:01:29 -05:00
Volker Lendecke
6dad5b6e06 r24054: Fix some warnings
(This used to be commit b3473db397476d05e7ffca50a5f7a9b65e0a5b4a)
2007-10-10 15:01:20 -05:00
Andrew Bartlett
b7f9e85db1 r23993: Attempt to fix bug #4808, reported by mwallnoefer@yahoo.de. The issue
is that when we all ldb_msg_add_empty(), we might realloc() the
msg->elements array.  We need to ensure the source pointer (when
copying an element from the same msg) is still valid, or the data
copied.

Andrew Bartlett
(This used to be commit 0fbea30577233d00e7c6cdd4faaece0f99fc57b1)
2007-10-10 15:01:16 -05:00
Michael Adam
0673a18277 r23980: Fix one more use of pwrite in expand_file.
Michael
(This used to be commit b97acdc67b1a55529e69bb7b2b78a317a34b1eba)
2007-10-10 15:01:15 -05:00
Michael Adam
7002ed291a r23979: Fix another occurence of (written != requested) as an
error condition to write. This is in tdb_new_database.

Fix one call to tdb_new_database in tdb_open_ex to not
overwrite the newly propagated errno (typically ENOSPC).

Michael
(This used to be commit eb524df0a52783de6c94a11b44f268e0f26fbb2c)
2007-10-10 15:01:14 -05:00
Michael Adam
c94cba5b7b r23978: Merge r23161 from Samba3:
Add TDB_VOLATILE as open_flag to activate the per-hashchain dead record
optimization.
(This used to be commit 868cdb1781fe94afbc1658e72bf06de20193bcd7)
2007-10-10 15:01:14 -05:00
Michael Adam
af8432e692 r23977: Im prove the pwrite-patch to tdb_expand_file of r23972:
* prevent infinite loops due to 0 bytes written:
  try once more. if we still get 0 as return,
  set errno to ENOSPC and return -1 (error)

* replace int by correct types (ssize_t and size_t).

* print a warning log message in case "written < requested to write"
  usually this means, that the next call to pwrite will fail
  with return value -1 and set errno accordingly.

  Note that the former error condition "written != requested to write"
  is not a correct error condition of write/pwrite. If this is due
  to an error, a subsequent call to (p)write will reveal the cause
  (typically "no space left on device" - ENOSPC).

Michael
(This used to be commit 7f415d12239fc67eb2c7894c6359b9507fe122c6)
2007-10-10 15:01:13 -05:00
Michael Adam
d568e2b1d3 r23972: Fix a bug in pwrite error detection in tdb_expand_file():
The proper error condition is (ret == -1) instead of
(ret != number_of_byte_told_to_write).

Michael
(This used to be commit 4c3c6363f860ec01d3c789ef8ee2aa3eb77000dc)
2007-10-10 15:01:13 -05:00
Andrew Bartlett
f8219ec5a8 r23961: Allow SWAT to operate on x86_64 machines.
On machines with a 4 byte int, and a 8 byte pointer, the ESP could would fail.

The problem is that 0 != NULL.  0 is an int (4 bytes) and NULL is a
pointer (8), and this matters critically to varargs functions.

If a 0 was passed as the 'terminating' argument, then only 4 bytes
would be written to the stack, but va_arg(ap, char *) would try and
pull 8, reading uninitalised memory.

Andrew Bartlett
(This used to be commit 72ca8e3b2a45179b731790e6329b978b22ac1ec0)
2007-10-10 15:01:11 -05:00
Michael Adam
5fa17c14a5 r23950: unlink before rename is superfluous.
Michael
(This used to be commit dc0104be9acfcd97f95388029a421204723b641a)
2007-10-10 15:01:10 -05:00
Michael Adam
a45166bae0 r23925: Use NULL instead of 0 for a void * argument.
(This used to be commit bf7774360bbcf557e3cbc4ef0c45f750b4ba89c3)
2007-10-10 15:01:10 -05:00
Andrew Bartlett
1ce5642bae r23912: We always accept / as a seperator, and it is far less confusing
compared with a shell-escape (\).

Fixes bug #4765

Andrew Bartlett
(This used to be commit 417e0ef87fdf8ea69c66089485bd4e0f7b4ca495)
2007-10-10 15:01:09 -05:00
Michael Adam
5c98bbe2f0 r23853: Fix a very misleading error message in tdbbackup.
Michael
(This used to be commit 1685057927e0ae37ed6be780ee0fb4b3bbefc00f)
2007-10-10 15:01:04 -05:00
Andrew Bartlett
69c0923c5e r23809: Don't give users the fantasy that we can control choice of GENSEC
security mechanisms at the moment.  I'll put this back when I
implement the functionality.

Andrew Bartlett
(This used to be commit 9a38ddc86fe8c68520622678eae81e4e90f427cf)
2007-10-10 14:59:21 -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
37363d45b7 r23802: fixed URL in XML
(This used to be commit c0111223e2201b2c62e25a4c88e1ee445fde5ab6)
2007-10-10 14:59:19 -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
b8875bee5f r23800: LGPL is now called GNU Lesser General Public License
not GNU Library General Public License
(This used to be commit 01e3fe7533b5670236c026ec3c6cc1e25655fbc3)
2007-10-10 14:59:17 -05:00
Andrew Tridgell
e1c15c74af r23799: updated old Franklin Street FSF addresses to new URL
(This used to be commit db92b76a0034899f5f0dc2d012ee7709ff9a6132)
2007-10-10 14:59:16 -05:00
Andrew Tridgell
6c973f4e8c r23798: updated old Temple Place FSF addresses to new URL
(This used to be commit 40c0919aaa9c1b14bbaebb95ecce53eb0380fdbb)
2007-10-10 14:59:15 -05:00