From: Kurt Zeilenga Date: Wed, 15 Oct 2003 03:08:43 +0000 (+0000) Subject: cleanup X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~570 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f1e5201bf79cd674150493d73859430d92c594a4;p=openldap cleanup --- diff --git a/servers/slurpd/config.c b/servers/slurpd/config.c index 3f7a8f8b65..ac7f017f35 100644 --- a/servers/slurpd/config.c +++ b/servers/slurpd/config.c @@ -523,10 +523,10 @@ parse_replica_line( fprintf( stderr, "slurpd no longer supports Kerberos.\n" ); exit( EXIT_FAILURE ); } else if ( !strcasecmp( val, SIMPLESTR )) { - ri->ri_bind_method = AUTH_SIMPLE; + ri->ri_bind_method = LDAP_AUTH_SIMPLE; gots |= GOT_METHOD; } else if ( !strcasecmp( val, SASLSTR )) { - ri->ri_bind_method = AUTH_SASL; + ri->ri_bind_method = LDAP_AUTH_SASL; gots |= GOT_METHOD; } else { ri->ri_bind_method = -1; @@ -575,14 +575,13 @@ parse_replica_line( } } - if ( ri->ri_bind_method == AUTH_SASL) { + if ( ri->ri_bind_method == LDAP_AUTH_SASL) { if ((gots & GOT_MECH) == 0) { fprintf( stderr, "Error: \"replica\" line needs SASLmech flag in " ); fprintf( stderr, "slapd config file, line %d\n", lineno ); return -1; } - } - else if ( gots != GOT_ALL ) { + } else if ( gots != GOT_ALL ) { fprintf( stderr, "Error: Malformed \"replica\" line in slapd " ); fprintf( stderr, "config file, line %d\n", lineno ); return -1; diff --git a/servers/slurpd/ldap_op.c b/servers/slurpd/ldap_op.c index f501a17cf0..a5308058dc 100644 --- a/servers/slurpd/ldap_op.c +++ b/servers/slurpd/ldap_op.c @@ -913,7 +913,7 @@ retry: } switch ( ri->ri_bind_method ) { - case AUTH_SIMPLE: + case LDAP_AUTH_SIMPLE: /* * Bind with a plaintext password. */ @@ -944,7 +944,7 @@ retry: } break; - case AUTH_SASL: + case LDAP_AUTH_SASL: #ifdef NEW_LOGGING LDAP_LOG ( OPERATION, ARGS, "do_bind: bind to %s as %s via %s (SASL)\n", diff --git a/servers/slurpd/slurp.h b/servers/slurpd/slurp.h index 34fe83a062..806c72f921 100644 --- a/servers/slurpd/slurp.h +++ b/servers/slurpd/slurp.h @@ -65,9 +65,6 @@ /* slurpd dump file - contents of rq struct are written here (debugging) */ #define SLURPD_DUMPFILE LDAP_TMPDIR LDAP_DIRSEP "slurpd.dump" -/* default srvtab file. Can be overridden */ -#define SRVTAB "/etc/srvtab" - /* Amount of time to sleep if no more work to do */ #define DEFAULT_NO_WORK_INTERVAL 3 @@ -85,11 +82,6 @@ #define TLS_ON 1 #define TLS_CRITICAL 2 -/* We support simple (plaintext password) and SASL authentication */ -#define AUTH_SIMPLE 1 -#define AUTH_KERBEROS 2 -#define AUTH_SASL 3 - /* Rejection records are prefaced with this string */ #define ERROR_STR "ERROR"