ldap_kerberos_bind_s is not available in all ldap distributions
This commit is contained in:
parent
dd9570dd43
commit
b21414b345
4
c/ldap.c
4
c/ldap.c
|
@ -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)
|
||||
{
|
||||
#if HAVE_LDAP_KERBEROS_BIND_S
|
||||
int r;
|
||||
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));
|
||||
S48_GC_UNPROTECT();
|
||||
return s48_enter_integer(r);
|
||||
#else
|
||||
return S48_FALSE;
|
||||
#endif
|
||||
}
|
||||
|
||||
s48_value scsh_ldap_unbind_s(s48_value ldap)
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include "scheme48.h"
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <sys/time.h>
|
||||
|
|
Loading…
Reference in New Issue