mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-27 03:20:22 +08:00
e90ef57645
including: - fixes according to new API changes - closing db connection in connection_destroy callback, not unbind - support of new schema code, samples changed accordingly - support for multiple objectclasses (to distinguish from unique objectclass-to-tables mapping) - auto 'ref' attribute support - samples now include illustrations of using these 2 features to make named referrals as described in ldapext-namedref draft more to come: - documentation update - different improvements to be more close to native directory (after beta?)
39 lines
1.1 KiB
C
39 lines
1.1 KiB
C
/*
|
|
* Copyright 1999, Dmitry Kovalev <mit@openldap.org>, All rights reserved.
|
|
*
|
|
* 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"
|
|
|
|
#ifdef SLAPD_SQL
|
|
|
|
#include <stdio.h>
|
|
#include <sys/types.h>
|
|
#include "slap.h"
|
|
#include "back-sql.h"
|
|
#include "sql-wrap.h"
|
|
|
|
int backsql_bind(BackendDB *be,Connection *conn,Operation *op,
|
|
const char *dn,const char *ndn,int method,struct berval *cred,char** edn)
|
|
{
|
|
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;
|
|
}
|
|
|
|
int backsql_unbind(BackendDB *be,Connection *conn,Operation *op)
|
|
{
|
|
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;
|
|
}
|
|
|
|
#endif /* SLAPD_SQL */
|