diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-07-30 08:22:45 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:29:02 -0500 |
commit | 31dc9126c1f401ac8668b3c46e28c5a47d34a090 (patch) | |
tree | b3ecdb6d1454ac77d7bc4f6e078c3f251b20393b /source3/libads | |
parent | dd98820185b4cdaef7c4e247039b6c1da6600105 (diff) | |
download | samba-31dc9126c1f401ac8668b3c46e28c5a47d34a090.tar.gz samba-31dc9126c1f401ac8668b3c46e28c5a47d34a090.tar.bz2 samba-31dc9126c1f401ac8668b3c46e28c5a47d34a090.zip |
r24072: Add "client ldap sasl wrapping" parameter.
Possible values are "plain" (default), "sign" or "seal".
metze
(This used to be commit 26ccbad7212e9acd480b98789f04b71c1e940ea8)
Diffstat (limited to 'source3/libads')
-rw-r--r-- | source3/libads/ads_struct.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/libads/ads_struct.c b/source3/libads/ads_struct.c index c769d8ff48..aac57d41fe 100644 --- a/source3/libads/ads_struct.c +++ b/source3/libads/ads_struct.c @@ -109,6 +109,7 @@ ADS_STRUCT *ads_init(const char *realm, const char *ldap_server) { ADS_STRUCT *ads; + int wrap_flags; ads = SMB_XMALLOC_P(ADS_STRUCT); ZERO_STRUCTP(ads); @@ -128,6 +129,13 @@ ADS_STRUCT *ads_init(const char *realm, /* the caller will own the memory by default */ ads->is_mine = 1; + wrap_flags = lp_client_ldap_sasl_wrapping(); + if (wrap_flags == -1) { + wrap_flags = 0; + } + + ads->auth.flags = wrap_flags; + return ads; } |