diff options
author | Gerald Carter <jerry@samba.org> | 2005-11-22 17:15:28 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:05:31 -0500 |
commit | ac331c48db29afeb712bb1a1edf739354082ad7f (patch) | |
tree | ae2b7160314c184b0a4f832000eb33f1d9525bcf /source3/passdb/pdb_nds.c | |
parent | 056f06915e9c667393046a674581754d8a581d29 (diff) | |
download | samba-ac331c48db29afeb712bb1a1edf739354082ad7f.tar.gz samba-ac331c48db29afeb712bb1a1edf739354082ad7f.tar.bz2 samba-ac331c48db29afeb712bb1a1edf739354082ad7f.zip |
r11863: BUG 3196: patch from Alex Deiter <tiamat@komi.mts.ru> to compile against the Sun LDAP client libs. But not for AD support; just ldap support
(This used to be commit a33e78acedb37df47905d326411e017794721250)
Diffstat (limited to 'source3/passdb/pdb_nds.c')
-rw-r--r-- | source3/passdb/pdb_nds.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/passdb/pdb_nds.c b/source3/passdb/pdb_nds.c index 5de80a827f..1385583086 100644 --- a/source3/passdb/pdb_nds.c +++ b/source3/passdb/pdb_nds.c @@ -846,12 +846,17 @@ static NTSTATUS pdb_nds_update_login_attempts(struct pdb_methods *methods, /* Turn on ssl if required */ if(strequal(protocol, "ldaps")) { +#ifdef LDAP_OPT_X_TLS int tls = LDAP_OPT_X_TLS_HARD; if (ldap_set_option (ld, LDAP_OPT_X_TLS, &tls) != LDAP_SUCCESS) { DEBUG(1, ("pdb_nds_update_login_attempts: Failed to setup a TLS session\n")); } else { DEBUG(4, ("pdb_nds_update_login_attempts: Activated TLS on session\n")); } +#else + DEBUG(0,("pdb_nds_update_login_attempts: Secure connection not supported by LDAP client libraries!\n")); + return NT_STATUS_INVALID_PARAMETER; +#endif } } |