2000-03-17 03:08:22 +08:00
|
|
|
/*
|
2000-05-27 00:03:32 +08:00
|
|
|
* Copyright 1999, Dmitry Kovalev <mit@openldap.org>, All rights reserved.
|
2000-03-17 03:08:22 +08:00
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms are permitted only
|
|
|
|
* as authorized by the OpenLDAP Public License. A copy of this
|
|
|
|
* license is available at http://www.OpenLDAP.org/license.html or
|
|
|
|
* in file LICENSE in the top-level directory of the distribution.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "portable.h"
|
|
|
|
|
2000-03-19 14:18:27 +08:00
|
|
|
#ifdef SLAPD_SQL
|
|
|
|
|
2000-03-17 03:08:22 +08:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include "slap.h"
|
|
|
|
#include "back-sql.h"
|
|
|
|
#include "sql-wrap.h"
|
|
|
|
|
2000-05-27 00:03:32 +08:00
|
|
|
int backsql_bind(BackendDB *be,Connection *conn,Operation *op,
|
|
|
|
const char *dn,const char *ndn,int method,struct berval *cred,char** edn)
|
2000-03-17 03:08:22 +08:00
|
|
|
{
|
|
|
|
Debug(LDAP_DEBUG_TRACE,"==>backsql_bind()\n",0,0,0);
|
|
|
|
//for now, just return OK, allowing to test modify operations
|
|
|
|
send_ldap_result(conn,op,LDAP_SUCCESS,NULL,NULL,NULL,0);
|
|
|
|
Debug(LDAP_DEBUG_TRACE,"<==backsql_bind()\n",0,0,0);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-05-27 00:03:32 +08:00
|
|
|
int backsql_unbind(BackendDB *be,Connection *conn,Operation *op)
|
2000-03-17 03:08:22 +08:00
|
|
|
{
|
|
|
|
Debug(LDAP_DEBUG_TRACE,"==>backsql_unbind()\n",0,0,0);
|
|
|
|
send_ldap_result(conn,op,LDAP_SUCCESS,NULL,NULL,NULL,0);
|
|
|
|
Debug(LDAP_DEBUG_TRACE,"<==backsql_unbind()\n",0,0,0);
|
|
|
|
return 0;
|
|
|
|
}
|
2000-03-19 14:18:27 +08:00
|
|
|
|
2000-05-22 11:46:57 +08:00
|
|
|
#endif /* SLAPD_SQL */
|