1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

106 Commits

Author SHA1 Message Date
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
Michael Adam
d335f292ce s3:registry: extract the reg_backend_db prototypes into their own header.
And use them only where needed.
2010-05-25 10:35:25 +02:00
Andrew Bartlett
cba7f8b827 s3:dom_sid Global replace of DOM_SID with struct dom_sid
This matches the structure that new code is being written to,
and removes one more of the old-style named structures, and
the need to know that is is just an alias for struct dom_sid.

Andrew Bartlett

Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-21 10:39:59 +02:00
Günther Deschner
d4474ba470 s3-secdesc: use SD_REVISION from security.idl.
Guenther
2010-05-18 12:52:18 +02:00
Günther Deschner
8951c8301a s3-secdesc: remove "typedef struct security_acl SEC_ACL".
Guenther
2010-05-18 12:30:12 +02:00
Günther Deschner
a8b01d1f3b s3-secdesc: remove "typedef struct security_ace SEC_ACE".
Guenther
2010-05-18 12:30:11 +02:00
Günther Deschner
fe31b67d5e s3-registry: only include registry headers when really needed.
Guenther
2010-05-18 01:15:38 +02:00
Günther Deschner
3d5972c43f s3-libgpo: move group policy protos to where they belong.
Guenther
2010-05-17 21:07:17 +02:00
Günther Deschner
6864828d9d s3: use shared registry functions.
Guenther
2010-04-27 16:42:15 +02:00
Volker Lendecke
9271dc5f7e Fix Coverity ID 913 (NEGATIVE_RETURNS) -- gd, please check! 2009-05-03 23:06:01 +02:00
Jeremy Allison
8cf78ff553 Get medieval on our ass about SMB1 file descriptors being 16 bits, not an int.
Convert all uses of cli_open(), cli_nt_createXXX to NTSTATUS versions.
This is smaller than it looks, it just fixes a lot of old code.
Next up, ensure all cli_XX functions return NTSTATUS.
Jeremy.
2009-04-30 15:26:43 -07:00
Günther Deschner
6fc40ce0d3 libgpo: fix the build of gpext plugins.
Guenther
2009-04-20 23:38:11 +02:00
Wilco Baan Hofman
171a361375 Fix ini parsing in the s3 gpext modules. Fix ini parser API. Make the build work
Signed-off-by: Günther Deschner <gd@samba.org>
2009-04-20 23:16:17 +02:00
Wilco Baan Hofman
933482e648 Move gpo_ini stuff to the main libgpo. Make gpo_ini use a common parser.
It now makes use of lib/util/param.c to parse ini files.

Signed-off-by: Günther Deschner <gd@samba.org>
2009-04-20 23:16:17 +02:00
Wilco Baan Hofman
c441b7dda8 Add ads convenience functions to samba 4. Move gpo_ldap.c to root libgpo.
Signed-off-by: Günther Deschner <gd@samba.org>
2009-04-20 23:16:16 +02:00
Jelmer Vernooij
7761850b1f Move gpo_fetch to top-level.
Signed-off-by: Günther Deschner <gd@samba.org>
2009-04-20 23:16:16 +02:00
Jelmer Vernooij
d2bd5895cf Move gpo_sec to top-level.
Signed-off-by: Günther Deschner <gd@samba.org>
2009-04-20 23:16:16 +02:00
Jelmer Vernooij
cecd142f2b Move some libgpo files to root.
Signed-off-by: Günther Deschner <gd@samba.org>
2009-04-20 23:15:43 +02:00
Karolin Seeger
a103222e0b s3/gpo_ldap: Fix typo.
Karolin
2009-04-07 20:05:21 +02:00
Andrew Bartlett
2050187673 s3:libads Make ads_get_dn() take a talloc context
Also remove ads_memfree(), which was only ever a wrapper around
SAFE_FREE, used only to free the DN from ads_get_ds().

This actually makes libgpo more consistant, as it mixed a talloc and a
malloc based string on the same element.

Andrew Bartlett

