1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
Commit Graph

3055 Commits

Author SHA1 Message Date
Jelmer Vernooij
0b91f39164 r24780: More work allowing libutil to be used by external users.
(This used to be commit 31993cf67b)
2007-10-10 15:03:10 -05:00
Michael Adam
8277256cee r24738: Fix one more use of pwrite in tdb code in the spirit of r23972 and r23977.
Michael
(This used to be commit 7b2cabea55)
2007-10-10 15:03:01 -05:00
Jelmer Vernooij
5d518417f8 r24726: Add tests for getting/setting security descriptors (still failing at the moment)
(This used to be commit ecdfaf56c0)
2007-10-10 15:02:57 -05:00
Jelmer Vernooij
2cd9215e77 r24725: Don't segfault if hive file can't be found
(This used to be commit 2daa8fa88d)
2007-10-10 15:02:57 -05:00
Jelmer Vernooij
fb6adecf06 r24723: Install the right headers for use by samba-gtk.
(This used to be commit 762e893d9c)
2007-10-10 15:02:56 -05:00
Jelmer Vernooij
616c45f16a r24718: Fix some compiler warnings.
(This used to be commit 08f7389ab7)
2007-10-10 15:02:55 -05:00
Jelmer Vernooij
ed8d04ead9 r24717: Some more easy bool conversions, update TODO for registry
(This used to be commit fc8771fb6a)
2007-10-10 15:02:55 -05:00
Jelmer Vernooij
61ffa08f4c r24712: No longer expose the 'BOOL' data type in any interfaces.
(This used to be commit 1ce32673d9)
2007-10-10 15:02:54 -05:00
Jelmer Vernooij
4fb038b0b8 r24710: Use standard boolean type for easier use by external users.
(This used to be commit 99f4124137)
2007-10-10 15:02:53 -05:00
Jelmer Vernooij
349cc1e14b r24704: Fix bug in the registry patch code.. all the more proves this code needs tests.
(This used to be commit aa98d21957)
2007-10-10 15:02:51 -05:00
Jelmer Vernooij
2edf63b6d6 r24703: Use standard registry diff files when provisioning rather than
LDIF files for the registry files.
(This used to be commit 67ad556b73)
2007-10-10 15:02:50 -05:00
Jelmer Vernooij
dfc0fd9eec r24688: Make output subunit-parseable.
(This used to be commit 2585c6feb2)
2007-10-10 15:02:44 -05:00
Jelmer Vernooij
6ca1390269 r24684: Be a bit less verbose
(This used to be commit 7a7af62dc4)
2007-10-10 15:02:42 -05:00
Jelmer Vernooij
3c9f28334c r24683: Add two more tests.
(This used to be commit c87576743b)
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 a223be56df)
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 40c1635b39)
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 9296604150)
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 d3b1acce11)
2007-10-10 15:02:36 -05:00
Jelmer Vernooij
ec180e2475 r24668: Fix header installation.
(This used to be commit e9e6669350)
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 7a1eec6358)
2007-10-10 15:02:34 -05:00
Andrew Tridgell
09672f7e4a r24645: add in the ctdb dbwrap backend
(This used to be commit e2d173fde1)
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 3d74d178bf)
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 0216ff6daa)
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 69bf7f1874)
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 8cfa1f898e)
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 2ed782f7ca)
2007-10-10 15:02:16 -05:00
Stefan Metzmacher
0d7d5a6d49 r24560: rename some DCERPC_ prefixes into NDR_
metze
(This used to be commit f874eca5da)
2007-10-10 15:02:15 -05:00
Stefan Metzmacher
f14bd1a90a r24557: rename 'dcerpc_table_' -> 'ndr_table_'
metze
(This used to be commit 84651aee81)
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 4adbebef5d)
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 fb1e1eebda)
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 82aad0e42c)
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 b474be9507)
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 b37d86242d)
2007-10-10 15:01:42 -05:00
Jelmer Vernooij
bc13766a76 r24337: Make libreplace provide offsetof.
(This used to be commit 48d1aa4fcf)
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 f90a698387)
2007-10-10 15:01:39 -05:00
Jelmer Vernooij
f1f4f665b0 r24335: Fix -N support.
(This used to be commit 18ea767d39)
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 4e30410124)
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 3767e755db)
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 5ef26a2ba3)
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 c4c3afcdcb)
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 0f7135a468)
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 42bcf85620)
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 50913a401d)
2007-10-10 15:01:29 -05:00
Volker Lendecke
6dad5b6e06 r24054: Fix some warnings
(This used to be commit b3473db397)
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 0fbea30577)
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 b97acdc67b)
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 eb524df0a5)
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 868cdb1781)
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 7f415d1223)
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 4c3c6363f8)
2007-10-10 15:01:13 -05:00