/*
* This file and its contents are supplied under the terms of the
* Common Development and Distribution License ("CDDL"), version 1.0.
* You may only use this file in accordance with the terms of version
* 1.0 of the CDDL.
*
* A full copy of the text of the CDDL should have accompanied this
* source. A copy of the CDDL is also available via the Internet at
*/
/*
* Copyright 2014 Nexenta Systems, Inc. All rights reserved.
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <syslog.h>
#include <smb/ntstatus.h>
#include <synch.h>
#include <thread.h>
#include "idmapd.h"
#include "libadutils.h"
#include "dsgetdc.h"
#include "ads_priv.h"
void
init_dc_locator(void)
{
return;
}
}
}
void
fini_dc_locator(void)
{
}
/*
* Functions called by the (generated) adspriv_srv.c
*/
/* ARGSUSED */
{
return (TRUE);
}
/* ARGSUSED */
int *res,
{
/* Ignoring args for now. */
*res = 0;
return (TRUE);
}
/* ARGSUSED */
{
char *s;
/* Init */
/*
* We normally should wait if discovery is running.
* Sort of mis-using the background flag as a way to
* skip the wait, until we really do background disc.
*/
int rc = 0;
int waited = 0;
if (_idmapdstate.addisc_st != 0)
while (_idmapdstate.addisc_st != 0) {
waited++;
break;
}
/* Caller will replace this with DC not found. */
return (TRUE);
}
if (waited) {
}
}
goto out;
}
/*
* They asked for a specific domain not our primary,
* which is not supported (and not needed).
*/
goto out;
}
goto out;
}
0 == uuid_parse(s, uuid)) {
}
/* Address in binary form too. */
out:
return (TRUE);
}
/* ARGSUSED */
int
{
return (TRUE);
}