Add "registry" Group Policy extension.
[sfrench/samba-autobuild/.git] / source / libgpo / gpo_util.c
index bc6c35726c2a9b1db68ace0bb63e5a4b52af3b2f..79f2690245e49cdf60b1067920f9e62dfd7d5dec 100644 (file)
@@ -668,6 +668,18 @@ NTSTATUS check_refresh_gpo_list(ADS_STRUCT *ads,
 /****************************************************************
 ****************************************************************/
 
+NTSTATUS gpo_get_unix_path(TALLOC_CTX *mem_ctx,
+                          struct GROUP_POLICY_OBJECT *gpo,
+                          char **unix_path)
+{
+       char *server, *share, *nt_path;
+       return gpo_explode_filesyspath(mem_ctx, gpo->file_sys_path,
+                                      &server, &share, &nt_path, unix_path);
+}
+
+/****************************************************************
+****************************************************************/
+
 char *gpo_flag_str(uint32_t flags)
 {
        fstring str = "";