|
Packit Service |
6d40f9 |
/*
|
|
Packit Service |
6d40f9 |
* adcli
|
|
Packit Service |
6d40f9 |
*
|
|
Packit Service |
6d40f9 |
* Copyright (C) 2012 Red Hat Inc.
|
|
Packit Service |
6d40f9 |
*
|
|
Packit Service |
6d40f9 |
* This program is free software; you can redistribute it and/or modify
|
|
Packit Service |
6d40f9 |
* it under the terms of the GNU Lesser General Public License as
|
|
Packit Service |
6d40f9 |
* published by the Free Software Foundation; either version 2.1 of
|
|
Packit Service |
6d40f9 |
* the License, or (at your option) any later version.
|
|
Packit Service |
6d40f9 |
*
|
|
Packit Service |
6d40f9 |
* This program is distributed in the hope that it will be useful, but
|
|
Packit Service |
6d40f9 |
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
6d40f9 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
6d40f9 |
* Lesser General Public License for more details.
|
|
Packit Service |
6d40f9 |
*
|
|
Packit Service |
6d40f9 |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
6d40f9 |
* License along with this program; if not, write to the Free Software
|
|
Packit Service |
6d40f9 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
|
Packit Service |
6d40f9 |
* MA 02110-1301 USA
|
|
Packit Service |
6d40f9 |
*
|
|
Packit Service |
6d40f9 |
* Author: Stef Walter <stefw@gnome.org>
|
|
Packit Service |
6d40f9 |
*/
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
#ifndef ADDISCO_H_
|
|
Packit Service |
6d40f9 |
#define ADDISCO_H_
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
enum {
|
|
Packit Service |
6d40f9 |
ADCLI_DISCO_PDC = 0x00000001,
|
|
Packit Service |
6d40f9 |
ADCLI_DISCO_GC = 0x00000004,
|
|
Packit Service |
6d40f9 |
ADCLI_DISCO_LDAP = 0x00000008,
|
|
Packit Service |
6d40f9 |
ADCLI_DISCO_DS = 0x00000010,
|
|
Packit Service |
6d40f9 |
ADCLI_DISCO_KDC = 0x00000020,
|
|
Packit Service |
6d40f9 |
ADCLI_DISCO_TIMESERV = 0x00000040,
|
|
Packit Service |
6d40f9 |
ADCLI_DISCO_CLOSEST = 0x00000080,
|
|
Packit Service |
6d40f9 |
ADCLI_DISCO_WRITABLE = 0x00000100,
|
|
Packit Service |
6d40f9 |
ADCLI_DISCO_GOOD_TIMESERV = 0x00000200,
|
|
Packit Service |
6d40f9 |
ADCLI_DISCO_NDNC = 0x00000400,
|
|
Packit Service |
6d40f9 |
ADCLI_DISCO_SELECT_SECRET_DOMAIN_6 = 0x00000800,
|
|
Packit Service |
6d40f9 |
ADCLI_DISCO_FULL_SECRET_DOMAIN_6 = 0x00001000,
|
|
Packit Service |
6d40f9 |
ADCLI_DISCO_ADS_WEB_SERVICE = 0x00002000,
|
|
Packit Service |
6d40f9 |
ADCLI_DISCO_HAS_DNS_NAME = 0x20000000,
|
|
Packit Service |
6d40f9 |
ADCLI_DISCO_IS_DEFAULT_NC = 0x40000000,
|
|
Packit Service |
6d40f9 |
ADCLI_DISCO_FOREST_ROOT = 0x80000000
|
|
Packit Service |
6d40f9 |
};
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
typedef struct _adcli_disco {
|
|
Packit Service |
6d40f9 |
unsigned int flags;
|
|
Packit Service |
6d40f9 |
char *forest;
|
|
Packit Service |
6d40f9 |
char *domain;
|
|
Packit Service |
6d40f9 |
char *domain_short;
|
|
Packit Service |
6d40f9 |
char *host_name;
|
|
Packit Service |
6d40f9 |
char *host_addr;
|
|
Packit Service |
6d40f9 |
char *host_short;
|
|
Packit Service |
6d40f9 |
char *client_site;
|
|
Packit Service |
6d40f9 |
char *server_site;
|
|
Packit Service |
6d40f9 |
struct _adcli_disco *next;
|
|
Packit Service |
6d40f9 |
} adcli_disco;
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
int adcli_disco_domain (const char *domain,
|
|
Packit Service |
6d40f9 |
adcli_disco **disco);
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
int adcli_disco_host (const char *host,
|
|
Packit Service |
6d40f9 |
adcli_disco **disco);
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
void adcli_disco_free (adcli_disco *disco);
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
enum {
|
|
Packit Service |
6d40f9 |
ADCLI_DISCO_UNUSABLE = 0,
|
|
Packit Service |
6d40f9 |
ADCLI_DISCO_MAYBE = 1,
|
|
Packit Service |
6d40f9 |
ADCLI_DISCO_USABLE = 2
|
|
Packit Service |
6d40f9 |
};
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
int adcli_disco_usable (adcli_disco *disco);
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
#endif /* ADDISCO_H_ */
|