1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-11 00:23:51 +03:00

r13839: Use registration mechanism for backends as well (in the same sense

my previous patch added it for modules). This is the next step towards
LDB backends and modules as run-time loadable .so files.
This commit is contained in:
Jelmer Vernooij
2006-03-05 16:05:26 +00:00
committed by Gerald (Jerry) Carter
parent 7ef63abae1
commit fb2f70de4f
9 changed files with 91 additions and 38 deletions

View File

@@ -1042,7 +1042,7 @@ static int lldb_destructor(void *p)
/*
connect to the database
*/
int lldb_connect(struct ldb_context *ldb,
static int lldb_connect(struct ldb_context *ldb,
const char *url,
unsigned int flags,
const char *options[])
@@ -1093,3 +1093,7 @@ failed:
return -1;
}
int ldb_ldap_init(void)
{
return ldb_register_backend("ldap", lldb_connect);
}