1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

s4:rootdse LDB module - introduce dynamic "dnsHostName" attribute

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Matthias Dieter Wallnöfer 2010-09-18 20:50:25 +02:00 committed by Andrew Bartlett
parent 5f60f5e5e7
commit 681106af4f

View File

@ -198,6 +198,14 @@ static int rootdse_add_dynamic(struct ldb_module *module, struct ldb_message *ms
}
}
if (do_attribute(attrs, "dnsHostName")) {
if (ldb_msg_add_string(msg, "dnsHostName",
samdb_search_string(ldb, msg, samdb_server_dn(ldb, msg),
"dNSHostName", NULL)) != LDB_SUCCESS) {
goto failed;
}
}
if (do_attribute(attrs, "currentTime")) {
if (ldb_msg_add_steal_string(msg, "currentTime",
ldb_timestring(msg, time(NULL))) != LDB_SUCCESS) {