[GLUE] Rsync SAMBA_3_0 SVN r25598 in order to create the v3-0-test branch.
[Samba.git] / source / include / ads_cldap.h
blob77ab19a5f2f314731afcb86c7a7d6cafd022c17b
1 /*
2 Samba Unix/Linux SMB client library
3 net ads cldap functions
4 Copyright (C) 2001 Andrew Tridgell (tridge@samba.org)
5 Copyright (C) 2003 Jim McDonough (jmcd@us.ibm.com)
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #ifndef _INCLUDE_ADS_CLDAP_H_
23 #define _INCLUDE_ADS_CLDAP_H_
25 #define MAX_DNS_LABEL 255 + 1
27 struct cldap_netlogon_reply {
28 uint32 type;
29 uint32 flags;
30 UUID_FLAT guid;
32 char forest[MAX_DNS_LABEL];
33 char domain[MAX_DNS_LABEL];
34 char hostname[MAX_DNS_LABEL];
36 char netbios_domain[MAX_DNS_LABEL];
37 char netbios_hostname[MAX_DNS_LABEL];
39 char unk[MAX_DNS_LABEL];
40 char user_name[MAX_DNS_LABEL];
41 char server_site_name[MAX_DNS_LABEL];
42 char client_site_name[MAX_DNS_LABEL];
44 uint32 version;
45 uint16 lmnt_token;
46 uint16 lm20_token;
49 /* Mailslot or cldap getdcname response flags */
50 #define ADS_PDC 0x00000001 /* DC is PDC */
51 #define ADS_GC 0x00000004 /* DC is a GC of forest */
52 #define ADS_LDAP 0x00000008 /* DC is an LDAP server */
53 #define ADS_DS 0x00000010 /* DC supports DS */
54 #define ADS_KDC 0x00000020 /* DC is running KDC */
55 #define ADS_TIMESERV 0x00000040 /* DC is running time services */
56 #define ADS_CLOSEST 0x00000080 /* DC is closest to client */
57 #define ADS_WRITABLE 0x00000100 /* DC has writable DS */
58 #define ADS_GOOD_TIMESERV 0x00000200 /* DC has hardware clock (and running time) */
59 #define ADS_NDNC 0x00000400 /* DomainName is non-domain NC serviced by LDAP server */
61 #endif /* _INCLUDE_ADS_CLDAP_H_ */