Return-Path: Delivered-To: apmail-karaf-dev-archive@minotaur.apache.org Received: (qmail 75128 invoked from network); 13 Jul 2010 13:49:21 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Jul 2010 13:49:21 -0000 Received: (qmail 24180 invoked by uid 500); 13 Jul 2010 13:49:21 -0000 Delivered-To: apmail-karaf-dev-archive@karaf.apache.org Received: (qmail 24161 invoked by uid 500); 13 Jul 2010 13:49:21 -0000 Mailing-List: contact dev-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list dev@karaf.apache.org Received: (qmail 24152 invoked by uid 99); 13 Jul 2010 13:49:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jul 2010 13:49:20 +0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=FREEMAIL_FROM,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gnodet@gmail.com designates 74.125.82.176 as permitted sender) Received: from [74.125.82.176] (HELO mail-wy0-f176.google.com) (74.125.82.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jul 2010 13:49:14 +0000 Received: by wyb29 with SMTP id 29so4505037wyb.21 for ; Tue, 13 Jul 2010 06:48:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=tKDPjBfUO3s3H7YXnBX6mdXVVXjRpe4tR0T8troHfuk=; b=n1nLjTbOryxLEjEpzOusceotDDjzr+WW+bvu7JYtscOQS9L3HQhNUXQ2GZhsXBBuem NTPDpwFgFZcFI5QD4SkkPldI1jbf+gtIpWYkZ41CfYVmXoXTTuRMwEGHFq4SjPU3nJOS ZfE8YDBtg76ch4DbF+lnZ7+qGdIzqAePEGW2I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=MCy5kYzS5ycunwFn7tcMnKVGeGIhS6EAs9nQnLBqcw7VyYT2FmYK+iCf87UB4AnZfT XUZidl7r8meiBEiFHHcsMmQeZZqRiNkd7GRdsA22gjpurD9n2mhugVYoG5mK8x4N3bQ5 2fdkZCoSSm7BMdSIY2pzDeP9LeZTINEYUiPq8= MIME-Version: 1.0 Received: by 10.227.136.136 with SMTP id r8mr13731967wbt.156.1279028931462; Tue, 13 Jul 2010 06:48:51 -0700 (PDT) Received: by 10.216.74.18 with HTTP; Tue, 13 Jul 2010 06:48:51 -0700 (PDT) In-Reply-To: <1279024235502-963228.post@n3.nabble.com> References: <1279010141678-962815.post@n3.nabble.com> <1279022595133-963158.post@n3.nabble.com> <1279024235502-963228.post@n3.nabble.com> Date: Tue, 13 Jul 2010 15:48:51 +0200 Message-ID: Subject: Re: Karaf Webconsole and JAAS how does it work? From: Guillaume Nodet To: dev Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Yeah, debugging is a good solution in that case. You should try to put a breakpoint in org.apache.karaf.webconsole.JaasSecurityProvider#authenticate method and see what happens. If you don't hit that breakpoint, it means the webconsole does not see karaf authenticator, else you should see an exception in that method. On Tue, Jul 13, 2010 at 2:30 PM, Achim Nierbeck wro= te: > > That's what is driving me nuts, I do not have any exceptions. > It asks me for the credentials over and over again :( > > I just started the whole server with DEBUG log level and the sift logger > enabled. > It looks like I'm not authorized, I'll attach the > org.ops4j.pax.web.pax-web-jetty.log file > > http://karaf.922171.n3.nabble.com/file/n963228/org.ops4j.pax.web.pax-web-= jetty.log > org.ops4j.pax.web.pax-web-jetty.log > > > Guillaume Nodet wrote: >> >> Any exception in the log ? Also, I'm not sure to understand what you >> see, is the http request denied ? >> >> >> On Tue, Jul 13, 2010 at 2:03 PM, Achim Nierbeck >> wrote: >>> >>> >>> I already did that, and I also configured >>> the pax-web Container with the following file: >>> >>> org.ops4j.pax.web.cfg >>> >>> and the following properties: >>> >>> org.apache.karaf.features.configKey=3Dorg.ops4j.pax.web >>> org.osgi.service.http.port=3D8080 >>> org.ops4j.pax.web.session.timeout=3D30 >>> >>> so if I call >>> >>> http://localhost:8080/system/console >>> >>> i do get the request for username and passwort, but I'm still not able = to >>> get to the webconsole, >>> which is quite strange since I did this also with the Karaf 1.6.0 relea= se >>> where it did work. >>> >>> >>> Guillaume Nodet wrote: >>>> >>>> I think that' s because the webconsole feature has some additional >>>> config: >>>> >>>> =A0 =A0 =A0 =A0 >>>> =A0 =A0 =A0 =A0 =A0 realm=3Dkaraf >>>> =A0 =A0 =A0 =A0 >>>> >>>> If you put a file named org.apache.karaf.webconsole.cfg in the etc dir >>>> with the above properties, it should work. >>>> >>>> On Tue, Jul 13, 2010 at 10:35 AM, Achim Nierbeck >>>> wrote: >>>>> >>>>> Hi, >>>>> >>>>> Right now I'm repackaging the Karaf 1.99 with some additional bundles= . >>>>> Basically it is the same as if I would use the features >>>>> spring >>>>> spring-dm >>>>> http >>>>> war >>>>> webconsole >>>>> >>>>> and some additional bundles for all kinds of apache commons stuff. >>>>> >>>>> when i call the webconsole I do get the prompt for the credentials, b= ut >>>>> they >>>>> are not accepted. >>>>> >>>>> If i use the "Vanilla" Karaf 1.99 and install those features later it >>>>> works, >>>>> so I don't know right now where the >>>>> problem is. >>>>> >>>>> Thanks in advance :) >>>>> >>>>> Achim >>>>> -- >>>>> View this message in context: >>>>> http://karaf.922171.n3.nabble.com/Karaf-Webconsole-and-JAAS-how-does-= it-work-tp962815p962815.html >>>>> Sent from the Karaf - Dev mailing list archive at Nabble.com. >>>>> >>>> >>>> >>>> >>>> -- >>>> Cheers, >>>> Guillaume Nodet >>>> ------------------------ >>>> Blog: http://gnodet.blogspot.com/ >>>> ------------------------ >>>> Open Source SOA >>>> http://fusesource.com >>>> >>>> >>> >>> -- >>> View this message in context: >>> http://karaf.922171.n3.nabble.com/Karaf-Webconsole-and-JAAS-how-does-it= -work-tp962815p963158.html >>> Sent from the Karaf - Dev mailing list archive at Nabble.com. >>> >> >> >> >> -- >> Cheers, >> Guillaume Nodet >> ------------------------ >> Blog: http://gnodet.blogspot.com/ >> ------------------------ >> Open Source SOA >> http://fusesource.com >> >> > > -- > View this message in context: http://karaf.922171.n3.nabble.com/Karaf-Web= console-and-JAAS-how-does-it-work-tp962815p963228.html > Sent from the Karaf - Dev mailing list archive at Nabble.com. > --=20 Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ ------------------------ Open Source SOA http://fusesource.com