diff options
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/delegateldap.c | 19 |
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) { |