From users-return-243076-apmail-tomcat-users-archive=tomcat.apache.org@tomcat.apache.org Wed Aug 7 02:47:57 2013 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 8BEE110F0C for ; Wed, 7 Aug 2013 02:47:57 +0000 (UTC) Received: (qmail 3693 invoked by uid 500); 7 Aug 2013 02:47:53 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 3238 invoked by uid 500); 7 Aug 2013 02:47:53 -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 3218 invoked by uid 99); 7 Aug 2013 02:47:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Aug 2013 02:47:51 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=MIME_QP_LONG_LINE,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_NONE X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [106.10.151.37] (HELO nm21-vm6.bullet.mail.sg3.yahoo.com) (106.10.151.37) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Aug 2013 02:47:43 +0000 Received: from [106.10.166.117] by nm21.bullet.mail.sg3.yahoo.com with NNFMP; 07 Aug 2013 02:46:59 -0000 Received: from [106.10.167.144] by tm6.bullet.mail.sg3.yahoo.com with NNFMP; 07 Aug 2013 02:46:59 -0000 Received: from [127.0.0.1] by smtp117.mail.sg3.yahoo.com with NNFMP; 07 Aug 2013 02:46:59 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.in; s=s1024; t=1375843619; bh=S2KQZiE0tH01npCaHCTJYJGDRdBnbNkdW42bfysIds4=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Subject:References:From:Content-Type:X-Mailer:In-Reply-To:Message-Id:Date:To:Content-Transfer-Encoding:Mime-Version; b=tB/GFfReufO6SB6jUlQGt0btmwhjMFUdYm5Cu4M/jGSiJeEEX2bTYx3N4Ttw4BR17iWenMJa+xJQSioDZzFdTS7vVq+xTX0xYiiLwKYXc8BSGuLomIBCTokbpHh4bm+h2kvCAuhjumzBI/7mC/fYrYdVmZ1OwlbqTa+dqAV4M1A= X-Yahoo-Newman-Id: 601367.67071.bm@smtp117.mail.sg3.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: uZBYI.IVM1kyBIhVXiUNk1PFQVZ31MgL6xRueQLx4HzrKy4 rTzFhFh_JhgaIm5AOZldgs38AkCOlqzvedG5BOfUUy3o2LjRIliiXnnJCtIu 0OUfbupuscRBRGGRUdQww_o1vVgZLsZE2AfqTdKzrpUc4JtPHP8W94wOiWSd bVZHEH2LCHOkv.CuksOLmCew6FQP3s3qQqowSTBmTcye9pCFTjjyuCsIo8DE P9CU6gSZIL.ZrVbE8UO0khgz6UBppzyz4hbbINy8dQk3NKH_MMUinshFduKo 6IzoQCoy_v0tsgiMHj73mwQgT3i4QS9IhSH459gZmvAIZpvVDbjTMwx.JeD. hsHXcD309VoSrHAIFqcW6i9pDdDkOQ9smq2yHSJkX8lxu7CtvRTCqY8bAJ.. hf305XGg0gpkybJ.R47cG4bH3oxNLVEA8icVhifZFAjnrDgAXS7w0c5yIB1B C108dOPoioW8IWu8hCpwwAEiCY0sSp0G_4N3C2tpMNQfuQhhOjXq.qLB64ji EqS0SaXLn7bJuU3yXETlqadzVoGHcFZW0lux02oBAqUEnKvzx29MEITX4hHS 0wroWVYp1GIyFOYJH6nMAPpcnh1leQXibkhBxX2k2TBQ_5IR2xDywakwscxJ tbv4kwekTkWptBZSulYm1lbppQwssYLkezGYT8LuvQYbJkpoGT5.89DA2BHN 8bvWT X-Yahoo-SMTP: ajpxA4uswBBx5xUesqpGwIxhJ2rBVD6Wr1LeDLQ- X-Rocket-Received: from [223.228.41.199] (vicky007aggarwal@223.228.41.199 with ) by smtp117.mail.sg3.yahoo.com with SMTP; 06 Aug 2013 19:46:59 -0700 PDT Subject: Re: tomcat 7 ldap error References: <1375802589.65943.YahooMailNeo@web193503.mail.sg3.yahoo.com> From: vicky007aggarwal@yahoo.co.in Content-Type: text/plain; charset=us-ascii X-Mailer: iPhone Mail (10A523) In-Reply-To: <1375802589.65943.YahooMailNeo@web193503.mail.sg3.yahoo.com> Message-Id: Date: Wed, 7 Aug 2013 08:16:54 +0530 To: Tomcat Users List Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) X-Virus-Checked: Checked by ClamAV on apache.org Hi All, Can somebody pls share the steps requires to setup active directory with tom= cat . Is it valid to simply define a user in the active directory ldap without ass= igning any role to it ?? Will we still be able to authenticate the user whe= n logged in from the application.if yes then kindly share the configuration w= hich i need to do in web.xml and server.xml. I need this because in our application we have ldap users defined without an= y role mapped to them, so i want to know how to configure this in server.xml= and web.xml,so that user get authenticated successfully Thanks, Vicky On Aug 6, 2013, at 8:53 PM, vicky wrote: > =20 > =20 > I need to configure Tomcat 7 with Active directory LDAP. > I did following configuration in server.xml & application's web.xml but w= hile loggin in=20 > "Invalid username and/or password, please try again" error is coming .plea= se suggest what can be the issue > =3D=3D=3D=3D=3D=3D=3D=3D=3Dserver.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > debug=3D"99" > connectionURL=3D"ldap://yoebills.i.yoebills.com:389/" > connectionName=3D"git.LDAPTOMCAT@i.yoebills.com" > connectionPassword=3D"asdef" > userBase=3D"dc=3Di,dc=3Dyoebills,dc=3Dcom" > userSearch=3D"(sAMAccountName=3D{0})" > roleBase=3D"dc=3Di,dc=3Dyoebills,dc=3Dcom" > roleName=3D"cn" > roleSearch=3D"(member=3D{0})" > roleSubtree=3D"true" > userSubtree=3D"true" > /> > =20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D appl= ication "web.xml" =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D > > Example Security Constraint > > Protected Area > > /* > > DELETE > GET > POST > PUT > > > > sg-admin > > > > FORM > Form based authentication > > /jsp/security/protected/login.jsp > /jsp/security/protected/error.jsp > > > > > sg-admin > >=20 > =20 > =20 > Vicky --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org