5 ads interface definition
10 cpp_quote
("#include <system/network.h>")
13 pointer_default(unique)
17 typedef [public] enum {
18 ADS_SASLWRAP_TYPE_PLAIN
= 1,
19 ADS_SASLWRAP_TYPE_SIGN
= 2,
20 ADS_SASLWRAP_TYPE_SEAL
= 4
23 /* ads auth control flags */
24 typedef [public] bitmap
{
25 ADS_AUTH_DISABLE_KERBEROS
= 0x0001,
26 ADS_AUTH_NO_BIND
= 0x0002,
27 ADS_AUTH_ANON_BIND
= 0x0004,
28 ADS_AUTH_SIMPLE_BIND
= 0x0008,
29 ADS_AUTH_ALLOW_NTLMSSP
= 0x0010,
30 ADS_AUTH_SASL_SIGN
= 0x0020,
31 ADS_AUTH_SASL_SEAL
= 0x0040,
32 ADS_AUTH_SASL_FORCE
= 0x0080,
33 ADS_AUTH_USER_CREDS
= 0x0100
36 const int ADS_SASL_WRAPPING_IN_MAX_WRAPPED
= 0x0FFFFFFF;
37 const int ADS_SASL_WRAPPING_OUT_MAX_WRAPPED
= 0x00A00000;
39 typedef [nopull
,nopush
] struct {
43 boolean8 gc
; /* Is this a global catalog server? */
44 boolean8 no_fallback
; /* Bail if the ldap_server is not available */
47 typedef [nopull
,nopush
] struct {
60 typedef [nopull
,nopush
] struct {
61 nbt_server_type flags
; /* cldap flags identifying the services. */
65 string ldap_server_name
;
66 string server_site_name
;
67 string client_site_name
;
74 typedef [nopull
,nopush
] struct {
84 typedef [nopull
,nopush
] struct {
93 typedef [nopull
,nopush
] struct {
94 ads_saslwrap_type wrap_type
;
95 [ignore] ads_saslwrap_ops
*wrap_ops
;
96 #ifdef HAVE_LDAP_SASL_WRAPPING
97 [ignore] Sockbuf_IO_Desc
*sbiod
; /* lowlevel state for LDAP wrapping */
98 #endif
/* HAVE_LDAP_SASL_WRAPPING */
99 [ignore] TALLOC_CTX
*mem_ctx
;
100 [ignore] void *wrap_private_data
;
102 ads_ldap_buf_out
out;
105 typedef [nopull
,nopush
] struct {
107 sockaddr_storage ss
; /* the ip of the active connection, if any */
108 time_t last_attempt
; /* last attempt to reconnect, monotonic clock */
112 typedef [public,nopull
,nopush
] struct {
113 /* info needed to find the server */
116 /* info needed to authenticate */
119 /* info derived from the servers config */
123 ads_saslwrap ldap_wrap_data
;
124 /* info about the current LDAP connection */
126 #endif
/* HAVE_LDAP */