1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-21 12:23:50 +03:00
Commit Graph

193 Commits

Author SHA1 Message Date
Jelmer Vernooij
fbbfad0a1f r10456: More SCons fixes:
- Add framework for fallback generating code
 - Move pread / pwrite replacement functions to libreplace
 - Support pidl builds correctly
 - Support asn1 builds correctly
 - Move OS-specific checks to lib/replace/SConscript
2007-10-10 13:38:48 -05:00
Jelmer Vernooij
22f18a8424 r10366: More scons fixes. Building et, asn1, lex and yacc files sort-of works now 2007-10-10 13:38:32 -05:00
Jelmer Vernooij
4f0d7f75b9 r10348: Add scons scripts for remaining subsystems. Most subsystems build now,
but final linking still fails (as does generating files asn1, et, idl and proto
files)
2007-10-10 13:38:30 -05:00
Tim Potter
540a3649e8 r10328: Add more emacs python-mode markers. 2007-10-10 13:38:28 -05:00
Jelmer Vernooij
829568d759 r10323: Add first bits required for getting compile with scons working. This does
not work yet and can exist parallel with the existing build system.
2007-10-10 13:38:25 -05:00
Jelmer Vernooij
6f9956a1dd r10294: Generate Makefile directly rather then thru Makefile.in. Autoconf
substitution variables are now no longer used.

This is one more step towards a (hopefully) perl-based configure
2007-10-10 13:38:14 -05:00
Jelmer Vernooij
b1ad340b47 r10207: Add some const 2007-10-10 13:38:08 -05:00
Jelmer Vernooij
d8a31d3048 r10111: Make pidl by default assume the input file is an IDL file rather
then a .pidl file.
2007-10-10 13:38:00 -05:00
Tim Potter
05c0201815 r10104: Fix code before declaration. 2007-10-10 13:37:59 -05:00
Rafal Szczesniak
d6936185d5 r10089: Fix a typo breaking the Makefile generator and therefore - the build.
rafal
2007-10-10 13:37:52 -05:00
Jelmer Vernooij
9c9ebd2214 r10074: Pass CPP to pidl via environment variables rather then config.pm. This fixes the
standalone pidl build (as used for ethereal)
2007-10-10 13:37:50 -05:00
Jelmer Vernooij
d99c9e2817 r10052: Add 'print' command 2007-10-10 13:36:33 -05:00
Jelmer Vernooij
de98309797 r10043: Only recompile subsystems that actually need recompilation 2007-10-10 13:36:32 -05:00
Jelmer Vernooij
0e358de93a r10030: Add hierarchical memory allocation to TDR's pull functions 2007-10-10 13:36:31 -05:00
Jelmer Vernooij
499d03bc90 r10028: More registry fixes.
Remove save_hive() function (there is a flush_key function already).
Fixes for the allocation mechanism in the REGF backend
2007-10-10 13:36:31 -05:00
Jelmer Vernooij
47cecd4726 r10026: Move registry header file to lib/registry
Add support for showing security descriptor in regshell
Add support for saving files in NT4 registry backend
2007-10-10 13:36:30 -05:00
Jelmer Vernooij
bcd433bfc1 r10025: Add some utility functions for storing/loading tdr encoded data 2007-10-10 13:36:30 -05:00
Jelmer Vernooij
ff8d3a27c1 r10020: Support for malloc / realloc / free in HBIN blocks
Initial support for adding keys (still broken though)
2007-10-10 13:36:30 -05:00
Jelmer Vernooij
b349e902c7 r10016: Support reading security descriptors on keys. 2007-10-10 13:36:29 -05:00
Jelmer Vernooij
0ad46ef804 r10015: Change the NT4 registry backend to use the IDL-generate parse functions. 2007-10-10 13:36:29 -05:00
Jelmer Vernooij
709fdc7ebf r10007: Merge data_blk and data_len member of registry_value into a DATA_BLOB.
Fix handling of REG_DWORD in the LDB backend.
Fix a couple of warnings
2007-10-10 13:36:28 -05:00
Jelmer Vernooij
5e1a16eda2 r9995: Add file describing the REGF file format in IDL.
(used in reg_backend_nt4.c rewrite)
2007-10-10 13:36:27 -05:00
Andrew Tridgell
439f34a962 r9567: fixed the winreg IDL for CreateKey, including a security
descriptor. To keep it simple I just use normal IDL buffers for now,
avoiding the complex methods metze used in spoolss. We might change
that later

