summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-04-04 12:25:19 +1100
committerAndrew Bartlett <abartlet@samba.org>2008-04-04 12:25:19 +1100
commitc764791100079ed447c07ca6b99d33f9695255c3 (patch)
tree51d0c05d75b6f08be3f32ea97c2135d058974b74 /source4/dsdb/samdb
parentc26387a473fd26ac51c74c001b520d7fd7d353ec (diff)
downloadsamba-c764791100079ed447c07ca6b99d33f9695255c3.tar.gz
samba-c764791100079ed447c07ca6b99d33f9695255c3.tar.bz2
samba-c764791100079ed447c07ca6b99d33f9695255c3.zip
Clean up provision and rootdse module to hard-code less stuff.
In particular, allow for the server DN to be in a different site (possible outcome of a DRS replication). Andrew Bartlett (This used to be commit 9ee4e39fe178317f42fd9a0adceea24b55dfe0f1)
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/rootdse.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/rootdse.c b/source4/dsdb/samdb/ldb_modules/rootdse.c
index 3235b24ef9..50f333d095 100644
--- a/source4/dsdb/samdb/ldb_modules/rootdse.c
+++ b/source4/dsdb/samdb/ldb_modules/rootdse.c
@@ -26,6 +26,7 @@
#include "lib/ldb/include/ldb_private.h"
#include "system/time.h"
#include "dsdb/samdb/samdb.h"
+#include "version.h"
struct private_data {
int num_controls;
@@ -202,6 +203,13 @@ static int rootdse_add_dynamic(struct ldb_module *module, struct ldb_message *ms
}
}
+ if (schema && do_attribute_explicit(attrs, "vendorVersion")) {
+ if (ldb_msg_add_fmt(msg, "vendorVersion",
+ "%s", SAMBA_VERSION_STRING) != 0) {
+ goto failed;
+ }
+ }
+
/* TODO: lots more dynamic attributes should be added here */
return LDB_SUCCESS;