]> git.sur5r.net Git - openldap/commitdiff
fix -UHAVE_CYRUS_SASL
authorKurt Zeilenga <kurt@openldap.org>
Tue, 25 Apr 2000 19:28:00 +0000 (19:28 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 25 Apr 2000 19:28:00 +0000 (19:28 +0000)
servers/slapd/proto-slap.h
servers/slapd/sasl.c

index 78f84fb9048cea518a0a3a9afd596ddbddb8116f..826654f53975b3f60088700280cbbb33879ad8a5 100644 (file)
@@ -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 );
index 1cb655ed166e92a3f951e8b5a11d5f6b40efc314..677805fb1726a3f6c137c7a2338732d0bd4a175b 100644 (file)
@@ -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