1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-13 08:23:49 +03:00
Commit Graph

3159 Commits

Author SHA1 Message Date
Jelmer Vernooij
9b02a39c15 r24868: Don't use callbacks for prompting when stdout is not a tty. 2007-10-10 15:03:23 -05:00
Jelmer Vernooij
e7866857fb r24867: Avoid anonymous struct. Patch from Brad Hards. 2007-10-10 15:03:22 -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
Michael Adam
7b2cabea55 r24738: Fix one more use of pwrite in tdb code in the spirit of r23972 and r23977.
Michael
2007-10-10 15:03:01 -05:00
Jelmer Vernooij
ecdfaf56c0 r24726: Add tests for getting/setting security descriptors (still failing at the moment) 2007-10-10 15:02:57 -05:00
Jelmer Vernooij
2daa8fa88d r24725: Don't segfault if hive file can't be found 2007-10-10 15:02:57 -05:00
Jelmer Vernooij
762e893d9c r24723: Install the right headers for use by samba-gtk. 2007-10-10 15:02:56 -05:00
Jelmer Vernooij
08f7389ab7 r24718: Fix some compiler warnings. 2007-10-10 15:02:55 -05:00
Jelmer Vernooij
fc8771fb6a r24717: Some more easy bool conversions, update TODO for registry 2007-10-10 15:02:55 -05:00
Jelmer Vernooij
1ce32673d9 r24712: No longer expose the 'BOOL' data type in any interfaces. 2007-10-10 15:02:54 -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
aa98d21957 r24704: Fix bug in the registry patch code.. all the more proves this code needs tests. 2007-10-10 15:02:51 -05:00
Jelmer Vernooij
67ad556b73 r24703: Use standard registry diff files when provisioning rather than
LDIF files for the registry files.
2007-10-10 15:02:50 -05:00
Jelmer Vernooij
2585c6feb2 r24688: Make output subunit-parseable. 2007-10-10 15:02:44 -05:00
Jelmer Vernooij
7a7af62dc4 r24684: Be a bit less verbose 2007-10-10 15:02:42 -05:00
Jelmer Vernooij
c87576743b r24683: Add two more tests. 2007-10-10 15:02:41 -05:00
Jelmer Vernooij
a223be56df r24677: Also add built flex file for people that don't have lex. 2007-10-10 15:02:39 -05:00
Jelmer Vernooij
40c1635b39 r24674: Make sure results are always on a new line, fix typo in test name. 2007-10-10 15:02:37 -05:00
Jelmer Vernooij
9296604150 r24673: Put lex/yacc output under version control for hosts that don't have those tools. 2007-10-10 15:02:37 -05:00
Jelmer Vernooij
d3b1acce11 r24672: Add dummy variable to prevent errors on some compilers. 2007-10-10 15:02:36 -05:00
Jelmer Vernooij
e9e6669350 r24668: Fix header installation. 2007-10-10 15:02:35 -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 Tridgell
e2d173fde1 r24645: add in the ctdb dbwrap backend 2007-10-10 15:02:30 -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
Stefan Metzmacher
0216ff6daa 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
2007-10-10 15:02:26 -05:00
Stefan Metzmacher
69bf7f1874 r24620: move printing out the version string and exit()
into the popt _POST processing.

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

metze
2007-10-10 15:02:25 -05:00
Andrew Bartlett
8cfa1f898e r24567: Try much harder not to leak memory when comparing objectCategory entires.
Andrew Bartlett
2007-10-10 15:02:16 -05:00
Andrew Bartlett
2ed782f7ca r24566: Remove trailing newlines in ldb_debug(), these are not required.
Andrew Bartlett
2007-10-10 15:02:16 -05:00
Stefan Metzmacher
f874eca5da r24560: rename some DCERPC_ prefixes into NDR_
metze
2007-10-10 15:02:15 -05:00
Stefan Metzmacher
84651aee81 r24557: rename 'dcerpc_table_' -> 'ndr_table_'
metze
2007-10-10 15:02:15 -05:00
Stefan Metzmacher
4adbebef5d r24551: rename dcerpc_interface_table -> ndr_interface_table
rename dcerpc_interface_list  -> ndr_interface_list

and move them to libndr.h

metze
2007-10-10 15:02:12 -05:00
Andrew Bartlett
fb1e1eebda 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
2007-10-10 15:02:02 -05:00
Stefan Metzmacher
82aad0e42c r24491: base_type() isn't supported anymore and the default for enums
is now uint16...

metze
2007-10-10 15:02:00 -05:00
Andrew Bartlett
b474be9507 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
2007-10-10 15:01:53 -05:00
Jelmer Vernooij
b37d86242d r24350: Remove offsetof() replacement to see if there are actually any
hosts that don't have it.
2007-10-10 15:01:42 -05:00
Jelmer Vernooij
48d1aa4fcf r24337: Make libreplace provide offsetof. 2007-10-10 15:01:39 -05:00
Jelmer Vernooij
f90a698387 r24336: Use standard data type uint32_t rather than tdb-specific u32. 2007-10-10 15:01:39 -05:00
Jelmer Vernooij
18ea767d39 r24335: Fix -N support. 2007-10-10 15:01:39 -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 Tridgell
3767e755db 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.
2007-10-10 15:01:35 -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 Bartlett
c4c3afcdcb r24261: Fix the standalone ldb build after I moved the objectclass module out.
Andrew Bartlett
2007-10-10 15:01:32 -05:00
Andrew Bartlett
0f7135a468 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
2007-10-10 15:01:31 -05:00
Andrew Bartlett
42bcf85620 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
2007-10-10 15:01:29 -05:00
Andrew Bartlett
50913a401d 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
2007-10-10 15:01:29 -05:00
Volker Lendecke
b3473db397 r24054: Fix some warnings 2007-10-10 15:01:20 -05:00
Andrew Bartlett
0fbea30577 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
2007-10-10 15:01:16 -05:00
Michael Adam
b97acdc67b r23980: Fix one more use of pwrite in expand_file.
Michael
2007-10-10 15:01:15 -05:00