git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a50672b
)
s4-cldap: return domainFunctionality from SAM
author
Andrew Tridgell
<tridge@samba.org>
Mon, 21 Sep 2009 17:41:06 +0000
(10:41 -0700)
committer
Andrew Tridgell
<tridge@samba.org>
Wed, 23 Sep 2009 20:57:59 +0000
(13:57 -0700)
source4/cldap_server/netlogon.c
patch
|
blob
|
history
diff --git
a/source4/cldap_server/netlogon.c
b/source4/cldap_server/netlogon.c
index b1a46c3c3127681bfe2ab135bfafd4812e8e2328..ecc1369dcf99b408bee02a31bb71a3c03358b673 100644
(file)
--- a/
source4/cldap_server/netlogon.c
+++ b/
source4/cldap_server/netlogon.c
@@
-212,7
+212,12
@@
NTSTATUS fill_netlogon_samlogon_response(struct ldb_context *sam_ctx,
DS_DNS_DOMAIN;
if (samdb_is_pdc(sam_ctx)) {
+ int *domainFunctionality;
server_type |= NBT_SERVER_PDC;
+ domainFunctionality = talloc_get_type(ldb_get_opaque(sam_ctx, "domainFunctionality"), int);
+ if (domainFunctionality && *domainFunctionality >= DS_DOMAIN_FUNCTION_2008) {
+ server_type |= NBT_SERVER_FULL_SECRET_DOMAIN_6;
+ }
}
if (samdb_is_gc(sam_ctx)) {