From 7a16973f9023c93b42eee765bdb83d7396b9ebf8 Mon Sep 17 00:00:00 2001 From: hno <> Date: Tue, 25 Jun 2002 17:54:49 +0000 Subject: [PATCH] external_acl bugfix to cooperate with --disable-ident --- src/external_acl.cc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/external_acl.cc b/src/external_acl.cc index 8e870e3ce1..65585498c9 100644 --- a/src/external_acl.cc +++ b/src/external_acl.cc @@ -1,6 +1,6 @@ /* - * $Id: external_acl.cc,v 1.1 2002/06/23 13:32:24 hno Exp $ + * $Id: external_acl.cc,v 1.2 2002/06/25 11:54:49 hno Exp $ * * DEBUG: section 82 External ACL * AUTHOR: Henrik Nordstrom, MARA Systems AB @@ -94,7 +94,9 @@ struct _external_acl { struct _external_acl_format { enum { EXT_ACL_LOGIN = 1, +#if USE_IDENT EXT_ACL_IDENT, +#endif EXT_ACL_SRC, EXT_ACL_DST, EXT_ACL_PROTO, @@ -235,8 +237,11 @@ parse_externalAclHelper(external_acl ** list) if (strcmp(token, "%LOGIN") == 0) { format->type = EXT_ACL_LOGIN; a->require_auth = 1; - } else if (strcmp(token, "%IDENT") == 0) + } +#if USE_IDENT + else if (strcmp(token, "%IDENT") == 0) format->type = EXT_ACL_IDENT; +#endif else if (strcmp(token, "%SRC") == 0) format->type = EXT_ACL_SRC; else if (strcmp(token, "%DST") == 0) @@ -487,6 +492,7 @@ makeExternalAclKey(aclCheck_t * ch, external_acl_data * acl_data) case EXT_ACL_LOGIN: str = authenticateUserRequestUsername(request->auth_user_request); break; +#if USE_IDENT case EXT_ACL_IDENT: str = ch->rfc931; if (!str) { @@ -494,6 +500,7 @@ makeExternalAclKey(aclCheck_t * ch, external_acl_data * acl_data) goto error; } break; +#endif case EXT_ACL_SRC: str = inet_ntoa(ch->src_addr); break; -- 2.47.3