]> granicus.if.org Git - apache/commitdiff
Axe a dead variable
authorWilliam A. Rowe Jr <wrowe@apache.org>
Sun, 21 Nov 2004 07:18:38 +0000 (07:18 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Sun, 21 Nov 2004 07:18:38 +0000 (07:18 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@106077 13f79535-47bb-0310-9956-ffa450edef68

modules/aaa/mod_authnz_ldap.c

index 336603ac00b3fda2fbad8dbde79d963a4d6bbed6..20d108e99cf7bd7248fe4ecd7ac382b5694ee012 100644 (file)
@@ -403,9 +403,11 @@ start_over:
                       "user %s authentication failed; URI %s [%s][%s]",
                       getpid(), user, r->uri, ldc->reason, ldap_err2string(result));
 
-        return (LDAP_NO_SUCH_OBJECT == result) ? AUTH_USER_NOT_FOUND: \
-               (LDAP_SECURITY_ERROR(result)) ? AUTH_DENIED: \
-               AUTH_GENERAL_ERROR;
+        return (LDAP_NO_SUCH_OBJECT == result) ? AUTH_USER_NOT_FOUND
+#ifdef LDAP_SECURITY_ERROR
+                 : (LDAP_SECURITY_ERROR(result)) ? AUTH_DENIED
+#endif
+                 : AUTH_GENERAL_ERROR;
     }
 
     /* mark the user and DN */
@@ -478,7 +480,6 @@ static int authz_ldap_check_user_access(request_rec *r)
     const char *dn = NULL;
     const char **vals = NULL;
     const char *type = ap_auth_type(r);
-    char *tmpuser;
 
 /*
     if (!sec->enabled) {