Michael Adam
cda2db5edf
s3:registry: fix some trailing spaces in reg_backend_db
...
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Tue Oct 12 14:15:42 UTC 2010 on sn-devel-104
2010-10-12 14:15:42 +00:00
Andrew Bartlett
f768b32e37
libcli/security Provide a common, top level libcli/security/security.h
...
This will reduce the noise from merges of the rest of the
libcli/security code, without this commit changing what code
is actually used.
This includes (along with other security headers) dom_sid.h and
security_token.h
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Oct 12 05:54:10 UTC 2010 on sn-devel-104
2010-10-12 05:54:10 +00:00
Günther Deschner
caeb819861
s3-reg_parse: fix uninitialized variable in srprs_key().
...
Guenther
2010-10-05 13:09:05 +00:00
Gregor Beck
f4f5ad9774
s3:registry: proposed aix build fix for reg_parse_internal
...
Signed-off-by: Michael Adam <obnox@samba.org>
2010-09-27 11:36:49 +02:00
Volker Lendecke
a0d3ffbf92
s3: Fix some 64-bit warnings
2010-09-25 15:01:29 -07:00
Volker Lendecke
e81db37a87
s3: Fix bug 7470
...
S_IREAD and S_IWRITE are not standard.
Thanks to Joachim Schmitz <schmitz@hp.com> for reporting!
2010-09-25 10:59:15 -07:00
Michael Adam
c3f5d99065
s3:registry: try to fix the build of reg_parse_internal on HP-UX
...
The HP compiler does not seem to like {} for char[4].
2010-09-23 18:49:30 +02:00
Günther Deschner
fe4576dff0
s3-registry: fix some c++ build warnings.
...
Guenther
2010-09-22 12:57:34 -07:00
Michael Adam
7a25d13742
s3:registry: remove unneeded TALLOC_CTX argument from reg_deletekey_recursive
2010-09-22 06:30:01 +02:00
Gregor Beck
47313afe97
s3-registry: handle registration entries (.reg) files
...
Signed-off-by: Michael Adam <obnox@samba.org>
2010-09-22 06:30:00 +02:00
Michael Adam
2d67730daf
s3:registry: move regio.h from include/ to registry/
2010-09-21 09:08:33 +02:00
Michael Adam
4f7d41aa3d
s3:registry: move the reg_db.h from include/ to registry/
2010-09-21 08:53:49 +02:00
Michael Adam
a35daebaf1
s3:registry: move prototype from reg_init_smbconf.c to its own header.
2010-09-21 08:52:06 +02:00
Michael Adam
d25b2adf34
s3:registry: move prototype from reg_init_full.c to its own header.
2010-09-21 08:52:06 +02:00
Michael Adam
0bd2756b97
s3:registry: move prototypes from reg_init_basic.c to their own header.
2010-09-21 08:52:06 +02:00
Michael Adam
4696cd6cbe
s3:registry: move reg_api_regf prototypes to their own header file.
...
These two calls are currently only used in the WINREG rpc server.
And this reqires linking in the regfio code.
2010-09-21 08:52:06 +02:00
Michael Adam
b11cc30508
s3:registry: move the reg_api prototypes to their own header.
2010-09-21 08:52:06 +02:00
Michael Adam
e4eda5f9bc
s3:registry:reg_api: update (C)
2010-09-21 08:52:05 +02:00
Michael Adam
08cf13a3df
s3:registry: remove now (finally) obsolete reg_util_registry.{c,h}
2010-09-21 06:53:33 +02:00
Michael Adam
2c9cb11f53
s3:registry: move prototypes of unused hilvl functions to ret_api_util.h and comment them out
2010-09-20 19:58:01 +02:00
Michael Adam
8eb487caba
s3:registry: move (commented out) hilvl util functions to reg_api_util.c
2010-09-20 19:58:01 +02:00
Michael Adam
0f7e503d21
s3:registry: move higher level function reg_open_path to new module reg_api_util
...
The reg_api.c code should just export functions that direclty relate to winreg
api calls.
2010-09-20 19:58:01 +02:00
Günther Deschner
91e8f8ded2
s3-registry: move regf based reg_api calls into own file.
...
Guenther
2010-09-20 02:27:41 +02:00
Günther Deschner
323f729df0
s3-registry: add reg_querymultiplevalues to reg_api matching table.
...
Guenther
2010-09-20 02:27:41 +02:00
Andrew Bartlett
3bb77516b8
s3-privs Convert from user_has_privileges() -> security_token_has_privilege()
...
This new call is available in the merged privileges code, and
takes an enum as the parameter, rather than a bitmask.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-11 18:46:09 +10:00
Andrew Bartlett
2387e3bcfe
s3-privs Call security_token_set_privilege() rather than manual assignment
...
This avoids as much direct modifiction of the bitmask as possible.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-11 18:46:09 +10:00
Andrew Bartlett
d1bb21b0d5
s3:auth Remove NT_USER_TOKEN
...
The all UPPER case typedef is no longer the preferred Samba style
and this makes it easier to see that this is the IDL-derivied structure
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-11 18:46:06 +10:00
Andrew Bartlett
4bfc8d3b1a
s3-auth Change struct nt_user_token -> struct security_token
...
This common structure is defined in security.idl
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-11 18:46:05 +10:00
Andrew Bartlett
eee63b7e75
s3-auth Rename NT_USER_TOKEN privileges -> privilege_mask
...
This is closer to the struct security_token from security.idl
Andrew Bartlett
2010-08-31 11:25:41 +10:00
Andrew Bartlett
8c15cf54ae
s3-auth Rename NT_USER_TOKEN user_sids -> sids
...
This is closer to the struct security_token from security.idl
2010-08-31 10:20:14 +10:00
Günther Deschner
7a05ca2c9c
s3-build: use dbwrap.h only where needed.
...
Guenther
2010-08-26 00:25:55 +02:00
Günther Deschner
7b6fc9f414
s3-dcerpc: only include rpc_dce.h where needed.
...
Guenther
2010-08-26 00:20:29 +02:00
Günther Deschner
813fbbd68c
s3-build: avoid to globally include printing and spoolss headers.
...
This shrinks precompiled headers by 3MB and will slightly speed up any build.
Guenther
2010-07-31 00:50:31 +02:00
Andreas Schneider
96c25cdad5
s3-spoolss: Create winprint print processor key.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:14 -04:00
Andreas Schneider
71be0ec140
s3-registry: Redirect KEY_CONTROL_PRINTERS to KEY_WINNT_PRINTERS.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:06 -04:00
Andreas Schneider
65eb38bc00
s3-registry: Init all needed registry keys for printing.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:06 -04:00
Günther Deschner
914fd13edd
s3-registry: use some prs macros to the only place where they are used.
...
Guenther
2010-07-16 02:20:34 +02:00
Simo Sorce
f4c6c7e7b8
Move the remnants of rpc_parse code under registry/
...
The registry code is the only last user of this code.
Move everything under registry/ and hope someone will get rid od
it completely from there in the future.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16 01:51:18 +02:00
Simo Sorce
67b6fe3dc3
s3-misc: Move smb_io_time() to regfio.c
...
This is the last file using this function and we do not want anyone
else to keep using hand marshalled stuff anyway.
So make it also private to that file.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16 01:51:18 +02:00
Günther Deschner
d9429a874c
s3-registry: remove 2 byte winreg type limitation.
...
We already pull and push 4 byte winreg type in the registry.tdb, we were just
not using full 4 bytes within the reg_object functions.
With this change we finally pass the set extended value torture test.
Guenther
2010-07-02 10:50:22 +02:00
Günther Deschner
ddb8fae401
s3-registry: allow to read NULL entries (that we allow to store) back from the tdb.
...
Guenther
2010-07-02 10:50:21 +02:00
Günther Deschner
786198e523
s3-registry: remove unused reg_util_marshalling code.
...
Guenther
2010-07-02 10:50:21 +02:00
Günther Deschner
b381fba089
s3-registry: avoid using registry_value union.
...
Just pull and push data as is.
Guenther
2010-07-02 10:50:21 +02:00
Günther Deschner
74721bf706
s3-registry: fix malloc/talloc mismatch upon free in reg_enumvalue().
...
Guenther
2010-07-01 01:22:11 +02:00
Günther Deschner
21869f5ed0
s3-registry: add reg_querymultiplevalues() to reg_api.
...
Guenther
2010-06-30 21:46:08 +02:00
Günther Deschner
158504381e
s3-registry: missed one perflib keyname delimiter.
...
Guenther
2010-06-28 14:18:04 +02:00
Günther Deschner
658048ecbc
s3-registry: fix printing keyname delimiter.
...
Guenther
2010-06-28 13:16:31 +02:00
Günther Deschner
3d24040ac6
s3-registry: fix perfmon keyname delimiter.
...
Guenther
2010-06-28 13:16:31 +02:00
Andreas Schneider
378cd5dc38
s3-registry: Fixed keyname delimiter in KEY_CURRENT_VERSION_NORM.
2010-06-28 12:56:13 +02:00
Michael Adam
6d973607c3
s3:registry: use regdb_store_regdb_version() in regdb_init().
2010-06-25 18:13:06 +02:00