summaryrefslogtreecommitdiff
path: root/source4/libgpo
AgeCommit message (Collapse)AuthorFilesLines
2010-06-20Rename libgpo to lib/policy to avoid confusion with samba3 and add waf buildWilco Baan Hofman3-650/+0
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20Add gpo list function for listing applicable GPO's for users/machines.Wilco Baan Hofman2-34/+228
Implements: * Hierarchical listing through all parent containers * security ACL checking on the GPO * User/computer disabled flags on the GPO * gPLink disabled * gPLink enforced * Block inheritance on the container Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20Add gPLink and getgpo functionality to net gpo.Wilco Baan Hofman2-53/+299
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20Created net gpo and new libgpo for samba 4. This adds the init function ↵Wilco Baan Hofman7-668/+210
which finds a DC and connects to its LDAP. It also can return information on all group policy objects on a DC. Aborted earlier attempt at reconciliation with samba 3. Did not work out due to lack of ldb support in samba 3, also the different registry libraries and different libnet did not help.. Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-10-23s4-ldbwrap: added re-use of ldb contexts in ldb_wrap_connect()Andrew Tridgell1-1/+1
This allows us to reuse a ldb context if it is open twice, instead of going through the expensive process of a full ldb open. We can reuse it if all of the parameters are the same. The change relies on callers using talloc_unlink() or free of a parent to close a ldb context.
2009-04-20Move some headers around to avoid confusion.Wilco Baan Hofman1-2/+6
Signed-off-by: Günther Deschner <gd@samba.org>
2009-04-20Move some headers around to avoid confusion.Wilco Baan Hofman1-0/+0
Signed-off-by: Günther Deschner <gd@samba.org>
2009-04-20Make the gpo files build for samba 4.Wilco Baan Hofman4-0/+286
Only gpt.ini remaining. Not suitable for merge yet, samba 3 is currently broken due to some changed public API. Signed-off-by: Günther Deschner <gd@samba.org>
2009-04-20Add nt_token_check_sid convenience function. Map NT_USER_TOKEN to struct ↵Wilco Baan Hofman2-0/+29
security_token. Fix build errors. Signed-off-by: Günther Deschner <gd@samba.org>
2009-04-20Make gpo_ldap.c compatible with samba 4. Add ads_get_ldap_server_name() ↵Wilco Baan Hofman2-20/+60
function to samba 3. Move prototypes to root libgpo where appropriate. gpo_ldap.c now compiles for both samba 3 and 4. Signed-off-by: Günther Deschner <gd@samba.org>
2009-04-20Add ads convenience functions to samba 4. Move gpo_ldap.c to root libgpo.Wilco Baan Hofman2-0/+309
Signed-off-by: Günther Deschner <gd@samba.org>