Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E94411049B for ; Sat, 3 May 2014 23:31:47 +0000 (UTC) Received: (qmail 14684 invoked by uid 500); 3 May 2014 23:31:43 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 14566 invoked by uid 500); 3 May 2014 23:31:43 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 14557 invoked by uid 99); 3 May 2014 23:31:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 May 2014 23:31:43 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dhayamoorthi2013@gmail.com designates 209.85.212.176 as permitted sender) Received: from [209.85.212.176] (HELO mail-wi0-f176.google.com) (209.85.212.176) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 May 2014 23:31:39 +0000 Received: by mail-wi0-f176.google.com with SMTP id n15so1195766wiw.9 for ; Sat, 03 May 2014 16:31:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=nsjYbybLZ1InX++0SKKqBXksvlMk2u64Byk/sS0KQR8=; b=mtSNeS2Y4e0/Bpn0iZswEZmKYEvN9xRydrOOD9QIfjfDtbrQkqL+SunyrebfRd1XaF hOrb4ZeOn6Apl5DawELLsa1hVj2DbvRKVYcoqK6DKt9jDV91c+wt1EK0CAyNadRR8/xv +o00A9IOsFbKkcsUq1ZQ6hgxqSrgATQZurfalBcW6P3eoLII51JEys95fCZrCI4ZhXWy DIv58VDCjNhC/umFQ7HSWD/poW/egw+LcJe4H9cAqx62uGPXZXse0faRTbqdGuqKu9jZ +8diLRflaUXAfJc0dpdFwisEBYJB7FlgntlGxFIU7EvHZyoKhuwuwlcbhDWJSY5ndX/V TkAw== MIME-Version: 1.0 X-Received: by 10.180.211.239 with SMTP id nf15mr9188144wic.9.1399159877252; Sat, 03 May 2014 16:31:17 -0700 (PDT) Received: by 10.216.111.3 with HTTP; Sat, 3 May 2014 16:31:17 -0700 (PDT) Date: Sat, 3 May 2014 19:31:17 -0400 Message-ID: Subject: Tomcat7 Client Certicate Authentication Using Datasource Realm Fails From: Dhayanidhi sundaramoorthi To: users Content-Type: multipart/alternative; boundary=001a11c264ec77bb1a04f8874b36 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c264ec77bb1a04f8874b36 Content-Type: text/plain; charset=UTF-8 Hi, In Tomcat7, we are trying to do client certificate authentication using datasource realm. But it fails. Please fnd the configuration below: server.xml: ---------------- security role configuration /conf/web.xml: --------------------------------------------------------------------------------- masFedClient all /* masFedClient CONFIDENTIAL CLIENT-CERT jdbc/FederationDS Database has all the required tables and columns. But authentication fails with the below mentioned error: FINE: Checking validity for '$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$' May 03, 2014 7:16:29 PM org.apache.catalina.realm.RealmBase authenticate FINE: Checking validity for 'CN=VeriSign Class 3 Extended Validation SSL SGC CA, OU=Terms of use at https://www.verisign.com/rpa (c)06, OU=VeriSign Trust Network, O="VeriSign, Inc.", C=US' May 03, 2014 7:16:29 PM org.apache.catalina.realm.RealmBase authenticate FINE: Checking validity for 'CN=VeriSign Class 3 Public Primary Certification Authority - G5, OU="(c) 2006 VeriSign, Inc. - For authorized use only", OU=VeriSign Trust Network, O="VeriSign, Inc.", C=US' May 03, 2014 7:16:29 PM org.apache.catalina.realm.RealmBase getPrincipal FINE: Got user name from X509 certificate: $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ May 03, 2014 7:16:29 PM org.apache.catalina.authenticator.AuthenticatorBase invoke FINE: Failed authenticate() test For security purpose, I had mad the certificate cn name as $$$$$$$$$$. The error message does not tell why the authentication is failing. Do I need to enable additional logs. If so how to enable. Request your help in fixing this issue. Any help would be highly appreciated. Thanks Dhaya --001a11c264ec77bb1a04f8874b36--