summaryrefslogtreecommitdiffstats
path: root/source/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-08-31 04:14:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:39:01 -0500
commit9be4ecf24b6b5dacf4c2891bddb072fa7543753f (patch)
tree4e6af32c9af416f1dcedbb9cbc7575371eb8051d /source/include
parent408267a2d725a0596be37b019fe4513502b2c0ec (diff)
downloadsamba-9be4ecf24b6b5dacf4c2891bddb072fa7543753f.tar.gz
samba-9be4ecf24b6b5dacf4c2891bddb072fa7543753f.tar.xz
samba-9be4ecf24b6b5dacf4c2891bddb072fa7543753f.zip
r17945: Store the server and client sitenames in the ADS
struct so we can see when they match - only create the ugly krb5 hack when they do. Jeremy.
Diffstat (limited to 'source/include')
-rw-r--r--source/include/ads.h2
-rw-r--r--source/include/ads_cldap.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/source/include/ads.h b/source/include/ads.h
index 365ac3e8526..f200df5d22d 100644
--- a/source/include/ads.h
+++ b/source/include/ads.h
@@ -46,6 +46,8 @@ typedef struct {
char *realm;
char *bind_path;
char *ldap_server_name;
+ char *server_site_name;
+ char *client_site_name;
time_t current_time;
} config;
diff --git a/source/include/ads_cldap.h b/source/include/ads_cldap.h
index e5df892a40e..0108363c1b1 100644
--- a/source/include/ads_cldap.h
+++ b/source/include/ads_cldap.h
@@ -43,6 +43,8 @@ struct cldap_netlogon_reply {
uint16 lm20_token;
};
+#define DEFAULT_SITE_NAME "Default-First-Site-Name"
+
/* Mailslot or cldap getdcname response flags */
#define ADS_PDC 0x00000001 /* DC is PDC */
#define ADS_GC 0x00000004 /* DC is a GC of forest */