mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-27 03:20:22 +08:00
60 lines
968 B
C
60 lines
968 B
C
/* bind.c - ldbm backend bind and unbind routines */
|
|
/* $OpenLDAP$ */
|
|
/*
|
|
* Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
|
|
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
|
*/
|
|
|
|
#ifdef HAVE_CYRUS_SASL
|
|
|
|
#include "portable.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <ac/krb.h>
|
|
#include <ac/socket.h>
|
|
#include <ac/string.h>
|
|
#include <ac/unistd.h>
|
|
|
|
#include "slap.h"
|
|
#include "back-ldbm.h"
|
|
#include "proto-back-ldbm.h"
|
|
|
|
int
|
|
back_ldbm_sasl_authorize(
|
|
BackendDB *be,
|
|
const char *auth_identity,
|
|
const char *requested_user,
|
|
const char **user,
|
|
const char **errstring)
|
|
{
|
|
return SASL_FAIL;
|
|
}
|
|
|
|
int
|
|
back_ldbm_sasl_getsecret(
|
|
Backend *be,
|
|
const char *mechanism,
|
|
const char *auth_identity,
|
|
const char *realm,
|
|
sasl_secret_t **secret)
|
|
{
|
|
return SASL_FAIL;
|
|
}
|
|
|
|
int
|
|
back_ldbm_sasl_putsecret(
|
|
Backend *be,
|
|
const char *mechanism,
|
|
const char *auth_identity,
|
|
const char *realm,
|
|
const sasl_secret_t *secret)
|
|
{
|
|
return SASL_FAIL;
|
|
}
|
|
|
|
#else
|
|
static int dummy = 1;
|
|
#endif
|
|
|