Also added decoding of the security_descriptor in
winreg_GetKeySecurity() in smbtorture
2007-10-10 13:34:29 -05:00
Andrew Tridgell
fc15e1b003 r9503: removed duplicate REG_* defines from registry.h now that they are
generated in winreg.h
2007-10-10 13:34:23 -05:00
Simo Sorce
692e35b779 r9391: Convert all the code to use struct ldb_dn to ohandle ldap like distinguished names
Provide more functions to handle DNs in this form
2007-10-10 13:33:32 -05:00
Andrew Tridgell
ae2122e76a r9390: fixed mixing of code and data 2007-10-10 13:33:32 -05:00
Andrew Tridgell
136ecf5cb2 r9387: regedit uses "New Key #nn" for newly created keys, which conflicts with the stricter
DN rules in ldb. Escape the DN components to cope.

Simo, sorry for making a change in ldb_dn.c while you have changes
pending. Please feel free to revert these and switch reg_backend_ldb.c
to use the new dn construction code.
2007-10-10 13:33:31 -05:00
Andrew Tridgell
ae42976590 r9386: OpenKey with a bad name must return WERR_BADFILE (w2k3 regedit relies on this) 2007-10-10 13:33:31 -05:00
Tim Potter
2cebdd5938 r9381: Line wrapping. 2007-10-10 13:33:30 -05:00
Andrew Tridgell
899bf07908 r9378: initialise the last_mod attribute in the ldb backend. Better to return
0 than an uninitialised value, but we should put proper last_modified
time support into the ldb winreg backend in the future
2007-10-10 13:33:30 -05:00
Tim Potter
8d376d56c7 r9357: Remove DBGC_CLASS cruft copied over from Samba 3. I would like to
replace this with something funkier.
2007-10-10 13:33:27 -05:00
Andrew Tridgell
8354b01612 r9338: fixed the winreg IDL to be correct for the EnumKey and EnumValue
calls. The previous IDL was just a workaround for the limitations of
our older rpc infrastructure. Now that Jelmer has added much improved
string support using the charset keyword we can correctly implemenent
the unusual winreg string buffers.

Jelmer, note the little comment I put on winreg_StringBuf() about why
I couldn't use [value()] for the length field.

This also fixes EnumKey() and EnumValue() to use NTTIME fields for the
last_changed_time. I don't know why we were using a pair of uint32's,
as it is just a NTTIME.
2007-10-10 13:33:25 -05:00
Andrew Tridgell
8c3f57f791 r9209: - fixed the ldb registry backend to work with the new provision ldif
- default to ldb backend if none specified
2007-10-10 13:31:31 -05:00
Jelmer Vernooij
ce0935112b r8966: Simplify the makefile generation system a bit.
Autogenerate list of binaries (rather then having them hardcoded in build/smb_build/makefile.pm)
Add INSTALLDIR keyword to .mk files
2007-10-10 13:31:00 -05:00
Andrew Tridgell
a58ea6b385 r8520: fixed a pile of warnings from the build farm gcc -Wall output on
S390. This is an attempt to avoid the panic we're seeing in the
automatic builds.

The main fixes are:

 - assumptions that sizeof(size_t) == sizeof(int), mostly in printf formats

 - use of NULL format statements to perform dn searches.

 - assumption that sizeof() returns an int
2007-10-10 13:29:34 -05:00
Tim Potter
407d962dac r8171: According to Samba 3 and Ethereal, the winreg_OpenUnkown stuff is
actually a uint16 * without the [string] attribute, a la the the
system_name argument to samr_Connect().

Initialising the pointer to NULL is sufficient and we still pass the
RPC-WINREG test against win2k3.
2007-10-10 13:19:16 -05:00
Jelmer Vernooij
fd3f463643 r7943: Add 'make manpages', fix 'make installman' and 'make uninstallman'.
Not part of the "all" make target yet, as it requires xsltproc
2007-10-10 13:18:53 -05:00
Andrew Tridgell
3a3025485b r7633: this patch started as an attempt to make the dcerpc code use a given
event_context for the socket_connect() call, so that when things that
use dcerpc are running alongside anything else it doesn't block the
whole process during a connect.

