b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross * This file and its contents are supplied under the terms of the
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross * Common Development and Distribution License ("CDDL"), version 1.0.
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross * You may only use this file in accordance with the terms of version
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross * 1.0 of the CDDL.
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross * A full copy of the text of the CDDL should have accompanied this
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross * source. A copy of the CDDL is also available via the Internet at
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross * Copyright 2014 Nexenta Systems, Inc. All rights reserved.
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Rossvoid adspriv_program_1(struct svc_req *, register SVCXPRT *);
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross syslog(LOG_ERR, "unable to create door RPC service");
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross if (!svc_control(dcl_xprt, SVCSET_CONNMAXREC, &connmaxrec)) {
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross syslog(LOG_ERR, "unable to limit RPC request size");
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross * Functions called by the (generated) adspriv_srv.c
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross/* ARGSUSED */
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Rossadspriv_null_1_svc(void *result, struct svc_req *rqstp)
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross/* ARGSUSED */
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross /* Ignoring args for now. */
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross/* ARGSUSED */
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross * We normally should wait if discovery is running.
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross * Sort of mis-using the background flag as a way to
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross * skip the wait, until we really do background disc.
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross /* Caller will replace this with DC not found. */
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross if (args.DomainName != NULL && args.DomainName[0] != '\0' &&
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross 0 != strcasecmp(args.DomainName, pgcfg->domain_name)) {
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross * They asked for a specific domain not our primary,
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross * which is not supported (and not needed).
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross res->status = NT_STATUS_DOMAIN_CONTROLLER_NOT_FOUND;
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross ad_disc_getnameinfo(dci->dci_DcAddr, INET6_ADDRSTRLEN,
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross (void) memcpy(dci->dci_guid, uuid, sizeof (uuid));
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross /* Address in binary form too. */
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross/* ARGSUSED */