Return-Path: X-Original-To: apmail-qpid-users-archive@www.apache.org Delivered-To: apmail-qpid-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 9741B18521 for ; Fri, 12 Jun 2015 09:18:31 +0000 (UTC) Received: (qmail 80889 invoked by uid 500); 12 Jun 2015 09:18:26 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 80872 invoked by uid 500); 12 Jun 2015 09:18:26 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 80843 invoked by uid 99); 12 Jun 2015 09:18:26 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jun 2015 09:18:26 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id AD35EC0C6F for ; Fri, 12 Jun 2015 09:18:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.408 X-Spam-Level: X-Spam-Status: No, score=-0.408 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_MSPIKE_H2=-1.108, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id ZEDhxYRA3Mkq for ; Fri, 12 Jun 2015 09:18:13 +0000 (UTC) Received: from mail-ie0-f170.google.com (mail-ie0-f170.google.com [209.85.223.170]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id F2C9C216F2 for ; Fri, 12 Jun 2015 09:18:12 +0000 (UTC) Received: by iebps5 with SMTP id ps5so20727466ieb.3 for ; Fri, 12 Jun 2015 02:18:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=tI4eWV+VH0/gqwQk2flS3EwlBxulTI3Scr/KkrN4k9I=; b=SFtBsZzEJ/061swLj9Nh5Bjc2+TQXNzGkQwjv+Ew+vpBUY+MtPDeQgFEYv94+n35HE NS3IH4FGTLk64CZH1PFX6T+Chkx4WUAVmNDEDaVoheVdTcElD33xSZqe1dNk/KNHIcdg WZ3BQkB7g0ej66Zadl4O91WjxMbZgzn7I/EDxap7SaSJvN+uOc2+tsYAUghhWNNoJhTD tbIwKWDROPjutrNZq5NQ6WFPf054rsxhV72HTLK1cJnRWedm/+P84sVdTgRi39JtUDNc jPpwp9xOqsV/+e4UW3BOS3IrjeoaAZYJUQdq22BcThLHQG52+f9FGNCWKiy5GyrOg6i3 U/Mw== MIME-Version: 1.0 X-Received: by 10.107.132.87 with SMTP id g84mr16603357iod.25.1434100686328; Fri, 12 Jun 2015 02:18:06 -0700 (PDT) Received: by 10.36.111.132 with HTTP; Fri, 12 Jun 2015 02:18:06 -0700 (PDT) In-Reply-To: <557A9797.1010709@gmail.com> References: <55797EF6.8090003@redhat.com> <55798464.5040706@redhat.com> <5579A093.8020409@redhat.com> <5579A752.8020007@gmail.com> <557A9797.1010709@gmail.com> Date: Fri, 12 Jun 2015 10:18:06 +0100 Message-ID: Subject: Re: Runnig python examples From: Robbie Gemmell To: "users@qpid.apache.org" Content-Type: text/plain; charset=UTF-8 I tend to disagree. The option exists, and seems about as useful (if obviously slightly different) as e.g. being able to enable the ANONYMOUS authentication provider. Having it written down somewhere other than a mailing list would make answering this type of question simpler in future (or avoid it having to be asked). Is the fact that the broker only offers PLAIN when using SSL actually documented either? To be fair, the precise mechanisms supported by each Authentication Provider have never really been documented explicitly (only implicitly in some cases by their names), but given this was a change in behaviour from the past and isnt particularly obvious it might be nice if it was called out somewhere. Robbie On 12 June 2015 at 09:25, Lorenz Quack wrote: > I'm not sure this should be in the docs. I would not encourage people to > send password in the clear over a network. > > Lorenz > > > > On 11/06/15 17:37, Robbie Gemmell wrote: >> >> Can this be added to the documentation to make it easier to point >> people at, and make it better known? Assuming it isnt already that is, >> I had a peek for the 0.32 docs but didnt see it. >> >> Robbie >> >> On 11 June 2015 at 16:20, Lorenz Quack wrote: >>> >>> Hi Mansour, >>> >>> if you want to connect with SASL PLAIN on a unsecured connection (which >>> is >>> obviously not recommended). you need to tell the to allow this. >>> You can do this by setting >>> "secureOnlyMechanisms" : [ ] >>> in the plain authenticationProvider section in your config.json file. >>> >>> It should then look something like this: >>> >>> "authenticationproviders" : [ { >>> "name" : "passwordFile", >>> "type" : "PlainPasswordFile", >>> "path" : >>> "${qpid.home_dir}${file.separator}etc${file.separator}passwd", >>> "secureOnlyMechanisms" : [ ], >>> "preferencesproviders" : [{ >>> "name": "fileSystemPreferences", >>> "type": "FileSystemPreferences", >>> "path" : >>> "${qpid.work_dir}${file.separator}user.preferences.json" >>> }] >>> } ], >>> >>> >>> Kind Regards, >>> Lorenz >>> >>> >>> >>> >>> On 11/06/15 16:09, Mansour Al Akeel wrote: >>>> >>>> I restarted the server, but still no juice ! >>>> is there a way I can tell proton to use AMPQ 0-9 or 0-10 ? >>>> >>>> I think reverting back to a previous version should solve my problems >>>> for >>>> now ! >>>> >>>> >>>> >>>> On Thu, Jun 11, 2015 at 6:52 PM, Gordon Sim wrote: >>>>> >>>>> On 06/11/2015 03:28 PM, Mansour Al Akeel wrote: >>>>>> >>>>>> Gordon, >>>>>> thank you. >>>>>> I added Both Anonymous and PLAIN. Here's the steps to add them from >>>>>> the httpManagement console: >>>>>> -Double click "Broker" folder. Go to "Authentication Providers", and >>>>>> click >>>>>> add. >>>>>> -Fill the current information: >>>>>> Name: anonymous >>>>>> Type: Anonymous >>>>>> >>>>>> -Then did it again for Plain: >>>>>> Name: PLAIN >>>>>> Type: Plain >>>>>> and added a user guest:guest >>>>>> >>>>>> >>>>>> Now, went to "Broker >> Ports >> AMQP", Then " >> Edit" I changed the >>>>>> "Authorization Provider", once for PLAIN and for Anonymous. >>>>>> >>>>>> With PLAIN and client side credentials "guest:guest", I am getting on >>>>>> the broker: >>>>>> >>>>>> >>>>>> 2015-06-11 18:22:35,527 INFO [IoReceiver - /127.0.0.1:33637] >>>>>> (stats.StatisticsCounter) - Resetting statistics for counter: >>>>>> messages-delivered-1-13 >>>>>> 2015-06-11 18:22:35,527 INFO [IoReceiver - /127.0.0.1:33637] >>>>>> (stats.StatisticsCounter) - Resetting statistics for counter: >>>>>> data-delivered-1-14 >>>>>> 2015-06-11 18:22:35,527 INFO [IoReceiver - /127.0.0.1:33637] >>>>>> (stats.StatisticsCounter) - Resetting statistics for counter: >>>>>> messages-received-1-15 >>>>>> 2015-06-11 18:22:35,527 INFO [IoReceiver - /127.0.0.1:33637] >>>>>> (stats.StatisticsCounter) - Resetting statistics for counter: >>>>>> data-received-1-16 >>>>>> 2015-06-11 18:22:35,527 DEBUG [IoReceiver - /127.0.0.1:33637] (FRM) - >>>>>> SEND[/127.0.0.1:33637|0] : >>>>>> SaslMechanisms{saslServerMechanisms=[CRAM-MD5]} >>>>> >>>>> >>>>> That looks like CRAM-MD5 is still the only option offered... did you >>>>> try >>>>> restarting the broker (I'm not sure if this is required)? >>>>> >>>>> [...] >>>>>> >>>>>> While we are on this subject, I went back and tried to reinstall >>>>>> python-qpid-proton, getting an error when installing it. The installer >>>>>> reports a success. However, there are some errors installing >>>>>> python-qpid-proton: >>>>>> >>>>>> =============================================== >>>>>> localhost qpid-broker # pip install python-qpid-proton >>>>>> Downloading/unpacking python-qpid-proton >>>>>> Downloading python-qpid-proton-0.9.1.zip (90kB): 90kB downloaded >>>>>> Running setup.py >>>>>> (path:/tmp/pip_build_root/python-qpid-proton/setup.py) egg_info for >>>>>> package python-qpid-proton >>>>>> >>>>>> Installing collected packages: python-qpid-proton >>>>>> Running setup.py install for python-qpid-proton >>>>>> Did not find libqpid-proton via pkg-config: >>>>>> >>>>>> Using bundled libqpid-proton >>>>>> fetching >>>>>> http://www.apache.org/dist/qpid/proton/0.9.1/qpid-proton-0.9.1.tar.gz >>>>>> into build/bundled >>>>>> Using openssl (found via pkg-config). >>>>>> cc -c /tmp/clock_getttimeuwm6XO.c -o >>>>>> build/temp.linux-x86_64-2.7/tmp/clock_getttimeuwm6XO.o >>>>>> cc build/temp.linux-x86_64-2.7/tmp/clock_getttimeuwm6XO.o -o >>>>>> build/temp.linux-x86_64-2.7/a.out >>>>>> build/temp.linux-x86_64-2.7/tmp/clock_getttimeuwm6XO.o: In >>>>>> function >>>>>> `main': >>>>>> clock_getttimeuwm6XO.c:(.text+0x15): undefined reference to >>>>>> `clock_getttime' >>>>> >>>>> >>>>> That looks like it might just be a test for determining what is >>>>> available. >>>>> If the install proceeded without error after that, I would not worry >>>>> about >>>>> it. >>>>> >>>>>> collect2: error: ld returned 1 exit status >>>>>> building 'libqpid-proton' extension >>>>>> x86_64-pc-linux-gnu-gcc -pthread -fPIC -Ibuild/include >>>>>> >>>>>> >>>>>> >>>>>> -I/tmp/pip_build_root/python-qpid-proton/build/bundled/qpid-proton/proton-c/src >>>>>> >>>>>> >>>>>> >>>>>> -I/tmp/pip_build_root/python-qpid-proton/build/bundled/qpid-proton/proton-c/include >>>>>> -I/usr/include/python2.7 -c /tmp/pip_build >>>>>> >>>>>> >>>>>> >>>>>> _root/python-qpid-proton/build/bundled/qpid-proton/proton-c/src/object/record.c >>>>>> -o >>>>>> >>>>>> >>>>>> build/temp.linux-x86_64-2.7/tmp/pip_build_root/python-qpid-proton/build/bundled/qpid-proton/proton-c/src/object/record.o >>>>>> -std=gnu99 -Dqpid_proton_EXPORTS -DUSE_ATOLL -DUSE_CLOCK_GETT >>>>>> IME -DUSE_STRERROR_R -DUSE_UUID_GENERATE >>>>>> x86_64-pc-linux-gnu-gcc -pthread -fPIC -Ibuild/include >>>>>> >>>>>> >>>>>> >>>>>> -I/tmp/pip_build_root/python-qpid-proton/build/bundled/qpid-proton/proton-c/src >>>>>> >>>>>> >>>>>> >>>>>> -I/tmp/pip_build_root/python-qpid-proton/build/bundled/qpid-proton/proton-c/include >>>>>> -I/usr/include/python2.7 -c /tmp/pip_build >>>>>> >>>>>> >>>>>> >>>>>> _root/python-qpid-proton/build/bundled/qpid-proton/proton-c/src/object/string.c >>>>>> -o >>>>>> >>>>>> >>>>>> build/temp.linux-x86_64-2.7/tmp/pip_build_root/python-qpid-proton/build/bundled/qpid-proton/proton-c/src/object/string.o >>>>>> -std=gnu99 -Dqpid_proton_EXPORTS -DUSE_ATOLL -DUSE_CLOCK_GETT >>>>>> IME -DUSE_STRERROR_R -DUSE_UUID_GENERATE >>>>>> ...... >>>>>> >>>>>> --------------------------------------------------------------------- >>>>>> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org >>>>>> For additional commands, e-mail: users-help@qpid.apache.org >>>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org >>>>> For additional commands, e-mail: users-help@qpid.apache.org >>>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org >>>> For additional commands, e-mail: users-help@qpid.apache.org >>>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org >>> For additional commands, e-mail: users-help@qpid.apache.org >>> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org >> For additional commands, e-mail: users-help@qpid.apache.org >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org > For additional commands, e-mail: users-help@qpid.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org For additional commands, e-mail: users-help@qpid.apache.org