Return-Path: Delivered-To: apmail-qpid-users-archive@www.apache.org Received: (qmail 46012 invoked from network); 16 Feb 2010 14:10:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Feb 2010 14:10:49 -0000 Received: (qmail 66657 invoked by uid 500); 16 Feb 2010 14:10:49 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 66629 invoked by uid 500); 16 Feb 2010 14:10:49 -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 66619 invoked by uid 99); 16 Feb 2010 14:10:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Feb 2010 14:10:49 +0000 X-ASF-Spam-Status: No, hits=-8.0 required=10.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gsim@redhat.com designates 209.132.183.28 as permitted sender) Received: from [209.132.183.28] (HELO mx1.redhat.com) (209.132.183.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Feb 2010 14:10:41 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o1GEAIjC028487 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 16 Feb 2010 09:10:18 -0500 Received: from [10.11.10.42] (vpn-10-42.rdu.redhat.com [10.11.10.42]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o1GEAHop025010 for ; Tue, 16 Feb 2010 09:10:17 -0500 Message-ID: <4B7AA6C2.7070002@redhat.com> Date: Tue, 16 Feb 2010 14:08:02 +0000 From: Gordon Sim Organization: Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom.,Registered in England and Wales under Company Registration No. 3798903,Directors: Michael Cunningham (USA), Charlie Peters (USA) and David Owens (Ireland) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-3.fc11 Thunderbird/3.0 MIME-Version: 1.0 To: users@qpid.apache.org Subject: Re: Getting started... References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-Virus-Checked: Checked by ClamAV on apache.org On 02/15/2010 05:52 PM, Cajus Pollmeier wrote: > Hmm. Looks like the specs declare an user-id in the message-properties. The python docs don't tell me much about session.message_properties() and possible methods. > > Is there a way to get it? You can get information on the various properties using pythons help mechanism and an interactive python session. (import qpid.session, then help(qpid.session.Session)). That will include information on the methods and properties available (most of the text is taken from the amqp xml spec). msg.get("message_properties").userid lets you get at the userid (I believe msg["message_properties"].userid would do the same. Btw, you may also want to look at the higher level api in qpid.messaging. It aims to abstract a lot of the protocol details making it easier to use and more future proof. > > Am 15.02.2010 um 10:55 schrieb Cajus Pollmeier: > >> Hi, >> >> sorry for the badly chosen subject - I'm new to the world of amqp/qpid and I'm playing with the python stuff in the moment. While digging around, I ran into a couple of questions: >> >> The python examples offer a .body element for messages, where I can get the message body. How can I find out which SASL user sent the message? >> >> Alternatively: for qpid, there's an ACL module. I'm authenticating against LDAP and I'd like to use dynamic groups in order to define ACLs depending on a small number of groups. In my case, I'd like to store groups inside of my LDAP tree and not statically defined in my qpid policy file. Is it possible to get this kind of behavior without creating an additional ACL module? >> >> And one python thingie: what would be the preferred way to use a python library inside a threaded environment? I've seen that there's a twisted integrated non qpid library for that, but I can't get it up and running with qpid. >> >> Thanks, >> Cajus >> --------------------------------------------------------------------- >> Apache Qpid - AMQP Messaging Implementation >> Project: http://qpid.apache.org >> Use/Interact: mailto:users-subscribe@qpid.apache.org >> > > > --------------------------------------------------------------------- > Apache Qpid - AMQP Messaging Implementation > Project: http://qpid.apache.org > Use/Interact: mailto:users-subscribe@qpid.apache.org > --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:users-subscribe@qpid.apache.org