diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-07-18 07:45:16 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:28:48 -0500 |
commit | 07c034f7c443689749c2b4b138acb991da575c3a (patch) | |
tree | aae8514c1fc60df21a43352c80e1d20804c38607 /source3/include | |
parent | e0c4034393a05acba9b6ba7dd015cfc3e6d46c0f (diff) | |
download | samba-07c034f7c443689749c2b4b138acb991da575c3a.tar.gz samba-07c034f7c443689749c2b4b138acb991da575c3a.tar.bz2 samba-07c034f7c443689749c2b4b138acb991da575c3a.zip |
r23945: add infrastructure to select plain, sign or seal LDAP connection
metze
(This used to be commit 2075c05b3d8baa7d6d8510cd962471a5781740a6)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/ads.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/source3/include/ads.h b/source3/include/ads.h index c103c3a43e..1c02366ed4 100644 --- a/source3/include/ads.h +++ b/source3/include/ads.h @@ -39,6 +39,12 @@ struct ads_saslwrap_ops { ADS_STATUS (*disconnect)(struct ads_struct *); }; +enum ads_saslwrap_type { + ADS_SASLWRAP_TYPE_PLAIN = 1, + ADS_SASLWRAP_TYPE_SIGN = 2, + ADS_SASLWRAP_TYPE_SEAL = 4 +} wrap_type; + typedef struct ads_struct { int is_mine; /* do I own this structure's memory? */ @@ -85,8 +91,11 @@ typedef struct ads_struct { time_t last_attempt; /* last attempt to reconnect */ int port; + enum ads_saslwrap_type wrap_type; + #ifdef HAVE_LDAP_SASL_WRAPPING Sockbuf_IO_Desc *sbiod; /* lowlevel state for LDAP wrapping */ +#endif /* HAVE_LDAP_SASL_WRAPPING */ TALLOC_CTX *mem_ctx; const struct ads_saslwrap_ops *wrap_ops; void *wrap_private_data; @@ -108,7 +117,6 @@ typedef struct ads_struct { uint32 size; uint8 *buf; } out; -#endif /* HAVE_LDAP_SASL_WRAPPING */ } ldap; #endif /* HAVE_LDAP */ } ADS_STRUCT; @@ -321,6 +329,9 @@ typedef void **ADS_MODLIST; #define ADS_AUTH_ANON_BIND 0x04 #define ADS_AUTH_SIMPLE_BIND 0x08 #define ADS_AUTH_ALLOW_NTLMSSP 0x10 +#define ADS_AUTH_SASL_SIGN 0x20 +#define ADS_AUTH_SASL_SEAL 0x40 +#define ADS_AUTH_SASL_FORCE 0x80 /* Kerberos environment variable names */ #define KRB5_ENV_CCNAME "KRB5CCNAME" |