1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-09 20:23:51 +03:00
Commit Graph

140 Commits

Author SHA1 Message Date
Andrew Tridgell
826baec7b3 r5307: removed db_wrap.h from includes.h 2007-10-10 13:09:40 -05:00
Andrew Tridgell
b4993c738b r5303: fixed build of gconf registry backend 2007-10-10 13:09:39 -05:00
Andrew Tridgell
9db6c79e90 r5298: - got rid of pstring.h from includes.h. This at least makes it a bit
less likely that anyone will use pstring for new code

 - got rid of winbind_client.h from includes.h. This one triggered a
   huge change, as winbind_client.h was including system/filesys.h and
   defining the old uint32 and uint16 types, as well as its own
   pstring and fstring.
2007-10-10 13:09:38 -05:00
Jelmer Vernooij
f2e6d71584 r5240: Don't return WERR_OK when no values were found (reported by Matt Cobb) 2007-10-10 13:09:33 -05:00
Stefan Metzmacher
6bb07a0ed8 r5134: - fix types to always use _t types
- add #include "system/filesys.h" where needed

metze
2007-10-10 13:09:25 -05:00
Andrew Tridgell
ec32b22ed5 r5037: got rid of all of the TALLOC_DEPRECATED stuff. My apologies for the
large commit. I thought this was worthwhile to get done for
consistency.
2007-10-10 13:09:15 -05:00
Jelmer Vernooij
da3c7712d2 r4623: Convert values from UTF8 to UTF16 in gconf registry backend (caught
by Andrew Bartlett)
2007-10-10 13:08:35 -05:00
Andrew Tridgell
6e7754abd0 r4591: - converted the other _p talloc functions to not need _p
- added #if TALLOC_DEPRECATED around the _p functions

- fixes the code that broke from the above

while doing this I fixed quite a number of places that were
incorrectly using the non type-safe talloc functions to use the type
safe ones. Some were even doing multiplies for array allocation, which
is potentially unsafe.
2007-10-10 13:08:30 -05:00
Andrew Tridgell
89b74b5354 r4549: got rid of a lot more uses of plain talloc(), instead using
talloc_size() or talloc_array_p() where appropriate.

also fixed a memory leak in pvfs_copy_file() (failed to free a memory
context)
2007-10-10 13:08:25 -05:00
Andrew Tridgell
cf73dda652 r4479: added the function talloc_autofree_context() which returns a talloc context that
will automatically be freed on program exit. This is useful for reducing
clutter in leak reports
2007-10-10 13:08:10 -05:00
Andrew Tridgell
1a4713bfd0 r4475: fixed smbd to work with the small changes in the ldb API (the most important
change was in the ldb_msg_add_*() routines, which now use the msg as a context,
and thus it needs to be a talloc ptr)
2007-10-10 13:07:55 -05:00
Jelmer Vernooij
2948b9750d r4390: Registry value and key names are case-insensitive
Nicer menu layout in gregedit
2007-10-10 13:07:42 -05:00
Jelmer Vernooij
cdb6980cdc r4373: Support setting values and fix a segfault 2007-10-10 13:07:39 -05:00
Jelmer Vernooij
ada16f31e4 r4371: Add "Create Key", "Delete Key" and "Delete Value" buttons.
gregedit now can do the same things as regedt32 except for finding
data and setting values. (and a few segfaults...)
2007-10-10 13:07:39 -05:00
Jelmer Vernooij
6eafd055d1 r4299: Store REG_SZ, REG_EXPAND_SZ and REG_DWORD values in human-readable (and human-editable) format in
the ldb registry backend.
2007-10-10 13:07:32 -05:00
Jelmer Vernooij
ceb4e92735 r4298: Update to credentials.h after feedback from Andrew Bartlett
Move pack/unpack of values in ldb registry backend to seperate functions
2007-10-10 13:07:32 -05:00
Jelmer Vernooij
9fa25260d3 r4213: Store REG_SZ in UTF16, not the unix charset..
It is now possible to use the "Add..." button in the Security
tab of the File Properties Dialog box.
2007-10-10 13:07:27 -05:00
Jelmer Vernooij
f3e0578280 r4209: Fix several smaller bugs
Add "predef" and "set" commands in regshell

Some of the remote calls from a Windows box work now.
2007-10-10 13:07:27 -05:00
Jelmer Vernooij
8e2aa58abe r4204: Arguments to reg_del_key more like the RPC for more efficient usage
Fix small bug in regpatch
Fix segfault in regshell cmdline completion
Implement set_value and del_value in ldb backend
2007-10-10 13:07:26 -05:00
Jelmer Vernooij
ad8d9e6f73 r4167: Fix CreateKey
Support CreateKey in the RPC registry backend
2007-10-10 13:07:21 -05:00
Jelmer Vernooij
f6b9ec89af r4166: More small API fixes, keep registry structs as small as possible.
Implement DelValue in the RPC server
2007-10-10 13:07:21 -05:00
Jelmer Vernooij
c37d6f3c58 r4155: More destinction between hives and predefined keys 2007-10-10 13:07:20 -05:00
Jelmer Vernooij
217e4e5841 r4154: Add definitions for HKEY_PERFORMANCE_TEXT and HKEY_PERFORMANCE_NLSTEXT
Hives and predefined keys (HKEY_*) are not necessarily the same thing.
2007-10-10 13:07:19 -05:00
Jelmer Vernooij
5f64a60374 r4141: Fix crash bug in ldb backend 2007-10-10 13:06:30 -05:00
Jelmer Vernooij
bcbfce7b01 r4140: Get rid of close_hive (replace it with talloc destructors). 2007-10-10 13:06:30 -05:00
Jelmer Vernooij
ddf7a331c5 r4137: Make *_open_key take a registry_key instead of a hive (more efficient
in some cases)
2007-10-10 13:06:30 -05:00
Andrew Tridgell
4b45d3d2e8 r4135: improve a debug message 2007-10-10 13:06:29 -05:00
Jelmer Vernooij
1e12971137 r4133: Cache results of subkey and value queries 2007-10-10 13:06:29 -05:00
Jelmer Vernooij
c169e86c1f r4132: - Bunch of rather large fixes in the registry
- Added some README files

