]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-sql/bind.c
Updated for schemas.
[openldap] / servers / slapd / back-sql / bind.c
index 1919dea11ead3ceac58635cb4932b2fd59007ff4..08b2ab2f61539c93968c114a81a6aa90fc9b6eca 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *      Copyright 1999, Dmitry Kovalev (zmit@mail.ru), All rights reserved.
+ *      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
@@ -9,14 +9,16 @@
 
 #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(Backend *be,Connection *conn,Operation *op,
-       char *dn,char *ndn,int method,char *mech,struct berval *cred,char** edn)
+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
@@ -25,7 +27,7 @@ int backsql_bind(Backend *be,Connection *conn,Operation *op,
  return 0;
 }
  
-int backsql_unbind(Backend *be,Connection *conn,Operation *op)
+int backsql_unbind(BackendDB *be,Connection *conn,Operation *op)
 {
  Debug(LDAP_DEBUG_TRACE,"==>backsql_unbind()\n",0,0,0);
  backsql_free_db_conn(be,conn);
@@ -33,3 +35,5 @@ int backsql_unbind(Backend *be,Connection *conn,Operation *op)
  Debug(LDAP_DEBUG_TRACE,"<==backsql_unbind()\n",0,0,0);
  return 0;
 }
+
+#endif /* SLAPD_SQL */