diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-12-09 15:18:37 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-12-09 18:18:26 +1100 |
commit | 0fca76e5775e46dd69153eee93e92b1937df29b5 (patch) | |
tree | f0e864a26d38b2fdedb69f52a568c642abed9b1b /source4/cldap_server | |
parent | 732c701c52932419e602adfe726dee89d89549d3 (diff) | |
download | samba-0fca76e5775e46dd69153eee93e92b1937df29b5.tar.gz samba-0fca76e5775e46dd69153eee93e92b1937df29b5.tar.bz2 samba-0fca76e5775e46dd69153eee93e92b1937df29b5.zip |
s4-dsdb: added dsdb_functional_level() helper function
Diffstat (limited to 'source4/cldap_server')
-rw-r--r-- | source4/cldap_server/netlogon.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/cldap_server/netlogon.c b/source4/cldap_server/netlogon.c index c565f2fb1a..049b0085b3 100644 --- a/source4/cldap_server/netlogon.c +++ b/source4/cldap_server/netlogon.c @@ -215,10 +215,8 @@ NTSTATUS fill_netlogon_samlogon_response(struct ldb_context *sam_ctx, #endif if (samdb_is_pdc(sam_ctx)) { - int *domainFunctionality; server_type |= DS_SERVER_PDC; - domainFunctionality = talloc_get_type(ldb_get_opaque(sam_ctx, "domainFunctionality"), int); - if (domainFunctionality && *domainFunctionality >= DS_DOMAIN_FUNCTION_2008) { + if (dsdb_functional_level(sam_ctx) >= DS_DOMAIN_FUNCTION_2008) { server_type |= DS_SERVER_FULL_SECRET_DOMAIN_6; } } |