summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorStef Walter <stef@thewalter.net>2008-07-03 17:47:13 +0000
committerStef Walter <stef@thewalter.net>2008-07-03 17:47:13 +0000
commitaecd8e9376ebce85303ca6455c7b0b7edfa054e9 (patch)
tree8e4e252e65ec7d6e76f775711ca797a93ef0ba31 /plugin
parent7bdfd297e415df6f903564a10a3803448a76a327 (diff)
Cleanup
Diffstat (limited to 'plugin')
-rw-r--r--plugin/delegateldap.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/plugin/delegateldap.c b/plugin/delegateldap.c
index e3460ab..db78ae6 100644
--- a/plugin/delegateldap.c
+++ b/plugin/delegateldap.c
@@ -13,19 +13,16 @@
#include <stdio.h>
#include <stdarg.h>
+/* ------------------------------------------------------------------------------
+ * DEFINITIONS
+ */
+
#define CANARY_VALUE "!DL!"
#define OPTION_SERVER "delegateldap_uri"
#define OPTION_TLS "delegateldap_tls"
#define OPTION_LDAPRC "delegateldap_ldaprc"
-/*
- * SETTINGS -------------------------------------------------------------------------
- * TODO: Move these to a configuration file or some such
- */
-
-#define SETTINGS_URL "ldap://209.66.100.155"
-
typedef struct _supported_mechanisms {
void *mutex;
int loaded;
@@ -42,6 +39,10 @@ typedef struct _delegate_context {
extern sasl_server_plug_init_t sasl_server_plug_init;
+/* ----------------------------------------------------------------------------
+ * HELPERS
+ */
+
static void
log_message (const sasl_utils_t *utils, int level, const char *format, ...)
{
@@ -94,6 +95,10 @@ report_ldap_error (const sasl_utils_t *utils, int ldap, const char *format, ...)
return SASL_FAIL;
}
+/* ------------------------------------------------------------------------
+ * MAIN CALLBACKS
+ */
+
static void
delegateldap_dispose (void *context, const sasl_utils_t *utils)
{