summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-07-11 13:32:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:28:33 -0500
commitb62ade20d0721c694785fdd2882ea28b129bb0f1 (patch)
tree23f2462637fdcd9b5125da1c5d831f3a95e11b28
parent9d6f8ed5e7ece2a6bf7a9f51c7dc183932539ff5 (diff)
downloadsamba-b62ade20d0721c694785fdd2882ea28b129bb0f1.tar.gz
samba-b62ade20d0721c694785fdd2882ea28b129bb0f1.tar.bz2
samba-b62ade20d0721c694785fdd2882ea28b129bb0f1.zip
r23838: Allow to store schema and config path in ADS_STRUCT config.
Guenther (This used to be commit 1d5b08326fa72bd3423b377a4e6243466e778622)
-rw-r--r--source3/include/ads.h2
-rw-r--r--source3/libads/ads_struct.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/source3/include/ads.h b/source3/include/ads.h
index c01a1055b2..85c87bfeee 100644
--- a/source3/include/ads.h
+++ b/source3/include/ads.h
@@ -58,6 +58,8 @@ typedef struct {
char *client_site_name;
time_t current_time;
int tried_closest_dc;
+ char *schema_path;
+ char *config_path;
} config;
} ADS_STRUCT;
diff --git a/source3/libads/ads_struct.c b/source3/libads/ads_struct.c
index b01e0879ef..c66d4e84e8 100644
--- a/source3/libads/ads_struct.c
+++ b/source3/libads/ads_struct.c
@@ -159,6 +159,8 @@ void ads_destroy(ADS_STRUCT **ads)
SAFE_FREE((*ads)->config.ldap_server_name);
SAFE_FREE((*ads)->config.server_site_name);
SAFE_FREE((*ads)->config.client_site_name);
+ SAFE_FREE((*ads)->config.schema_path);
+ SAFE_FREE((*ads)->config.config_path);
ZERO_STRUCTP(*ads);