diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-05-03 16:47:03 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-05-03 17:25:02 +0200 |
commit | 8ed5e8ac9db6e68a1cb0acbd59b89b3f4958341d (patch) | |
tree | 3a57d278ed8056c0f2b9741568d84fc133d71e66 /source4 | |
parent | 6d1e8c58350803f2c380a332c13edc4528faa417 (diff) | |
download | samba-8ed5e8ac9db6e68a1cb0acbd59b89b3f4958341d.tar.gz samba-8ed5e8ac9db6e68a1cb0acbd59b89b3f4958341d.tar.bz2 samba-8ed5e8ac9db6e68a1cb0acbd59b89b3f4958341d.zip |
s4:LogonGetDomainInfo - remove singular "dNSHostName" check - this doesn't belong here
I'm not really sure if this check is really done on Windows Server. And if it
is done, then it's on the LDB level (module).
Diffstat (limited to 'source4')
-rw-r--r-- | source4/rpc_server/netlogon/dcerpc_netlogon.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/source4/rpc_server/netlogon/dcerpc_netlogon.c b/source4/rpc_server/netlogon/dcerpc_netlogon.c index b55ad57350..48f8acef55 100644 --- a/source4/rpc_server/netlogon/dcerpc_netlogon.c +++ b/source4/rpc_server/netlogon/dcerpc_netlogon.c @@ -1223,11 +1223,10 @@ static NTSTATUS dcesrv_netr_LogonGetDomainInfo(struct dcesrv_call_state *dce_cal "securityIdentifier", "trustPartner", NULL }; const char * const attrs2[] = { "dNSHostName", "msDS-SupportedEncryptionTypes", NULL }; - const char * const attrs3[] = { NULL }; const char *temp_str, *temp_str2; const char *old_dns_hostname; struct ldb_context *sam_ctx; - struct ldb_message **res0, **res1, **res2, **res3, *new_msg; + struct ldb_message **res1, **res2, **res3, *new_msg; struct ldb_dn *workstation_dn; struct netr_DomainInformation *domain_info; struct netr_LsaPolicyInformation *lsa_policy_info; @@ -1286,23 +1285,6 @@ static NTSTATUS dcesrv_netr_LogonGetDomainInfo(struct dcesrv_call_state *dce_cal update_dns_hostname = false; } - /* - * Check that the DNS hostname when it should be updated - * will be used only by maximum one host. - */ - ret = gendb_search(sam_ctx, mem_ctx, - ldb_get_default_basedn(sam_ctx), - &res0, attrs3, "(dNSHostName=%s)", - r->in.query->workstation_info->dns_hostname); - if (ret < 0) { - return NT_STATUS_INTERNAL_DB_CORRUPTION; - } - if (ret >= 1) { - update_dns_hostname = false; - } - - talloc_free(res0); - /* Prepare the workstation DN */ workstation_dn = ldb_dn_new_fmt(mem_ctx, sam_ctx, "<SID=%s>", dom_sid_string(mem_ctx, creds->sid)); |