Not everything works yet, e.g. the EnumValue test appears to be broken.
2007-10-10 13:06:29 -05:00
Andrew Tridgell
2b67f18bdb r4116: fixed compilation of EnumValue code in winreg rpc backend
thanks to volker for pointing this out
2007-10-10 13:06:28 -05:00
Jelmer Vernooij
c1023db5e8 r4106: Add full name of two more hives 2007-10-10 13:06:27 -05:00
Stefan Metzmacher
4b3f552cb3 r4064: use the same name for type on both ends
for long term we should remove all typedef's

metze
2007-10-10 13:06:21 -05:00
Andrew Tridgell
1235afa5fe r4058: added a type safe version of smb_xmalloc() 2007-10-10 13:06:20 -05:00
Andrew Tridgell
eec698254f r4055: fixed more places to use type safe allocation macros 2007-10-10 13:06:20 -05:00
Andrew Tridgell
0928b1f5b6 r4037: fixed a bunch of "might be uninitialised" warnings after enabling -O1 in my compile 2007-10-10 13:06:16 -05:00
Andrew Tridgell
17a4e0b3ac r4035: more effort on consistent naming of the access mask bits.
This removes the duplicate named SEC_RIGHTS_MAXIMUM_ALLOWED and
SEC_RIGHTS_FULL_CONTROL, which are just other names for
SEC_FLAG_MAXIMUM_ALLOWED and SEC_RIGHTS_FILE_ALL. The latter names
match the new naming conventions in security.idl

Also added names for the generic->specific mappings for files are
directories
2007-10-10 13:06:16 -05:00
Jelmer Vernooij
16d905f6b0 r3881: Split up the LIBNDR_GEN subsystem into NDR_* and RPC_NDR_* subsystems.
This reduces the total size of the samba binaries from 119 Mb to 73 Mb.
Next step will be to have the build system obtain some of this information
by itself, so that we don't have to write ~10 lines per interface manually.
2007-10-10 13:06:01 -05:00
Stefan Metzmacher
f5ee40d6ce r3783: - don't use make proto for ldb anymore
- split ldh.h out of samba's includes.h

- make ldb_context and ldb_module private to the subsystem

- use ltdb_ prefix for all ldb_tdb functions

metze
2007-10-10 13:05:52 -05:00
Jelmer Vernooij
0d7bb2c40b r3737: - Get rid of the register_subsystem() and register_backend() functions.
- Re-disable tdbtool (it was building fine on my Debian box but other
					machines were having problems)
2007-10-10 13:05:48 -05:00
Jelmer Vernooij
3add9e7de5 r3734: Fix some incorrect dependencies 2007-10-10 13:05:47 -05:00
Jelmer Vernooij
64826da834 r3733: More build system fixes/features:
- Use .mk files directly (no need for a SMB_*_MK() macro when adding a new SUBSYSTEM, MODULE or BINARY). This allows addition of new modules and subsystems without running configure
 - Add support for generating .dot files with the Samba4 dependency tree (as used by the graphviz and springgraph utilities)
2007-10-10 13:05:47 -05:00
Jelmer Vernooij
cbe819a755 r3730: More build system fixes and simplifications
the hierarchy in the init functions is correct now
will also make it easier to implement some other features
2007-10-10 13:05:47 -05:00
Jelmer Vernooij
7a8244761b r3586: Fix some of the issues with the module init functions.
Both subsystems and modules can now have init functions, which can be
specified in .mk files (INIT_FUNCTION = ...)

The build system will define :
 - SUBSYSTEM_init_static_modules that calls the init functions of all statically compiled modules. Failing to load will generate an error which is not fatal
 - BINARY_init_subsystems that calls the init functions (if defined) for the subsystems the binary depends on

This removes the hack with the "static bool Initialised = " and the
"lazy_init" functions
2007-10-10 13:05:36 -05:00
Andrew Tridgell
51c1c2af68 r3546: including includes.h twice causes gcc 3.4 to crash with pch 2007-10-10 13:05:30 -05:00
Andrew Tridgell
321fb06a62 r3543: fixed some #include lines to make them more consistent, and fixed
conditional compilation of xattr client code
2007-10-10 13:05:30 -05:00
Andrew Tridgell
558de54ec6 r3494: got rid of include/rewrite.h, and split out the dynconfig.h header 2007-10-10 13:05:22 -05:00
Andrew Tridgell
d8a4af5282 r3472: fixed build of reg_backend_gconf 2007-10-10 13:05:18 -05:00
Andrew Tridgell
70d2090f6b r3464: split out registry.h, rap.h and ldap_server.h 2007-10-10 13:05:17 -05:00
Andrew Tridgell
b97e395c81 r3463: separated out some more headers (asn_1.h, messages.h, dlinklist.h and ioctl.h) 2007-10-10 13:05:17 -05:00
Andrew Tridgell
7b7477ac42 r3453: - split out the auth and popt includes
- tidied up some of the system includes

- moved a few more structures back from misc.idl to netlogon.idl and samr.idl now that pidl
  knows about inter-IDL dependencies
2007-10-10 13:05:13 -05:00