ldap_kerberos_bind_s is not available in all ldap distributions

This commit is contained in:
eknauel 2003-11-17 14:44:27 +00:00
parent dd9570dd43
commit b21414b345
2 changed files with 5 additions and 0 deletions

View File

@ -77,6 +77,7 @@ s48_value scsh_ldap_simple_bind_s(s48_value ldap, s48_value user, s48_value cred
s48_value scsh_ldap_kerberos_bind_s(s48_value ldap, s48_value dn) s48_value scsh_ldap_kerberos_bind_s(s48_value ldap, s48_value dn)
{ {
#if HAVE_LDAP_KERBEROS_BIND_S
int r; int r;
S48_DECLARE_GC_PROTECT(2); S48_DECLARE_GC_PROTECT(2);
@ -84,6 +85,9 @@ s48_value scsh_ldap_kerberos_bind_s(s48_value ldap, s48_value dn)
r = ldap_kerberos_bind_s(scsh_extract_ldap(ldap), s48_extract_string(dn)); r = ldap_kerberos_bind_s(scsh_extract_ldap(ldap), s48_extract_string(dn));
S48_GC_UNPROTECT(); S48_GC_UNPROTECT();
return s48_enter_integer(r); return s48_enter_integer(r);
#else
return S48_FALSE;
#endif
} }
s48_value scsh_ldap_unbind_s(s48_value ldap) s48_value scsh_ldap_unbind_s(s48_value ldap)

View File

@ -1,4 +1,5 @@
#include "scheme48.h" #include "scheme48.h"
#include "config.h"
#include <stdlib.h> #include <stdlib.h>
#include <sys/time.h> #include <sys/time.h>