Then of course I needed to change any code that created a dcerpc
connection (such as the auth code) to also take an event context, and
anything that called that and so on .... thus the size of the patch.

There were 3 places where I punted:

  - abartlet wanted me to add a gensec_set_event_context() call
    instead of adding it to the gensec init calls. Andrew, my
    apologies for not doing this. I didn't do it as adding a new
    parameter allowed me to catch all the callers with the
    compiler. Now that its done, we could go back and use
    gensec_set_event_context()

  - the ejs code calls auth initialisation, which means it should pass
    in the event context from the web server. I punted on that. Needs fixing.

  - I used a NULL event context in dcom_get_pipe(). This is equivalent
    to what we did already, but should be fixed to use a callers event
    context. Jelmer, can you think of a clean way to do that?

I also cleaned up a couple of things:

 - libnet_context_destroy() makes no sense. I removed it.

 - removed some unused vars in various places
2007-10-10 13:18:15 -05:00
Andrew Bartlett
50f3c2b3a2 r7525: Unify lp_load(), load_interfaces and logging setup into popt().
There is now a new --debug-stderr option to enable debug to STDERR.

popt isn't perfect, but the callbacks are used in all the main Samba
binaries, and should be used in the rest.  This avoids duplicated
code, and ensures every binary is setup correctly.

This also ensures the setup happens early enough to have -s function,
and have a correct impact on the credentials code.  (Fixing a bug that
frustrated tridge earlier today).

The only 'subtle' aspect of all this is that I'm pretty sure that the
SAMBA_COMMON popt code must be above the CREDENTIALS code, in the
popt tables.

Andrew Bartlett
2007-10-10 13:18:06 -05:00
Jelmer Vernooij
6596f619c0 r7373: Disable reg_gconf by default, allow building it with --enable-reg-gconf 2007-10-10 13:17:47 -05:00
Jelmer Vernooij
512536c916 r7248: Remove enum that is causing trouble on AIX 2007-10-10 13:17:31 -05:00
Jelmer Vernooij
f16d346032 r7113: Move manpages from docs repository to source repository 2007-10-10 13:17:18 -05:00
Tim Potter
affacc5398 r6951: Fix all calls to setup_logging() that use 'True' as a second argument.
In Samba4 this is now an enum.  Possibly by accident, True just happens
to map to the right value in this case.  (-:
2007-10-10 13:17:00 -05:00
Jelmer Vernooij
46509eb899 r6795: Make some functions static and remove some unused ones. 2007-10-10 13:16:44 -05:00
Tim Potter
36de31a631 r6520: Fix unused variable warning. 2007-10-10 13:16:21 -05:00
Simo Sorce
4f0948dab0 r6470: Remove ldb_search_free() it is not needed anymore.
Just use talloc_free() to release the memory after an ldb_search().
2007-10-10 13:11:40 -05:00
Jelmer Vernooij
6c3b1ec329 r6045: Couple of small GTK+ fixes
Use uint32_t and uint16_t rather then DWORD and WORD in
the NT4 backend. Add some more unknown fields..
2007-10-10 13:11:16 -05:00
Andrew Bartlett
0453f9d05d r5941: Commit this patch much earlier than I would normally prefer, but metze needs a working tree...
The main volume of this patch was what I started working on today:
 - Cleans up memory handling around DCE/RPC pipes, to have a parent talloc context.
 - Uses sepereate inner loops for some of the DCE/RPC tests

The other and more important part of this patch fixes issues
surrounding the new credentials framwork:

This makes the struct cli_credentials always a talloc() structure,
rather than on the stack.  Parts of the cli_credentials code already
assumed this.

There were other issues, particularly in the DCERPC over SMB handling,
as well as little things that had to be tidied up before test_w2k3.sh
would start to pass.

Andrew Bartlett
2007-10-10 13:11:11 -05:00
Jelmer Vernooij
ccefd78233 r5928: Use cli_credentials in:
- gtk+ (returned by GtkHostBindingDialog as well now)
 - torture/
 - librpc/
 - lib/com/dcom/
2007-10-10 13:11:08 -05:00
Jelmer Vernooij
1d49b57c50 r5917: First step in using the new cli_credentials structure. This patch
puts support for it into popt_common, adds a few utility functions
(in lib/credentials.c) and the callback functions for the command-line
(lib/cmdline/credentials.c). Comments are welcome :-)
2007-10-10 13:11:08 -05:00