/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
/*
* Client side for the DSSETUP RPC service.
*/
#include <string.h>
#include <strings.h>
#include <smb/wintypes.h>
#include <smbsrv/libntsvcs.h>
int
{
int opnum;
int rc;
int i = 0;
do {
if (!smb_domain_getinfo(&di))
return (-1);
errno = 0;
NULL, "DSSETUP");
if (rc != 0) {
if (ntsvcs_srv_down(errno)) {
continue;
}
/*
* Retry with authenticated IPC connection if the
* failure is not caused by failed DC or
* network/connection issue.
*/
errno = 0;
if (rc != 0) {
if (ntsvcs_srv_down(errno)) {
continue;
}
return (-1);
}
}
errno = 0;
if (rc == 0)
break;
if (!down_srv)
return (-1);
} while (i++ < SMB_MAX_DC_FAILURES);
if (rc != 0)
return (-1);
return (-1);
}
return (-1);
}
return (0);
}
/*
* DsRoleGetPrimaryDomainInfo doesn't get the domain SID
* but we can use an LSA query to get it.
*/
{
int opnum;
int rc;
else
sid_str[0] = '\0';
if (rc != 0)
return (NT_STATUS_CANT_ACCESS_DOMAIN_INFO);
}
return (NT_STATUS_CANT_ACCESS_DOMAIN_INFO);
}
return (NT_STATUS_CANT_ACCESS_DOMAIN_INFO);
}
(char *)info1->dns_domain,
return (NT_STATUS_SUCCESS);
}
int
dssetup_check_service(void)
{
int rc;
}
return (rc);
}