diff options
author | Wilco Baan Hofman <wilco@baanhofman.nl> | 2010-05-21 14:41:02 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-06-20 17:19:12 +0200 |
commit | 8f74ee01d9bb93872c5cd5471084c8bd2da0d17f (patch) | |
tree | 569e2f8abfca198cfda97ec0f7ba00a040f06cef /source4/lib/policy | |
parent | c36bd5de6a479b87baeb1632af2304c049079703 (diff) | |
download | samba-8f74ee01d9bb93872c5cd5471084c8bd2da0d17f.tar.gz samba-8f74ee01d9bb93872c5cd5471084c8bd2da0d17f.tar.bz2 samba-8f74ee01d9bb93872c5cd5471084c8bd2da0d17f.zip |
Add ini parser for GPO's.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'source4/lib/policy')
-rw-r--r-- | source4/lib/policy/config.mk | 2 | ||||
-rw-r--r-- | source4/lib/policy/policy.h | 15 | ||||
-rw-r--r-- | source4/lib/policy/wscript_build | 2 |
3 files changed, 17 insertions, 2 deletions
diff --git a/source4/lib/policy/config.mk b/source4/lib/policy/config.mk index 0a3e731c54..bc87644ef7 100644 --- a/source4/lib/policy/config.mk +++ b/source4/lib/policy/config.mk @@ -1,6 +1,6 @@ [SUBSYSTEM::policy] PRIVATE_DEPENDENCIES = LIBLDB LIBSAMBA-NET -policy_OBJ_FILES = $(policydir)/gp_ldap.o $(policydir)/gp_filesys.c $(policydir)/gp_manage.c +policy_OBJ_FILES = $(policydir)/gp_ldap.o $(policydir)/gp_filesys.c $(policydir)/gp_manage.c $(policydir)/gp_ini.c PC_FILES += $(policydir)/policy.pc diff --git a/source4/lib/policy/policy.h b/source4/lib/policy/policy.h index 86ab33ee7d..d55cb30abd 100644 --- a/source4/lib/policy/policy.h +++ b/source4/lib/policy/policy.h @@ -61,6 +61,21 @@ struct gp_link { const char *dn; }; +struct gp_ini_param { + char *name; + char *value; +}; + +struct gp_ini_section { + char *name; + uint16_t num_params; + struct gp_ini_param *params; +}; + +struct gp_ini_context { + uint16_t num_sections; + struct gp_ini_section *sections; +}; NTSTATUS gp_init(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx, diff --git a/source4/lib/policy/wscript_build b/source4/lib/policy/wscript_build index fb34c14c34..0892353d88 100644 --- a/source4/lib/policy/wscript_build +++ b/source4/lib/policy/wscript_build @@ -1,7 +1,7 @@ #!/usr/bin/env python bld.SAMBA_LIBRARY('policy', - source='gp_ldap.c gp_filesys.c gp_manage.c', + source='gp_ldap.c gp_filesys.c gp_manage.c gp_ini.c', pc_files='policy.pc', public_deps='LIBLDB LIBSAMBA-NET', public_headers='policy.h', |