mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
91bb4893c4
w2k8r2 returns the local DC information on no inputs for getDcNameEx2. This is needed for starting dsa.msc (ADUC) on Win7. CDLAP on the same call returns an error. This uses a parameter fill_on_blank_request to distinguish the two cases.
50 lines
1.8 KiB
C
50 lines
1.8 KiB
C
/*
|
|
Unix SMB/CIFS implementation.
|
|
|
|
CLDAP server structures
|
|
|
|
Copyright (C) Andrew Tridgell 2005
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#include "libcli/cldap/cldap.h"
|
|
|
|
/*
|
|
top level context structure for the cldap server
|
|
*/
|
|
struct cldapd_server {
|
|
struct task_server *task;
|
|
struct ldb_context *samctx;
|
|
};
|
|
|
|
struct ldap_SearchRequest;
|
|
|
|
/* used by netlogon DCE/RPC server */
|
|
NTSTATUS fill_netlogon_samlogon_response(struct ldb_context *sam_ctx,
|
|
TALLOC_CTX *mem_ctx,
|
|
const char *domain,
|
|
const char *netbios_domain,
|
|
struct dom_sid *domain_sid,
|
|
const char *domain_guid,
|
|
const char *user,
|
|
uint32_t acct_control,
|
|
const char *src_address,
|
|
uint32_t version,
|
|
struct loadparm_context *lp_ctx,
|
|
struct netlogon_samlogon_response *netlogon,
|
|
bool fill_on_blank_request);
|
|
|
|
#include "cldap_server/proto.h"
|