Signed-off-by: Günther Deschner <gd@samba.org>
2009-04-06 15:54:41 +02:00
Tim Prouty
9b0df441e1 s3: Fix incompatible type warnings 2009-03-01 16:40:17 -08:00
Jelmer Vernooij
e6ec32f3ac Eliminate two duplicate SEC_ACE_TYPE constants already provided by
security.idl.
2009-03-01 04:59:07 +01:00
Jeremy Allison
2033b44c3f More warning fixes for Solaris.
Jeremy.
2009-02-23 15:44:34 -08:00
Michael Adam
584da3fea3 s3: put the gpo cache dir under cache_dir instead of lock_dir
Michael
2009-01-16 01:02:25 +01:00
Jeremy Allison
8b4b5c3a92 Add wrapper str_list_make_v3() to replace the old S3 behavior of
str_list_make(). From Dan Sledz <dan.sledz@isilon.com>:
In samba 3.2 passing NULL or an empty string returned NULL.
In master, it now returns a list of length 1 with the first string set
to NULL (an empty list).
Jeremy.
2008-11-06 18:53:00 -08:00
Jelmer Vernooij
ddcab787c4 Rename dos_errstr() to win_errstr() for consistency with Samba 4. 2008-11-01 17:19:26 +01:00
Günther Deschner
3cb281e48f s3-libgpo: fix build for security cse.
Guenther
2008-10-15 11:28:43 +02:00
Günther Deschner
f97d92ccbc s3: fix the build of registry.so gpext.
Guenther
2008-10-13 00:39:37 +02:00
Jelmer Vernooij
1b99d8fbb5 Use common util_file code. 2008-10-12 17:34:43 +02:00
Jeremy Allison
e5692d4cbe Remove SEC_ACCESS. It's a uint32_t.
Jeremy.
2008-10-09 09:49:03 -07:00
Günther Deschner
9c1b5f27e4 libgpo: fix copyright.
Guenther
2008-09-27 00:38:26 +02:00
Günther Deschner
0cb55e74ef libgpo: add security CSE skeleton.
Guenther
2008-09-27 00:36:58 +02:00
Günther Deschner
cd49586b29 libgpo: fix invalid cast in scripts CSE.
Guenther
2008-09-26 23:39:32 +02:00
Michael Adam
8dadf4b949 libgpo: use MODULESDIR instead of LIBDIR for the group policy extensions.
Michael
(This used to be commit 3346dd4083)
2008-08-15 23:19:58 +02:00
Tim Prouty
fb37f15600 Cleanup size_t return values in callers of convert_string_allocate
This patch is the second iteration of an inside-out conversion to cleanup
functions in charcnv.c returning size_t == -1 to indicate failure.
(This used to be commit 6b189dabc5)
2008-05-20 22:40:13 +02:00
Günther Deschner
7ac8fe704a libgpo: try nicer output when dumping gpo registry values.
Guenther
(This used to be commit 2b78842947)
2008-04-17 14:13:13 +02:00
Günther Deschner
91ece4fc1a libgpo: Fallback to NTLMSSP fails while pulling policy from SYSVOL.
Guenther
(This used to be commit 7ed1397e25)
2008-04-17 14:13:13 +02:00
Günther Deschner
e27160183a libgpo: fix build warning.
Thanks metze&vl.

Guenther
(This used to be commit cb3f1df7d8)
2008-04-14 18:21:21 +02:00
Günther Deschner
de013be0b6 gpo: add scripts plugin.
Guenther
(This used to be commit cd6388f040)
2008-04-13 17:52:11 +02:00
Günther Deschner
3cd8c1befa gpo: make integer debug print more readable.
Guenther
(This used to be commit b2cf8010ae)
2008-04-13 17:39:28 +02:00
Michael Adam
3f01e05a77 registry: change registry_init_basic() to return WERROR instead of bool
Michael
(This used to be commit 6a31e659cb)
2008-04-13 15:33:48 +02:00
Björn Jacke
67be6b3af7 fix some extrasemi compile warnings
(This used to be commit cbdb79b7a1)
2008-04-10 08:55:57 +02:00
Volker Lendecke
9c45d49140 Fix Coverity ID 453
(This used to be commit 8f875674e7)
2008-03-23 18:28:23 +01:00
Michael Adam
7290b6a8fc libgpo: open the registry in gp_init_reg_ctx().
I forgot the regdb_open() call: registry_init_basic() closes
the registry in the end... sorry.

Michael
(This used to be commit 4185ed03a3)
2008-03-22 02:45:04 +01:00
Michael Adam
5ea7faef3d libgpo: replace hand-crafted registry initialization by registry_init_basic.
IMO there is no need to imitate a custom registry backend.
Only default regdb hooks are used here, so a plain initialization
of regdb should suffice.

This way, only reg_api is used in libgpo, and no registry
backend code is visible.

Michael
(This used to be commit 10ae8accb4)
2008-03-22 02:29:40 +01:00
Michael Adam
39067a5dbd libgpo: use reg_setkeysecurity() instead of regdb_set_secdesc().
That is, use the reg_api function instead of the backend function.
For this, code had to be changed, to take a "struct registry_key"
instead of a char *.

Michael
(This used to be commit 4717e6d0cf)
2008-03-22 02:29:34 +01:00
Günther Deschner
e8bd75ec73 Bind Group Policy processing closer to the samba registry.
Guenther
(This used to be commit e9c56250eb)
2008-03-18 21:31:24 +01:00
Günther Deschner
2418916460 Fix gp_find_file() which broke during the pstring removal.
Guenther
(This used to be commit f18ba6c877)
2008-03-03 09:44:36 +01:00
Günther Deschner
c5249935d4 Fix the build w/o ldap.
Guenther
(This used to be commit 5f592d030b)
2008-02-29 20:52:35 +01:00
Günther Deschner
72b8392f9c Add gp_get_machine_token().
Guenther
(This used to be commit 2f1bc7ddad)
2008-02-29 18:23:53 +01:00