Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 41562 invoked from network); 23 Feb 2010 09:46:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Feb 2010 09:46:09 -0000 Received: (qmail 44451 invoked by uid 500); 23 Feb 2010 09:46:08 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 44391 invoked by uid 500); 23 Feb 2010 09:46:08 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 44380 invoked by uid 99); 23 Feb 2010 09:46:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Feb 2010 09:46:08 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [194.172.26.33] (HELO MX1.aeb.de) (194.172.26.33) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Feb 2010 09:45:59 +0000 X-IronPort-AV: E=Sophos;i="4.49,525,1262559600"; d="scan'208";a="4956297" Received: from unknown (HELO S-HQMX6.pmbelz.de) ([10.237.5.6]) by MX1I.pmbelz.de with ESMTP; 23 Feb 2010 10:45:38 +0100 Received: from S-HQMX6.pmbelz.de ([fe80::c11d:7ab7:ed94:fb34]) by S-HQMX6.pmbelz.de ([fe80::c11d:7ab7:ed94:fb34%14]) with mapi; Tue, 23 Feb 2010 10:45:38 +0100 From: "Cech. Ulrich" To: "'users@jackrabbit.apache.org'" Date: Tue, 23 Feb 2010 10:45:37 +0100 Subject: AW: AW: UserManagement Thread-Topic: AW: UserManagement Thread-Index: Acq0Z+Ty68jyIA8HSNCvC88rSg2I0gAAknMQ Message-ID: References: <484A95FB-ACEE-4C69-80DF-C9B206739BE3@tfd.co.uk> <9059586A-9281-475E-9E51-6920ECEE4736@gmail.com> In-Reply-To: <9059586A-9281-475E-9E51-6920ECEE4736@gmail.com> Accept-Language: de-DE Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: de-DE Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Thanks for answering without Eclipse :-)) I tried to scan the Sling-Sourcecode for help, but the Sling-Code uses this= snippet to compare the new Passwort with the existent password, so this co= de should work somehow: Value[] pwdProperty =3D ((User)auth).getProperty("rep:password"); I am logged in the repository with the default 'admin'-account, so I should= have all neccessary rights, but this code returned pwdProperty with "null"= . AccessControlUtil deals with privileges on pathes, I don't find any helpful= hint for the problem with the user passwords. Ok, if "rep:password" is protected, than you will be right, that this doesn= 't work in a findAuthorizables() methods. If my further problem with the properties of an authorizables is fixed, the= n I can find another property for getting all registered users in the repos= itory, but as long as these methods only return empty lists, that would be = difficult ;-) I searched the net, but to this topic there is really a big lack of documen= tation. If I managed all these problems, I would like to write all these an= swers in the wiki or make some tutorial on this. Perhaps you have some hint later (in the meantime I will start with the ACL= topics). Thank you very much, Ulrich -----Urspr=FCngliche Nachricht----- Von: Ian Boston [mailto:ianboston@googlemail.com] Im Auftrag von Ian Boston Gesendet: Dienstag, 23. Februar 2010 10:10 An: users@jackrabbit.apache.org Cc: users@jackrabbit.apache.org Betreff: Re: AW: UserManagement rep:password is a protected property. Iirc you have to use accesscontrolutils to set it. Have a look in the sling/bundles/jcr/ jackrabbit-accessmanager in apache sling to see an example of how. Also I don't think that you can use rep:password in a search. Unfortunately eclipse doesn't run on an iPhone so that's from memory ;) Ian Sent from my iPhone On 23 Feb 2010, at 07:17, "Cech. Ulrich" wrote: > Hi Ian, > > thanks for your response. > > To 1 (changing password): > The problem here is that i get the NoSuchElementException while > calling: > Value[] pwdProperty =3D ((User)auth).getProperty("rep:password"); > (copied from the Sling code) > > If I call: > Authorizable a =3D um.getAuthorizable(userId); // 'um' is the normal > UserManager > Iterator i =3D a.getPropertyNames(); > The resulting iterator is empty, so it seams that there are no > properties for the user, what I think is not the case. > > > jcr:read for anonymous ?> > Good idea ;-)... shame on me > > > there, /rep:security is protected so a normal session wont be able > to get to it.> > Like Matt asked in his post, how can we search for "all" existing > users. I tried to find for example a special password with > "um.findAuthorizables("rep:password", "admin");" for users with > password "admin", but this also returned an empty iterator. > > Thanks again, > Ulrich > > > Treffen Sie AEB vom 2.-4. M?rz 2010 auf der LogiMAT in Stuttgart. > Halle 5, Stand 407. > Weitere Informationen und Terminvereinbarung unter: www.aeb.de/logimat Treffen Sie AEB vom 2.-4. M=E4rz 2010 auf der LogiMAT in Stuttgart. Halle 5= , Stand 407. Weitere Informationen und Terminvereinbarung unter: www.aeb.de/logimat