summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-09-25 00:49:19 +0200
committerStefan Metzmacher <metze@samba.org>2013-10-10 08:35:22 +0200
commit295b4de7215f3326f9a403973547eb6ed4339f9b (patch)
tree3d9f8a4e3f516fa05919ef87523e4ded40044c8e
parentca173923a3937a9ed08f71bfd4ba177a6aeeaeba (diff)
downloadsamba-295b4de7215f3326f9a403973547eb6ed4339f9b.tar.gz
samba-295b4de7215f3326f9a403973547eb6ed4339f9b.tar.bz2
samba-295b4de7215f3326f9a403973547eb6ed4339f9b.zip
s4:dsdb/rootdse: report 'dnsHostName' instead of 'dNSHostName'
The attribute on the RootDSE object is called 'dnsHostName' instead of 'dNSHostName' (which is used in the schema and on all other directory objects). Bug: https://bugzilla.samba.org/show_bug.cgi?id=10193 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--source4/dsdb/samdb/ldb_modules/rootdse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/rootdse.c b/source4/dsdb/samdb/ldb_modules/rootdse.c
index eaf64517d9..167201ec60 100644
--- a/source4/dsdb/samdb/ldb_modules/rootdse.c
+++ b/source4/dsdb/samdb/ldb_modules/rootdse.c
@@ -270,7 +270,7 @@ static int rootdse_add_dynamic(struct ldb_module *module, struct ldb_message *ms
if (ret == LDB_SUCCESS) {
const char *hostname = ldb_msg_find_attr_as_string(res->msgs[0], "dNSHostName", NULL);
if (hostname != NULL) {
- if (ldb_msg_add_string(msg, "dNSHostName", hostname)) {
+ if (ldb_msg_add_string(msg, "dnsHostName", hostname)) {
goto failed;
}
}