mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
fix -UHAVE_CYRUS_SASL
This commit is contained in:
parent
20351a05cc
commit
b872bf3a91
2 changed files with 18 additions and 2 deletions
|
|
@ -535,12 +535,11 @@ LIBSLAPD_F (char **) supportedSASLMechanisms;
|
|||
|
||||
LIBSLAPD_F (int) sasl_init(void);
|
||||
LIBSLAPD_F (int) sasl_destroy(void);
|
||||
#ifdef HAVE_CYRUS_SASL
|
||||
LIBSLAPD_F (int) sasl_errldap LDAP_P(( int ));
|
||||
LIBSLAPD_F (int) sasl_bind LDAP_P((
|
||||
Connection *, Operation *,
|
||||
char *, char *, char *, struct berval *, char **));
|
||||
#endif
|
||||
|
||||
|
||||
/* oc.c */
|
||||
LIBSLAPD_F (int) oc_schema_info( Entry *e );
|
||||
|
|
|
|||
|
|
@ -244,6 +244,23 @@ int sasl_bind(
|
|||
|
||||
#else
|
||||
/* no SASL support */
|
||||
int sasl_bind(
|
||||
Connection *conn,
|
||||
Operation *op,
|
||||
char *dn,
|
||||
char *ndn,
|
||||
char *mech,
|
||||
struct berval *cred,
|
||||
char **edn )
|
||||
{
|
||||
int rc;
|
||||
|
||||
send_ldap_result( conn, op, rc = LDAP_UNWILLING_TO_PERFORM,
|
||||
NULL, "SASL unavailable", NULL, NULL );
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
int sasl_init( void ) { return 0; }
|
||||
int sasl_destroy( void ) { return 0; }
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue