From usersqcarrillo@example.net Thu Apr 02 12:42:57 2009 Return-Path: <usersqcarrillo@example.net> Delivered-To: qcarrillo@example.net Received: (qmail 86223 invoked from network); 2 Apr 2009 12:42:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Apr 2009 12:42:57 -0000 Received: (qmail 15515 invoked by uid 500); 2 Apr 2009 12:42:56 -0000 Delivered-To: qcarrillo@example.net Received: (qmail 15476 invoked by uid 500); 2 Apr 2009 12:42:56 -0000 Mailing-List: contact qcarrillo@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:qcarrillo@example.net> List-Unsubscribe: <mailto:qcarrillo@example.net> List-Post: <mailto:qcarrillo@example.net> List-Id: <users.directory.apache.org> Reply-To: qcarrillo@example.net Delivered-To: mailing list qcarrillo@example.net Delivered-To: moderator for qcarrillo@example.net Received: (qmail 99825 invoked by uid 99); 2 Apr 2009 11:25:49 -0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C9B385.A04E9E72" Subject: Cannot add/list entries - corrupted record? Date: Thu, 2 Apr 2009 12:24:45 +0100 Message-ID: <qcarrillo@example.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Cannot add/list entries - corrupted record? Thread-Index: AcmzhaBcTGw6Va8WTmuA3smn9Xfcxg== From: "Petr Nejedly" <qcarrillo@example.net> To: <qcarrillo@example.net> X-Scanned-By: MailControl A_08_51_00 (www.mailcontrol.com) on 83.161.120.155 X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C9B385.A04E9E72 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi all, =20 we're running Apache DC 1.3 on a Linux machine. So far, everything was ok. But now we're facing a problem with listing entires using the Eclipse plugin. When I try to refresh list of users, I'm getting this error: =20 ------------------------------------------------------------------------ --------------------- #!SEARCH RESULT DONE (218) ERROR #!CONNECTION ldap://83.161.120.155:10389 #!DATE 2009-04-02T12:20:52.387 #!ERROR [LDAP: error code 80 - OTHER: failed for SearchRequest baseDn : '83.161.120.155=3Dusers,83.161.120.155=3Dodg,0.9.2342.19200383.161.120.155=3Dodg,0.9.2342.= 192 00383.161.120.155=3Dondemand,0.9.2342.19200383.161.120.155=3Dco,0.9.2342.19200300. 100.1.25=3Duk' filter : '(83.161.120.155=3D*:[198])' scope : single level typesOnly : false Size Limit : 1000 Time Limit : no limit Deref Aliases : deref Always attributes : 'hassubordinates', 'objectclass' : null] # numEntries : 174 ------------------------------------------------------------------------ --------------------- =20 I wonder if it could be caused by a corrupted record? It seems that user 'Jia Chi' has been created before but not properly, since it's not showing in the users list (or indeed a search for her sn returns nothing), but when we're trying to add her, we're geting this error: =20 ------------------------------------------------------------------------ --------------------- #!RESULT ERROR #!CONNECTION ldap://83.161.120.155:10389 #!DATE 2009-04-02T12:04:45.707 #!ERROR [LDAP: error code 68 - ENTRY_ALREADY_EXISTS: failed for Add Request : ClientEntry dn: 83.161.120.155=3Djia chi,83.161.120.155=3Dusers,83.161.120.155=3Dodg,0.9.2342.19200383.161.120.155=3Dodg,0.9.23= 42. 19200383.161.120.155=3Dondemand,0.9.2342.19200383.161.120.155=3Dco,0.9.2342.192003 83.161.120.155=3Duk objectclass: person objectclass: organizationalPerson objectclass: inetOrgPerson objectclass: top sn: Chi cn: Jia Chi uid: jchi userpassword: '0x70 0x61 0x73 0x73 0x77 0x6F 0x72 0x64 ' : cn=3DJia Chi,ou=3DUsers,ou=3DODG,dc=3Dodg,dc=3Dondemand,dc=3Dco,dc=3Duk already exis= ts!] dn: cn=3DJia Chi,ou=3DUsers,ou=3DODG,dc=3Dodg,dc=3Dondemand,dc=3Dco,dc=3Duk changetype: add objectClass: person objectClass: organizationalPerson objectClass: inetOrgPerson objectClass: top userpasswor888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4 cGFzc3dvcmQ=3D uid: jchi sn: Chi cn: Jia Chi ------------------------------------------------------------------------ --------------------- =20 Is there a way of deleting this record somehow or run some kind of self-healing process on the server? =20 Best regards, =20 Petr =20 The information contained in this email and its attachments is confidential= and may be the subject of legal, professional or other privileged informat= ion. It is intended only for the named addressees and may not be disclosed = to anyone else without consent from On Demand. If you are not the named add= ressee you must not use, disclose, distribute, copy, print or rely on the c= ontents of this email and should destroy it immediately. Whilst On Demand t= akes care to protect its systems from electronic virus attack or other harm= ful event, the firm gives no warranty that this email message (including an= y attachments to it) is free of any virus or other harmful matter and accep= ts no responsibility for any loss or damage resulting from the recipient re= ceiving, opening or using it. If you need any further information, please c= ontact the originator of this message on 840.935.1472. Website: www.= ondemand.co.uk. Registered Office: 1 Stephen Street, London, W1T 1AL. Regis= tered in the UK No.4094951. This message has been scanned for viruses by BlackSpider MailControl - www.= blackspider.com ------_=_NextPart_001_01C9B385.A04E9E72-- From usersqcarrillo@example.net Thu Apr 02 16:21:34 2009 Return-Path: <usersqcarrillo@example.net> Delivered-To: qcarrillo@example.net Received: (qmail 34676 invoked from network); 2 Apr 2009 16:21:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Apr 2009 16:21:34 -0000 Received: (qmail 57674 invoked by uid 500); 2 Apr 2009 16:21:34 -0000 Delivered-To: qcarrillo@example.net Received: (qmail 57638 invoked by uid 500); 2 Apr 2009 16:21:34 -0000 Mailing-List: contact qcarrillo@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:qcarrillo@example.net> List-Unsubscribe: <mailto:qcarrillo@example.net> List-Post: <mailto:qcarrillo@example.net> List-Id: <users.directory.apache.org> Reply-To: qcarrillo@example.net Delivered-To: mailing list qcarrillo@example.net Received: (qmail 57628 invoked by uid 99); 2 Apr 2009 16:21:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2009 16:21:33 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO smtp.salfordsoftware.co.uk) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2009 16:21:25 +0000 Received: from localhost (localhost [83.161.120.155]) by smtp.salfordsoftware.co.uk (Postfix) with ESMTP id 3511B5A583 for <qcarrillo@example.net>; Thu, 2 Apr 2009 17:21:03 +0100 (BST) Received: from smtp.salfordsoftware.co.uk ([83.161.120.155]) by localhost (smtp.salfordsoftware.co.uk [83.161.120.155]) (amavisd-new, port 10024) with ESMTP id 14652-05 for <qcarrillo@example.net>; Thu, 2 Apr 2009 17:20:56 +0100 (BST) Received: from mail.salfordsoftware.co.uk (ex2.ad.salfordsoftware.co.uk [83.161.120.155]) by smtp.salfordsoftware.co.uk (Postfix) with ESMTP id F325D5A53E for <qcarrillo@example.net>; Thu, 2 Apr 2009 17:20:55 +0100 (BST) Received: from EX2.ad.salfordsoftware.co.uk ([83.161.120.155]) by ex2 ([83.161.120.155]) with mapi; Thu, 2 Apr 2009 17:20:55 +0100 From: Martin Alderson <qcarrillo@example.net> To: "qcarrillo@example.net" <qcarrillo@example.net> Date: Thu, 2 Apr 2009 17:20:52 +0100 Subject: RE: [ApacheDS] OutOfMemoryError Thread-Topic: [ApacheDS] OutOfMemoryError Thread-Index: Acmx+rR1LXa1+5/HTHufrqDQny9TDQBsOeng Message-ID: <5A2110DC1CD00B45A0832E5BF98ECB0602CFB24EDA@ex2> References: <qcarrillo@example.net> <qcarrillo@example.net> <qcarrillo@example.net> <qcarrillo@example.net> <5A2110DC1CD00B45A0832E5BF98ECB0602CFB24DEB@ex2> <qcarrillo@example.net> In-Reply-To: <qcarrillo@example.net> Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, en-GB Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Scanned: qcarrillo@example.net X-Virus-Checked: Checked by ClamAV on apache.org > There was a problem in MINA 1.1.7 in 1.5.4. In fact, if you do a big > search request, responses are stacked into MINA until the searchResultDon= e > is found. It has been fixed while moving to MINA 2.0. > So now, in trunk if you still experience a OOM, then we should investigat= e > what happens. >=20 > We also fixed a memory leak somewhere else (don't remember, but Norval > Hope found it and we applied the patch) >=20 > Can you do some profiling session with Yourkit to see where the memory is > being sucked ? I've done some profiling with JMP and found that 1.5.1, 1.5.4 and trunk all= seem to be holding on to the SearchResponseEntryImpl objects until the end= of the search. For ApacheDS 1.5.4 and 1.5.1 the SearchResponseEntryImpl objects owner grap= h looks like: org.apache.directory.shared.ldap.message.SearchResponseEntryImpl owned by org.apache.mina.filter.codec.ProtocolCodecFilter$MessageByteBuff= er.message owned by org.apache.mina.filter.executor.ExecutorFilter$Event.data owned by java.util.LinkedList$Entry.element owned by java.util.LinkedList$Entry.(next, previous) In ApacheDS trunk (as of 31st March): org.apache.directory.shared.ldap.message.SearchResponseEntryImpl owned by org.apache.mina.core.write.DefaultWriteRequest.message owned by org.apache.mina.filter.codec.ProtocolCodecFilter$MessageWriteR= equest.parentRequest owned by Object[1490] owned by org.apache.mina.util.CircularQueue.items owned by org.apache.mina.core.session.DefaultIoSessionDataStructu= reFactory$DefaultWriteRequestQueue.q Strangely ApacheDS 1.5.4 actually streams the search responses to the clien= t immediately - but still keeps the SearchResponseEntryImpl objects in memo= ry. Any ideas are appreciated! Thanks, Martin From usersqcarrillo@example.net Thu Apr 02 17:00:24 2009 Return-Path: <usersqcarrillo@example.net> Delivered-To: qcarrillo@example.net Received: (qmail 50462 invoked from network); 2 Apr 2009 17:00:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Apr 2009 17:00:23 -0000 Received: (qmail 28425 invoked by uid 500); 2 Apr 2009 17:00:23 -0000 Delivered-To: qcarrillo@example.net Received: (qmail 28389 invoked by uid 500); 2 Apr 2009 17:00:23 -0000 Mailing-List: contact qcarrillo@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:qcarrillo@example.net> List-Unsubscribe: <mailto:qcarrillo@example.net> List-Post: <mailto:qcarrillo@example.net> List-Id: <users.directory.apache.org> Reply-To: qcarrillo@example.net Delivered-To: mailing list qcarrillo@example.net Received: (qmail 28373 invoked by uid 99); 2 Apr 2009 17:00:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2009 17:00:22 +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: domain of qcarrillo@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail-ew0-f180.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2009 17:00:12 +0000 Received: by ewy28 with SMTP id 28so653030ewy.25 for <qcarrillo@example.net>; Thu, 02 Apr 2009 09:59:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=LXZ8kI9H3wTyGnhgT+vG1EJQ1fAMwxxGARkW3KgxD34=; b=qHDabYkgbGvmkOBgz2oXDZQLixJIUZPw70iC9T1I+zuZ8vUdhY/PVHiCIK29/0aSlV gQn0LAm0Nc5AvonbutpVmppWNWLmQ/QQwI5vaifqPpeTGmBvBMAsAQ5wzSel8oYXictE FYylH31vB/9edPq/a/Fa9T0J73ZfS7GfTl9Mk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=G2Xl2zNOOH1tY8Kfl5zdfpT4ixL6MdoWGz8v1VxAMqc3IXrExe4P+mi/hDxshrZWtE K+1C067JrlChXV2n1PcN7+MtUodtUVnE6t1JT8lNXBkeDaSg4tG59uCi5hKV3AUXa1b5 x/O226MXRCTXMn9nHZi2i4BJdZj9Fv1fsJ/Uc= Received: by 83.161.120.155 with SMTP id 13mr5556945ebl.1.1238691591772; Thu, 02 Apr 2009 09:59:51 -0700 (PDT) Received: from ?83.161.120.155? (lon92-10-78-226-4-211.fbx.proxad.net [83.161.120.155]) by mx.google.com with ESMTPS id 23sm1695015eya.16.283.161.120.155.59.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 02 Apr 2009 09:59:51 -0700 (PDT) Sender: Emmanuel Lecharny <qcarrillo@example.net> Message-ID: <qcarrillo@example.net> Date: Thu, 02 Apr 2009 18:59:50 +0200 From: Emmanuel Lecharny <qcarrillo@example.net> User-Agent: Thunderbird 83.161.120.155 (X11/20090318) MIME-Version: 1.0 To: qcarrillo@example.net Subject: Re: [ApacheDS] OutOfMemoryError References: <qcarrillo@example.net> <qcarrillo@example.net> <qcarrillo@example.net> <qcarrillo@example.net> <5A2110DC1CD00B45A0832E5BF98ECB0602CFB24DEB@ex2> <qcarrillo@example.net> <5A2110DC1CD00B45A0832E5BF98ECB0602CFB24EDA@ex2> In-Reply-To: <5A2110DC1CD00B45A0832E5BF98ECB0602CFB24EDA@ex2> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Martin Alderson wrote: >> There was a problem in MINA 1.1.7 in 1.5.4. In fact, if you do a big >> search request, responses are stacked into MINA until the searchResultDone >> is found. It has been fixed while moving to MINA 2.0. >> So now, in trunk if you still experience a OOM, then we should investigate >> what happens. >> >> We also fixed a memory leak somewhere else (don't remember, but Norval >> Hope found it and we applied the patch) >> >> Can you do some profiling session with Yourkit to see where the memory is >> being sucked ? >> > > I've done some profiling with JMP and found that 1.5.1, 1.5.4 and trunk all seem to be holding on to the SearchResponseEntryImpl objects until the end of the search. > > > For ApacheDS 1.5.4 and 1.5.1 the SearchResponseEntryImpl objects owner graph looks like: > > org.apache.directory.shared.ldap.message.SearchResponseEntryImpl > owned by org.apache.mina.filter.codec.ProtocolCodecFilter$MessageByteBuffer.message > owned by org.apache.mina.filter.executor.ExecutorFilter$Event.data > owned by java.util.LinkedList$Entry.element > owned by java.util.LinkedList$Entry.(next, previous) > > In ApacheDS trunk (as of 31st March): > > org.apache.directory.shared.ldap.message.SearchResponseEntryImpl > owned by org.apache.mina.core.write.DefaultWriteRequest.message > owned by org.apache.mina.filter.codec.ProtocolCodecFilter$MessageWriteRequest.parentRequest > owned by Object[1490] > owned by org.apache.mina.util.CircularQueue.items > owned by org.apache.mina.core.session.DefaultIoSessionDataStructureFactory$DefaultWriteRequestQueue.q > > > Strangely ApacheDS 1.5.4 actually streams the search responses to the client immediately - but still keeps the SearchResponseEntryImpl objects in memory. > > Any ideas are appreciated! > There is a BIG bug in MINA 2.0.0-M4 I fixed last week : the CircularList is not thread safe, and when writing messages into it, you may have impredictable results. I replaced it with a ConcurrentList, and the problem is now fixed. We still have to release MINA 2.0.0-RC1, but I think we will do maybe next week. Can you do that : build MINA trunk, and use it (MINA-2.0.0-M4-SNAPSHOT) for a new test, to see if the SearchResponseEntry are still hold ? Thanks ! -- -- cordialement, regards, Emmanuel Lécharny www.iktek.com directory.apache.org From usersqcarrillo@example.net Thu Apr 02 20:53:22 2009 Return-Path: <usersqcarrillo@example.net> Delivered-To: qcarrillo@example.net Received: (qmail 50306 invoked from network); 2 Apr 2009 20:53:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Apr 2009 20:53:21 -0000 Received: (qmail 13012 invoked by uid 500); 2 Apr 2009 20:53:21 -0000 Delivered-To: qcarrillo@example.net Received: (qmail 12964 invoked by uid 500); 2 Apr 2009 20:53:21 -0000 Mailing-List: contact qcarrillo@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:qcarrillo@example.net> List-Unsubscribe: <mailto:qcarrillo@example.net> List-Post: <mailto:qcarrillo@example.net> List-Id: <users.directory.apache.org> Reply-To: qcarrillo@example.net Delivered-To: mailing list qcarrillo@example.net Received: (qmail 12954 invoked by uid 99); 2 Apr 2009 20:53:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2009 20:53:21 +0000 X-ASF-Spam-Status: No, hits=4.6 required=10.0 tests=FH_HELO_EQ_D_D_D_D,HELO_DYNAMIC_IPADDR,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO lvps92-51-130-250.dedicated.hosteurope.de) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2009 20:53:13 +0000 Received: from [83.161.120.155] (localhost [83.161.120.155]) by lvps92-51-130-250.dedicated.hosteurope.de (Postfix) with ESMTP id AEF261174400C for <qcarrillo@example.net>; Thu, 2 Apr 2009 20:52:51 +0000 (UTC) Message-ID: <qcarrillo@example.net> Date: Thu, 02 Apr 2009 22:52:50 +0200 From: Stefan Seelmann <qcarrillo@example.net> User-Agent: Thunderbird 83.161.120.155 (X11/20090318) MIME-Version: 1.0 To: qcarrillo@example.net Subject: Re: Cannot add/list entries - corrupted record? References: <qcarrillo@example.net> In-Reply-To: <qcarrillo@example.net> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Petr, are you using Apache Directory Server? If yes, could you please tell us the version you are using and provide the server logs? Kind Regards, Stefan Petr Nejedly schrieb: > Hi all, > > we're running Apache DC 1.3 on a Linux machine. So far, everything was > ok. But now we're facing a problem with listing entires using the > Eclipse plugin. When I try to refresh list of users, I'm getting this > error: > > ------------------------------------------------------------------------ > --------------------- > #!SEARCH RESULT DONE (218) ERROR > #!CONNECTION ldap://83.161.120.155:10389 > #!DATE 2009-04-02T12:20:52.387 > #!ERROR [LDAP: error code 80 - OTHER: failed for SearchRequest > baseDn : > '83.161.120.155=users,83.161.120.155=odg,0.9.2342.19200383.161.120.155=odg,0.9.2342.192 > 00383.161.120.155=ondemand,0.9.2342.19200383.161.120.155=co,0.9.2342.19200300. > 100.1.25=uk' filter : '(83.161.120.155=*:[198])' scope : single > level typesOnly : false Size Limit : 1000 Time > Limit : no limit Deref Aliases : deref Always attributes > : 'hassubordinates', 'objectclass' : null] > # numEntries : 174 > ------------------------------------------------------------------------ > --------------------- > > I wonder if it could be caused by a corrupted record? It seems that user > 'Jia Chi' has been created before but not properly, since it's not > showing in the users list (or indeed a search for her sn returns > nothing), but when we're trying to add her, we're geting this error: > > ------------------------------------------------------------------------ > --------------------- > #!RESULT ERROR > #!CONNECTION ldap://83.161.120.155:10389 > #!DATE 2009-04-02T12:04:45.707 > #!ERROR [LDAP: error code 68 - ENTRY_ALREADY_EXISTS: failed for Add > Request : ClientEntry dn: 83.161.120.155=jia > chi,83.161.120.155=users,83.161.120.155=odg,0.9.2342.19200383.161.120.155=odg,0.9.2342. > 19200383.161.120.155=ondemand,0.9.2342.19200383.161.120.155=co,0.9.2342.192003 > 83.161.120.155=uk objectclass: person objectclass: > organizationalPerson objectclass: inetOrgPerson objectclass: top > sn: Chi cn: Jia Chi uid: jchi userpassword: '0x70 0x61 0x73 > 0x73 0x77 0x6F 0x72 0x64 ' : cn=Jia > Chi,ou=Users,ou=ODG,dc=odg,dc=ondemand,dc=co,dc=uk already exists!] > dn: cn=Jia Chi,ou=Users,ou=ODG,dc=odg,dc=ondemand,dc=co,dc=uk > changetype: add > objectClass: person > objectClass: organizationalPerson > objectClass: inetOrgPerson > objectClass: top > userpasswor888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4 cGFzc3dvcmQ= > uid: jchi > sn: Chi > cn: Jia Chi > ------------------------------------------------------------------------ > --------------------- > > Is there a way of deleting this record somehow or run some kind of > self-healing process on the server? > > Best regards, > > Petr > > > > The information contained in this email and its attachments is confidential and may be the subject of legal, professional or other privileged information. It is intended only for the named addressees and may not be disclosed to anyone else without consent from On Demand. If you are not the named addressee you must not use, disclose, distribute, copy, print or rely on the contents of this email and should destroy it immediately. Whilst On Demand takes care to protect its systems from electronic virus attack or other harmful event, the firm gives no warranty that this email message (including any attachments to it) is free of any virus or other harmful matter and accepts no responsibility for any loss or damage resulting from the recipient receiving, opening or using it. If you need any further information, please contact the originator of this message on 840.935.1472. Website: www.ondemand.co.uk. Registered Office: 1 Stephen Street, London, W1T 1AL. Registered in the UK No.4094951. > > This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com > From usersqcarrillo@example.net Fri Apr 03 09:50:39 2009 Return-Path: <usersqcarrillo@example.net> Delivered-To: qcarrillo@example.net Received: (qmail 60680 invoked from network); 3 Apr 2009 09:50:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Apr 2009 09:50:39 -0000 Received: (qmail 32806 invoked by uid 500); 3 Apr 2009 09:50:39 -0000 Delivered-To: qcarrillo@example.net Received: (qmail 32743 invoked by uid 500); 3 Apr 2009 09:50:39 -0000 Mailing-List: contact qcarrillo@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:qcarrillo@example.net> List-Unsubscribe: <mailto:qcarrillo@example.net> List-Post: <mailto:qcarrillo@example.net> List-Id: <users.directory.apache.org> Reply-To: qcarrillo@example.net Delivered-To: mailing list qcarrillo@example.net Received: (qmail 32733 invoked by uid 99); 3 Apr 2009 09:50:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 09:50:39 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO smarthost02.mail.zen.net.uk) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 09:50:31 +0000 Received: from [83.161.120.155] (helo=[83.161.120.155]) by smarthost02.mail.zen.net.uk with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from <qcarrillo@example.net>) id 1Lpg2I-0000qM-J6 for qcarrillo@example.net; Fri, 03 Apr 2009 09:50:06 +0000 Message-ID: <qcarrillo@example.net> Date: Fri, 03 Apr 2009 10:50:05 +0100 From: Martin Alderson <qcarrillo@example.net> User-Agent: Thunderbird 83.161.120.155 (X11/20090318) MIME-Version: 1.0 To: qcarrillo@example.net Subject: Re: [ApacheDS] OutOfMemoryError References: <qcarrillo@example.net> <qcarrillo@example.net> <qcarrillo@example.net> <qcarrillo@example.net> <5A2110DC1CD00B45A0832E5BF98ECB0602CFB24DEB@ex2> <qcarrillo@example.net> <5A2110DC1CD00B45A0832E5BF98ECB0602CFB24EDA@ex2> <qcarrillo@example.net> In-Reply-To: <qcarrillo@example.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Originating-Smarthost02-IP: [83.161.120.155] X-Virus-Checked: Checked by ClamAV on apache.org Hi Emmanuel, > There is a BIG bug in MINA 2.0.0-M4 I fixed last week : the CircularList > is not thread safe, and when writing messages into it, you may have > impredictable results. I replaced it with a ConcurrentList, and the > problem is now fixed. We still have to release MINA 2.0.0-RC1, but I > think we will do maybe next week. > > Can you do that : build MINA trunk, and use it (MINA-2.0.0-M4-SNAPSHOT) > for a new test, to see if the SearchResponseEntry are still hold ? > > Thanks ! I've just built mina trunk (producing mina-core-2.0.0-RC1-SNAPSHOT.jar) and tested with that. Unfortunately it still does the same, i.e. the SearchResponseEntrys are held by the DefaultWriteRequestQueue. Martin From usersqcarrillo@example.net Fri Apr 03 09:56:09 2009 Return-Path: <usersqcarrillo@example.net> Delivered-To: qcarrillo@example.net Received: (qmail 64151 invoked from network); 3 Apr 2009 09:56:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Apr 2009 09:56:09 -0000 Received: (qmail 41158 invoked by uid 500); 3 Apr 2009 09:56:09 -0000 Delivered-To: qcarrillo@example.net Received: (qmail 41079 invoked by uid 500); 3 Apr 2009 09:56:09 -0000 Mailing-List: contact qcarrillo@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:qcarrillo@example.net> List-Unsubscribe: <mailto:qcarrillo@example.net> List-Post: <mailto:qcarrillo@example.net> List-Id: <users.directory.apache.org> Reply-To: qcarrillo@example.net Delivered-To: mailing list qcarrillo@example.net Received: (qmail 41069 invoked by uid 99); 3 Apr 2009 09:56:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 09:56:09 +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: domain of qcarrillo@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail-ew0-f180.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 09:55:59 +0000 Received: by ewy28 with SMTP id 28so937525ewy.25 for <qcarrillo@example.net>; Fri, 03 Apr 2009 02:55:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=fBNOmyfKUgsRoWy2rIAgD34hUETwJMeItKonYsAdL3I=; b=CjBBHZ8thoquCsxddozHPXynFirJEqeoEfYiiiiUkhw2ip3/+b5gqlhAAQzCLEoaJV yf/7Sn67g+cnPSSHOc5HK5dHmXEDGo8V5PxOUY76QfM/TSRwsCcy53CSjvjtCS8sYA/Z PX3v9W2akHHB8Be2K7Il0RduRzo0c0ngZv4G8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=F69EHALlwymqR83j+jvjrPUYww4qn8IJ+RUb96k72Gm6d1ZLQae4v7NGT2pKixBnuz kHclVelUAhXs6lGUkItJBnNYmx5KQwzgG2+n8VBxeUe5ccA4bfY9hrzRq+cQzbedpihP /w4zOyVvBXyE9ETObLFd9FkjTaaOg8gaGDf6o= Received: by 83.161.120.155 with SMTP id x44mr344728web.130.1238752539417; Fri, 03 Apr 2009 02:55:39 -0700 (PDT) Received: from ?83.161.120.155? (lon92-10-78-226-4-211.fbx.proxad.net [83.161.120.155]) by mx.google.com with ESMTPS id g9sm4613795gvc.4.283.161.120.155.55.38 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 03 Apr 2009 02:55:38 -0700 (PDT) Sender: Emmanuel Lecharny <qcarrillo@example.net> Message-ID: <qcarrillo@example.net> Date: Fri, 03 Apr 2009 11:55:38 +0200 From: Emmanuel Lecharny <qcarrillo@example.net> User-Agent: Thunderbird 83.161.120.155 (X11/20090318) MIME-Version: 1.0 To: qcarrillo@example.net Subject: Re: [ApacheDS] OutOfMemoryError References: <qcarrillo@example.net> <qcarrillo@example.net> <qcarrillo@example.net> <qcarrillo@example.net> <5A2110DC1CD00B45A0832E5BF98ECB0602CFB24DEB@ex2> <qcarrillo@example.net> <5A2110DC1CD00B45A0832E5BF98ECB0602CFB24EDA@ex2> <qcarrillo@example.net> <qcarrillo@example.net> In-Reply-To: <qcarrillo@example.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Martin Alderson wrote: > Hi Emmanuel, > >> There is a BIG bug in MINA 2.0.0-M4 I fixed last week : the >> CircularList is not thread safe, and when writing messages into it, >> you may have impredictable results. I replaced it with a >> ConcurrentList, and the problem is now fixed. We still have to >> release MINA 2.0.0-RC1, but I think we will do maybe next week. >> >> Can you do that : build MINA trunk, and use it >> (MINA-2.0.0-M4-SNAPSHOT) for a new test, to see if the >> SearchResponseEntry are still hold ? >> >> Thanks ! > > I've just built mina trunk (producing > mina-core-2.0.0-RC1-SNAPSHOT.jar) and tested with that. > > Unfortunately it still does the same, i.e. the SearchResponseEntrys > are held by the DefaultWriteRequestQueue. Ok, so we still have a serious issu we have to fix quickly... Can you give us the information about the used JVM, memory used and such so that we can reproduce the problem easilly ? May be we should reopen the JIRA too. Thanks ! -- -- cordialement, regards, Emmanuel Lécharny www.iktek.com directory.apache.org From usersqcarrillo@example.net Fri Apr 03 11:08:03 2009 Return-Path: <usersqcarrillo@example.net> Delivered-To: qcarrillo@example.net Received: (qmail 5487 invoked from network); 3 Apr 2009 11:08:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Apr 2009 11:08:02 -0000 Received: (qmail 38583 invoked by uid 500); 3 Apr 2009 11:08:02 -0000 Delivered-To: qcarrillo@example.net Received: (qmail 38522 invoked by uid 500); 3 Apr 2009 11:08:02 -0000 Mailing-List: contact qcarrillo@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:qcarrillo@example.net> List-Unsubscribe: <mailto:qcarrillo@example.net> List-Post: <mailto:qcarrillo@example.net> List-Id: <users.directory.apache.org> Reply-To: qcarrillo@example.net Delivered-To: mailing list qcarrillo@example.net Received: (qmail 38511 invoked by uid 99); 3 Apr 2009 11:08:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 11:08:02 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO smarthost02.mail.zen.net.uk) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 11:07:54 +0000 Received: from [83.161.120.155] (helo=[83.161.120.155]) by smarthost02.mail.zen.net.uk with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from <qcarrillo@example.net>) id 1LphFE-0000aY-BB for qcarrillo@example.net; Fri, 03 Apr 2009 11:07:32 +0000 Message-ID: <qcarrillo@example.net> Date: Fri, 03 Apr 2009 12:07:31 +0100 From: Martin Alderson <qcarrillo@example.net> User-Agent: Thunderbird 83.161.120.155 (X11/20090318) MIME-Version: 1.0 To: qcarrillo@example.net Subject: Re: [ApacheDS] OutOfMemoryError References: <qcarrillo@example.net> <qcarrillo@example.net> <qcarrillo@example.net> <qcarrillo@example.net> <5A2110DC1CD00B45A0832E5BF98ECB0602CFB24DEB@ex2> <qcarrillo@example.net> <5A2110DC1CD00B45A0832E5BF98ECB0602CFB24EDA@ex2> <qcarrillo@example.net> <qcarrillo@example.net> <qcarrillo@example.net> In-Reply-To: <qcarrillo@example.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Originating-Smarthost02-IP: [83.161.120.155] X-Virus-Checked: Checked by ClamAV on apache.org > Ok, so we still have a serious issu we have to fix quickly... > > Can you give us the information about the used JVM, memory used and such > so that we can reproduce the problem easilly ? > > May be we should reopen the JIRA too. > > Thanks ! Sun JVM on Windows: Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03) I'm only running 1.5 so I can use JMP though - I have also run tests with 1.6 and had the same problem. I'm starting the server with default settings - which I think is -Xmx 64m. You should be able to reproduce by just starting with a base ApacheDS instance, adding a few thousand entries then searching for them. I created an LDIF with 25000 users of the form: dn: uid=user1,ou=users,ou=system objectclass: person objectclass: organizationalPerson objectclass: inetOrgPerson objectclass: top cn: user1 displayname: test user sn: test uid: test1 then I added them with: ldapmodify -h 83.161.120.155 -p 10389 -D uid=admin,ou=system -w secret -f users.ldif -a I searched with: ldapsearch -h 83.161.120.155 -p 10389 -D uid=admin,ou=system -w secret -z 2000 -b ou=users,ou=system -s one -LLL (objectclass=*) 1.1 This has a delay of a few seconds before the 2000 results are shown. Searching without the size limit (-z 2000) gives the OutOfMemoryError without returning any results. Martin From usersqcarrillo@example.net Mon Apr 06 12:20:11 2009 Return-Path: <usersqcarrillo@example.net> Delivered-To: qcarrillo@example.net Received: (qmail 72408 invoked from network); 6 Apr 2009 12:20:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 6 Apr 2009 12:20:11 -0000 Received: (qmail 9344 invoked by uid 500); 6 Apr 2009 12:20:11 -0000 Delivered-To: qcarrillo@example.net Received: (qmail 9252 invoked by uid 500); 6 Apr 2009 12:20:10 -0000 Mailing-List: contact qcarrillo@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:qcarrillo@example.net> List-Unsubscribe: <mailto:qcarrillo@example.net> List-Post: <mailto:qcarrillo@example.net> List-Id: <users.directory.apache.org> Reply-To: qcarrillo@example.net Delivered-To: mailing list qcarrillo@example.net Delivered-To: moderator for qcarrillo@example.net Received: (qmail 828 invoked by uid 99); 6 Apr 2009 12:15:10 -0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of qcarrillo@example.net designates 83.161.120.155 as permitted sender) X-Authenticated: #15456652 X-Provags-ID: V01U2FsdGVkX1/puAYPGufprMq+InDkIQ8zLDZpoAekG/NUy/6Rz0 2QWfJMGiiXnXoM From: "St3ve" <qcarrillo@example.net> To: <qcarrillo@example.net> Subject: [Studio] Password Editor - MD5 Hash Format Date: Mon, 6 Apr 2009 14:14:38 +0200 Message-ID: <007b01c9b6b1$459a8170$d0cf8450$@de> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_007C_01C9B6C2.09235170" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acm2sUGJWL6LeYgMRhyfx/fNCbzpYg== Content-Language: de-at X-Y-GMX-Trusted: 0 X-FuHaFi: 0.57,0.54 X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_007C_01C9B6C2.09235170 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi there! I have been searching the web for an answer to my question, but couldn't find any related stuff. I am using the "password editor" for setting an user password, hashed with MD5 algorithm. Typing the password "test", the password preview section in the editor shows "{MD5}CY9rzUYh03PK3k6DJie09g==" and Password (Hex): "098f6bcd4621d373cade4e832627b4f6". When I query the server to get the password hash, I receive the one that is listed as the password preview. What algorithm do I need to use to get the Hex Format? Greetings, Steve ------=_NextPart_000_007C_01C9B6C2.09235170-- From usersqcarrillo@example.net Mon Apr 06 16:51:40 2009 Return-Path: <usersqcarrillo@example.net> Delivered-To: qcarrillo@example.net Received: (qmail 14831 invoked from network); 6 Apr 2009 16:51:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 6 Apr 2009 16:51:40 -0000 Received: (qmail 22868 invoked by uid 500); 6 Apr 2009 16:51:39 -0000 Delivered-To: qcarrillo@example.net Received: (qmail 22838 invoked by uid 500); 6 Apr 2009 16:51:39 -0000 Mailing-List: contact qcarrillo@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:qcarrillo@example.net> List-Unsubscribe: <mailto:qcarrillo@example.net> List-Post: <mailto:qcarrillo@example.net> List-Id: <users.directory.apache.org> Reply-To: qcarrillo@example.net Delivered-To: mailing list qcarrillo@example.net Received: (qmail 22828 invoked by uid 99); 6 Apr 2009 16:51:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Apr 2009 16:51:39 +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: domain of qcarrillo@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail-fx0-f168.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Apr 2009 16:51:31 +0000 Received: by fxm12 with SMTP id 12so2024442fxm.25 for <qcarrillo@example.net>; Mon, 06 Apr 2009 09:51:11 -0700 (PDT) MIME-Version: 1.0 Date: Mon, 6 Apr 2009 18:50:56 +0200 Received: by 83.161.120.155 with SMTP id f38mr1824290bkk.65.1239036671216; Mon, 06 Apr 2009 09:51:11 -0700 (PDT) Message-ID: <qcarrillo@example.net> Subject: Schema when does it update and where does it come from? From: Christian Brennsteiner <qcarrillo@example.net> To: qcarrillo@example.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org hi group, i am having a little bit of a problem with a specific opends server hosting a self created schema. my general problem is that apache ds studio thinks of a custom objectClass that us defined as aux that it is structural. so my question is how can i tell if the problem is with opends or apache ds studio? opends's management gui says its aux , apache ds studio says it is structural. who tells the truth here? is there a way to check if opends tells apache ds studio the wrong thing? can i refresh a schema in ds studio? regards chris -- ---------- Christian Brennsteiner Salzburg / Austria / Europe From usersqcarrillo@example.net Mon Apr 06 17:13:37 2009 Return-Path: <usersqcarrillo@example.net> Delivered-To: qcarrillo@example.net Received: (qmail 22377 invoked from network); 6 Apr 2009 17:13:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 6 Apr 2009 17:13:37 -0000 Received: (qmail 55227 invoked by uid 500); 6 Apr 2009 17:13:36 -0000 Delivered-To: qcarrillo@example.net Received: (qmail 55160 invoked by uid 500); 6 Apr 2009 17:13:36 -0000 Mailing-List: contact qcarrillo@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:qcarrillo@example.net> List-Unsubscribe: <mailto:qcarrillo@example.net> List-Post: <mailto:qcarrillo@example.net> List-Id: <users.directory.apache.org> Reply-To: qcarrillo@example.net Delivered-To: mailing list qcarrillo@example.net Received: (qmail 55150 invoked by uid 99); 6 Apr 2009 17:13:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Apr 2009 17:13:36 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of qcarrillo@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO yx-out-2324.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Apr 2009 17:13:29 +0000 Received: by yx-out-2324.google.com with SMTP id 8so1572242yxg.55 for <qcarrillo@example.net>; Mon, 06 Apr 2009 10:13:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=loyLNdAWZLndogxqYYc2HncRNcOOSoAdiwU+utO4JBM=; b=LivIqPGsXl3klFMLEzBuEiVLnsc6KCg8G3JcN/R2smI3Cbk0rMfq7DgN3nO1EZdNog 1uxsAfpBWs7fanK8cxwnr1zEcCmVKoXE2ec3FO6TxPPJvmCJf7yfRdHmRTMyvbPIo0U0 jZ2EOYBZkcNIz6Z0oicIQrMcWREANE02ast40= 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; b=P7E1AgU1klEP+4OvgfHNLd+rnL1KZdN8ykLL0XPulwEY6v08gtjcLIYe+/ecbYFK/u gvWewvoq1SVcUGbB9EXdzRLhMEEqr60KyhP7GIAEGFvclrJ2Qwd5kZAsg3PZc+nZojax rhOBfmAVFyxp1tOGHLb1FfXpwQrXLpegiMSn0= MIME-Version: 1.0 Received: by 83.161.120.155 with SMTP id u12mr8730049ybj.236.1239037988959; Mon, 06 Apr 2009 10:13:08 -0700 (PDT) In-Reply-To: <qcarrillo@example.net> References: <qcarrillo@example.net> Date: Mon, 6 Apr 2009 13:13:08 -0400 Message-ID: <qcarrillo@example.net> Subject: Re: Schema when does it update and where does it come from? From: Alex Karasulu <qcarrillo@example.net> To: qcarrillo@example.net Content-Type: multipart/alternative; boundary=00151751149a3212e90466e60358 X-Virus-Checked: Checked by ClamAV on apache.org --00151751149a3212e90466e60358 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit See what you get with a ldapsearch of cn=schema from the commandline via openldap clients. Alex On Mon, Apr 6, 2009 at 12:50 PM, Christian Brennsteiner <qcarrillo@example.net>wrote: > hi group, > > i am having a little bit of a problem with a specific opends server > hosting a self created schema. > my general problem is that apache ds studio thinks of a custom > objectClass that us defined as aux that it is structural. > > so my question is how can i tell if the problem is with opends or > apache ds studio? > > opends's management gui says its aux , apache ds studio says it is > structural. who tells the truth here? > > is there a way to check if opends tells apache ds studio the wrong thing? > can i refresh a schema in ds studio? > > regards chris > > -- > ---------- > Christian Brennsteiner > Salzburg / Austria / Europe > --00151751149a3212e90466e60358-- From usersqcarrillo@example.net Mon Apr 06 20:05:44 2009 Return-Path: <usersqcarrillo@example.net> Delivered-To: qcarrillo@example.net Received: (qmail 3341 invoked from network); 6 Apr 2009 20:05:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 6 Apr 2009 20:05:44 -0000 Received: (qmail 8470 invoked by uid 500); 6 Apr 2009 20:05:44 -0000 Delivered-To: qcarrillo@example.net Received: (qmail 8397 invoked by uid 500); 6 Apr 2009 20:05:44 -0000 Mailing-List: contact qcarrillo@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:qcarrillo@example.net> List-Unsubscribe: <mailto:qcarrillo@example.net> List-Post: <mailto:qcarrillo@example.net> List-Id: <users.directory.apache.org> Reply-To: qcarrillo@example.net Delivered-To: mailing list qcarrillo@example.net Received: (qmail 8383 invoked by uid 99); 6 Apr 2009 20:05:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Apr 2009 20:05:42 +0000 X-ASF-Spam-Status: No, hits=4.6 required=10.0 tests=FH_HELO_EQ_D_D_D_D,HELO_DYNAMIC_IPADDR,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO lvps92-51-130-250.dedicated.hosteurope.de) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Apr 2009 20:05:35 +0000 Received: from [83.161.120.155] (localhost [83.161.120.155]) by lvps92-51-130-250.dedicated.hosteurope.de (Postfix) with ESMTP id BE86E11744008 for <qcarrillo@example.net>; Mon, 6 Apr 2009 20:05:14 +0000 (UTC) Message-ID: <qcarrillo@example.net> Date: Mon, 06 Apr 2009 22:05:14 +0200 From: Stefan Seelmann <qcarrillo@example.net> User-Agent: Thunderbird 83.161.120.155 (X11/20090318) MIME-Version: 1.0 To: qcarrillo@example.net Subject: Re: [Studio] Password Editor - MD5 Hash Format References: <007b01c9b6b1$459a8170$d0cf8450$@de> In-Reply-To: <007b01c9b6b1$459a8170$d0cf8450$@de> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Steve, St3ve schrieb: > I am using the "password editor" for setting an user password, hashed with > MD5 algorithm. > > Typing the password "test", the password preview section in the editor shows > "{MD5}CY9rzUYh03PK3k6DJie09g==" > > and Password (Hex): "098f6bcd4621d373cade4e832627b4f6". > > When I query the server to get the password hash, I receive the one that is > listed as the password preview. > > What algorithm do I need to use to get the Hex Format? The MD5 algorithm produces 128 bit hash, that is a byte[] with size 16. The preview and the stored value is the Base64 [1] encoding of this byte[], prefixed with {MD5}. The "Hex" is just the hexadecimal representation [2] of each byte. Hope that help, Stefan [1] http://commons.apache.org/codec/apidocs/org/apache/commons/codec/binary/Base64.html [2] http://commons.apache.org/codec/apidocs/org/apache/commons/codec/binary/Hex.html From usersqcarrillo@example.net Mon Apr 06 20:32:37 2009 Return-Path: <usersqcarrillo@example.net> Delivered-To: qcarrillo@example.net Received: (qmail 10738 invoked from network); 6 Apr 2009 20:32:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 6 Apr 2009 20:32:37 -0000 Received: (qmail 42467 invoked by uid 500); 6 Apr 2009 20:32:37 -0000 Delivered-To: qcarrillo@example.net Received: (qmail 42383 invoked by uid 500); 6 Apr 2009 20:32:37 -0000 Mailing-List: contact qcarrillo@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:qcarrillo@example.net> List-Unsubscribe: <mailto:qcarrillo@example.net> List-Post: <mailto:qcarrillo@example.net> List-Id: <users.directory.apache.org> Reply-To: qcarrillo@example.net Delivered-To: mailing list qcarrillo@example.net Received: (qmail 42367 invoked by uid 99); 6 Apr 2009 20:32:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Apr 2009 20:32:37 +0000 X-ASF-Spam-Status: No, hits=4.6 required=10.0 tests=FH_HELO_EQ_D_D_D_D,HELO_DYNAMIC_IPADDR,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO lvps92-51-130-250.dedicated.hosteurope.de) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Apr 2009 20:32:30 +0000 Received: from [83.161.120.155] (localhost [83.161.120.155]) by lvps92-51-130-250.dedicated.hosteurope.de (Postfix) with ESMTP id 1B06711744008 for <qcarrillo@example.net>; Mon, 6 Apr 2009 20:32:09 +0000 (UTC) Message-ID: <qcarrillo@example.net> Date: Mon, 06 Apr 2009 22:32:08 +0200 From: Stefan Seelmann <qcarrillo@example.net> User-Agent: Thunderbird 83.161.120.155 (X11/20090318) MIME-Version: 1.0 To: qcarrillo@example.net Subject: Re: Schema when does it update and where does it come from? References: <qcarrillo@example.net> In-Reply-To: <qcarrillo@example.net> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Christian, Christian Brennsteiner schrieb: > hi group, > > i am having a little bit of a problem with a specific opends server > hosting a self created schema. > my general problem is that apache ds studio thinks of a custom > objectClass that us defined as aux that it is structural. > > so my question is how can i tell if the problem is with opends or > apache ds studio? > > opends's management gui says its aux , apache ds studio says it is > structural. who tells the truth here? > > is there a way to check if opends tells apache ds studio the wrong thing? > can i refresh a schema in ds studio? > You could do both in the schema browser (right-click your connection and choose "Open Schema Browser") The schema browser has a "reload" button. Select your object class and check the "Raw Schema Definition" if it is STRUCTURAL or AUXILIARY (not just AUX). If absent the default is STRUCTURAL, see RFC4512. Kind Regards, Stefan From usersqcarrillo@example.net Tue Apr 07 05:41:08 2009 Return-Path: <usersqcarrillo@example.net> Delivered-To: qcarrillo@example.net Received: (qmail 98676 invoked from network); 7 Apr 2009 05:41:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 7 Apr 2009 05:41:08 -0000 Received: (qmail 52184 invoked by uid 500); 7 Apr 2009 05:41:08 -0000 Delivered-To: qcarrillo@example.net Received: (qmail 52081 invoked by uid 500); 7 Apr 2009 05:41:08 -0000 Mailing-List: contact qcarrillo@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:qcarrillo@example.net> List-Unsubscribe: <mailto:qcarrillo@example.net> List-Post: <mailto:qcarrillo@example.net> List-Id: <users.directory.apache.org> Reply-To: qcarrillo@example.net Delivered-To: mailing list qcarrillo@example.net Received: (qmail 52071 invoked by uid 99); 7 Apr 2009 05:41:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Apr 2009 05:41:07 +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: domain of qcarrillo@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail-fx0-f168.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Apr 2009 05:41:00 +0000 Received: by fxm12 with SMTP id 12so2223186fxm.25 for <qcarrillo@example.net>; Mon, 06 Apr 2009 22:40:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to :content-type:content-transfer-encoding; bh=LN9f7kiGdfJ1aG12MBJC+IFRCPcDeP+xmON9IzZ0lpY=; b=R66DZ+35M3TnfTLrLA748Agf3UdC3F76LfoDVIy/FpeqEHtqBvbhDifzecGLE5hR59 9k2gJm7UMo6rIW17fKlYQBwKxlHhSePQ5ePyzwKus7wgdAupOyftmdVm9nnp72m70K1Q Ft5KYib3LN+dtgFqvW+NB0M5OfegWi4xtKnpk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :content-transfer-encoding; b=MMyO7QRoT2Zh76h4JJPEh5q2WyxisdkSeCSIW5aSeqcFTtLMeXfEN/O22pH4/TGkE0 IbNtRKyLuA2tpsSOONXyt/5Zi20ILCyC/KaWwySDVn+kY+kcq9AQXWw/PJoEbc6q8bDL CRuppjcbBRkXdnZqgqDcRBHdmw1kpK1k0Voqg= MIME-Version: 1.0 Sender: qcarrillo@example.net Received: by 83.161.120.155 with SMTP id m1mr2372655bkj.61.1239082839532; Mon, 06 Apr 2009 22:40:39 -0700 (PDT) In-Reply-To: <qcarrillo@example.net> References: <qcarrillo@example.net> <qcarrillo@example.net> From: Christian Brennsteiner <qcarrillo@example.net> Date: Tue, 7 Apr 2009 07:40:24 +0200 X-Google-Sender-Auth: b44a95f0d8de5197 Message-ID: <qcarrillo@example.net> Subject: Re: Schema when does it update and where does it come from? To: qcarrillo@example.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org hi alex and stefan, just saw that the field'S syntax (included in the class) was defined in a wrong way. now it works. thanks for all. regards chris On Mon, Apr 6, 2009 at 10:32 PM, Stefan Seelmann <qcarrillo@example.net> wrote: > Hi Christian, > > Christian Brennsteiner schrieb: >> hi group, >> >> i am having a little bit of a problem with a specific opends server >> hosting a self created schema. >> my general problem is that apache ds studio thinks of a custom >> objectClass that us defined as aux that it is structural. >> >> so my question is how can i tell if the problem is with opends or >> apache ds studio? >> >> opends's management gui says its aux , apache ds studio says it is >> structural. who tells the truth here? >> >> is there a way to check if opends tells apache ds studio the wrong thing? >> can i refresh a schema in ds studio? >> > > You could do both in the schema browser (right-click your connection and > choose "Open Schema Browser") > > The schema browser has a "reload" button. > > Select your object class and check the "Raw Schema Definition" if it is > STRUCTURAL or AUXILIARY (not just AUX). If absent the default is > STRUCTURAL, see RFC4512. > > Kind Regards, > Stefan > > -- ---------- Christian Brennsteiner Salzburg / Austria / Europe From usersqcarrillo@example.net Wed Apr 08 13:34:14 2009 Return-Path: <usersqcarrillo@example.net> Delivered-To: qcarrillo@example.net Received: (qmail 38982 invoked from network); 8 Apr 2009 13:34:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 8 Apr 2009 13:34:14 -0000 Received: (qmail 98836 invoked by uid 500); 8 Apr 2009 13:34:11 -0000 Delivered-To: qcarrillo@example.net Received: (qmail 98689 invoked by uid 500); 8 Apr 2009 13:34:11 -0000 Mailing-List: contact qcarrillo@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:qcarrillo@example.net> List-Unsubscribe: <mailto:qcarrillo@example.net> List-Post: <mailto:qcarrillo@example.net> List-Id: <users.directory.apache.org> Reply-To: qcarrillo@example.net Delivered-To: mailing list qcarrillo@example.net Received: (qmail 98314 invoked by uid 99); 8 Apr 2009 13:34:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Apr 2009 13:34:05 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO wmproxy1-g27.free.fr) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Apr 2009 13:33:56 +0000 Received: from wmproxy1-g27.free.fr (localhost [83.161.120.155]) by wmproxy1-g27.free.fr (Postfix) with ESMTP id D5B3B634B6 for <qcarrillo@example.net>; Wed, 8 Apr 2009 15:33:33 +0200 (CEST) Received: from zimbra3-e1.priv.proxad.net (zimbra3-e1.priv.proxad.net [83.161.120.155]) by wmproxy1-g27.free.fr (Postfix) with ESMTP id EA4E56351C for <qcarrillo@example.net>; Wed, 8 Apr 2009 15:33:31 +0200 (CEST) Date: Wed, 8 Apr 2009 15:33:31 +0200 (CEST) From: qcarrillo@example.net To: qcarrillo@example.net Message-ID: <qcarrillo@example.net> In-Reply-To: <qcarrillo@example.net> Subject: [ApacheDS] search with french accents MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_22791_2010220431.1239197611534" X-Originating-IP: [83.161.120.155] X-Mailer: Zimbra 5.0 (ZimbraWebClient - FF3.0 (Win)/5.0.15_GA_2815.UBUNTU8_64) X-Authenticated-User: qcarrillo@example.net X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_22791_2010220431.1239197611534 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi=20 How to search entries with french accents in the filter ?=20 I have two users :=20 First user (InetOrgPerson):=20 cn=3DAlbert Einstein=20 uid=3Daeinstein=20 ...=20 Second user (InetOrgPerson):=20 cn=3Dr=C3=A9dacteur1=20 uid=3Dr=C3=A9dacteur1=20 ...=20 and a group (GroupOfUniqueNames) with 2 members :=20 uniqueMember=3Duid=3Daeinstein,ou=3DUsers,dc=3Dexample,dc=3Dcom=20 uniqueMember=3Duid=3Dr=C3=A9dacteur1,ou=3DUsers,dc=3Dexample,dc=3Dcom=20 I have wrote a sample to find dn of users and the groups of users (by dn).= =20 I can find the two users but only the group of Albert=20 the output of the test :=20 here the code :=20 package tests;=20 import java.io.UnsupportedEncodingException;=20 import java.util.ArrayList;=20 import java.util.Collection;=20 import java.util.Iterator;=20 import java.util.Properties;=20 import java.util.Map.Entry;=20 import javax.naming.Context;=20 import javax.naming.NamingEnumeration;=20 import javax.naming.NamingException;=20 import javax.naming.NoInitialContextException;=20 import javax.naming.directory.SearchControls;=20 import javax.naming.directory.SearchResult;=20 import javax.naming.ldap.InitialLdapContext;=20 public class LdapSearch=20 {=20 InitialLdapContext ldapContext =3D null;=20 String dn=3D"uid=3Dadmin,ou=3Dsystem";=20 String pwd=3D"secret";=20 String baseSearch=3D"dc=3Dexample, dc=3Dcom";=20 String member=3D"uniqueMember";=20 String groupClass=3D"GroupOfUniqueNames";=20 String fistUser=3D"Albert Einstein";=20 String secondUser=3D"r=C3=A9dacteur1";=20 public static String charToUtf8Hex(char c)=20 {=20 String ss =3D new String();=20 StringBuffer b =3D new StringBuffer();=20 ss +=3D c;=20 byte[] bs;=20 try=20 {=20 bs =3D ss.getBytes("UTF-8");=20 for (int k =3D 0; k < bs.length; k++) {=20 b.append("\\");=20 b.append(UnicodeFormatter.byteToHex(bs[k]));=20 }=20 } catch (UnsupportedEncodingException e)=20 {=20 }=20 return b.toString();=20 }=20 public static String native2ascii(String s){=20 StringBuffer sb =3D new StringBuffer(s.length()*2);=20 char[] array=3Ds.toCharArray();=20 for (int i =3D 0; i < array.length; i++) {=20 switch(array[i]){=20 case '(':=20 case ')':=20 case '\\':=20 case '*':=20 sb.append( UnicodeFormatter.charToUtf8Hex(array[i]) );=20 break;=20 default:=20 if (array[i] <=3D 0x7f) {=20 sb.append(array[i]);=20 } else {=20 sb.append( UnicodeFormatter.charToUtf8Hex(array[i]) );=20 }=20 break;=20 }=20 }=20 return sb.toString();=20 }=20 private InitialLdapContext initializeLdapContext(final String dn, final Obj= ect credential) throws NamingException {=20 InitialLdapContext ldapContext =3D null;=20 final Properties ldapEnvironment =3D new Properties();=20 ldapEnvironment.setProperty(Context.PROVIDER_URL, "ldap://localhost:10389")= ;=20 ldapEnvironment.setProperty(Context.SECURITY_AUTHENTICATION, "simple");=20 ldapEnvironment.setProperty(Context.SECURITY_PRINCIPAL, dn);=20 ldapEnvironment.put(Context.SECURITY_CREDENTIALS, credential);=20 ldapEnvironment.put( "java.naming.ldap.version", "3" );=20 ldapEnvironment.put(Context.REFERRAL, "follow");=20 ldapEnvironment.setProperty(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.= ldap.LdapCtxFactory");=20 // traceLdapEnv(env);=20 ldapContext =3D new InitialLdapContext(ldapEnvironment, null);=20 return ldapContext;=20 }=20 private String getDNOfUser(final String userName, boolean escapeValue) thro= ws NoInitialContextException, NamingException {=20 String dn =3D null;=20 final StringBuffer filter =3D new StringBuffer();=20 filter.append("(&(cn=3D");=20 if (escapeValue)=20 filter.append(native2ascii(userName));=20 else=20 filter.append(userName);=20 filter.append(")(ObjectClass=3DinetOrgPerson))");=20 final String[] attrNames =3D new String[0];=20 final SearchControls constraints =3D new SearchControls();=20 constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);=20 constraints.setCountLimit(1);=20 constraints.setReturningAttributes(attrNames);=20 NamingEnumeration results =3D null;=20 results =3D this.ldapContext.search(this.baseSearch, filter.toString(), nul= l, constraints);=20 if (results.hasMore()) {=20 final SearchResult sr =3D (SearchResult) results.next();=20 if (sr.isRelative() =3D=3D true) {=20 dn =3D sr.getName() + "," + this.baseSearch;=20 } else {=20 dn =3D sr.getName();=20 }=20 }=20 if (results !=3D null) {=20 results.close();=20 }=20 return dn;=20 }=20 private Collection<String> getGroups(String sDN, boolean escapeValue) throw= s NamingException=20 {=20 final ArrayList<String> listDNs =3D new ArrayList<String>();=20 String sBaseSearch =3D null;=20 final StringBuffer sFilter =3D new StringBuffer();=20 sBaseSearch =3D this.baseSearch;=20 sFilter.append("(&(");=20 sFilter.append(member);=20 sFilter.append("=3D");=20 if (escapeValue)=20 sFilter.append(native2ascii(sDN));=20 else=20 sFilter.append(sDN);=20 sFilter.append(")(ObjectClass=3D");=20 sFilter.append(groupClass);=20 sFilter.append("))");=20 final String[] attrNames =3D new String[0];=20 final SearchControls constraints =3D new SearchControls();=20 constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);=20 constraints.setCountLimit(0); // no limit=20 constraints.setReturningAttributes(attrNames);=20 NamingEnumeration results =3D null;=20 System.out.println("\t\t\tBase=3D" + sBaseSearch);=20 System.out.println("\t\t\tFilter=3D" + sFilter.toString());=20 results =3D this.ldapContext.search(sBaseSearch, sFilter.toString(), null, = constraints);=20 while (results.hasMoreElements()) {=20 final SearchResult sr =3D (SearchResult) results.nextElement();=20 final StringBuffer dn =3D new StringBuffer();=20 dn.append(sr.getName());=20 if (sr.isRelative() =3D=3D true) {=20 dn.append(",");=20 dn.append(this.baseSearch);=20 }=20 listDNs.add(dn.toString());=20 }=20 if (results !=3D null)=20 results.close();=20 return listDNs;=20 }=20 public static void main(String[] args) throws NamingException=20 {=20 LdapSearch ldapSearch =3D new LdapSearch();=20 ldapSearch.ldapContext =3D ldapSearch.initializeLdapContext(ldapSearch.dn, = ldapSearch.pwd.getBytes());=20 String userDn =3D ldapSearch.getDNOfUser(ldapSearch.fistUser, true);=20 if (userDn !=3D null)=20 {=20 System.out.println("dn of User =3D " + userDn);=20 System.out.println("search groups true");=20 Collection<String>groups=3DldapSearch.getGroups(userDn,true);=20 if (groups.size() > 0){=20 for (String s : groups)=20 System.out.println(s);=20 }=20 else=20 System.out.println("not found");=20 System.out.println("search groups false");=20 groups=3DldapSearch.getGroups(userDn,false);=20 if (groups.size() > 0){=20 for (String s : groups)=20 System.out.println(s);=20 }=20 else=20 System.out.println("not found");=20 }=20 else=20 System.out.println(ldapSearch.fistUser + " not found");=20 userDn =3D ldapSearch.getDNOfUser(ldapSearch.secondUser, true);=20 if (userDn !=3D null)=20 {=20 System.out.println("dn of User =3D " + userDn);=20 System.out.println("search groups true");=20 Collection<String>groups=3DldapSearch.getGroups(userDn,true);=20 if (groups.size() > 0){=20 for (String s : groups)=20 System.out.println(s);=20 }=20 else=20 System.out.println("not found");=20 System.out.println("search groups false");=20 groups=3DldapSearch.getGroups(userDn,false);=20 if (groups.size() > 0){=20 for (String s : groups)=20 System.out.println(s);=20 }=20 else=20 System.out.println("not found");=20 }=20 else=20 System.out.println(ldapSearch.secondUser + "(true) not found");=20 userDn =3D ldapSearch.getDNOfUser(ldapSearch.secondUser, false);=20 if (userDn !=3D null)=20 {=20 System.out.println("dn of User =3D " + userDn);=20 System.out.println("search groups true");=20 Collection<String>groups=3DldapSearch.getGroups(userDn,true);=20 if (groups.size() > 0){=20 for (String s : groups)=20 System.out.println(s);=20 }=20 else=20 System.out.println("not found");=20 System.out.println("search groups false");=20 groups=3DldapSearch.getGroups(userDn,false);=20 if (groups.size() > 0){=20 for (String s : groups)=20 System.out.println(s);=20 }=20 else=20 System.out.println("not found");=20 }=20 else=20 System.out.println(ldapSearch.secondUser + "(false) not found");=20 }=20 }=20 ------=_Part_22791_2010220431.1239197611534-- From usersqcarrillo@example.net Wed Apr 08 13:36:30 2009 Return-Path: <usersqcarrillo@example.net> Delivered-To: qcarrillo@example.net Received: (qmail 40597 invoked from network); 8 Apr 2009 13:36:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 8 Apr 2009 13:36:30 -0000 Received: (qmail 3806 invoked by uid 500); 8 Apr 2009 13:36:30 -0000 Delivered-To: qcarrillo@example.net Received: (qmail 3746 invoked by uid 500); 8 Apr 2009 13:36:30 -0000 Mailing-List: contact qcarrillo@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:qcarrillo@example.net> List-Unsubscribe: <mailto:qcarrillo@example.net> List-Post: <mailto:qcarrillo@example.net> List-Id: <users.directory.apache.org> Reply-To: qcarrillo@example.net Delivered-To: mailing list qcarrillo@example.net Received: (qmail 3736 invoked by uid 99); 8 Apr 2009 13:36:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Apr 2009 13:36:30 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO wmproxy1-g27.free.fr) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Apr 2009 13:36:20 +0000 Received: from wmproxy1-g27.free.fr (localhost [83.161.120.155]) by wmproxy1-g27.free.fr (Postfix) with ESMTP id 4F35E634D4 for <qcarrillo@example.net>; Wed, 8 Apr 2009 15:35:58 +0200 (CEST) Received: from zimbra3-e1.priv.proxad.net (zimbra3-e1.priv.proxad.net [83.161.120.155]) by wmproxy1-g27.free.fr (Postfix) with ESMTP id 6585E634D3 for <qcarrillo@example.net>; Wed, 8 Apr 2009 15:35:57 +0200 (CEST) Date: Wed, 8 Apr 2009 15:35:57 +0200 (CEST) From: qcarrillo@example.net To: qcarrillo@example.net Message-ID: <qcarrillo@example.net> In-Reply-To: <qcarrillo@example.net> Subject: Re: [ApacheDS] search with french accents MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_22806_2000000393.1239197757265" X-Originating-IP: [83.161.120.155] X-Mailer: Zimbra 5.0 (ZimbraWebClient - FF3.0 (Win)/5.0.15_GA_2815.UBUNTU8_64) X-Authenticated-User: qcarrillo@example.net X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_22806_2000000393.1239197757265 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi=20 How to search entries with french accents in the filter ?=20 I have two users :=20 First user (InetOrgPerson):=20 cn=3DAlbert Einstein=20 uid=3Daeinstein=20 ...=20 Second user (InetOrgPerson):=20 cn=3Dr=C3=A9dacteur1=20 uid=3Dr=C3=A9dacteur1=20 ...=20 and a group (GroupOfUniqueNames) with 2 members :=20 uniqueMember=3Duid=3Daeinstein,ou=3DUsers,dc=3Dexample,dc=3Dcom=20 uniqueMember=3Duid=3Dr=C3=A9dacteur1,ou=3DUsers,dc=3Dexample,dc=3Dcom=20 I have wrote a sample to find dn of users and the groups of users (by dn).= =20 I can find the two users but only the group of Albert=20 the output of the test :=20 ------ Albert -------------=20 dn of User =3D uid=3Daeinstein,ou=3DUsers,dc=3Dexample, dc=3Dcom=20 search groups true=20 Base=3Ddc=3Dexample, dc=3Dcom=20 Filter=3D(&(uniqueMember=3Duid=3Daeinstein,ou=3DUsers,dc=3Dexample, dc=3Dco= m)(ObjectClass=3DGroupOfUniqueNames))=20 cn=3DuserAdmins,ou=3DGroups,dc=3Dexample, dc=3Dcom=20 ------ r=C3=A9dacteur1 : escape filter -------------=20 dn of User =3D uid=3Dr=C3=A9dacteur1,ou=3DUsers,dc=3Dexample, dc=3Dcom=20 search groups true=20 Base=3Ddc=3Dexample, dc=3Dcom=20 Filter=3D(&(uniqueMember=3Duid=3Dr\c3\a9dacteur1,ou=3DUsers,dc=3Dexample, d= c=3Dcom)(ObjectClass=3DGroupOfUniqueNames))=20 not found=20 ------ r=C3=A9dacteur1 : not escape filter -------------=20 dn of User =3D uid=3Dr=C3=A9dacteur1,ou=3DUsers,dc=3Dexample, dc=3Dcom=20 search groups false=20 Base=3Ddc=3Dexample, dc=3Dcom=20 Filter=3D(&(uniqueMember=3Duid=3Dr=C3=A9dacteur1,ou=3DUsers,dc=3Dexample, d= c=3Dcom)(ObjectClass=3DGroupOfUniqueNames))=20 not found=20 here the code :=20 package tests;=20 import java.io.UnsupportedEncodingException;=20 import java.util.ArrayList;=20 import java.util.Collection;=20 import java.util.Iterator;=20 import java.util.Properties;=20 import java.util.Map.Entry;=20 import javax.naming.Context;=20 import javax.naming.NamingEnumeration;=20 import javax.naming.NamingException;=20 import javax.naming.NoInitialContextException;=20 import javax.naming.directory.SearchControls;=20 import javax.naming.directory.SearchResult;=20 import javax.naming.ldap.InitialLdapContext;=20 public class LdapSearch=20 {=20 InitialLdapContext ldapContext =3D null;=20 String dn=3D"uid=3Dadmin,ou=3Dsystem";=20 String pwd=3D"secret";=20 String baseSearch=3D"dc=3Dexample, dc=3Dcom";=20 String member=3D"uniqueMember";=20 String groupClass=3D"GroupOfUniqueNames";=20 String fistUser=3D"Albert Einstein";=20 String secondUser=3D"r=C3=A9dacteur1";=20 public static String charToUtf8Hex(char c)=20 {=20 String ss =3D new String();=20 StringBuffer b =3D new StringBuffer();=20 ss +=3D c;=20 byte[] bs;=20 try=20 {=20 bs =3D ss.getBytes("UTF-8");=20 for (int k =3D 0; k < bs.length; k++) {=20 b.append("\\");=20 b.append(UnicodeFormatter.byteToHex(bs[k]));=20 }=20 } catch (UnsupportedEncodingException e)=20 {=20 }=20 return b.toString();=20 }=20 public static String native2ascii(String s){=20 StringBuffer sb =3D new StringBuffer(s.length()*2);=20 char[] array=3Ds.toCharArray();=20 for (int i =3D 0; i < array.length; i++) {=20 switch(array[i]){=20 case '(':=20 case ')':=20 case '\\':=20 case '*':=20 sb.append( UnicodeFormatter.charToUtf8Hex(array[i]) );=20 break;=20 default:=20 if (array[i] <=3D 0x7f) {=20 sb.append(array[i]);=20 } else {=20 sb.append( UnicodeFormatter.charToUtf8Hex(array[i]) );=20 }=20 break;=20 }=20 }=20 return sb.toString();=20 }=20 private InitialLdapContext initializeLdapContext(final String dn, final Obj= ect credential) throws NamingException {=20 InitialLdapContext ldapContext =3D null;=20 final Properties ldapEnvironment =3D new Properties();=20 ldapEnvironment.setProperty(Context.PROVIDER_URL, "ldap://localhost:10389")= ;=20 ldapEnvironment.setProperty(Context.SECURITY_AUTHENTICATION, "simple");=20 ldapEnvironment.setProperty(Context.SECURITY_PRINCIPAL, dn);=20 ldapEnvironment.put(Context.SECURITY_CREDENTIALS, credential);=20 ldapEnvironment.put( "java.naming.ldap.version", "3" );=20 ldapEnvironment.put(Context.REFERRAL, "follow");=20 ldapEnvironment.setProperty(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.= ldap.LdapCtxFactory");=20 // traceLdapEnv(env);=20 ldapContext =3D new InitialLdapContext(ldapEnvironment, null);=20 return ldapContext;=20 }=20 private String getDNOfUser(final String userName, boolean escapeValue) thro= ws NoInitialContextException, NamingException {=20 String dn =3D null;=20 final StringBuffer filter =3D new StringBuffer();=20 filter.append("(&(cn=3D");=20 if (escapeValue)=20 filter.append(native2ascii(userName));=20 else=20 filter.append(userName);=20 filter.append(")(ObjectClass=3DinetOrgPerson))");=20 final String[] attrNames =3D new String[0];=20 final SearchControls constraints =3D new SearchControls();=20 constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);=20 constraints.setCountLimit(1);=20 constraints.setReturningAttributes(attrNames);=20 NamingEnumeration results =3D null;=20 results =3D this.ldapContext.search(this.baseSearch, filter.toString(), nul= l, constraints);=20 if (results.hasMore()) {=20 final SearchResult sr =3D (SearchResult) results.next();=20 if (sr.isRelative() =3D=3D true) {=20 dn =3D sr.getName() + "," + this.baseSearch;=20 } else {=20 dn =3D sr.getName();=20 }=20 }=20 if (results !=3D null) {=20 results.close();=20 }=20 return dn;=20 }=20 private Collection<String> getGroups(String sDN, boolean escapeValue) throw= s NamingException=20 {=20 final ArrayList<String> listDNs =3D new ArrayList<String>();=20 String sBaseSearch =3D null;=20 final StringBuffer sFilter =3D new StringBuffer();=20 sBaseSearch =3D this.baseSearch;=20 sFilter.append("(&(");=20 sFilter.append(member);=20 sFilter.append("=3D");=20 if (escapeValue)=20 sFilter.append(native2ascii(sDN));=20 else=20 sFilter.append(sDN);=20 sFilter.append(")(ObjectClass=3D");=20 sFilter.append(groupClass);=20 sFilter.append("))");=20 final String[] attrNames =3D new String[0];=20 final SearchControls constraints =3D new SearchControls();=20 constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);=20 constraints.setCountLimit(0); // no limit=20 constraints.setReturningAttributes(attrNames);=20 NamingEnumeration results =3D null;=20 System.out.println("\t\t\tBase=3D" + sBaseSearch);=20 System.out.println("\t\t\tFilter=3D" + sFilter.toString());=20 results =3D this.ldapContext.search(sBaseSearch, sFilter.toString(), null, = constraints);=20 while (results.hasMoreElements()) {=20 final SearchResult sr =3D (SearchResult) results.nextElement();=20 final StringBuffer dn =3D new StringBuffer();=20 dn.append(sr.getName());=20 if (sr.isRelative() =3D=3D true) {=20 dn.append(",");=20 dn.append(this.baseSearch);=20 }=20 listDNs.add(dn.toString());=20 }=20 if (results !=3D null)=20 results.close();=20 return listDNs;=20 }=20 public static void main(String[] args) throws NamingException=20 {=20 LdapSearch ldapSearch =3D new LdapSearch();=20 ldapSearch.ldapContext =3D ldapSearch.initializeLdapContext(ldapSearch.dn, = ldapSearch.pwd.getBytes());=20 String userDn =3D ldapSearch.getDNOfUser(ldapSearch.fistUser, true);=20 if (userDn !=3D null)=20 {=20 System.out.println("dn of User =3D " + userDn);=20 System.out.println("search groups true");=20 Collection<String>groups=3DldapSearch.getGroups(userDn,true);=20 if (groups.size() > 0){=20 for (String s : groups)=20 System.out.println(s);=20 }=20 else=20 System.out.println("not found");=20 System.out.println("search groups false");=20 groups=3DldapSearch.getGroups(userDn,false);=20 if (groups.size() > 0){=20 for (String s : groups)=20 System.out.println(s);=20 }=20 else=20 System.out.println("not found");=20 }=20 else=20 System.out.println(ldapSearch.fistUser + " not found");=20 userDn =3D ldapSearch.getDNOfUser(ldapSearch.secondUser, true);=20 if (userDn !=3D null)=20 {=20 System.out.println("dn of User =3D " + userDn);=20 System.out.println("search groups true");=20 Collection<String>groups=3DldapSearch.getGroups(userDn,true);=20 if (groups.size() > 0){=20 for (String s : groups)=20 System.out.println(s);=20 }=20 else=20 System.out.println("not found");=20 System.out.println("search groups false");=20 groups=3DldapSearch.getGroups(userDn,false);=20 if (groups.size() > 0){=20 for (String s : groups)=20 System.out.println(s);=20 }=20 else=20 System.out.println("not found");=20 }=20 else=20 System.out.println(ldapSearch.secondUser + "(true) not found");=20 userDn =3D ldapSearch.getDNOfUser(ldapSearch.secondUser, false);=20 if (userDn !=3D null)=20 {=20 System.out.println("dn of User =3D " + userDn);=20 System.out.println("search groups true");=20 Collection<String>groups=3DldapSearch.getGroups(userDn,true);=20 if (groups.size() > 0){=20 for (String s : groups)=20 System.out.println(s);=20 }=20 else=20 System.out.println("not found");=20 System.out.println("search groups false");=20 groups=3DldapSearch.getGroups(userDn,false);=20 if (groups.size() > 0){=20 for (String s : groups)=20 System.out.println(s);=20 }=20 else=20 System.out.println("not found");=20 }=20 else=20 System.out.println(ldapSearch.secondUser + "(false) not found");=20 }=20 }=20 ------=_Part_22806_2000000393.1239197757265-- From usersqcarrillo@example.net Wed Apr 08 19:42:20 2009 Return-Path: <usersqcarrillo@example.net> Delivered-To: qcarrillo@example.net Received: (qmail 38381 invoked from network); 8 Apr 2009 19:42:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 8 Apr 2009 19:42:16 -0000 Received: (qmail 94578 invoked by uid 500); 8 Apr 2009 19:42:15 -0000 Delivered-To: qcarrillo@example.net Received: (qmail 94523 invoked by uid 500); 8 Apr 2009 19:42:15 -0000 Mailing-List: contact qcarrillo@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:qcarrillo@example.net> List-Unsubscribe: <mailto:qcarrillo@example.net> List-Post: <mailto:qcarrillo@example.net> List-Id: <users.directory.apache.org> Reply-To: qcarrillo@example.net Delivered-To: mailing list qcarrillo@example.net Received: (qmail 94512 invoked by uid 99); 8 Apr 2009 19:42:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Apr 2009 19:42:15 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of qcarrillo@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO fg-out-1718.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Apr 2009 19:42:04 +0000 Received: by fg-out-1718.google.com with SMTP id e21so96383fga.3 for <qcarrillo@example.net>; Wed, 08 Apr 2009 12:41:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=eYMV7+T8JxViRrKdwnruUmM6PjsOCfZXO2nmxaPJnIw=; b=nD1ukooQyL7NkBltcLHuwRc4MQ+95ftdLRrp/7wlCevTytw4KSJtRexHoEPrNgU8y3 n3m6RbYyUqBCIqd7yx7oBgeGPPI/rRtQvEc72wBYuDgnhOunwW8JCQ/9gYBChMEFa/7H qHJvVQDhb45Vg64F91H4UZ+cHFdQ64V95Iad4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=nmiN/8Ne3OEzREgsC/nI4RmwJw3ZZMNlXp8NYMSV+inwkbLnQgg1tUJqxDR/9F5gce fWVpsmzyCVwN3tYzjsOBPnbMhSsoX2Ga9gHFbhwQN9+e3XZ9QHhBGLM+gdYSQmlwb1W1 ZrWfsr79FCcWHfm5Ei8JQ5TuQ6t0zv4fKUs7E= Received: by 83.161.120.155 with SMTP id s20mr1331124fgb.43.1239219702887; Wed, 08 Apr 2009 12:41:42 -0700 (PDT) Received: from ?83.161.120.155? (vol75-3-82-66-216-176.fbx.proxad.net [83.161.120.155]) by mx.google.com with ESMTPS id l12sm10651024fgb.21.283.161.120.155.41.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 08 Apr 2009 12:41:41 -0700 (PDT) Sender: Emmanuel Lecharny <qcarrillo@example.net> Message-ID: <qcarrillo@example.net> Date: Wed, 08 Apr 2009 21:41:40 +0200 From: Emmanuel Lecharny <qcarrillo@example.net> User-Agent: Thunderbird 83.161.120.155 (X11/20090318) MIME-Version: 1.0 To: qcarrillo@example.net Subject: Re: [ApacheDS] search with french accents References: <qcarrillo@example.net> In-Reply-To: <qcarrillo@example.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org qcarrillo@example.net wrote: > Hi > > How to search entries with french accents in the filter ? > > not found > Which version of ADS are you using ? -- -- cordialement, regards, Emmanuel Lécharny www.iktek.com directory.apache.org From usersqcarrillo@example.net Thu Apr 09 08:33:41 2009 Return-Path: <usersqcarrillo@example.net> Delivered-To: qcarrillo@example.net Received: (qmail 22865 invoked from
{'source': 'Apache Software Foundation Public Mail Archives'}