summaryrefslogtreecommitdiffstats
path: root/server/providers/ldap/ldap_common.h
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-10-15 17:21:02 -0400
committerStephen Gallagher <sgallagh@redhat.com>2009-10-16 14:27:23 -0400
commitea30597c0e2ebbe976cbd63605d3567416a4e4f2 (patch)
treee07b01c5f7d889f9995f2885cbfcf623f2bb56dc /server/providers/ldap/ldap_common.h
parent50c3aad0676fb66b6204537c841b2c9d71835537 (diff)
downloadsssd-ea30597c0e2ebbe976cbd63605d3567416a4e4f2.tar.gz
sssd-ea30597c0e2ebbe976cbd63605d3567416a4e4f2.tar.xz
sssd-ea30597c0e2ebbe976cbd63605d3567416a4e4f2.zip
Move all ldap provider init functions
Put all init functions in their own file so that the other files can be reused in other providers w/o having them in the way.
Diffstat (limited to 'server/providers/ldap/ldap_common.h')
-rw-r--r--server/providers/ldap/ldap_common.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/server/providers/ldap/ldap_common.h b/server/providers/ldap/ldap_common.h
index 9cf4ddeb8..a6e77e901 100644
--- a/server/providers/ldap/ldap_common.h
+++ b/server/providers/ldap/ldap_common.h
@@ -22,8 +22,45 @@
#ifndef _LDAP_COMMON_H_
#define _LDAP_COMMON_H_
+#include "providers/dp_backend.h"
#include "providers/ldap/sdap.h"
+struct sdap_id_ctx {
+ struct be_ctx *be;
+
+ struct sdap_options *opts;
+
+ /* global sdap handler */
+ struct sdap_handle *gsh;
+
+ /* enumeration loop timer */
+ struct timeval last_run;
+
+ char *max_user_timestamp;
+ char *max_group_timestamp;
+};
+
+struct sdap_auth_ctx {
+ struct be_ctx *be;
+ struct sdap_options *opts;
+};
+
+/* id */
+void sdap_account_info_handler(struct be_req *breq);
+int sdap_id_setup_tasks(struct sdap_id_ctx *ctx);
+
+/* auth */
+void sdap_pam_auth_handler(struct be_req *breq);
+
+/* chpass */
+void sdap_pam_chpass_handler(struct be_req *breq);
+
+
+
+void sdap_handler_done(struct be_req *req, int dp_err,
+ int error, const char *errstr);
+
+/* options parser */
int ldap_get_options(TALLOC_CTX *memctx,
struct confdb_ctx *cdb,
const char *conf_path,