From aecd8e9376ebce85303ca6455c7b0b7edfa054e9 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Thu, 3 Jul 2008 17:47:13 +0000 Subject: Cleanup --- plugin/delegateldap.c | 19 ++++++++++++------- 1 file 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 #include +/* ------------------------------------------------------------------------------ + * 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) { -- cgit v1.2.3