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:
committed by
Gerald (Jerry) Carter
parent
7ef63abae1
commit
fb2f70de4f
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user