summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-10-27 16:28:27 +0200
committerGünther Deschner <gd@samba.org>2011-10-28 13:09:47 +0200
commit2330e52cacef0f1cf0e766cd25d23715be5102ef (patch)
tree5b7780064514ebe8d4758fee557fdeaf69d3a1b7 /source3/passdb
parent0b6ced62096cf31142b329056c0d0066d04b344c (diff)
downloadsamba-2330e52cacef0f1cf0e766cd25d23715be5102ef.tar.gz
samba-2330e52cacef0f1cf0e766cd25d23715be5102ef.tar.bz2
samba-2330e52cacef0f1cf0e766cd25d23715be5102ef.zip
s3-passdb: use tevent_context in passdb.
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri Oct 28 13:09:47 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/pdb_interface.c10
-rw-r--r--source3/passdb/pdb_ldap.c2
2 files changed, 6 insertions, 6 deletions
diff --git a/source3/passdb/pdb_interface.c b/source3/passdb/pdb_interface.c
index a6a777436e..b202d43a5b 100644
--- a/source3/passdb/pdb_interface.c
+++ b/source3/passdb/pdb_interface.c
@@ -116,11 +116,11 @@ const struct pdb_init_function_entry *pdb_get_backends(void)
* smb_idle_event_list that used to exist in lib/module.c. -- VL
*/
-static struct event_context *pdb_event_ctx;
+static struct tevent_context *pdb_tevent_ctx;
-struct event_context *pdb_get_event_context(void)
+struct tevent_context *pdb_get_tevent_context(void)
{
- return pdb_event_ctx;
+ return pdb_tevent_ctx;
}
/******************************************************************
@@ -1315,9 +1315,9 @@ bool pdb_new_rid(uint32_t *rid)
If uninitialised, context will auto-init on first use.
***************************************************************/
-bool initialize_password_db(bool reload, struct event_context *event_ctx)
+bool initialize_password_db(bool reload, struct tevent_context *tevent_ctx)
{
- pdb_event_ctx = event_ctx;
+ pdb_tevent_ctx = tevent_ctx;
return (pdb_get_methods_reload(reload) != NULL);
}
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c
index feda002d13..b59eeb9a7e 100644
--- a/source3/passdb/pdb_ldap.c
+++ b/source3/passdb/pdb_ldap.c
@@ -6487,7 +6487,7 @@ static NTSTATUS pdb_init_ldapsam_common(struct pdb_methods **pdb_method, const c
return NT_STATUS_NO_MEMORY;
}
- nt_status = smbldap_init(*pdb_method, pdb_get_event_context(),
+ nt_status = smbldap_init(*pdb_method, pdb_get_tevent_context(),
location, &ldap_state->smbldap_state);
if ( !NT_STATUS_IS_OK(nt_status) ) {