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_ALLOW_NTLMSSP = 0x0010,
29 ADS_AUTH_SASL_SIGN = 0x0020,
30 ADS_AUTH_SASL_SEAL = 0x0040,
31 ADS_AUTH_SASL_FORCE = 0x0080,
32 ADS_AUTH_USER_CREDS = 0x0100
35 const int ADS_SASL_WRAPPING_IN_MAX_WRAPPED = 0x0FFFFFFF;
36 const int ADS_SASL_WRAPPING_OUT_MAX_WRAPPED = 0x00A00000;
38 typedef [nopull,nopush] struct {
42 boolean8 gc; /* Is this a global catalog server? */
43 boolean8 no_fallback; /* Bail if the ldap_server is not available */
46 typedef [nopull,nopush] struct {
59 typedef [nopull,nopush] struct {
60 nbt_server_type flags; /* cldap flags identifying the services. */
64 string ldap_server_name;
65 string server_site_name;
66 string client_site_name;
73 typedef [nopull,nopush] struct {
83 typedef [nopull,nopush] struct {
92 typedef [nopull,nopush] struct {
93 ads_saslwrap_type wrap_type;
94 [ignore] ads_saslwrap_ops *wrap_ops;
95 #ifdef HAVE_LDAP_SASL_WRAPPING
96 [ignore] Sockbuf_IO_Desc *sbiod; /* lowlevel state for LDAP wrapping */
97 #endif /* HAVE_LDAP_SASL_WRAPPING */
98 [ignore] TALLOC_CTX *mem_ctx;
99 [ignore] void *wrap_private_data;
101 ads_ldap_buf_out out;
104 typedef [nopull,nopush] struct {
106 sockaddr_storage ss; /* the ip of the active connection, if any */
107 time_t last_attempt; /* last attempt to reconnect, monotonic clock */
111 typedef [public,nopull,nopush] struct {
112 /* info needed to find the server */
115 /* info needed to authenticate */
118 /* info derived from the servers config */
122 ads_saslwrap ldap_wrap_data;
123 /* info about the current LDAP connection */
125 #endif /* HAVE_LDAP */