<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>users@directory.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/directory-users/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/directory-users/"/>
<id>http://mail-archives.apache.org/mod_mbox/directory-users/</id>
<updated>2009-12-10T09:26:43Z</updated>
<entry>
<title>Re: ApacheDS causing very high load</title>
<author><name>Alex Karasulu &lt;akarasulu@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200912.mbox/%3ca32f6b020912092325w25088be6v46e19c8d8c6714d6@mail.gmail.com%3e"/>
<id>urn:uuid:%3ca32f6b020912092325w25088be6v46e19c8d8c6714d6@mail-gmail-com%3e</id>
<updated>2009-12-10T07:25:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Whatever you guys are most comfortable with.  The idea here is to get a view
of what the call chain looks like and which methods are executing most of
the time.  This will give us an idea of what kind of infinite loop we're
dealing with which steals one or more threads and hikes up the CPU.

Thanks,
Alex

On Thu, Dec 10, 2009 at 12:59 AM, Ioannis Mavroukakis &lt;
imavroukakis@gameaccount.com&gt; wrote:

&gt; Sure, I'll arrange this with our sysadm. Do you have anything particular in
&gt; mind or will jvisualvm do?
&gt;
&gt; Y.
&gt;
&gt;
&gt; On 10 Dec 2009, at 04:00, Alex Karasulu wrote:
&gt;
&gt;  It would be nice to run your server with a profiler to be able to catch
&gt;&gt; just
&gt;&gt; when it does get into this state.  This would be very valuable since we'd
&gt;&gt; see exactly where the code is getting stuck in this terrible loop that
&gt;&gt; eats
&gt;&gt; your CPU.
&gt;&gt;
&gt;&gt; You think you can give that a try Ioannis? If you can I'm sure we can work
&gt;&gt; together to nip this bug quickly.
&gt;&gt;
&gt;&gt; Thanks,
&gt;&gt; Alex
&gt;&gt;
&gt;&gt; On Wed, Dec 9, 2009 at 11:04 AM, Ioannis Mavroukakis &lt;
&gt;&gt; imavroukakis@gameaccount.com&gt; wrote:
&gt;&gt;
&gt;&gt;  Hi Emmanuel,
&gt;&gt;&gt;
&gt;&gt;&gt; Don't think it is too, as the same behaviour persists when we shut down
&gt;&gt;&gt; ADS
&gt;&gt;&gt; and re-start it. Only clearing the ADS directory allows it to recover! I
&gt;&gt;&gt; have kept the directory contents though, is there
&gt;&gt;&gt; any way I can run any forensics on them ?
&gt;&gt;&gt;
&gt;&gt;&gt; Thanks,
&gt;&gt;&gt;
&gt;&gt;&gt; Y.
&gt;&gt;&gt;
&gt;&gt;&gt; On 9 Dec 2009, at 15:21, Emmanuel LÅ½charny wrote:
&gt;&gt;&gt;
&gt;&gt;&gt; Ioannis Mavroukakis a Ã©crit :
&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;  Hey fellow listers.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;  Hi Ioannis,
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; if you get 100% loaded CPU the it might be MINA which is the problem.
&gt;&gt;&gt;&gt; There is a painful bug in the way the JVM handle epoll, and in certain
&gt;&gt;&gt;&gt; conditions, it jump to 100% CPU and never goes down. It seems to be a
&gt;&gt;&gt;&gt; problem when a connection is opened, and closed before the selector can
&gt;&gt;&gt;&gt; see
&gt;&gt;&gt;&gt; the close : the select() methods returns at least one selectedKey, but
&gt;&gt;&gt;&gt; as
&gt;&gt;&gt;&gt; the connection has been closed, it does nothing but loop again (as you
&gt;&gt;&gt;&gt; can
&gt;&gt;&gt;&gt; imagine, the loop is infinite).
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; There is a fix for that, but it's experimental, in MINA branch
&gt;&gt;&gt;&gt; http://svn.apache.org/repos/asf/mina/branches/select-fix/. I will
&gt;&gt;&gt;&gt; commit
&gt;&gt;&gt;&gt; this fix immediately in the MINA trunk, and you'll be able to bump up
&gt;&gt;&gt;&gt; the
&gt;&gt;&gt;&gt; MINA version to 2.0.0-RC2-SNAPSHOT in ADS.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Not sure though that it's really your problem.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; I've got an issue with an embedded instance of apacheds in a trivial
&gt;&gt;&gt;&gt;&gt; piece of java code. For reasons I have been unable to diagnose
&gt;&gt;&gt;&gt;&gt; so far, it will run happily for about a week or so, then it will
&gt;&gt;&gt;&gt;&gt; suddenly
&gt;&gt;&gt;&gt;&gt; ramp up the load on the server it's running on, with the only
&gt;&gt;&gt;&gt;&gt; way to recover it, being to delete the physical directory where the
&gt;&gt;&gt;&gt;&gt; records are stored and start from scratch. What's puzzling me is
&gt;&gt;&gt;&gt;&gt; that it's definitely not load related as the queries an operations to
&gt;&gt;&gt;&gt;&gt; LDAP are very lightweight and infrequent. What I do get in the logs
&gt;&gt;&gt;&gt;&gt; are loads of these
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; pool-4-thread-18 ERROR registries.DefaultAttributeTypeRegistry -
&gt;&gt;&gt;&gt;&gt; attributeType w/ OID 1.3.6.1.4.1.1466.115.121.1.12 not registered!
&gt;&gt;&gt;&gt;&gt; pool-4-thread-19 ERROR registries.DefaultAttributeTypeRegistry -
&gt;&gt;&gt;&gt;&gt; attributeType w/ OID 1.3.6.1.4.1.1466.115.121.1.12 not registered!
&gt;&gt;&gt;&gt;&gt; pool-4-thread-19 WARN  context.SearchingOperationContext - Requested
&gt;&gt;&gt;&gt;&gt; attribute dn does not exist in the schema, it will be ignored
&gt;&gt;&gt;&gt;&gt; pool-4-thread-18 WARN  context.SearchingOperationContext - Requested
&gt;&gt;&gt;&gt;&gt; attribute dn does not exist in the schema, it will be ignored
&gt;&gt;&gt;&gt;&gt; NioProcessor-2 WARN  ldap.LdapProtocolHandler - Null LdapSession given
&gt;&gt;&gt;&gt;&gt; to
&gt;&gt;&gt;&gt;&gt; cleanUpSession.
&gt;&gt;&gt;&gt;&gt; pool-4-thread-19 ERROR registries.DefaultAttributeTypeRegistry -
&gt;&gt;&gt;&gt;&gt; attributeType w/ OID 1.3.6.1.4.1.1466.115.121.1.12 not registered!
&gt;&gt;&gt;&gt;&gt; pool-4-thread-17 ERROR registries.DefaultAttributeTypeRegistry -
&gt;&gt;&gt;&gt;&gt; attributeType w/ OID 1.3.6.1.4.1.1466.115.121.1.12 not registered!
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; and
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; pool-4-thread-19 WARN  ldap.LdapProtocolHandler - Unexpected exception
&gt;&gt;&gt;&gt;&gt; forcing session to close: sending disconnect notice to client.
&gt;&gt;&gt;&gt;&gt; java.lang.NullPointerException
&gt;&gt;&gt;&gt;&gt;     at
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; org.apache.directory.server.ldap.handlers.LdapRequestHandler.handleMessage(LdapRequestHandler.java:129)
&gt;&gt;&gt;&gt;&gt;     at
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; org.apache.directory.server.ldap.handlers.LdapRequestHandler.handleMessage(LdapRequestHandler.java:56)
&gt;&gt;&gt;&gt;&gt;     at
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; org.apache.mina.handler.demux.DemuxingIoHandler.messageReceived(DemuxingIoHandler.java:232)
&gt;&gt;&gt;&gt;&gt;     at
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; org.apache.directory.server.ldap.LdapProtocolHandler.messageReceived(LdapProtocolHandler.java:194)
&gt;&gt;&gt;&gt;&gt;     at
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:721)
&gt;&gt;&gt;&gt;&gt;     at
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:433)
&gt;&gt;&gt;&gt;&gt;     at
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:47)
&gt;&gt;&gt;&gt;&gt;     at
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:801)
&gt;&gt;&gt;&gt;&gt;     at
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:71)
&gt;&gt;&gt;&gt;&gt;     at org.apache.mina.core.session.IoEvent.run(IoEvent.java:63)
&gt;&gt;&gt;&gt;&gt;     at
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; org.apache.mina.filter.executor.UnorderedThreadPoolExecutor$Worker.runTask(UnorderedThreadPoolExecutor.java:480)
&gt;&gt;&gt;&gt;&gt;     at
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; org.apache.mina.filter.executor.UnorderedThreadPoolExecutor$Worker.run(UnorderedThreadPoolExecutor.java:434)
&gt;&gt;&gt;&gt;&gt;     at java.lang.Thread.run(Thread.java:619)
&gt;&gt;&gt;&gt;&gt; pool-4-thread-19 WARN  ldap.LdapProtocolHandler - Null LdapSession
&gt;&gt;&gt;&gt;&gt; given
&gt;&gt;&gt;&gt;&gt; to cleanUpSession.
&gt;&gt;&gt;&gt;&gt; NioProcessor-3 WARN  ldap.LdapProtocolHandler - Null LdapSession given
&gt;&gt;&gt;&gt;&gt; to
&gt;&gt;&gt;&gt;&gt; cleanUpSession.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; The only thing I can think of causing the NPE's is a monitoring
&gt;&gt;&gt;&gt;&gt; application that we have, that connects and disconnects from ADS to
&gt;&gt;&gt;&gt;&gt; confirm
&gt;&gt;&gt;&gt;&gt; that it's still there...Apart from that I have no plausible explanation
&gt;&gt;&gt;&gt;&gt; for the high load. I'm currently using 1.5.6 compiled from source.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Thanks,
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Yiannis
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; ______________________________________________________________________
&gt;&gt;&gt;&gt; This email has been scanned by the MessageLabs Email Security System.
&gt;&gt;&gt;&gt; For more information please visit
&gt;&gt;&gt;&gt; http://www.messagelabs.com/email______________________________________________________________________
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt; --
&gt;&gt; Alex Karasulu
&gt;&gt; My Blog :: http://www.jroller.com/akarasulu/
&gt;&gt; Apache Directory Server :: http://directory.apache.org
&gt;&gt; Apache MINA :: http://mina.apache.org
&gt;&gt;
&gt;&gt; ______________________________________________________________________
&gt;&gt; This email has been scanned by the MessageLabs Email Security System.
&gt;&gt; For more information please visit http://www.messagelabs.com/email
&gt;&gt; ______________________________________________________________________
&gt;&gt;
&gt;
&gt;


-- 
Alex Karasulu
My Blog :: http://www.jroller.com/akarasulu/
Apache Directory Server :: http://directory.apache.org
Apache MINA :: http://mina.apache.org


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: ApacheDS causing very high load</title>
<author><name>Ioannis Mavroukakis &lt;imavroukakis@gameaccount.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200912.mbox/%3c3CD95AE1-6870-4D2F-90D2-3F2ABA31DB9D@gameaccount.com%3e"/>
<id>urn:uuid:%3c3CD95AE1-6870-4D2F-90D2-3F2ABA31DB9D@gameaccount-com%3e</id>
<updated>2009-12-10T05:59:24Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Sure, I'll arrange this with our sysadm. Do you have anything  
particular in mind or will jvisualvm do?

Y.

On 10 Dec 2009, at 04:00, Alex Karasulu wrote:

&gt; It would be nice to run your server with a profiler to be able to  
&gt; catch just
&gt; when it does get into this state.  This would be very valuable since  
&gt; we'd
&gt; see exactly where the code is getting stuck in this terrible loop  
&gt; that eats
&gt; your CPU.
&gt;
&gt; You think you can give that a try Ioannis? If you can I'm sure we  
&gt; can work
&gt; together to nip this bug quickly.
&gt;
&gt; Thanks,
&gt; Alex
&gt;
&gt; On Wed, Dec 9, 2009 at 11:04 AM, Ioannis Mavroukakis &lt;
&gt; imavroukakis@gameaccount.com&gt; wrote:
&gt;
&gt;&gt; Hi Emmanuel,
&gt;&gt;
&gt;&gt; Don't think it is too, as the same behaviour persists when we shut  
&gt;&gt; down ADS
&gt;&gt; and re-start it. Only clearing the ADS directory allows it to  
&gt;&gt; recover! I
&gt;&gt; have kept the directory contents though, is there
&gt;&gt; any way I can run any forensics on them ?
&gt;&gt;
&gt;&gt; Thanks,
&gt;&gt;
&gt;&gt; Y.
&gt;&gt;
&gt;&gt; On 9 Dec 2009, at 15:21, Emmanuel LŽcharny wrote:
&gt;&gt;
&gt;&gt; Ioannis Mavroukakis a écrit :
&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Hey fellow listers.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt; Hi Ioannis,
&gt;&gt;&gt;
&gt;&gt;&gt; if you get 100% loaded CPU the it might be MINA which is the  
&gt;&gt;&gt; problem.
&gt;&gt;&gt; There is a painful bug in the way the JVM handle epoll, and in  
&gt;&gt;&gt; certain
&gt;&gt;&gt; conditions, it jump to 100% CPU and never goes down. It seems to  
&gt;&gt;&gt; be a
&gt;&gt;&gt; problem when a connection is opened, and closed before the  
&gt;&gt;&gt; selector can see
&gt;&gt;&gt; the close : the select() methods returns at least one selectedKey,  
&gt;&gt;&gt; but as
&gt;&gt;&gt; the connection has been closed, it does nothing but loop again (as  
&gt;&gt;&gt; you can
&gt;&gt;&gt; imagine, the loop is infinite).
&gt;&gt;&gt;
&gt;&gt;&gt; There is a fix for that, but it's experimental, in MINA branch
&gt;&gt;&gt; http://svn.apache.org/repos/asf/mina/branches/select-fix/. I will  
&gt;&gt;&gt; commit
&gt;&gt;&gt; this fix immediately in the MINA trunk, and you'll be able to bump  
&gt;&gt;&gt; up the
&gt;&gt;&gt; MINA version to 2.0.0-RC2-SNAPSHOT in ADS.
&gt;&gt;&gt;
&gt;&gt;&gt; Not sure though that it's really your problem.
&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; I've got an issue with an embedded instance of apacheds in a  
&gt;&gt;&gt;&gt; trivial
&gt;&gt;&gt;&gt; piece of java code. For reasons I have been unable to diagnose
&gt;&gt;&gt;&gt; so far, it will run happily for about a week or so, then it will  
&gt;&gt;&gt;&gt; suddenly
&gt;&gt;&gt;&gt; ramp up the load on the server it's running on, with the only
&gt;&gt;&gt;&gt; way to recover it, being to delete the physical directory where the
&gt;&gt;&gt;&gt; records are stored and start from scratch. What's puzzling me is
&gt;&gt;&gt;&gt; that it's definitely not load related as the queries an  
&gt;&gt;&gt;&gt; operations to
&gt;&gt;&gt;&gt; LDAP are very lightweight and infrequent. What I do get in the logs
&gt;&gt;&gt;&gt; are loads of these
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; pool-4-thread-18 ERROR registries.DefaultAttributeTypeRegistry -
&gt;&gt;&gt;&gt; attributeType w/ OID 1.3.6.1.4.1.1466.115.121.1.12 not registered!
&gt;&gt;&gt;&gt; pool-4-thread-19 ERROR registries.DefaultAttributeTypeRegistry -
&gt;&gt;&gt;&gt; attributeType w/ OID 1.3.6.1.4.1.1466.115.121.1.12 not registered!
&gt;&gt;&gt;&gt; pool-4-thread-19 WARN  context.SearchingOperationContext -  
&gt;&gt;&gt;&gt; Requested
&gt;&gt;&gt;&gt; attribute dn does not exist in the schema, it will be ignored
&gt;&gt;&gt;&gt; pool-4-thread-18 WARN  context.SearchingOperationContext -  
&gt;&gt;&gt;&gt; Requested
&gt;&gt;&gt;&gt; attribute dn does not exist in the schema, it will be ignored
&gt;&gt;&gt;&gt; NioProcessor-2 WARN  ldap.LdapProtocolHandler - Null LdapSession  
&gt;&gt;&gt;&gt; given to
&gt;&gt;&gt;&gt; cleanUpSession.
&gt;&gt;&gt;&gt; pool-4-thread-19 ERROR registries.DefaultAttributeTypeRegistry -
&gt;&gt;&gt;&gt; attributeType w/ OID 1.3.6.1.4.1.1466.115.121.1.12 not registered!
&gt;&gt;&gt;&gt; pool-4-thread-17 ERROR registries.DefaultAttributeTypeRegistry -
&gt;&gt;&gt;&gt; attributeType w/ OID 1.3.6.1.4.1.1466.115.121.1.12 not registered!
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; and
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; pool-4-thread-19 WARN  ldap.LdapProtocolHandler - Unexpected  
&gt;&gt;&gt;&gt; exception
&gt;&gt;&gt;&gt; forcing session to close: sending disconnect notice to client.
&gt;&gt;&gt;&gt; java.lang.NullPointerException
&gt;&gt;&gt;&gt;      at
&gt;&gt;&gt;&gt; org 
&gt;&gt;&gt;&gt; .apache 
&gt;&gt;&gt;&gt; .directory 
&gt;&gt;&gt;&gt; .server 
&gt;&gt;&gt;&gt; .ldap 
&gt;&gt;&gt;&gt; .handlers 
&gt;&gt;&gt;&gt; .LdapRequestHandler.handleMessage(LdapRequestHandler.java:129)
&gt;&gt;&gt;&gt;      at
&gt;&gt;&gt;&gt; org 
&gt;&gt;&gt;&gt; .apache 
&gt;&gt;&gt;&gt; .directory 
&gt;&gt;&gt;&gt; .server 
&gt;&gt;&gt;&gt; .ldap 
&gt;&gt;&gt;&gt; .handlers 
&gt;&gt;&gt;&gt; .LdapRequestHandler.handleMessage(LdapRequestHandler.java:56)
&gt;&gt;&gt;&gt;      at
&gt;&gt;&gt;&gt; org 
&gt;&gt;&gt;&gt; .apache 
&gt;&gt;&gt;&gt; .mina 
&gt;&gt;&gt;&gt; .handler 
&gt;&gt;&gt;&gt; .demux.DemuxingIoHandler.messageReceived(DemuxingIoHandler.java: 
&gt;&gt;&gt;&gt; 232)
&gt;&gt;&gt;&gt;      at
&gt;&gt;&gt;&gt; org 
&gt;&gt;&gt;&gt; .apache 
&gt;&gt;&gt;&gt; .directory 
&gt;&gt;&gt;&gt; .server 
&gt;&gt;&gt;&gt; .ldap 
&gt;&gt;&gt;&gt; .LdapProtocolHandler.messageReceived(LdapProtocolHandler.java:194)
&gt;&gt;&gt;&gt;      at
&gt;&gt;&gt;&gt; org.apache.mina.core.filterchain.DefaultIoFilterChain 
&gt;&gt;&gt;&gt; $TailFilter.messageReceived(DefaultIoFilterChain.java:721)
&gt;&gt;&gt;&gt;      at
&gt;&gt;&gt;&gt; org 
&gt;&gt;&gt;&gt; .apache 
&gt;&gt;&gt;&gt; .mina 
&gt;&gt;&gt;&gt; .core 
&gt;&gt;&gt;&gt; .filterchain 
&gt;&gt;&gt;&gt; .DefaultIoFilterChain 
&gt;&gt;&gt;&gt; .callNextMessageReceived(DefaultIoFilterChain.java:433)
&gt;&gt;&gt;&gt;      at
&gt;&gt;&gt;&gt; org.apache.mina.core.filterchain.DefaultIoFilterChain.access 
&gt;&gt;&gt;&gt; $1200(DefaultIoFilterChain.java:47)
&gt;&gt;&gt;&gt;      at
&gt;&gt;&gt;&gt; org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl 
&gt;&gt;&gt;&gt; $1.messageReceived(DefaultIoFilterChain.java:801)
&gt;&gt;&gt;&gt;      at
&gt;&gt;&gt;&gt; org 
&gt;&gt;&gt;&gt; .apache 
&gt;&gt;&gt;&gt; .mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:71)
&gt;&gt;&gt;&gt;      at org.apache.mina.core.session.IoEvent.run(IoEvent.java:63)
&gt;&gt;&gt;&gt;      at
&gt;&gt;&gt;&gt; org.apache.mina.filter.executor.UnorderedThreadPoolExecutor 
&gt;&gt;&gt;&gt; $Worker.runTask(UnorderedThreadPoolExecutor.java:480)
&gt;&gt;&gt;&gt;      at
&gt;&gt;&gt;&gt; org.apache.mina.filter.executor.UnorderedThreadPoolExecutor 
&gt;&gt;&gt;&gt; $Worker.run(UnorderedThreadPoolExecutor.java:434)
&gt;&gt;&gt;&gt;      at java.lang.Thread.run(Thread.java:619)
&gt;&gt;&gt;&gt; pool-4-thread-19 WARN  ldap.LdapProtocolHandler - Null  
&gt;&gt;&gt;&gt; LdapSession given
&gt;&gt;&gt;&gt; to cleanUpSession.
&gt;&gt;&gt;&gt; NioProcessor-3 WARN  ldap.LdapProtocolHandler - Null LdapSession  
&gt;&gt;&gt;&gt; given to
&gt;&gt;&gt;&gt; cleanUpSession.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; The only thing I can think of causing the NPE's is a monitoring
&gt;&gt;&gt;&gt; application that we have, that connects and disconnects from ADS  
&gt;&gt;&gt;&gt; to confirm
&gt;&gt;&gt;&gt; that it's still there...Apart from that I have no plausible  
&gt;&gt;&gt;&gt; explanation
&gt;&gt;&gt;&gt; for the high load. I'm currently using 1.5.6 compiled from source.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Thanks,
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Yiannis
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; ______________________________________________________________________
&gt;&gt;&gt; This email has been scanned by the MessageLabs Email Security  
&gt;&gt;&gt; System.
&gt;&gt;&gt; For more information please visit http://www.messagelabs.com/email______________________________________________________________________
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;
&gt;
&gt; -- 
&gt; Alex Karasulu
&gt; My Blog :: http://www.jroller.com/akarasulu/
&gt; Apache Directory Server :: http://directory.apache.org
&gt; Apache MINA :: http://mina.apache.org
&gt;
&gt; ______________________________________________________________________
&gt; This email has been scanned by the MessageLabs Email Security System.
&gt; For more information please visit http://www.messagelabs.com/email
&gt; ______________________________________________________________________



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: ApacheDS causing very high load</title>
<author><name>Alex Karasulu &lt;akarasulu@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200912.mbox/%3ca32f6b020912092000k7a5ee425ke20bed0e8bcf3a1f@mail.gmail.com%3e"/>
<id>urn:uuid:%3ca32f6b020912092000k7a5ee425ke20bed0e8bcf3a1f@mail-gmail-com%3e</id>
<updated>2009-12-10T04:00:09Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
It would be nice to run your server with a profiler to be able to catch just
when it does get into this state.  This would be very valuable since we'd
see exactly where the code is getting stuck in this terrible loop that eats
your CPU.

You think you can give that a try Ioannis? If you can I'm sure we can work
together to nip this bug quickly.

Thanks,
Alex

On Wed, Dec 9, 2009 at 11:04 AM, Ioannis Mavroukakis &lt;
imavroukakis@gameaccount.com&gt; wrote:

&gt; Hi Emmanuel,
&gt;
&gt; Don't think it is too, as the same behaviour persists when we shut down ADS
&gt; and re-start it. Only clearing the ADS directory allows it to recover! I
&gt; have kept the directory contents though, is there
&gt; any way I can run any forensics on them ?
&gt;
&gt; Thanks,
&gt;
&gt; Y.
&gt;
&gt; On 9 Dec 2009, at 15:21, Emmanuel LÅ½charny wrote:
&gt;
&gt;  Ioannis Mavroukakis a Ã©crit :
&gt;&gt;
&gt;&gt;&gt; Hey fellow listers.
&gt;&gt;&gt;
&gt;&gt; Hi Ioannis,
&gt;&gt;
&gt;&gt; if you get 100% loaded CPU the it might be MINA which is the problem.
&gt;&gt; There is a painful bug in the way the JVM handle epoll, and in certain
&gt;&gt; conditions, it jump to 100% CPU and never goes down. It seems to be a
&gt;&gt; problem when a connection is opened, and closed before the selector can see
&gt;&gt; the close : the select() methods returns at least one selectedKey, but as
&gt;&gt; the connection has been closed, it does nothing but loop again (as you can
&gt;&gt; imagine, the loop is infinite).
&gt;&gt;
&gt;&gt; There is a fix for that, but it's experimental, in MINA branch
&gt;&gt; http://svn.apache.org/repos/asf/mina/branches/select-fix/. I will commit
&gt;&gt; this fix immediately in the MINA trunk, and you'll be able to bump up the
&gt;&gt; MINA version to 2.0.0-RC2-SNAPSHOT in ADS.
&gt;&gt;
&gt;&gt; Not sure though that it's really your problem.
&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; I've got an issue with an embedded instance of apacheds in a trivial
&gt;&gt;&gt; piece of java code. For reasons I have been unable to diagnose
&gt;&gt;&gt; so far, it will run happily for about a week or so, then it will suddenly
&gt;&gt;&gt; ramp up the load on the server it's running on, with the only
&gt;&gt;&gt; way to recover it, being to delete the physical directory where the
&gt;&gt;&gt; records are stored and start from scratch. What's puzzling me is
&gt;&gt;&gt; that it's definitely not load related as the queries an operations to
&gt;&gt;&gt; LDAP are very lightweight and infrequent. What I do get in the logs
&gt;&gt;&gt; are loads of these
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; pool-4-thread-18 ERROR registries.DefaultAttributeTypeRegistry -
&gt;&gt;&gt; attributeType w/ OID 1.3.6.1.4.1.1466.115.121.1.12 not registered!
&gt;&gt;&gt; pool-4-thread-19 ERROR registries.DefaultAttributeTypeRegistry -
&gt;&gt;&gt; attributeType w/ OID 1.3.6.1.4.1.1466.115.121.1.12 not registered!
&gt;&gt;&gt; pool-4-thread-19 WARN  context.SearchingOperationContext - Requested
&gt;&gt;&gt; attribute dn does not exist in the schema, it will be ignored
&gt;&gt;&gt; pool-4-thread-18 WARN  context.SearchingOperationContext - Requested
&gt;&gt;&gt; attribute dn does not exist in the schema, it will be ignored
&gt;&gt;&gt; NioProcessor-2 WARN  ldap.LdapProtocolHandler - Null LdapSession given to
&gt;&gt;&gt; cleanUpSession.
&gt;&gt;&gt; pool-4-thread-19 ERROR registries.DefaultAttributeTypeRegistry -
&gt;&gt;&gt; attributeType w/ OID 1.3.6.1.4.1.1466.115.121.1.12 not registered!
&gt;&gt;&gt; pool-4-thread-17 ERROR registries.DefaultAttributeTypeRegistry -
&gt;&gt;&gt; attributeType w/ OID 1.3.6.1.4.1.1466.115.121.1.12 not registered!
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; and
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; pool-4-thread-19 WARN  ldap.LdapProtocolHandler - Unexpected exception
&gt;&gt;&gt; forcing session to close: sending disconnect notice to client.
&gt;&gt;&gt; java.lang.NullPointerException
&gt;&gt;&gt;       at
&gt;&gt;&gt; org.apache.directory.server.ldap.handlers.LdapRequestHandler.handleMessage(LdapRequestHandler.java:129)
&gt;&gt;&gt;       at
&gt;&gt;&gt; org.apache.directory.server.ldap.handlers.LdapRequestHandler.handleMessage(LdapRequestHandler.java:56)
&gt;&gt;&gt;       at
&gt;&gt;&gt; org.apache.mina.handler.demux.DemuxingIoHandler.messageReceived(DemuxingIoHandler.java:232)
&gt;&gt;&gt;       at
&gt;&gt;&gt; org.apache.directory.server.ldap.LdapProtocolHandler.messageReceived(LdapProtocolHandler.java:194)
&gt;&gt;&gt;       at
&gt;&gt;&gt; org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:721)
&gt;&gt;&gt;       at
&gt;&gt;&gt; org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:433)
&gt;&gt;&gt;       at
&gt;&gt;&gt; org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:47)
&gt;&gt;&gt;       at
&gt;&gt;&gt; org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:801)
&gt;&gt;&gt;       at
&gt;&gt;&gt; org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:71)
&gt;&gt;&gt;       at org.apache.mina.core.session.IoEvent.run(IoEvent.java:63)
&gt;&gt;&gt;       at
&gt;&gt;&gt; org.apache.mina.filter.executor.UnorderedThreadPoolExecutor$Worker.runTask(UnorderedThreadPoolExecutor.java:480)
&gt;&gt;&gt;       at
&gt;&gt;&gt; org.apache.mina.filter.executor.UnorderedThreadPoolExecutor$Worker.run(UnorderedThreadPoolExecutor.java:434)
&gt;&gt;&gt;       at java.lang.Thread.run(Thread.java:619)
&gt;&gt;&gt; pool-4-thread-19 WARN  ldap.LdapProtocolHandler - Null LdapSession given
&gt;&gt;&gt; to cleanUpSession.
&gt;&gt;&gt; NioProcessor-3 WARN  ldap.LdapProtocolHandler - Null LdapSession given to
&gt;&gt;&gt; cleanUpSession.
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; The only thing I can think of causing the NPE's is a monitoring
&gt;&gt;&gt; application that we have, that connects and disconnects from ADS to confirm
&gt;&gt;&gt; that it's still there...Apart from that I have no plausible explanation
&gt;&gt;&gt; for the high load. I'm currently using 1.5.6 compiled from source.
&gt;&gt;&gt;
&gt;&gt;&gt; Thanks,
&gt;&gt;&gt;
&gt;&gt;&gt; Yiannis
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt; ______________________________________________________________________
&gt;&gt; This email has been scanned by the MessageLabs Email Security System.
&gt;&gt; For more information please visit http://www.messagelabs.com/email______________________________________________________________________
&gt;&gt;
&gt;
&gt;


-- 
Alex Karasulu
My Blog :: http://www.jroller.com/akarasulu/
Apache Directory Server :: http://directory.apache.org
Apache MINA :: http://mina.apache.org


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: ApacheDS causing very high load</title>
<author><name>Ioannis Mavroukakis &lt;imavroukakis@gameaccount.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200912.mbox/%3c0A3E98B0-5B26-4B46-8DFB-58B77551257A@gameaccount.com%3e"/>
<id>urn:uuid:%3c0A3E98B0-5B26-4B46-8DFB-58B77551257A@gameaccount-com%3e</id>
<updated>2009-12-09T16:04:50Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Emmanuel,

Don't think it is too, as the same behaviour persists when we shut  
down ADS and re-start it. Only clearing the ADS directory allows it to  
recover! I have kept the directory contents though, is there
any way I can run any forensics on them ?

Thanks,

Y.
On 9 Dec 2009, at 15:21, Emmanuel LŽcharny wrote:

&gt; Ioannis Mavroukakis a écrit :
&gt;&gt; Hey fellow listers.
&gt; Hi Ioannis,
&gt;
&gt; if you get 100% loaded CPU the it might be MINA which is the  
&gt; problem. There is a painful bug in the way the JVM handle epoll, and  
&gt; in certain conditions, it jump to 100% CPU and never goes down. It  
&gt; seems to be a problem when a connection is opened, and closed before  
&gt; the selector can see the close : the select() methods returns at  
&gt; least one selectedKey, but as the connection has been closed, it  
&gt; does nothing but loop again (as you can imagine, the loop is  
&gt; infinite).
&gt;
&gt; There is a fix for that, but it's experimental, in MINA branch http://svn.apache.org/repos/asf/mina/branches/select-fix/

&gt; . I will commit this fix immediately in the MINA trunk, and you'll  
&gt; be able to bump up the MINA version to 2.0.0-RC2-SNAPSHOT in ADS.
&gt;
&gt; Not sure though that it's really your problem.
&gt;&gt;
&gt;&gt; I've got an issue with an embedded instance of apacheds in a  
&gt;&gt; trivial piece of java code. For reasons I have been unable to  
&gt;&gt; diagnose
&gt;&gt; so far, it will run happily for about a week or so, then it will  
&gt;&gt; suddenly ramp up the load on the server it's running on, with the  
&gt;&gt; only
&gt;&gt; way to recover it, being to delete the physical directory where the  
&gt;&gt; records are stored and start from scratch. What's puzzling me is
&gt;&gt; that it's definitely not load related as the queries an operations  
&gt;&gt; to LDAP are very lightweight and infrequent. What I do get in the  
&gt;&gt; logs
&gt;&gt; are loads of these
&gt;&gt;
&gt;&gt;
&gt;&gt; pool-4-thread-18 ERROR registries.DefaultAttributeTypeRegistry -  
&gt;&gt; attributeType w/ OID 1.3.6.1.4.1.1466.115.121.1.12 not registered!
&gt;&gt; pool-4-thread-19 ERROR registries.DefaultAttributeTypeRegistry -  
&gt;&gt; attributeType w/ OID 1.3.6.1.4.1.1466.115.121.1.12 not registered!
&gt;&gt; pool-4-thread-19 WARN  context.SearchingOperationContext -  
&gt;&gt; Requested attribute dn does not exist in the schema, it will be  
&gt;&gt; ignored
&gt;&gt; pool-4-thread-18 WARN  context.SearchingOperationContext -  
&gt;&gt; Requested attribute dn does not exist in the schema, it will be  
&gt;&gt; ignored
&gt;&gt; NioProcessor-2 WARN  ldap.LdapProtocolHandler - Null LdapSession  
&gt;&gt; given to cleanUpSession.
&gt;&gt; pool-4-thread-19 ERROR registries.DefaultAttributeTypeRegistry -  
&gt;&gt; attributeType w/ OID 1.3.6.1.4.1.1466.115.121.1.12 not registered!
&gt;&gt; pool-4-thread-17 ERROR registries.DefaultAttributeTypeRegistry -  
&gt;&gt; attributeType w/ OID 1.3.6.1.4.1.1466.115.121.1.12 not registered!
&gt;&gt;
&gt;&gt;
&gt;&gt; and
&gt;&gt;
&gt;&gt;
&gt;&gt; pool-4-thread-19 WARN  ldap.LdapProtocolHandler - Unexpected  
&gt;&gt; exception forcing session to close: sending disconnect notice to  
&gt;&gt; client.
&gt;&gt; java.lang.NullPointerException
&gt;&gt;        at  
&gt;&gt; org 
&gt;&gt; .apache 
&gt;&gt; .directory 
&gt;&gt; .server 
&gt;&gt; .ldap 
&gt;&gt; .handlers.LdapRequestHandler.handleMessage(LdapRequestHandler.java: 
&gt;&gt; 129)
&gt;&gt;        at  
&gt;&gt; org 
&gt;&gt; .apache 
&gt;&gt; .directory 
&gt;&gt; .server 
&gt;&gt; .ldap 
&gt;&gt; .handlers.LdapRequestHandler.handleMessage(LdapRequestHandler.java: 
&gt;&gt; 56)
&gt;&gt;        at  
&gt;&gt; org 
&gt;&gt; .apache 
&gt;&gt; .mina 
&gt;&gt; .handler 
&gt;&gt; .demux.DemuxingIoHandler.messageReceived(DemuxingIoHandler.java:232)
&gt;&gt;        at  
&gt;&gt; org 
&gt;&gt; .apache 
&gt;&gt; .directory 
&gt;&gt; .server 
&gt;&gt; .ldap.LdapProtocolHandler.messageReceived(LdapProtocolHandler.java: 
&gt;&gt; 194)
&gt;&gt;        at org.apache.mina.core.filterchain.DefaultIoFilterChain 
&gt;&gt; $TailFilter.messageReceived(DefaultIoFilterChain.java:721)
&gt;&gt;        at  
&gt;&gt; org 
&gt;&gt; .apache 
&gt;&gt; .mina 
&gt;&gt; .core 
&gt;&gt; .filterchain 
&gt;&gt; .DefaultIoFilterChain 
&gt;&gt; .callNextMessageReceived(DefaultIoFilterChain.java:433)
&gt;&gt;        at  
&gt;&gt; org.apache.mina.core.filterchain.DefaultIoFilterChain.access 
&gt;&gt; $1200(DefaultIoFilterChain.java:47)
&gt;&gt;        at org.apache.mina.core.filterchain.DefaultIoFilterChain 
&gt;&gt; $EntryImpl$1.messageReceived(DefaultIoFilterChain.java:801)
&gt;&gt;        at  
&gt;&gt; org 
&gt;&gt; .apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java: 
&gt;&gt; 71)
&gt;&gt;        at org.apache.mina.core.session.IoEvent.run(IoEvent.java:63)
&gt;&gt;        at  
&gt;&gt; org.apache.mina.filter.executor.UnorderedThreadPoolExecutor 
&gt;&gt; $Worker.runTask(UnorderedThreadPoolExecutor.java:480)
&gt;&gt;        at  
&gt;&gt; org.apache.mina.filter.executor.UnorderedThreadPoolExecutor 
&gt;&gt; $Worker.run(UnorderedThreadPoolExecutor.java:434)
&gt;&gt;        at java.lang.Thread.run(Thread.java:619)
&gt;&gt; pool-4-thread-19 WARN  ldap.LdapProtocolHandler - Null LdapSession  
&gt;&gt; given to cleanUpSession.
&gt;&gt; NioProcessor-3 WARN  ldap.LdapProtocolHandler - Null LdapSession  
&gt;&gt; given to cleanUpSession.
&gt;&gt;
&gt;&gt;
&gt;&gt; The only thing I can think of causing the NPE's is a monitoring  
&gt;&gt; application that we have, that connects and disconnects from ADS to  
&gt;&gt; confirm
&gt;&gt; that it's still there...Apart from that I have no plausible  
&gt;&gt; explanation for the high load. I'm currently using 1.5.6 compiled  
&gt;&gt; from source.
&gt;&gt;
&gt;&gt; Thanks,
&gt;&gt;
&gt;&gt; Yiannis
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;
&gt;
&gt; ______________________________________________________________________
&gt; This email has been scanned by the MessageLabs Email Security System.
&gt; For more information please visit http://www.messagelabs.com/email  
&gt; ______________________________________________________________________



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: ApacheDS causing very high load</title>
<author><name>=?UTF-8?B?RW1tYW51ZWwgTMKOY2hhcm55?= &lt;elecharny@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200912.mbox/%3c4B1FC079.1050605@gmail.com%3e"/>
<id>urn:uuid:%3c4B1FC079-1050605@gmail-com%3e</id>
<updated>2009-12-09T15:21:29Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Ioannis Mavroukakis a Ã©crit :
&gt; Hey fellow listers.
Hi Ioannis,

if you get 100% loaded CPU the it might be MINA which is the problem. 
There is a painful bug in the way the JVM handle epoll, and in certain 
conditions, it jump to 100% CPU and never goes down. It seems to be a 
problem when a connection is opened, and closed before the selector can 
see the close : the select() methods returns at least one selectedKey, 
but as the connection has been closed, it does nothing but loop again 
(as you can imagine, the loop is infinite).

There is a fix for that, but it's experimental, in MINA branch 
http://svn.apache.org/repos/asf/mina/branches/select-fix/. I will commit 
this fix immediately in the MINA trunk, and you'll be able to bump up 
the MINA version to 2.0.0-RC2-SNAPSHOT in ADS.

Not sure though that it's really your problem.
&gt;
&gt; I've got an issue with an embedded instance of apacheds in a trivial 
&gt; piece of java code. For reasons I have been unable to diagnose
&gt; so far, it will run happily for about a week or so, then it will 
&gt; suddenly ramp up the load on the server it's running on, with the only
&gt; way to recover it, being to delete the physical directory where the 
&gt; records are stored and start from scratch. What's puzzling me is
&gt; that it's definitely not load related as the queries an operations to 
&gt; LDAP are very lightweight and infrequent. What I do get in the logs
&gt; are loads of these
&gt;
&gt;
&gt; pool-4-thread-18 ERROR registries.DefaultAttributeTypeRegistry - 
&gt; attributeType w/ OID 1.3.6.1.4.1.1466.115.121.1.12 not registered!
&gt; pool-4-thread-19 ERROR registries.DefaultAttributeTypeRegistry - 
&gt; attributeType w/ OID 1.3.6.1.4.1.1466.115.121.1.12 not registered!
&gt; pool-4-thread-19 WARN  context.SearchingOperationContext - Requested 
&gt; attribute dn does not exist in the schema, it will be ignored
&gt; pool-4-thread-18 WARN  context.SearchingOperationContext - Requested 
&gt; attribute dn does not exist in the schema, it will be ignored
&gt; NioProcessor-2 WARN  ldap.LdapProtocolHandler - Null LdapSession given 
&gt; to cleanUpSession.
&gt; pool-4-thread-19 ERROR registries.DefaultAttributeTypeRegistry - 
&gt; attributeType w/ OID 1.3.6.1.4.1.1466.115.121.1.12 not registered!
&gt; pool-4-thread-17 ERROR registries.DefaultAttributeTypeRegistry - 
&gt; attributeType w/ OID 1.3.6.1.4.1.1466.115.121.1.12 not registered!
&gt;
&gt;
&gt; and
&gt;
&gt;
&gt; pool-4-thread-19 WARN  ldap.LdapProtocolHandler - Unexpected exception 
&gt; forcing session to close: sending disconnect notice to client.
&gt; java.lang.NullPointerException
&gt;         at 
&gt; org.apache.directory.server.ldap.handlers.LdapRequestHandler.handleMessage(LdapRequestHandler.java:129)

&gt;
&gt;         at 
&gt; org.apache.directory.server.ldap.handlers.LdapRequestHandler.handleMessage(LdapRequestHandler.java:56)

&gt;
&gt;         at 
&gt; org.apache.mina.handler.demux.DemuxingIoHandler.messageReceived(DemuxingIoHandler.java:232)

&gt;
&gt;         at 
&gt; org.apache.directory.server.ldap.LdapProtocolHandler.messageReceived(LdapProtocolHandler.java:194)

&gt;
&gt;         at 
&gt; org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:721)

&gt;
&gt;         at 
&gt; org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:433)

&gt;
&gt;         at 
&gt; org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:47)

&gt;
&gt;         at 
&gt; org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:801)

&gt;
&gt;         at 
&gt; org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:71) 
&gt;
&gt;         at org.apache.mina.core.session.IoEvent.run(IoEvent.java:63)
&gt;         at 
&gt; org.apache.mina.filter.executor.UnorderedThreadPoolExecutor$Worker.runTask(UnorderedThreadPoolExecutor.java:480)

&gt;
&gt;         at 
&gt; org.apache.mina.filter.executor.UnorderedThreadPoolExecutor$Worker.run(UnorderedThreadPoolExecutor.java:434)

&gt;
&gt;         at java.lang.Thread.run(Thread.java:619)
&gt; pool-4-thread-19 WARN  ldap.LdapProtocolHandler - Null LdapSession 
&gt; given to cleanUpSession.
&gt; NioProcessor-3 WARN  ldap.LdapProtocolHandler - Null LdapSession given 
&gt; to cleanUpSession.
&gt;
&gt;
&gt; The only thing I can think of causing the NPE's is a monitoring 
&gt; application that we have, that connects and disconnects from ADS to 
&gt; confirm
&gt; that it's still there...Apart from that I have no plausible 
&gt; explanation for the high load. I'm currently using 1.5.6 compiled from 
&gt; source.
&gt;
&gt; Thanks,
&gt;
&gt; Yiannis
&gt;
&gt;
&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [ApacheDS] Querying for uniqueMember matches</title>
<author><name>Emmanuel Lecharny &lt;elecharny@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200912.mbox/%3cd45b08f00912090521q6e99c97bn60219331a94733c7@mail.gmail.com%3e"/>
<id>urn:uuid:%3cd45b08f00912090521q6e99c97bn60219331a94733c7@mail-gmail-com%3e</id>
<updated>2009-12-09T13:21:29Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
It seems that the real problem is with the way we handle the uniqueMember
AT.

groupOfUniqueNames requires a uniqueMember and a cn
groupOfNames requires a member and a cn.

uniqueMember's Syntax is nameAndOptionalUID, when member's Syntax is DN.

I will check what's going wrong with the nameAndOptionalUID's
uniqueMemberMatch matchingrule.

On Wed, Dec 9, 2009 at 1:04 PM, SCHEDENIG Marian &lt;
Marian.Schedenig@qualysoft.com&gt; wrote:

&gt; &gt; From: SCHEDENIG Marian [mailto:Marian.Schedenig@qualysoft.com]
&gt; &gt; Sent: Freitag, 27. November 2009 15:50
&gt; &gt;
&gt; &gt; Sorry for forgetting to mention the version: ApacheDS 1.5.5 (through
&gt; &gt; Maven).
&gt;
&gt; Sorry for bumping my own thread, but can anyone shed some light on this?
&gt;
&gt; This fails with an exception:
&gt; (uniqueMember=uid=figaro,ou=users,o=infinica)
&gt;
&gt; But if I change my data model to use groupOfNames instead of
&gt; groupOfUniqueNames, the following query works fine:
&gt; (member=uid=figaro,ou=users,o=infinica)
&gt;
&gt; So it really seems to be a problem with groupOfUniqueNames.
&gt;
&gt; Thx,
&gt; Marian.
&gt;
&gt;


-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com


</pre>
</div>
</content>
</entry>
<entry>
<title>ApacheDS causing very high load</title>
<author><name>Ioannis Mavroukakis &lt;imavroukakis@gameaccount.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200912.mbox/%3c1572F262-5F58-4464-BD52-26836926005C@gameaccount.com%3e"/>
<id>urn:uuid:%3c1572F262-5F58-4464-BD52-26836926005C@gameaccount-com%3e</id>
<updated>2009-12-09T13:16:19Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hey fellow listers.

I've got an issue with an embedded instance of apacheds in a trivial  
piece of java code. For reasons I have been unable to diagnose
so far, it will run happily for about a week or so, then it will  
suddenly ramp up the load on the server it's running on, with the only
way to recover it, being to delete the physical directory where the  
records are stored and start from scratch. What's puzzling me is
that it's definitely not load related as the queries an operations to  
LDAP are very lightweight and infrequent. What I do get in the logs
are loads of these


pool-4-thread-18 ERROR registries.DefaultAttributeTypeRegistry -  
attributeType w/ OID 1.3.6.1.4.1.1466.115.121.1.12 not registered!
pool-4-thread-19 ERROR registries.DefaultAttributeTypeRegistry -  
attributeType w/ OID 1.3.6.1.4.1.1466.115.121.1.12 not registered!
pool-4-thread-19 WARN  context.SearchingOperationContext - Requested  
attribute dn does not exist in the schema, it will be ignored
pool-4-thread-18 WARN  context.SearchingOperationContext - Requested  
attribute dn does not exist in the schema, it will be ignored
NioProcessor-2 WARN  ldap.LdapProtocolHandler - Null LdapSession given  
to cleanUpSession.
pool-4-thread-19 ERROR registries.DefaultAttributeTypeRegistry -  
attributeType w/ OID 1.3.6.1.4.1.1466.115.121.1.12 not registered!
pool-4-thread-17 ERROR registries.DefaultAttributeTypeRegistry -  
attributeType w/ OID 1.3.6.1.4.1.1466.115.121.1.12 not registered!


and


pool-4-thread-19 WARN  ldap.LdapProtocolHandler - Unexpected exception  
forcing session to close: sending disconnect notice to client.
java.lang.NullPointerException
         at  
org 
.apache 
.directory 
.server 
.ldap 
.handlers.LdapRequestHandler.handleMessage(LdapRequestHandler.java:129)
         at  
org 
.apache 
.directory 
.server 
.ldap 
.handlers.LdapRequestHandler.handleMessage(LdapRequestHandler.java:56)
         at  
org 
.apache 
.mina 
.handler 
.demux.DemuxingIoHandler.messageReceived(DemuxingIoHandler.java:232)
         at  
org 
.apache 
.directory 
.server 
.ldap.LdapProtocolHandler.messageReceived(LdapProtocolHandler.java:194)
         at org.apache.mina.core.filterchain.DefaultIoFilterChain 
$TailFilter.messageReceived(DefaultIoFilterChain.java:721)
         at  
org 
.apache 
.mina 
.core 
.filterchain 
.DefaultIoFilterChain 
.callNextMessageReceived(DefaultIoFilterChain.java:433)
         at  
org.apache.mina.core.filterchain.DefaultIoFilterChain.access 
$1200(DefaultIoFilterChain.java:47)
         at org.apache.mina.core.filterchain.DefaultIoFilterChain 
$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:801)
         at  
org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java: 
71)
         at org.apache.mina.core.session.IoEvent.run(IoEvent.java:63)
         at org.apache.mina.filter.executor.UnorderedThreadPoolExecutor 
$Worker.runTask(UnorderedThreadPoolExecutor.java:480)
         at org.apache.mina.filter.executor.UnorderedThreadPoolExecutor 
$Worker.run(UnorderedThreadPoolExecutor.java:434)
         at java.lang.Thread.run(Thread.java:619)
pool-4-thread-19 WARN  ldap.LdapProtocolHandler - Null LdapSession  
given to cleanUpSession.
NioProcessor-3 WARN  ldap.LdapProtocolHandler - Null LdapSession given  
to cleanUpSession.


The only thing I can think of causing the NPE's is a monitoring  
application that we have, that connects and disconnects from ADS to  
confirm
that it's still there...Apart from that I have no plausible  
explanation for the high load. I'm currently using 1.5.6 compiled from  
source.

Thanks,

Yiannis




</pre>
</div>
</content>
</entry>
<entry>
<title>RE: [ApacheDS] Querying for uniqueMember matches</title>
<author><name>SCHEDENIG Marian &lt;Marian.Schedenig@qualysoft.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200912.mbox/%3c358FADC2CBB6D1429F83698954F4EB373C33CF71B3@bpvmexm01.qualysoft.hu%3e"/>
<id>urn:uuid:%3c358FADC2CBB6D1429F83698954F4EB373C33CF71B3@bpvmexm01-qualysoft-hu%3e</id>
<updated>2009-12-09T12:04:04Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt; From: SCHEDENIG Marian [mailto:Marian.Schedenig@qualysoft.com]
&gt; Sent: Freitag, 27. November 2009 15:50
&gt; 
&gt; Sorry for forgetting to mention the version: ApacheDS 1.5.5 (through
&gt; Maven).

Sorry for bumping my own thread, but can anyone shed some light on this?

This fails with an exception:
(uniqueMember=uid=figaro,ou=users,o=infinica)

But if I change my data model to use groupOfNames instead of groupOfUniqueNames, the following
query works fine:
(member=uid=figaro,ou=users,o=infinica)

So it really seems to be a problem with groupOfUniqueNames.

Thx,
Marian.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: ApacheDS Apache web server ldaps connection problem.</title>
<author><name>Alex Karasulu &lt;akarasulu@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200912.mbox/%3ca32f6b020912081722w3265111fl63c918d2981182da@mail.gmail.com%3e"/>
<id>urn:uuid:%3ca32f6b020912081722w3265111fl63c918d2981182da@mail-gmail-com%3e</id>
<updated>2009-12-09T01:22:30Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Frank,

A very thorough email.  Thanks for doing the work to make trouble shooting
this problem easier.  I do however have one more think to ask of you.  Let's
start ApacheDS in debug mode and setup the log4j.properties file so that the
frontend ldap wire protocol code is executing to see what's happening when
you hit it with httpd.

Just use the following log4j.properties file after backing up your original
configuration:

# --- start ---

log4j.rootCategory=WARN, stdout, R

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout

log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=apacheds-rolling.log

log4j.appender.R.MaxFileSize=1024KB
# Keep some backup files
log4j.appender.R.MaxBackupIndex=5

log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=[%d{HH:mm:ss}] %p [%c] - %m%n

log4j.appender.stdout.layout.ConversionPattern=[%d{HH:mm:ss}] %p [%c] - %m%n

# with these we'll not get innundated when switching to DEBUG
log4j.logger.org.apache.directory.server.ldap.*=DEBUG
log4j.logger.org.springframework=WARN
log4j.logger.org.apache.directory.shared.codec=WARN
log4j.logger.org.apache.directory.shared.asn1=WARN

log4j.logger.org.apache.directory.server.schema.registries=WARN

#---- end ----

NOTE the following line ....

log4j.logger.org.apache.directory.server.ldap.*=DEBUG

When setup and ADS has restarted, hit the LDAPS port with httpd.  Then send
me the logs so we can see if you're actually hitting the SSL port. This
configuration will also log output to a log file so if you loose data on the
screen don't worry it will be put into the apacheds-rolling.log file.

Send me the region of the logs where you're seeing the SSL port hit if at
all.  Just as a test you might want to see what this looks like when you it
it with your client code which worked (right?).

Alex

On Tue, Dec 8, 2009 at 5:32 PM, Frank Rouse &lt;plaidfarmer@gmail.com&gt; wrote:

&gt; I am having issues getting an Apache web server to authenticate users
&gt; using the ldaps port of an ApacheDS server. I have been over and over
&gt; these settings an I'm almost convinced that there is something simple,
&gt; maybe hidden, that I am missing. I'm hoping the collective wisdom of
&gt; the internet can succeed where I have failed.  Any information would
&gt; be appreciated.
&gt;
&gt; Environment
&gt; Windows XP SP3
&gt; Apache Web Server 2.2
&gt; ApacheDS Server 1.5.5
&gt;
&gt; Current State
&gt; 1. I can authenticate users from Apache using the unsecure ldap 10389
&gt; port. Of course this means that userids/passwords are sent in
&gt; plaintext.
&gt; 2. I can connect to the secure ldap 10686 port with JExplorer client.
&gt; It will prompt me to accept an SSL certificate.  I have saved this
&gt; certificate for later use.
&gt; 3. I have written my own Java code that can access and modify ldap
&gt; information using the secure 10686 port.  In order for this code to
&gt; work I have to import the SSL certificate I saved from JExplorer into
&gt; my local jvm cacerts file.
&gt; 4. There is an Openldap server that the Apache web server can
&gt; authenticate users on the secure ldap port.
&gt; 5. There is some text within the Apache web server error.log that
&gt; states the following.
&gt;
&gt; LDAP: SSL support unavailable: LDAP: CA certificates cannot be set
&gt; using this method, as they are stored in the registry instead.
&gt;
&gt; I looked into this and there was some reference to storing the
&gt; certificate in windows registry using the certificate snap-in under
&gt; mmc.  I tried that and installed the certificate in the Certificates
&gt; (Local Compter)-&gt;Trusted Root Certification Authorities-&gt;Certificates
&gt; but nothing changed.
&gt;
&gt;
&gt;
&gt;
&gt; Below are the relevant parts of my "server.xml" and "httpd.conf" files
&gt; as well as part of the Apache Web Server error.log (there wasn't much
&gt; useful information in the apacheds-rolling.log file).
&gt;
&gt; SERVER.XML
&gt;  &lt;ldapServer id="ldapServer"
&gt;            allowAnonymousAccess="false"
&gt;            saslHost="ldap.example.com"
&gt;            saslPrincipal="ldap/ldap.example.com@EXAMPLE.COM"
&gt;            searchBaseDn="ou=users,ou=system"
&gt;            maxTimeLimit="15000"
&gt;            maxSizeLimit="1000"
&gt;            &gt;
&gt;    &lt;transports&gt;
&gt;      &lt;tcpTransport address="0.0.0.0" port="10389" nbThreads="8"
&gt; backLog="50" enableSSL="false"/&gt;
&gt;      &lt;tcpTransport address="localhost" port="10686" enableSSL="true"/&gt;
&gt;    &lt;/transports&gt;
&gt;
&gt;    &lt;directoryService&gt;#directoryService&lt;/directoryService&gt;
&gt;
&gt;    &lt;!-- The list of supported authentication mechanisms.
&gt; --&gt;
&gt;    &lt;saslMechanismHandlers&gt;
&gt;      &lt;simpleMechanismHandler mech-name="SIMPLE"/&gt;
&gt;      &lt;cramMd5MechanismHandler mech-name="CRAM-MD5" /&gt;
&gt;      &lt;digestMd5MechanismHandler mech-name="DIGEST-MD5" /&gt;
&gt;      &lt;gssapiMechanismHandler mech-name="GSSAPI" /&gt;
&gt;      &lt;ntlmMechanismHandler mech-name="NTLM"
&gt; ntlmProviderFqcn="com.foo.Bar"/&gt;
&gt;      &lt;ntlmMechanismHandler mech-name="GSS-SPNEGO"
&gt; ntlmProviderFqcn="com.foo.Bar"/&gt;
&gt;    &lt;/saslMechanismHandlers&gt;
&gt;
&gt;    &lt;!-- The realms serviced by this SASL host, used by DIGEST-MD5 and
&gt; GSSAPI. --&gt;
&gt;    &lt;saslRealms&gt;
&gt;      &lt;s:value&gt;example.com&lt;/s:value&gt;
&gt;      &lt;s:value&gt;apache.org&lt;/s:value&gt;
&gt;    &lt;/saslRealms&gt;
&gt;
&gt;    &lt;!-- the collection of extended operation handlers to install
&gt; --&gt;
&gt;    &lt;extendedOperationHandlers&gt;
&gt;      &lt;startTlsHandler/&gt;
&gt;      &lt;gracefulShutdownHandler/&gt;
&gt;      &lt;launchDiagnosticUiHandler/&gt;
&gt;      &lt;!-- The Stored Procedure Extended Operation is not stable yet
&gt; and it may cause security risks.--&gt;
&gt;      &lt;!--storedProcedureExtendedOperationHandler/--&gt;
&gt;    &lt;/extendedOperationHandlers&gt;
&gt;  &lt;/ldapServer&gt;
&gt;
&gt;  &lt;apacheDS id="apacheDS"&gt;
&gt;    &lt;ldapServer&gt;#ldapServer&lt;/ldapServer&gt;
&gt;  &lt;/apacheDS&gt;
&gt;
&gt; HTTPS.CONF
&gt;
&gt;   LDAPTrustedGlobalCert CA_DER  "C:/Program Files/Apache Software
&gt; Foundation/Apache2.2/certs/ApacheDS_9_28_2009_to_9_28_2010.der"
&gt;
&gt; &lt;Directory "C:/Program Files/Apache Software
&gt; Foundation/Apache2.2/htdocs/XXXXXX_Internal_FW_and_SW_Release_Repository"&gt;
&gt;    Order deny,allow
&gt;    Deny from All
&gt;    AuthType Basic
&gt;    AuthName "xxxxxx.com ldap"
&gt;    AuthBasicProvider ldap
&gt;    AuthLDAPUrl ldaps://localhost10:686/dc=xxxxxx,dc=com
&gt;    AuthzLDAPAuthoritative on
&gt;    AuthLDAPBindDN "cn=Frank Rouse,ou=Users,dc=xxxxxx,dc=com"
&gt;    AuthLDAPBindPassword xxxxxx
&gt;    Require valid-user
&gt;    Satisfy any
&gt; &lt;/Directory&gt;
&gt;
&gt; ERROR.LOG
&gt;
&gt; [Fri Dec 04 15:51:08 2009] [info] APR LDAP: Built with Microsoft
&gt; Corporation. LDAP SDK
&gt; [Fri Dec 04 15:51:08 2009] [info] LDAP: SSL support unavailable: LDAP:
&gt; CA certificates cannot be set using this method, as they are stored in
&gt; the registry instead.
&gt; .
&gt; .
&gt; .
&gt; [Tue Dec 08 16:13:58 2009] [debug] mod_authnz_ldap.c(377): [client
&gt; 127.0.0.1] [4628] auth_ldap authenticate: using URL
&gt; ldaps://localhost:10686/dc=sensus,dc=com
&gt; [Tue Dec 08 16:13:58 2009] [debug] mod_authnz_ldap.c(377): [client
&gt; 127.0.0.1] [4628] auth_ldap authenticate: using URL
&gt; ldaps://localhost:10686/dc=sensus,dc=com
&gt; [Tue Dec 08 16:13:58 2009] [debug] mod_authnz_ldap.c(377): [client
&gt; 127.0.0.1] [4628] auth_ldap authenticate: using URL
&gt; ldaps://localhost:10686/dc=sensus,dc=com
&gt; [Tue Dec 08 16:13:58 2009] [debug] mod_authnz_ldap.c(377): [client
&gt; 127.0.0.1] [4628] auth_ldap authenticate: using URL
&gt; ldaps://localhost:10686/dc=sensus,dc=com
&gt; [Tue Dec 08 16:13:58 2009] [debug] mod_authnz_ldap.c(377): [client
&gt; 127.0.0.1] [4628] auth_ldap authenticate: using URL
&gt; ldaps://localhost:10686/dc=sensus,dc=com
&gt; [Tue Dec 08 16:13:58 2009] [debug] mod_authnz_ldap.c(377): [client
&gt; 127.0.0.1] [4628] auth_ldap authenticate: using URL
&gt; ldaps://localhost:10686/dc=sensus,dc=com
&gt; [Tue Dec 08 16:13:58 2009] [debug] mod_authnz_ldap.c(377): [client
&gt; 127.0.0.1] [4628] auth_ldap authenticate: using URL
&gt; ldaps://localhost:10686/dc=sensus,dc=com
&gt; [Tue Dec 08 16:13:58 2009] [warn] [client 127.0.0.1] [4628] auth_ldap
&gt; authenticate: user frouse authentication failed; URI
&gt; /Sensus_Internal_FW_and_SW_Release_Repository/ [LDAP:
&gt; ldap_simple_bind_s() failed][Server Down]
&gt;
&gt; Thanks
&gt; --
&gt; Always look on the bright side of life.
&gt;                                     - M Python
&gt;



-- 
Alex Karasulu
My Blog :: http://www.jroller.com/akarasulu/
Apache Directory Server :: http://directory.apache.org
Apache MINA :: http://mina.apache.org


</pre>
</div>
</content>
</entry>
<entry>
<title>ApacheDS Apache web server ldaps connection problem.</title>
<author><name>Frank Rouse &lt;plaidfarmer@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200912.mbox/%3c69e517540912081432h13c273c1qf9e9bfeec424abac@mail.gmail.com%3e"/>
<id>urn:uuid:%3c69e517540912081432h13c273c1qf9e9bfeec424abac@mail-gmail-com%3e</id>
<updated>2009-12-08T22:32:16Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I am having issues getting an Apache web server to authenticate users
using the ldaps port of an ApacheDS server. I have been over and over
these settings an I'm almost convinced that there is something simple,
maybe hidden, that I am missing. I'm hoping the collective wisdom of
the internet can succeed where I have failed.  Any information would
be appreciated.

Environment
Windows XP SP3
Apache Web Server 2.2
ApacheDS Server 1.5.5

Current State
1. I can authenticate users from Apache using the unsecure ldap 10389
port. Of course this means that userids/passwords are sent in
plaintext.
2. I can connect to the secure ldap 10686 port with JExplorer client.
It will prompt me to accept an SSL certificate.  I have saved this
certificate for later use.
3. I have written my own Java code that can access and modify ldap
information using the secure 10686 port.  In order for this code to
work I have to import the SSL certificate I saved from JExplorer into
my local jvm cacerts file.
4. There is an Openldap server that the Apache web server can
authenticate users on the secure ldap port.
5. There is some text within the Apache web server error.log that
states the following.

LDAP: SSL support unavailable: LDAP: CA certificates cannot be set
using this method, as they are stored in the registry instead.

I looked into this and there was some reference to storing the
certificate in windows registry using the certificate snap-in under
mmc.  I tried that and installed the certificate in the Certificates
(Local Compter)-&gt;Trusted Root Certification Authorities-&gt;Certificates
but nothing changed.




Below are the relevant parts of my "server.xml" and "httpd.conf" files
as well as part of the Apache Web Server error.log (there wasn't much
useful information in the apacheds-rolling.log file).

SERVER.XML
  &lt;ldapServer id="ldapServer"
            allowAnonymousAccess="false"
            saslHost="ldap.example.com"
            saslPrincipal="ldap/ldap.example.com@EXAMPLE.COM"
            searchBaseDn="ou=users,ou=system"
            maxTimeLimit="15000"
            maxSizeLimit="1000"
            &gt;
    &lt;transports&gt;
      &lt;tcpTransport address="0.0.0.0" port="10389" nbThreads="8"
backLog="50" enableSSL="false"/&gt;
      &lt;tcpTransport address="localhost" port="10686" enableSSL="true"/&gt;
    &lt;/transports&gt;

    &lt;directoryService&gt;#directoryService&lt;/directoryService&gt;

    &lt;!-- The list of supported authentication mechanisms.                   --&gt;
    &lt;saslMechanismHandlers&gt;
      &lt;simpleMechanismHandler mech-name="SIMPLE"/&gt;
      &lt;cramMd5MechanismHandler mech-name="CRAM-MD5" /&gt;
      &lt;digestMd5MechanismHandler mech-name="DIGEST-MD5" /&gt;
      &lt;gssapiMechanismHandler mech-name="GSSAPI" /&gt;
      &lt;ntlmMechanismHandler mech-name="NTLM" ntlmProviderFqcn="com.foo.Bar"/&gt;
      &lt;ntlmMechanismHandler mech-name="GSS-SPNEGO"
ntlmProviderFqcn="com.foo.Bar"/&gt;
    &lt;/saslMechanismHandlers&gt;

    &lt;!-- The realms serviced by this SASL host, used by DIGEST-MD5 and
GSSAPI. --&gt;
    &lt;saslRealms&gt;
      &lt;s:value&gt;example.com&lt;/s:value&gt;
      &lt;s:value&gt;apache.org&lt;/s:value&gt;
    &lt;/saslRealms&gt;

    &lt;!-- the collection of extended operation handlers to install           --&gt;
    &lt;extendedOperationHandlers&gt;
      &lt;startTlsHandler/&gt;
      &lt;gracefulShutdownHandler/&gt;
      &lt;launchDiagnosticUiHandler/&gt;
      &lt;!-- The Stored Procedure Extended Operation is not stable yet
and it may cause security risks.--&gt;
      &lt;!--storedProcedureExtendedOperationHandler/--&gt;
    &lt;/extendedOperationHandlers&gt;
  &lt;/ldapServer&gt;

  &lt;apacheDS id="apacheDS"&gt;
    &lt;ldapServer&gt;#ldapServer&lt;/ldapServer&gt;
  &lt;/apacheDS&gt;

HTTPS.CONF

   LDAPTrustedGlobalCert CA_DER  "C:/Program Files/Apache Software
Foundation/Apache2.2/certs/ApacheDS_9_28_2009_to_9_28_2010.der"

&lt;Directory "C:/Program Files/Apache Software
Foundation/Apache2.2/htdocs/XXXXXX_Internal_FW_and_SW_Release_Repository"&gt;
    Order deny,allow
    Deny from All
    AuthType Basic
    AuthName "xxxxxx.com ldap"
    AuthBasicProvider ldap
    AuthLDAPUrl ldaps://localhost10:686/dc=xxxxxx,dc=com
    AuthzLDAPAuthoritative on
    AuthLDAPBindDN "cn=Frank Rouse,ou=Users,dc=xxxxxx,dc=com"
    AuthLDAPBindPassword xxxxxx
    Require valid-user
    Satisfy any
&lt;/Directory&gt;

ERROR.LOG

[Fri Dec 04 15:51:08 2009] [info] APR LDAP: Built with Microsoft
Corporation. LDAP SDK
[Fri Dec 04 15:51:08 2009] [info] LDAP: SSL support unavailable: LDAP:
CA certificates cannot be set using this method, as they are stored in
the registry instead.
.
.
.
[Tue Dec 08 16:13:58 2009] [debug] mod_authnz_ldap.c(377): [client
127.0.0.1] [4628] auth_ldap authenticate: using URL
ldaps://localhost:10686/dc=sensus,dc=com
[Tue Dec 08 16:13:58 2009] [debug] mod_authnz_ldap.c(377): [client
127.0.0.1] [4628] auth_ldap authenticate: using URL
ldaps://localhost:10686/dc=sensus,dc=com
[Tue Dec 08 16:13:58 2009] [debug] mod_authnz_ldap.c(377): [client
127.0.0.1] [4628] auth_ldap authenticate: using URL
ldaps://localhost:10686/dc=sensus,dc=com
[Tue Dec 08 16:13:58 2009] [debug] mod_authnz_ldap.c(377): [client
127.0.0.1] [4628] auth_ldap authenticate: using URL
ldaps://localhost:10686/dc=sensus,dc=com
[Tue Dec 08 16:13:58 2009] [debug] mod_authnz_ldap.c(377): [client
127.0.0.1] [4628] auth_ldap authenticate: using URL
ldaps://localhost:10686/dc=sensus,dc=com
[Tue Dec 08 16:13:58 2009] [debug] mod_authnz_ldap.c(377): [client
127.0.0.1] [4628] auth_ldap authenticate: using URL
ldaps://localhost:10686/dc=sensus,dc=com
[Tue Dec 08 16:13:58 2009] [debug] mod_authnz_ldap.c(377): [client
127.0.0.1] [4628] auth_ldap authenticate: using URL
ldaps://localhost:10686/dc=sensus,dc=com
[Tue Dec 08 16:13:58 2009] [warn] [client 127.0.0.1] [4628] auth_ldap
authenticate: user frouse authentication failed; URI
/Sensus_Internal_FW_and_SW_Release_Repository/ [LDAP:
ldap_simple_bind_s() failed][Server Down]

Thanks
--
Always look on the bright side of life.
                                    - M Python


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: apacheds not starting anymore after server crash</title>
<author><name>Emmanuel Lecharny &lt;elecharny@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200912.mbox/%3c4B1E5717.1000405@gmail.com%3e"/>
<id>urn:uuid:%3c4B1E5717-1000405@gmail-com%3e</id>
<updated>2009-12-08T13:39:35Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
werner mueller a Ã©crit :
&gt; Emmanuel LÂŽcharny schrieb:
&gt;&gt; werner mueller a Ã©crit :
&gt;&gt;&gt; hello
&gt;&gt;&gt;
&gt;&gt;&gt; I'm a little desparate at the moment: we had a server crash. after 
&gt;&gt;&gt; rebooting the server i tried starting the apacheDS again but it 
&gt;&gt;&gt; terminates with an Input/output error in the logs (see below).
&gt;&gt;&gt;
&gt;&gt;&gt; is there a way to repair the database or re-initialize it?
&gt;&gt; The only way is to remove all the .db/.lg files and to reinject all 
&gt;&gt; the data into the server. In other words, starting back from a backup :/
&gt;&gt;
&gt;&gt; We are working on a DSR system (Disaster Recovery System) in order to 
&gt;&gt; be able to restore a base when it has crashed like that, it will be 
&gt;&gt; present in 2.0.
&gt;&gt;
&gt;&gt; Sorry for the inconvenience ...
&gt;&gt;
&gt;&gt;
&gt;
&gt; hello
&gt;
&gt; thanks for the reply!
&gt;
&gt; i was a little scared because the backups where all hot copies of the 
&gt; running server. but an older version did the job! the server came up 
&gt; running again!
&gt;
&gt; it turned out the schema was broken in apacheds/data-default/schema/cn.db
&gt; that file could not even be copied anymore on the system itself (same 
&gt; input/output error.
FYI, the next version will have a ldif based schema, so it won't be 
possible to break it... We are currently working on that.

&gt;
&gt; can't wait for version 2.0 :-)

So do I !

Glad you fixed your problem...

-- 
Regards,
Cordialement,
Emmanuel LÃ©charny
www.nextury.com




</pre>
</div>
</content>
</entry>
<entry>
<title>Re: apacheds not starting anymore after server crash</title>
<author><name>werner mueller &lt;werner.mueller@mimacom.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200912.mbox/%3chflkpu$okg$1@ger.gmane.org%3e"/>
<id>urn:uuid:%3chflkpu$okg$1@ger-gmane-org%3e</id>
<updated>2009-12-08T13:37:00Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Emmanuel LÂŽcharny schrieb:
&gt; werner mueller a Ã©crit :
&gt;&gt; hello
&gt;&gt;
&gt;&gt; I'm a little desparate at the moment: we had a server crash. after 
&gt;&gt; rebooting the server i tried starting the apacheDS again but it 
&gt;&gt; terminates with an Input/output error in the logs (see below).
&gt;&gt;
&gt;&gt; is there a way to repair the database or re-initialize it?
&gt; The only way is to remove all the .db/.lg files and to reinject all the 
&gt; data into the server. In other words, starting back from a backup :/
&gt; 
&gt; We are working on a DSR system (Disaster Recovery System) in order to be 
&gt; able to restore a base when it has crashed like that, it will be present 
&gt; in 2.0.
&gt; 
&gt; Sorry for the inconvenience ...
&gt; 
&gt; 

hello

thanks for the reply!

i was a little scared because the backups where all hot copies of the 
running server. but an older version did the job! the server came up 
running again!

it turned out the schema was broken in apacheds/data-default/schema/cn.db
that file could not even be copied anymore on the system itself (same 
input/output error.

can't wait for version 2.0 :-)


best regards

werner



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: apacheds not starting anymore after server crash</title>
<author><name>=?UTF-8?B?RW1tYW51ZWwgTMKOY2hhcm55?= &lt;elecharny@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200912.mbox/%3c4B1D8B15.1000208@gmail.com%3e"/>
<id>urn:uuid:%3c4B1D8B15-1000208@gmail-com%3e</id>
<updated>2009-12-07T23:09:09Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
werner mueller a Ã©crit :
&gt; hello
&gt;
&gt; I'm a little desparate at the moment: we had a server crash. after 
&gt; rebooting the server i tried starting the apacheDS again but it 
&gt; terminates with an Input/output error in the logs (see below).
&gt;
&gt; is there a way to repair the database or re-initialize it?
The only way is to remove all the .db/.lg files and to reinject all the 
data into the server. In other words, starting back from a backup :/

We are working on a DSR system (Disaster Recovery System) in order to be 
able to restore a base when it has crashed like that, it will be present 
in 2.0.

Sorry for the inconvenience ...



</pre>
</div>
</content>
</entry>
<entry>
<title>apacheds not starting anymore after server crash</title>
<author><name>werner mueller &lt;werner.mueller@mimacom.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200912.mbox/%3chfk1ij$o3g$1@ger.gmane.org%3e"/>
<id>urn:uuid:%3chfk1ij$o3g$1@ger-gmane-org%3e</id>
<updated>2009-12-07T23:02:37Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
hello

I'm a little desparate at the moment: we had a server crash. after 
rebooting the server i tried starting the apacheDS again but it 
terminates with an Input/output error in the logs (see below).

is there a way to repair the database or re-initialize it?
or is there another way?

we use apacheDS 1.5.4 with java 1.6 on Debian 4.0 (so far it was running 
for months with no issues)

any tipps would be great!

thanks a lot
regards

werner



[23:40:16] DEBUG 
[org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry] 
- lookup with id2.5.4.3' of attributeType: &lt;2.5.4.3, cn&gt;
Exception in thread "main" java.io.IOException: Input/output error
         at java.io.RandomAccessFile.readBytes(Native Method)
         at java.io.RandomAccessFile.read(RandomAccessFile.java:322)
         at jdbm.recman.RecordFile.read(RecordFile.java:402)
         at jdbm.recman.RecordFile.get(RecordFile.java:160)
         at 
jdbm.recman.LogicalRowIdManager.fetch(LogicalRowIdManager.java:135)
         at jdbm.recman.BaseRecordManager.fetch(BaseRecordManager.java:337)
         at jdbm.recman.BaseRecordManager.fetch(BaseRecordManager.java:315)
         at 
jdbm.recman.BaseRecordManager.getNameDirectory(BaseRecordManager.java:457)
         at 
jdbm.recman.BaseRecordManager.getNamedObject(BaseRecordManager.java:393)
         at 
jdbm.recman.CacheRecordManager.getNamedObject(CacheRecordManager.java:370)
         at 
org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable.&lt;init&gt;(JdbmTable.java:148)
         at 
org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex.initTables(JdbmIndex.java:189)
         at 
org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex.init(JdbmIndex.java:158)
         at 
org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmStore.setupUserIndices(JdbmStore.java:375)
         at 
org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmStore.init(JdbmStore.java:275)
         at 
org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition.init(JdbmPartition.java:248)
         at 
org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1317)
         at 
org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:840)
         at 
org.apache.directory.server.configuration.ApacheDS.startup(ApacheDS.java:126)
         at org.apache.directory.server.Service.init(Service.java:86)
         at 
org.apache.directory.server.UberjarMain.main(UberjarMain.java:56)



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Backup via partitions folder?</title>
<author><name>=?UTF-8?B?RW1tYW51ZWwgTMKOY2hhcm55?= &lt;elecharny@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200912.mbox/%3c4B1D6E35.9060300@gmail.com%3e"/>
<id>urn:uuid:%3c4B1D6E35-9060300@gmail-com%3e</id>
<updated>2009-12-07T21:05:57Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Craig Setera a Ã©crit :
&gt; Are there any concerns with doing a directory "backup" by making a 
&gt; copy of the contents of the partitions folder?  Could this "backup" be 
&gt; "restored" to a different directory server assuming that their 
&gt; configuration is the same?
Most certainly. If you don't have that many modifications, as each 
modification has a modification date, it should be possible to extract 
the latest mods since the last extraction, and apply them to a separate 
server.

Although, it would be a tedious work to make it playing smoothly, and is 
really a workaround.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Replication options in 1.5.5?</title>
<author><name>=?UTF-8?B?RW1tYW51ZWwgTMKOY2hhcm55?= &lt;elecharny@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200912.mbox/%3c4B1D6DB2.5080402@gmail.com%3e"/>
<id>urn:uuid:%3c4B1D6DB2-5080402@gmail-com%3e</id>
<updated>2009-12-07T21:03:46Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Craig Setera a Ã©crit :
&gt; Does anyone have any experience building out a master/slave setup for 
&gt; Apache DS (or any directory service)?

Hi,

as Kiran said, Mitosis was deadly bugged, and we deciced to  remove the 
code from he server atm. We are working on writing a RFC 4533 
replication based solution, giving our users the benefit of some proved 
replication system, as OpenLDAP has already implemented it.

As an extra bonus, that will mean we will be able to replicate OpenLDAP 
and ApacheDS together.

We don't have a timeline for this atm.


</pre>
</div>
</content>
</entry>
<entry>
<title>ApacheDS Support</title>
<author><name>&quot;Carmical, Timothy&quot; &lt;tlcarmic@bechtel.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200912.mbox/%3c7F53A3B1141402429719387BEF065647029EE81A@ashs00092.amers.ibechtel.com%3e"/>
<id>urn:uuid:%3c7F53A3B1141402429719387BEF065647029EE81A@ashs00092-amers-ibechtel-com%3e</id>
<updated>2009-12-07T20:59:57Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello,

 

My company is looking at ApacheDS as a potential replacement for Active
Directory as our primary authentication store and I had a couple of
questions.

 

What do most companies do for support related to ApacheDS?  Are there
any third party companies that provide ongoing support?

 

Also, is it possible to support multi-master replication with ApacheDS?
It is not clear from the documentation if this is supported or not.  

 

Thanks,
Tim Carmical
Platform Engineering Manager

Phone: 301-228-7977
Cell: 240-344-9316

 



</pre>
</div>
</content>
</entry>
<entry>
<title>Backup via partitions folder?</title>
<author><name>Craig Setera &lt;craig@mfoundry.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200912.mbox/%3c4B1BF525.2090509@mfoundry.com%3e"/>
<id>urn:uuid:%3c4B1BF525-2090509@mfoundry-com%3e</id>
<updated>2009-12-06T18:17:09Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Are there any concerns with doing a directory "backup" by making a copy 
of the contents of the partitions folder?  Could this "backup" be 
"restored" to a different directory server assuming that their 
configuration is the same?

Thanks,
Craig



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Replication options in 1.5.5?</title>
<author><name>Craig Setera &lt;craig@mfoundry.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200912.mbox/%3c4B1BE07C.7000001@mfoundry.com%3e"/>
<id>urn:uuid:%3c4B1BE07C-7000001@mfoundry-com%3e</id>
<updated>2009-12-06T16:49:00Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Does anyone have any experience building out a master/slave setup for 
Apache DS (or any directory service)?

Thanks again,
Craig

On 12/5/09 10:19 AM, Kiran Ayyagari wrote:
&gt;
&gt; hi Craig,
&gt;
&gt;&gt; Hello,
&gt;&gt;
&gt;&gt; We are building a solution out around version 1.5.5 of Apache DS.  As 
&gt;&gt; we've been developing the solution, I had assumed replication was 
&gt;&gt; working based on the commented-out sections in server.xml.  Last 
&gt;&gt; night I came to the realization that Mitosis is "out" and that the 
&gt;&gt; team is moving to Syncrepl in the 2.0 timeframe.
&gt;
&gt; yes, syncrepl is going to be the replication system, mitosis is no 
&gt; longer used and was removed
&gt; from code.
&gt;&gt;
&gt;&gt; While I see some of the syncrepl code in source control, am I correct 
&gt;&gt; in my assumption that it isn't in working condition in the 1.5.5 
&gt;&gt; release? 
&gt; yes, it was broken cause of various reasons (AFAICT refactoring of the 
&gt; earlier code base was one reason)
&gt;&gt; What option, if any, do we have for replication in version 1.5.5?  Is 
&gt;&gt; there any way to bring mitosis "back to life" on top of 1.5.5?
&gt; am afraid, NO
&gt;
&gt;   (I've
&gt;&gt; read there were some problems in mitosis that might make it 
&gt;&gt; unsuitable for production use).  At least in the short term a warm 
&gt;&gt; failover model (using master-slave replication) might be reasonable 
&gt;&gt; for us.  Is there any way to set that up in 1.5.5 with what is 
&gt;&gt; available?
&gt; think no
&gt;
&gt;   While it isn't
&gt;&gt; my first choice, I'm in the process of completing a custom 
&gt;&gt; interceptor, so I suppose a replication interceptor (for 
&gt;&gt; master/slave) might also be an option.
&gt; yes
&gt;
&gt; HTH
&gt; Kiran Ayyagari


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Replication options in 1.5.5?</title>
<author><name>Kiran Ayyagari &lt;ayyagarikiran@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200912.mbox/%3c4B1A8812.8020902@gmail.com%3e"/>
<id>urn:uuid:%3c4B1A8812-8020902@gmail-com%3e</id>
<updated>2009-12-05T16:19:30Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

hi Craig,

&gt; Hello,
&gt; 
&gt; We are building a solution out around version 1.5.5 of Apache DS.  As 
&gt; we've been developing the solution, I had assumed replication was 
&gt; working based on the commented-out sections in server.xml.  Last night I 
&gt; came to the realization that Mitosis is "out" and that the team is 
&gt; moving to Syncrepl in the 2.0 timeframe.

yes, syncrepl is going to be the replication system, mitosis is no longer used and was removed
from code.
&gt; 
&gt; While I see some of the syncrepl code in source control, am I correct in 
&gt; my assumption that it isn't in working condition in the 1.5.5 release?  
yes, it was broken cause of various reasons (AFAICT refactoring of the earlier code base was
one reason)
&gt; What option, if any, do we have for replication in version 1.5.5?  Is 
&gt; there any way to bring mitosis "back to life" on top of 1.5.5?
am afraid, NO

   (I've
&gt; read there were some problems in mitosis that might make it unsuitable 
&gt; for production use).  At least in the short term a warm failover model 
&gt; (using master-slave replication) might be reasonable for us.  Is there 
&gt; any way to set that up in 1.5.5 with what is available?
think no

   While it isn't
&gt; my first choice, I'm in the process of completing a custom interceptor, 
&gt; so I suppose a replication interceptor (for master/slave) might also be 
&gt; an option.
yes

HTH
Kiran Ayyagari


</pre>
</div>
</content>
</entry>
<entry>
<title>Replication options in 1.5.5?</title>
<author><name>Craig Setera &lt;craig@mfoundry.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200912.mbox/%3c4B19695F.3030406@mfoundry.com%3e"/>
<id>urn:uuid:%3c4B19695F-3030406@mfoundry-com%3e</id>
<updated>2009-12-04T19:56:15Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello,

We are building a solution out around version 1.5.5 of Apache DS.  As 
we've been developing the solution, I had assumed replication was 
working based on the commented-out sections in server.xml.  Last night I 
came to the realization that Mitosis is "out" and that the team is 
moving to Syncrepl in the 2.0 timeframe.

While I see some of the syncrepl code in source control, am I correct in 
my assumption that it isn't in working condition in the 1.5.5 release?  
What option, if any, do we have for replication in version 1.5.5?  Is 
there any way to bring mitosis "back to life" on top of 1.5.5?  (I've 
read there were some problems in mitosis that might make it unsuitable 
for production use).  At least in the short term a warm failover model 
(using master-slave replication) might be reasonable for us.  Is there 
any way to set that up in 1.5.5 with what is available?  While it isn't 
my first choice, I'm in the process of completing a custom interceptor, 
so I suppose a replication interceptor (for master/slave) might also be 
an option.

I look forward to hearing any options that people might be able to provide.

Thanks,
Craig



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [Studio] nisNetgroupTriple: no equality matching rule</title>
<author><name>Jason Hamilton &lt;jason@meanasspenguin.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200912.mbox/%3c4B16DAB7.8020906@meanasspenguin.org%3e"/>
<id>urn:uuid:%3c4B16DAB7-8020906@meanasspenguin-org%3e</id>
<updated>2009-12-02T21:23:03Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thank you sir, an appropriate fix :-)

Downloaded 1.5.1 and it looks lovely. More excellent work from the 
Apache team.

-Jason

Stefan Seelmann wrote:
&gt; Hi Jason,
&gt;
&gt; Jason Hamilton wrote:
&gt;
&gt;&gt; I'm new to the list so be gentle :-)
&gt;
&gt; Hey, we are always gentle :-)
&gt;
&gt;&gt; I have no trouble manually applying an ldif or even via phpLDAPadmin 
&gt;&gt; to modify nisNetgroupTriple entries in my LDAP tree. When I attempt 
&gt;&gt; to add or modify then from Directory Studio I get the following:
&gt;&gt;
&gt;&gt; Error while executing LDIF
&gt;&gt; - [LDAP: error code 18 - modify/add: nisNetgroupTriple: no equality 
&gt;&gt; matching rule]
&gt;&gt;
&gt;&gt; I'm running the latest build of Directory Studio 1.5 on x86_64, with 
&gt;&gt; OpenLDAP 2.4.18 on CentOS. I thought I heard murmurs on the Internet 
&gt;&gt; of a fix for this in studio at v1.5.5 but perhaps I dreamed that :-p
&gt;
&gt; Well, you are dreaming regarding "v1.5.5" because the newest version 
&gt; is "v1.5.1" :-P
&gt;
&gt; To fix your issue you could change the "Modify Mode" for attributes 
&gt; with "no equality matching rule" in the connection properties [1]. For 
&gt; OpenLDAP you should use the option "Always REPLACE".
&gt;
&gt; Kind Regards,
&gt; Stefan
&gt;
&gt; [1]http://directory.apache.org/studio/static/users_guide/ldap_browser/tools_connection_properties.html#tools_connection_properties_edit_options

&gt;

-- 

-Jason 



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [Studio] nisNetgroupTriple: no equality matching rule</title>
<author><name>Stefan Seelmann &lt;seelmann@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200912.mbox/%3c4B16D844.1080603@apache.org%3e"/>
<id>urn:uuid:%3c4B16D844-1080603@apache-org%3e</id>
<updated>2009-12-02T21:12:36Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Jason,

Jason Hamilton wrote:

&gt; I'm new to the list so be gentle :-)

Hey, we are always gentle :-)

&gt; I have no trouble manually applying an ldif or even via phpLDAPadmin to 
&gt; modify nisNetgroupTriple entries in my LDAP tree. When I attempt to add 
&gt; or modify then from Directory Studio I get the following:
&gt; 
&gt; Error while executing LDIF
&gt; - [LDAP: error code 18 - modify/add: nisNetgroupTriple: no equality 
&gt; matching rule]
&gt; 
&gt; I'm running the latest build of Directory Studio 1.5 on x86_64, with 
&gt; OpenLDAP 2.4.18 on CentOS. I thought I heard murmurs on the Internet of 
&gt; a fix for this in studio at v1.5.5 but perhaps I dreamed that :-p

Well, you are dreaming regarding "v1.5.5" because the newest version is 
"v1.5.1" :-P

To fix your issue you could change the "Modify Mode" for attributes with 
"no equality matching rule" in the connection properties [1]. For 
OpenLDAP you should use the option "Always REPLACE".

Kind Regards,
Stefan

[1]http://directory.apache.org/studio/static/users_guide/ldap_browser/tools_connection_properties.html#tools_connection_properties_edit_options


</pre>
</div>
</content>
</entry>
<entry>
<title>[Studio] nisNetgroupTriple: no equality matching rule</title>
<author><name>Jason Hamilton &lt;jason@meanasspenguin.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200912.mbox/%3c4B16D58E.2080109@meanasspenguin.org%3e"/>
<id>urn:uuid:%3c4B16D58E-2080109@meanasspenguin-org%3e</id>
<updated>2009-12-02T21:01:02Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

I'm new to the list so be gentle :-)

I have no trouble manually applying an ldif or even via phpLDAPadmin to 
modify nisNetgroupTriple entries in my LDAP tree. When I attempt to add 
or modify then from Directory Studio I get the following:

Error while executing LDIF
 - [LDAP: error code 18 - modify/add: nisNetgroupTriple: no equality 
matching rule]
  javax.naming.directory.InvalidSearchFilterException: [LDAP: error code 
18 - modify/add: nisNetgroupTriple: no equality matching rule]; 
remaining name 'cn=admin,ou=Netgroup,dc=simulexinc,dc=com'
    at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3036)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2978)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2785)
    at com.sun.jndi.ldap.LdapCtx.c_modifyAttributes(LdapCtx.java:1468)
    at 
com.sun.jndi.toolkit.ctx.ComponentDirContext.p_modifyAttributes(ComponentDirContext.java:273)
    at 
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.modifyAttributes(PartialCompositeDirContext.java:190)
    at 
org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper$2.run(JNDIConnectionWrapper.java:454)
    at 
org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.runAndMonitor(JNDIConnectionWrapper.java:1272)
    at 
org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.checkConnectionAndRunAndMonitor(JNDIConnectionWrapper.java:1203)
    at 
org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.modifyEntry(JNDIConnectionWrapper.java:502)
    at 
org.apache.directory.studio.ldapbrowser.core.jobs.ImportLdifJob.importLdifRecord(ImportLdifJob.java:507)
    at 
org.apache.directory.studio.ldapbrowser.core.jobs.ImportLdifJob.importLdif(ImportLdifJob.java:267)
    at 
org.apache.directory.studio.ldapbrowser.core.jobs.ExecuteLdifRunnable.run(ExecuteLdifRunnable.java:143)
    at 
org.apache.directory.studio.ldapbrowser.core.jobs.UpdateEntryRunnable.run(UpdateEntryRunnable.java:58)
    at 
org.apache.directory.studio.connection.ui.RunnableContextRunner$1.run(RunnableContextRunner.java:113)
    at 
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

  [LDAP: error code 18 - modify/add: nisNetgroupTriple: no equality 
matching rule]



I'm running the latest build of Directory Studio 1.5 on x86_64, with 
OpenLDAP 2.4.18 on CentOS. I thought I heard murmurs on the Internet of 
a fix for this in studio at v1.5.5 but perhaps I dreamed that :-p

Any tips would be appreciated.

-- 

-Jason 



</pre>
</div>
</content>
</entry>
<entry>
<title>[ANNOUNCE] Apache Directory Studio 1.5.1 released</title>
<author><name>Pierre-Arnaud Marcelot &lt;pamarcelot@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200912.mbox/%3c98d8c0860912020318j799a5adat504d15d824bb2676@mail.gmail.com%3e"/>
<id>urn:uuid:%3c98d8c0860912020318j799a5adat504d15d824bb2676@mail-gmail-com%3e</id>
<updated>2009-12-02T11:18:52Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
The Apache Directory Team is pleased to announce the release of Apache
Directory Studio 1.5.1, a bug fix and enhancement update of its Eclipse
based LDAP Browser and Directory client.

You can download Apache Directory Studio 1.5.1 as a standalone RCP
application for Mac OS X, Linux and Windows here:
  http://directory.apache.org/studio/downloads.html

You can install it directly in Eclipse using this update site:
  http://directory.apache.org/studio/update/1.x/

Here are a few highlights of this new version:
 * a bug where a modify operation could be sent to the server when
refreshing the LDAP Browser view
 * correctly handling entries with a hash sign (#) in their DN
 * glitches and performance improvements in the UI
 * typos in the french translation

Developed as a sub-project of the Directory Top Level Project, Apache
Directory Studio is an Eclipse RCP application that takes full advantage of
the benefits inherent in the Eclipse platform. Composed of several Eclipse
(OSGi) plugins, Apache Directory Studio can be easily upgraded with
additional plugins. Apache Directory Studio plugins can even run within a
full installation of Eclipse itself.
Apache Directory Studio contains 6 major features:
 * an LDAP Browser feature
 * an LDIF Editor feature
 * an ACI Editor feature for Apache Directory Server
 * a Schema Editor feature
 * an Apache DS feature
 * an Apache DS Configuration feature

For more information about Apache Directory Studio, see our website:
  http://directory.apache.org/studio

Below are the JIRA issues that were resolved since the release of Apache
Directory Studio 1.5.0:
* Bug
 - [DIRSTUDIO-576] - Context menu not shown after a right-click on a
non-cached entry
 - [DIRSTUDIO-577] - LDIF editor doesn't notify Eclipse that the LDIF file
has changed when saving
 - [DIRSTUDIO-580] - Setting "Validate certificates for secure LDAP
connections" is not saved
 - [DIRSTUDIO-587] - UI flickers on quick search
 - [DIRSTUDIO-589] - InvalidNameException: unexpected token for user ids
starting with hash sign
 - [DIRSTUDIO-590] - The 'Quick Search' string has not been externalized in
the LDAP Browser view
 - [DIRSTUDIO-591] - Error reading objects with # in DN
 - [DIRSTUDIO-592] - LDAP Browser view is refreshed twice after the
initialization of the children of an entry
 - [DIRSTUDIO-593] - Missing string and typo in the french translation of
the Password Editor
 - [DIRSTUDIO-594] - The 'Show new password details' checkbox does not
display the 'Enter new password' text field as clear text when checked in
the Password Editor
 - [DIRSTUDIO-596] - Various typos in the french translation
 - [DIRSTUDIO-597] - Modification sent to the server while browsing through
the DIT and refreshing entries
 - [DIRSTUDIO-598] - Base64 encoded DN marked as invalid in LDIF editor

* Improvement
 - [DIRSTUDIO-595] - The icon of the entry in the 'Outline' view should be
the same as the one in the 'LDAP Browser' view

The Apache Directory Team


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: PostgreSQL as backend</title>
<author><name>Alex Karasulu &lt;akarasulu@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200912.mbox/%3ca32f6b020912010758u2b657c1dgf95689314ae86286@mail.gmail.com%3e"/>
<id>urn:uuid:%3ca32f6b020912010758u2b657c1dgf95689314ae86286@mail-gmail-com%3e</id>
<updated>2009-12-01T15:58:11Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Tue, Dec 1, 2009 at 8:30 AM, David R Robison &lt;
drrobison@openroadsconsulting.com&gt; wrote:

&gt; Does Apache Directory Server support Virtual Directories?


Not yet but it can easily be altered in the code to do so.


&gt; How would I expose my data through LDAP?


You can have a partition implemented to show your data in your db as a
branch in your DIT if you go with ApacheDS.  Just write the partition to
expose some hierarchy for your data after querying it and caching the db
data.

I can go into details if you like but we'd have to offline this conversation
since it's a bit more specific to your situation rather than mainstream to
this list.

Alex


&gt; Thanks for the info. David
&gt;
&gt;
&gt; Alex Karasulu wrote:
&gt;
&gt;&gt; On Mon, Nov 30, 2009 at 10:56 PM, David R Robison &lt;
&gt;&gt; drrobison@openroadsconsulting.com&gt; wrote:
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;&gt; No, what are virtual directories? David
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt; http://en.wikipedia.org/wiki/Virtual_directory
&gt;&gt;
&gt;&gt; Sounds to me like you want to take data that you already have in a
&gt;&gt; database
&gt;&gt; and present it as LDAP to complete your directory.  You may have put it
&gt;&gt; there for proximity/performance sake but still need to have it presented
&gt;&gt; via
&gt;&gt; LDAP.  A VD can help you do that.
&gt;&gt;
&gt;&gt; HTH,
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;
&gt; --
&gt;
&gt; David R Robison
&gt; Open Roads Consulting, Inc.
&gt; 103 Watson Road, Chesapeake, VA 23320
&gt; phone: (757) 546-3401
&gt; e-mail: drrobison@openroadsconsulting.com
&gt; web: http://openroadsconsulting.com
&gt; blog: http://therobe.blogspot.com
&gt; book:
&gt; http://www.xulonpress.com/bookstore/bookdetail.php?PB_ISBN=9781597816526
&gt;
&gt; This e-mail communication (including any attachments) may contain
&gt; confidential and/or privileged material intended solely for the individual
&gt; or entity to which it is addressed.  If you are not the intended recipient,
&gt; you should immediately stop reading this message and delete it from all
&gt; computers that it resides on. Any unauthorized reading, distribution,
&gt; copying or other use of this communication (or its attachments) is strictly
&gt; prohibited.  If you have received this communication in error, please notify
&gt; us immediately.
&gt;



-- 
Alex Karasulu
My Blog :: http://www.jroller.com/akarasulu/
Apache Directory Server :: http://directory.apache.org
Apache MINA :: http://mina.apache.org


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: PostgreSQL as backend</title>
<author><name>David R Robison &lt;drrobison@openroadsconsulting.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200912.mbox/%3c4B151A5E.7080707@openroadsconsulting.com%3e"/>
<id>urn:uuid:%3c4B151A5E-7080707@openroadsconsulting-com%3e</id>
<updated>2009-12-01T13:30:06Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Does Apache Directory Server support Virtual Directories? How would I 
expose my data through LDAP? Thanks for the info. David

Alex Karasulu wrote:
&gt; On Mon, Nov 30, 2009 at 10:56 PM, David R Robison &lt;
&gt; drrobison@openroadsconsulting.com&gt; wrote:
&gt;
&gt;   
&gt;&gt; No, what are virtual directories? David
&gt;&gt;
&gt;&gt;
&gt;&gt;     
&gt; http://en.wikipedia.org/wiki/Virtual_directory
&gt;
&gt; Sounds to me like you want to take data that you already have in a database
&gt; and present it as LDAP to complete your directory.  You may have put it
&gt; there for proximity/performance sake but still need to have it presented via
&gt; LDAP.  A VD can help you do that.
&gt;
&gt; HTH,
&gt;
&gt;   

-- 

David R Robison
Open Roads Consulting, Inc.
103 Watson Road, Chesapeake, VA 23320
phone: (757) 546-3401
e-mail: drrobison@openroadsconsulting.com
web: http://openroadsconsulting.com
blog: http://therobe.blogspot.com
book: http://www.xulonpress.com/bookstore/bookdetail.php?PB_ISBN=9781597816526

This e-mail communication (including any attachments) may contain confidential and/or privileged
material intended solely for the individual or entity to which it is addressed.  If you are
not the intended recipient, you should immediately stop reading this message and delete it
from all computers that it resides on. Any unauthorized reading, distribution, copying or
other use of this communication (or its attachments) is strictly prohibited.  If you have
received this communication in error, please notify us immediately.  



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: PostgreSQL as backend</title>
<author><name>Alex Karasulu &lt;akarasulu@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200912.mbox/%3ca32f6b020911302048vbde6eaes4bcd0ddc5a6b2531@mail.gmail.com%3e"/>
<id>urn:uuid:%3ca32f6b020911302048vbde6eaes4bcd0ddc5a6b2531@mail-gmail-com%3e</id>
<updated>2009-12-01T04:48:18Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Mon, Nov 30, 2009 at 10:56 PM, David R Robison &lt;
drrobison@openroadsconsulting.com&gt; wrote:

&gt; No, what are virtual directories? David
&gt;
&gt;
http://en.wikipedia.org/wiki/Virtual_directory

Sounds to me like you want to take data that you already have in a database
and present it as LDAP to complete your directory.  You may have put it
there for proximity/performance sake but still need to have it presented via
LDAP.  A VD can help you do that.

HTH,

-- 
Alex Karasulu
My Blog :: http://www.jroller.com/akarasulu/
Apache Directory Server :: http://directory.apache.org
Apache MINA :: http://mina.apache.org


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: PostgreSQL as backend</title>
<author><name>David R Robison &lt;drrobison@openroadsconsulting.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200912.mbox/%3c4B149409.4020007@openroadsconsulting.com%3e"/>
<id>urn:uuid:%3c4B149409-4020007@openroadsconsulting-com%3e</id>
<updated>2009-12-01T03:56:57Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
No, what are virtual directories? David

Alex Karasulu wrote:
&gt; You ever look into virtual directories?
&gt;
&gt; Alex
&gt;
&gt; On Mon, Nov 30, 2009 at 9:41 PM, David R Robison &lt;
&gt; drrobison@openroadsconsulting.com&gt; wrote:
&gt;
&gt;   
&gt;&gt; Thanks. Speaking of performance, we have records in our PostgreSQL database
&gt;&gt; that references contacts in our LDAP. We want to do LFAP lookups as part of
&gt;&gt; our database SQL calls. To do this we use a Perl lookup function but for
&gt;&gt; large queries it is quite slow. If the records were already in a PostgreSQL
&gt;&gt; database then we should be able to make better benefit of internal indexes
&gt;&gt; and keys. Thanks again. David
&gt;&gt;
&gt;&gt; Emmanuel Lecharny wrote:
&gt;&gt;
&gt;&gt;     
&gt;&gt;&gt; Hi,
&gt;&gt;&gt;
&gt;&gt;&gt; On Mon, Nov 30, 2009 at 11:06 PM, David R Robison
&gt;&gt;&gt; &lt;drrobison@openroadsconsulting.com&gt; wrote:
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;       
&gt;&gt;&gt;&gt; Is it possible (or are there plans) to use PostgreSQL as a backend
&gt;&gt;&gt;&gt; database
&gt;&gt;&gt;&gt; for Apache Directory Server? Thanks, David
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;         
&gt;&gt;&gt; Most certainly. We have an oracle backend being written by Andrea (see
&gt;&gt;&gt; the dev. ML on archives), it should be possible with some little
&gt;&gt;&gt; effort to port the code to Postgresql. We just need someone who has
&gt;&gt;&gt; time to do that.
&gt;&gt;&gt;
&gt;&gt;&gt; Note that I'm afraid the performance will be quite low...
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;       
&gt;&gt; --
&gt;&gt;
&gt;&gt; David R Robison
&gt;&gt; Open Roads Consulting, Inc.
&gt;&gt; 103 Watson Road, Chesapeake, VA 23320
&gt;&gt; phone: (757) 546-3401
&gt;&gt; e-mail: drrobison@openroadsconsulting.com
&gt;&gt; web: http://openroadsconsulting.com
&gt;&gt; blog: http://therobe.blogspot.com
&gt;&gt; book:
&gt;&gt; http://www.xulonpress.com/bookstore/bookdetail.php?PB_ISBN=9781597816526
&gt;&gt;
&gt;&gt; This e-mail communication (including any attachments) may contain
&gt;&gt; confidential and/or privileged material intended solely for the individual
&gt;&gt; or entity to which it is addressed.  If you are not the intended recipient,
&gt;&gt; you should immediately stop reading this message and delete it from all
&gt;&gt; computers that it resides on. Any unauthorized reading, distribution,
&gt;&gt; copying or other use of this communication (or its attachments) is strictly
&gt;&gt; prohibited.  If you have received this communication in error, please notify
&gt;&gt; us immediately.
&gt;&gt;
&gt;&gt;     
&gt;
&gt;
&gt;
&gt;   

-- 

David R Robison
Open Roads Consulting, Inc.
103 Watson Road, Chesapeake, VA 23320
phone: (757) 546-3401
e-mail: drrobison@openroadsconsulting.com
web: http://openroadsconsulting.com
blog: http://therobe.blogspot.com
book: http://www.xulonpress.com/bookstore/bookdetail.php?PB_ISBN=9781597816526

This e-mail communication (including any attachments) may contain confidential and/or privileged
material intended solely for the individual or entity to which it is addressed.  If you are
not the intended recipient, you should immediately stop reading this message and delete it
from all computers that it resides on. Any unauthorized reading, distribution, copying or
other use of this communication (or its attachments) is strictly prohibited.  If you have
received this communication in error, please notify us immediately.  



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: PostgreSQL as backend</title>
<author><name>Alex Karasulu &lt;akarasulu@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200912.mbox/%3ca32f6b020911301938y5fbac88ep52b40be838c72d39@mail.gmail.com%3e"/>
<id>urn:uuid:%3ca32f6b020911301938y5fbac88ep52b40be838c72d39@mail-gmail-com%3e</id>
<updated>2009-12-01T03:38:51Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
You ever look into virtual directories?

Alex

On Mon, Nov 30, 2009 at 9:41 PM, David R Robison &lt;
drrobison@openroadsconsulting.com&gt; wrote:

&gt; Thanks. Speaking of performance, we have records in our PostgreSQL database
&gt; that references contacts in our LDAP. We want to do LFAP lookups as part of
&gt; our database SQL calls. To do this we use a Perl lookup function but for
&gt; large queries it is quite slow. If the records were already in a PostgreSQL
&gt; database then we should be able to make better benefit of internal indexes
&gt; and keys. Thanks again. David
&gt;
&gt; Emmanuel Lecharny wrote:
&gt;
&gt;&gt; Hi,
&gt;&gt;
&gt;&gt; On Mon, Nov 30, 2009 at 11:06 PM, David R Robison
&gt;&gt; &lt;drrobison@openroadsconsulting.com&gt; wrote:
&gt;&gt;
&gt;&gt;
&gt;&gt;&gt; Is it possible (or are there plans) to use PostgreSQL as a backend
&gt;&gt;&gt; database
&gt;&gt;&gt; for Apache Directory Server? Thanks, David
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt; Most certainly. We have an oracle backend being written by Andrea (see
&gt;&gt; the dev. ML on archives), it should be possible with some little
&gt;&gt; effort to port the code to Postgresql. We just need someone who has
&gt;&gt; time to do that.
&gt;&gt;
&gt;&gt; Note that I'm afraid the performance will be quite low...
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;
&gt; --
&gt;
&gt; David R Robison
&gt; Open Roads Consulting, Inc.
&gt; 103 Watson Road, Chesapeake, VA 23320
&gt; phone: (757) 546-3401
&gt; e-mail: drrobison@openroadsconsulting.com
&gt; web: http://openroadsconsulting.com
&gt; blog: http://therobe.blogspot.com
&gt; book:
&gt; http://www.xulonpress.com/bookstore/bookdetail.php?PB_ISBN=9781597816526
&gt;
&gt; This e-mail communication (including any attachments) may contain
&gt; confidential and/or privileged material intended solely for the individual
&gt; or entity to which it is addressed.  If you are not the intended recipient,
&gt; you should immediately stop reading this message and delete it from all
&gt; computers that it resides on. Any unauthorized reading, distribution,
&gt; copying or other use of this communication (or its attachments) is strictly
&gt; prohibited.  If you have received this communication in error, please notify
&gt; us immediately.
&gt;



-- 
Alex Karasulu
My Blog :: http://www.jroller.com/akarasulu/
Apache Directory Server :: http://directory.apache.org
Apache MINA :: http://mina.apache.org


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: PostgreSQL as backend</title>
<author><name>David R Robison &lt;drrobison@openroadsconsulting.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200912.mbox/%3c4B14823D.8060602@openroadsconsulting.com%3e"/>
<id>urn:uuid:%3c4B14823D-8060602@openroadsconsulting-com%3e</id>
<updated>2009-12-01T02:41:01Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks. Speaking of performance, we have records in our PostgreSQL 
database that references contacts in our LDAP. We want to do LFAP 
lookups as part of our database SQL calls. To do this we use a Perl 
lookup function but for large queries it is quite slow. If the records 
were already in a PostgreSQL database then we should be able to make 
better benefit of internal indexes and keys. Thanks again. David

Emmanuel Lecharny wrote:
&gt; Hi,
&gt;
&gt; On Mon, Nov 30, 2009 at 11:06 PM, David R Robison
&gt; &lt;drrobison@openroadsconsulting.com&gt; wrote:
&gt;   
&gt;&gt; Is it possible (or are there plans) to use PostgreSQL as a backend database
&gt;&gt; for Apache Directory Server? Thanks, David
&gt;&gt;     
&gt;
&gt; Most certainly. We have an oracle backend being written by Andrea (see
&gt; the dev. ML on archives), it should be possible with some little
&gt; effort to port the code to Postgresql. We just need someone who has
&gt; time to do that.
&gt;
&gt; Note that I'm afraid the performance will be quite low...
&gt;
&gt;   

-- 

David R Robison
Open Roads Consulting, Inc.
103 Watson Road, Chesapeake, VA 23320
phone: (757) 546-3401
e-mail: drrobison@openroadsconsulting.com
web: http://openroadsconsulting.com
blog: http://therobe.blogspot.com
book: http://www.xulonpress.com/bookstore/bookdetail.php?PB_ISBN=9781597816526

This e-mail communication (including any attachments) may contain confidential and/or privileged
material intended solely for the individual or entity to which it is addressed.  If you are
not the intended recipient, you should immediately stop reading this message and delete it
from all computers that it resides on. Any unauthorized reading, distribution, copying or
other use of this communication (or its attachments) is strictly prohibited.  If you have
received this communication in error, please notify us immediately.  



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: PostgreSQL as backend</title>
<author><name>Emmanuel Lecharny &lt;elecharny@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200911.mbox/%3cd45b08f00911301428p2d1cab48m49b69bf030c0c9ed@mail.gmail.com%3e"/>
<id>urn:uuid:%3cd45b08f00911301428p2d1cab48m49b69bf030c0c9ed@mail-gmail-com%3e</id>
<updated>2009-11-30T22:28:50Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

On Mon, Nov 30, 2009 at 11:06 PM, David R Robison
&lt;drrobison@openroadsconsulting.com&gt; wrote:
&gt; Is it possible (or are there plans) to use PostgreSQL as a backend database
&gt; for Apache Directory Server? Thanks, David

Most certainly. We have an oracle backend being written by Andrea (see
the dev. ML on archives), it should be possible with some little
effort to port the code to Postgresql. We just need someone who has
time to do that.

Note that I'm afraid the performance will be quite low...

-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com


</pre>
</div>
</content>
</entry>
<entry>
<title>PostgreSQL as backend</title>
<author><name>David R Robison &lt;drrobison@openroadsconsulting.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200911.mbox/%3c4B1441E9.20404@openroadsconsulting.com%3e"/>
<id>urn:uuid:%3c4B1441E9-20404@openroadsconsulting-com%3e</id>
<updated>2009-11-30T22:06:33Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Is it possible (or are there plans) to use PostgreSQL as a backend 
database for Apache Directory Server? Thanks, David

-- 

David R Robison
Open Roads Consulting, Inc.
103 Watson Road, Chesapeake, VA 23320
phone: (757) 546-3401
e-mail: drrobison@openroadsconsulting.com
web: http://openroadsconsulting.com
blog: http://therobe.blogspot.com
book: http://www.xulonpress.com/bookstore/bookdetail.php?PB_ISBN=9781597816526






</pre>
</div>
</content>
</entry>
<entry>
<title>Re: PARITION AGAIN</title>
<author><name>Ersin ER &lt;ersin.er@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200911.mbox/%3ca1b4a6610911292100w7d5d67d0g58b0b1f6df712aa0@mail.gmail.com%3e"/>
<id>urn:uuid:%3ca1b4a6610911292100w7d5d67d0g58b0b1f6df712aa0@mail-gmail-com%3e</id>
<updated>2009-11-30T05:00:36Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
If what you want to intercept is only the bind method you can just write
your own Authentication Interceptor or even you may just write your own
Authentication Method and integrate it into the existing Authentication
Interceptor.

Writing a partition makes sense when you want to control data storage as
well as taking advantage of the implemented services (as interceptors) such
as Access Control.

HTH,

On Mon, Nov 30, 2009 at 06:05, Jacques Oosthuizen &lt;jacqueso@conor.co.za&gt;wrote:

&gt; I had a look at the interceptors, do you thing it will be better to write
&gt; my
&gt; own interceptor and not a partition ?
&gt;
&gt;
&gt; On 2009/11/29 11:57 PM, "Ersin ER" &lt;ersin.er@gmail.com&gt; wrote:
&gt;
&gt; &gt; Well, the ultimate solution is to browse ApacheDS code in Eclipse and
&gt; open
&gt; &gt; the type hierarchy for Interceptor interface. For all the classes in the
&gt; &gt; chain you need to check whether it overrides the bind method.
&gt; &gt;
&gt; &gt; A more advanced solution is to use AspectJ and analyzing all bind methods
&gt; on
&gt; &gt; the fly.
&gt; &gt;
&gt; &gt; (I am currently unable to work on the code because I am not using my own
&gt; &gt; machine but in fact solving the problem is quite easy.)
&gt; &gt;
&gt; &gt; On Sun, Nov 29, 2009 at 17:54, Jacques Oosthuizen &lt;jacqueso@conor.co.za
&gt; &gt;wrote:
&gt; &gt;
&gt; &gt;&gt; Thanks for the help , I have removed the Autheniticator but my bind
&gt; method
&gt; &gt;&gt; still does not get called. I do see in the logs a lookup happening in
&gt; the
&gt; &gt;&gt; BindHandler and that it is failing because by dn for auth is not found.
&gt; It
&gt; &gt;&gt; is not calling my lookup in my partition. I am thinking of implementing
&gt; my
&gt; &gt;&gt; own BindHandler to handle this but that seems like too much work .
&gt; &gt;&gt;
&gt; &gt;&gt; On 2009/11/28 10:11 PM, "Ersin ER" &lt;ersin.er@gmail.com&gt; wrote:
&gt; &gt;&gt;
&gt; &gt;&gt;&gt; The interceptor's name should be AuthenticationInterceptor or
&gt; &gt;&gt;&gt; authenticationInterceptor.
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt; (You may just iterate over the interceptors and print their names.)
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt; On Sat, Nov 28, 2009 at 19:24, Jacques Oosthuizen &lt;
&gt; jacqueso@conor.co.za
&gt; &gt;&gt;&gt; wrote:
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt; I still have tried to remove the interceptor like
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;
&gt; directoryService.getInterceptorChain().remove("org.apache.directory.server.c
&gt; &gt;&gt;&gt;&gt; ore.authn.AuthenticationInterceptor");
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt; I have also tried removing from actual list but if I print the list
&gt; the
&gt; &gt;&gt;&gt;&gt; interceptor is still there.
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt; On 2009/11/27 11:35 PM, "Ersin ER" &lt;ersin.er@gmail.com&gt; wrote:
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;&gt; You need to call getInterceptorChain() if you really want to work
on
&gt; &gt;&gt; the
&gt; &gt;&gt;&gt;&gt;&gt; chain. getInterceptors() just returns a clone of it. And removing
the
&gt; &gt;&gt;&gt;&gt;&gt; default Authn interceptor should really help, because it obviously
&gt; &gt;&gt;&gt;&gt; prevents
&gt; &gt;&gt;&gt;&gt;&gt; the bind call being forwarded in the chain. (I just checked the
&gt; code.)
&gt; &gt;&gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;&gt; HTH,
&gt; &gt;&gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;&gt; On Fri, Nov 27, 2009 at 15:12, Jacques Oosthuizen &lt;
&gt; &gt;&gt; jacqueso@conor.co.za
&gt; &gt;&gt;&gt;&gt;&gt; wrote:
&gt; &gt;&gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;&gt;&gt; Still not having luck , even if I remove the default authenticator
&gt; &gt;&gt;&gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;&gt;&gt;  List&lt;Interceptor&gt; interceptors =
&gt; directoryService.getInterceptors();
&gt; &gt;&gt;&gt;&gt;&gt;&gt;        Iterator&lt;Interceptor&gt; iter = interceptors.iterator();
&gt; &gt;&gt;&gt;&gt;&gt;&gt;        while (iter.hasNext()) {
&gt; &gt;&gt;&gt;&gt;&gt;&gt;             Interceptor next = iter.next();
&gt; &gt;&gt;&gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;&gt;&gt;             if (next instanceof
&gt; &gt;&gt;&gt;&gt;&gt;&gt; org.apache.directory.server.core.authn.AuthenticationInterceptor)
&gt; &gt;&gt;&gt;&gt;&gt;&gt;             {
&gt; &gt;&gt;&gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;&gt;&gt;                 interceptors.remove(next);
&gt; &gt;&gt;&gt;&gt;&gt;&gt;                 break;
&gt; &gt;&gt;&gt;&gt;&gt;&gt;             }
&gt; &gt;&gt;&gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;&gt;&gt;        }
&gt; &gt;&gt;&gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;&gt;&gt; But my bind in my partition still does not get called . Any
help
&gt; will
&gt; &gt;&gt; be
&gt; &gt;&gt;&gt;&gt;&gt;&gt; appreciated
&gt; &gt;&gt;&gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;&gt;&gt; Jacques Oosthuizen
&gt; &gt;&gt;&gt;&gt;&gt;&gt; Conor Information Technologies
&gt; &gt;&gt;&gt;&gt;&gt;&gt; Director
&gt; &gt;&gt;&gt;&gt;&gt;&gt; mobile :  0827699138
&gt; &gt;&gt;&gt;&gt;&gt;&gt; web : http://www.conor.co.za
&gt; &gt;&gt;&gt;&gt;&gt;&gt; mail : jacqueso@conor.co.za
&gt; &gt;&gt;&gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt; Jacques Oosthuizen
&gt; &gt;&gt;&gt;&gt; Conor Information Technologies
&gt; &gt;&gt;&gt;&gt; Director
&gt; &gt;&gt;&gt;&gt; mobile :  0827699138
&gt; &gt;&gt;&gt;&gt; web : http://www.conor.co.za
&gt; &gt;&gt;&gt;&gt; mail : jacqueso@conor.co.za
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt; Jacques Oosthuizen
&gt; &gt;&gt; Conor Information Technologies
&gt; &gt;&gt; Director
&gt; &gt;&gt; mobile :  0827699138
&gt; &gt;&gt; web : http://www.conor.co.za
&gt; &gt;&gt; mail : jacqueso@conor.co.za
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;
&gt;
&gt; Jacques Oosthuizen
&gt; Conor Information Technologies
&gt; Director
&gt; mobile :  0827699138
&gt; web : http://www.conor.co.za
&gt; mail : jacqueso@conor.co.za
&gt;
&gt;
&gt;
&gt;
&gt;
&gt;
&gt;


-- 
Ersin ER
http://www.ersiner.net


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: PARITION AGAIN</title>
<author><name>Jacques Oosthuizen &lt;jacqueso@conor.co.za&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200911.mbox/%3cC7391112.1AA5%25jacqueso@conor.co.za%3e"/>
<id>urn:uuid:%3cC7391112-1AA5%25jacqueso@conor-co-za%3e</id>
<updated>2009-11-30T04:05:06Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I had a look at the interceptors, do you thing it will be better to write my
own interceptor and not a partition ?


On 2009/11/29 11:57 PM, "Ersin ER" &lt;ersin.er@gmail.com&gt; wrote:

&gt; Well, the ultimate solution is to browse ApacheDS code in Eclipse and open
&gt; the type hierarchy for Interceptor interface. For all the classes in the
&gt; chain you need to check whether it overrides the bind method.
&gt; 
&gt; A more advanced solution is to use AspectJ and analyzing all bind methods on
&gt; the fly.
&gt; 
&gt; (I am currently unable to work on the code because I am not using my own
&gt; machine but in fact solving the problem is quite easy.)
&gt; 
&gt; On Sun, Nov 29, 2009 at 17:54, Jacques Oosthuizen &lt;jacqueso@conor.co.za&gt;wrote:
&gt; 
&gt;&gt; Thanks for the help , I have removed the Autheniticator but my bind method
&gt;&gt; still does not get called. I do see in the logs a lookup happening in the
&gt;&gt; BindHandler and that it is failing because by dn for auth is not found. It
&gt;&gt; is not calling my lookup in my partition. I am thinking of implementing my
&gt;&gt; own BindHandler to handle this but that seems like too much work .
&gt;&gt; 
&gt;&gt; On 2009/11/28 10:11 PM, "Ersin ER" &lt;ersin.er@gmail.com&gt; wrote:
&gt;&gt; 
&gt;&gt;&gt; The interceptor's name should be AuthenticationInterceptor or
&gt;&gt;&gt; authenticationInterceptor.
&gt;&gt;&gt; 
&gt;&gt;&gt; (You may just iterate over the interceptors and print their names.)
&gt;&gt;&gt; 
&gt;&gt;&gt; On Sat, Nov 28, 2009 at 19:24, Jacques Oosthuizen &lt;jacqueso@conor.co.za
&gt;&gt;&gt; wrote:
&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; I still have tried to remove the interceptor like
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; 
&gt;&gt; directoryService.getInterceptorChain().remove("org.apache.directory.server.c
&gt;&gt;&gt;&gt; ore.authn.AuthenticationInterceptor");
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; I have also tried removing from actual list but if I print the list the
&gt;&gt;&gt;&gt; interceptor is still there.
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; On 2009/11/27 11:35 PM, "Ersin ER" &lt;ersin.er@gmail.com&gt; wrote:
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt; You need to call getInterceptorChain() if you really want to work on
&gt;&gt; the
&gt;&gt;&gt;&gt;&gt; chain. getInterceptors() just returns a clone of it. And removing the
&gt;&gt;&gt;&gt;&gt; default Authn interceptor should really help, because it obviously
&gt;&gt;&gt;&gt; prevents
&gt;&gt;&gt;&gt;&gt; the bind call being forwarded in the chain. (I just checked the code.)
&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt; HTH,
&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt; On Fri, Nov 27, 2009 at 15:12, Jacques Oosthuizen &lt;
&gt;&gt; jacqueso@conor.co.za
&gt;&gt;&gt;&gt;&gt; wrote:
&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt; Still not having luck , even if I remove the default authenticator
&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt;  List&lt;Interceptor&gt; interceptors = directoryService.getInterceptors();
&gt;&gt;&gt;&gt;&gt;&gt;        Iterator&lt;Interceptor&gt; iter = interceptors.iterator();
&gt;&gt;&gt;&gt;&gt;&gt;        while (iter.hasNext()) {
&gt;&gt;&gt;&gt;&gt;&gt;             Interceptor next = iter.next();
&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt;             if (next instanceof
&gt;&gt;&gt;&gt;&gt;&gt; org.apache.directory.server.core.authn.AuthenticationInterceptor)
&gt;&gt;&gt;&gt;&gt;&gt;             {
&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt;                 interceptors.remove(next);
&gt;&gt;&gt;&gt;&gt;&gt;                 break;
&gt;&gt;&gt;&gt;&gt;&gt;             }
&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt;        }
&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt; But my bind in my partition still does not get called . Any help
will
&gt;&gt; be
&gt;&gt;&gt;&gt;&gt;&gt; appreciated
&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt; Jacques Oosthuizen
&gt;&gt;&gt;&gt;&gt;&gt; Conor Information Technologies
&gt;&gt;&gt;&gt;&gt;&gt; Director
&gt;&gt;&gt;&gt;&gt;&gt; mobile :  0827699138
&gt;&gt;&gt;&gt;&gt;&gt; web : http://www.conor.co.za
&gt;&gt;&gt;&gt;&gt;&gt; mail : jacqueso@conor.co.za
&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; Jacques Oosthuizen
&gt;&gt;&gt;&gt; Conor Information Technologies
&gt;&gt;&gt;&gt; Director
&gt;&gt;&gt;&gt; mobile :  0827699138
&gt;&gt;&gt;&gt; web : http://www.conor.co.za
&gt;&gt;&gt;&gt; mail : jacqueso@conor.co.za
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt; 
&gt;&gt; Jacques Oosthuizen
&gt;&gt; Conor Information Technologies
&gt;&gt; Director
&gt;&gt; mobile :  0827699138
&gt;&gt; web : http://www.conor.co.za
&gt;&gt; mail : jacqueso@conor.co.za
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt; 

Jacques Oosthuizen
Conor Information Technologies
Director
mobile :  0827699138
web : http://www.conor.co.za
mail : jacqueso@conor.co.za








</pre>
</div>
</content>
</entry>
<entry>
<title>Re: PARITION AGAIN</title>
<author><name>Ersin ER &lt;ersin.er@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200911.mbox/%3ca1b4a6610911291357x3ca1a63epff6956aedd45dfcf@mail.gmail.com%3e"/>
<id>urn:uuid:%3ca1b4a6610911291357x3ca1a63epff6956aedd45dfcf@mail-gmail-com%3e</id>
<updated>2009-11-29T21:57:52Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Well, the ultimate solution is to browse ApacheDS code in Eclipse and open
the type hierarchy for Interceptor interface. For all the classes in the
chain you need to check whether it overrides the bind method.

A more advanced solution is to use AspectJ and analyzing all bind methods on
the fly.

(I am currently unable to work on the code because I am not using my own
machine but in fact solving the problem is quite easy.)

On Sun, Nov 29, 2009 at 17:54, Jacques Oosthuizen &lt;jacqueso@conor.co.za&gt;wrote:

&gt; Thanks for the help , I have removed the Autheniticator but my bind method
&gt; still does not get called. I do see in the logs a lookup happening in the
&gt; BindHandler and that it is failing because by dn for auth is not found. It
&gt; is not calling my lookup in my partition. I am thinking of implementing my
&gt; own BindHandler to handle this but that seems like too much work .
&gt;
&gt; On 2009/11/28 10:11 PM, "Ersin ER" &lt;ersin.er@gmail.com&gt; wrote:
&gt;
&gt; &gt; The interceptor's name should be AuthenticationInterceptor or
&gt; &gt; authenticationInterceptor.
&gt; &gt;
&gt; &gt; (You may just iterate over the interceptors and print their names.)
&gt; &gt;
&gt; &gt; On Sat, Nov 28, 2009 at 19:24, Jacques Oosthuizen &lt;jacqueso@conor.co.za
&gt; &gt;wrote:
&gt; &gt;
&gt; &gt;&gt; I still have tried to remove the interceptor like
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; directoryService.getInterceptorChain().remove("org.apache.directory.server.c
&gt; &gt;&gt; ore.authn.AuthenticationInterceptor");
&gt; &gt;&gt;
&gt; &gt;&gt; I have also tried removing from actual list but if I print the list the
&gt; &gt;&gt; interceptor is still there.
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt; On 2009/11/27 11:35 PM, "Ersin ER" &lt;ersin.er@gmail.com&gt; wrote:
&gt; &gt;&gt;
&gt; &gt;&gt;&gt; You need to call getInterceptorChain() if you really want to work on
&gt; the
&gt; &gt;&gt;&gt; chain. getInterceptors() just returns a clone of it. And removing the
&gt; &gt;&gt;&gt; default Authn interceptor should really help, because it obviously
&gt; &gt;&gt; prevents
&gt; &gt;&gt;&gt; the bind call being forwarded in the chain. (I just checked the code.)
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt; HTH,
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt; On Fri, Nov 27, 2009 at 15:12, Jacques Oosthuizen &lt;
&gt; jacqueso@conor.co.za
&gt; &gt;&gt;&gt; wrote:
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt; Still not having luck , even if I remove the default authenticator
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;  List&lt;Interceptor&gt; interceptors = directoryService.getInterceptors();
&gt; &gt;&gt;&gt;&gt;        Iterator&lt;Interceptor&gt; iter = interceptors.iterator();
&gt; &gt;&gt;&gt;&gt;        while (iter.hasNext()) {
&gt; &gt;&gt;&gt;&gt;             Interceptor next = iter.next();
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;             if (next instanceof
&gt; &gt;&gt;&gt;&gt; org.apache.directory.server.core.authn.AuthenticationInterceptor)
&gt; &gt;&gt;&gt;&gt;             {
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;                 interceptors.remove(next);
&gt; &gt;&gt;&gt;&gt;                 break;
&gt; &gt;&gt;&gt;&gt;             }
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;        }
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt; But my bind in my partition still does not get called . Any help will
&gt; be
&gt; &gt;&gt;&gt;&gt; appreciated
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt; Jacques Oosthuizen
&gt; &gt;&gt;&gt;&gt; Conor Information Technologies
&gt; &gt;&gt;&gt;&gt; Director
&gt; &gt;&gt;&gt;&gt; mobile :  0827699138
&gt; &gt;&gt;&gt;&gt; web : http://www.conor.co.za
&gt; &gt;&gt;&gt;&gt; mail : jacqueso@conor.co.za
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt; Jacques Oosthuizen
&gt; &gt;&gt; Conor Information Technologies
&gt; &gt;&gt; Director
&gt; &gt;&gt; mobile :  0827699138
&gt; &gt;&gt; web : http://www.conor.co.za
&gt; &gt;&gt; mail : jacqueso@conor.co.za
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;
&gt;
&gt; Jacques Oosthuizen
&gt; Conor Information Technologies
&gt; Director
&gt; mobile :  0827699138
&gt; web : http://www.conor.co.za
&gt; mail : jacqueso@conor.co.za
&gt;
&gt;
&gt;
&gt;
&gt;
&gt;
&gt;


-- 
Ersin ER
http://www.ersiner.net


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: PARITION AGAIN</title>
<author><name>Jacques Oosthuizen &lt;jacqueso@conor.co.za&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200911.mbox/%3cC73865BE.1A9F%25jacqueso@conor.co.za%3e"/>
<id>urn:uuid:%3cC73865BE-1A9F%25jacqueso@conor-co-za%3e</id>
<updated>2009-11-29T15:54:06Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks for the help , I have removed the Autheniticator but my bind method
still does not get called. I do see in the logs a lookup happening in the
BindHandler and that it is failing because by dn for auth is not found. It
is not calling my lookup in my partition. I am thinking of implementing my
own BindHandler to handle this but that seems like too much work .

On 2009/11/28 10:11 PM, "Ersin ER" &lt;ersin.er@gmail.com&gt; wrote:

&gt; The interceptor's name should be AuthenticationInterceptor or
&gt; authenticationInterceptor.
&gt; 
&gt; (You may just iterate over the interceptors and print their names.)
&gt; 
&gt; On Sat, Nov 28, 2009 at 19:24, Jacques Oosthuizen &lt;jacqueso@conor.co.za&gt;wrote:
&gt; 
&gt;&gt; I still have tried to remove the interceptor like
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; directoryService.getInterceptorChain().remove("org.apache.directory.server.c
&gt;&gt; ore.authn.AuthenticationInterceptor");
&gt;&gt; 
&gt;&gt; I have also tried removing from actual list but if I print the list the
&gt;&gt; interceptor is still there.
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; On 2009/11/27 11:35 PM, "Ersin ER" &lt;ersin.er@gmail.com&gt; wrote:
&gt;&gt; 
&gt;&gt;&gt; You need to call getInterceptorChain() if you really want to work on the
&gt;&gt;&gt; chain. getInterceptors() just returns a clone of it. And removing the
&gt;&gt;&gt; default Authn interceptor should really help, because it obviously
&gt;&gt; prevents
&gt;&gt;&gt; the bind call being forwarded in the chain. (I just checked the code.)
&gt;&gt;&gt; 
&gt;&gt;&gt; HTH,
&gt;&gt;&gt; 
&gt;&gt;&gt; On Fri, Nov 27, 2009 at 15:12, Jacques Oosthuizen &lt;jacqueso@conor.co.za
&gt;&gt;&gt; wrote:
&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; Still not having luck , even if I remove the default authenticator
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;  List&lt;Interceptor&gt; interceptors = directoryService.getInterceptors();
&gt;&gt;&gt;&gt;        Iterator&lt;Interceptor&gt; iter = interceptors.iterator();
&gt;&gt;&gt;&gt;        while (iter.hasNext()) {
&gt;&gt;&gt;&gt;             Interceptor next = iter.next();
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;             if (next instanceof
&gt;&gt;&gt;&gt; org.apache.directory.server.core.authn.AuthenticationInterceptor)
&gt;&gt;&gt;&gt;             {
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;                 interceptors.remove(next);
&gt;&gt;&gt;&gt;                 break;
&gt;&gt;&gt;&gt;             }
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;        }
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; But my bind in my partition still does not get called . Any help will be
&gt;&gt;&gt;&gt; appreciated
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; Jacques Oosthuizen
&gt;&gt;&gt;&gt; Conor Information Technologies
&gt;&gt;&gt;&gt; Director
&gt;&gt;&gt;&gt; mobile :  0827699138
&gt;&gt;&gt;&gt; web : http://www.conor.co.za
&gt;&gt;&gt;&gt; mail : jacqueso@conor.co.za
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt; 
&gt;&gt; Jacques Oosthuizen
&gt;&gt; Conor Information Technologies
&gt;&gt; Director
&gt;&gt; mobile :  0827699138
&gt;&gt; web : http://www.conor.co.za
&gt;&gt; mail : jacqueso@conor.co.za
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt; 

Jacques Oosthuizen
Conor Information Technologies
Director
mobile :  0827699138
web : http://www.conor.co.za
mail : jacqueso@conor.co.za








</pre>
</div>
</content>
</entry>
<entry>
<title>Re: PARITION AGAIN</title>
<author><name>Ersin ER &lt;ersin.er@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200911.mbox/%3ca1b4a6610911281211v7cd636fate7a96e212a0c1aa3@mail.gmail.com%3e"/>
<id>urn:uuid:%3ca1b4a6610911281211v7cd636fate7a96e212a0c1aa3@mail-gmail-com%3e</id>
<updated>2009-11-28T20:11:41Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
The interceptor's name should be AuthenticationInterceptor or
authenticationInterceptor.

(You may just iterate over the interceptors and print their names.)

On Sat, Nov 28, 2009 at 19:24, Jacques Oosthuizen &lt;jacqueso@conor.co.za&gt;wrote:

&gt; I still have tried to remove the interceptor like
&gt;
&gt;
&gt;
&gt; directoryService.getInterceptorChain().remove("org.apache.directory.server.c
&gt; ore.authn.AuthenticationInterceptor");
&gt;
&gt; I have also tried removing from actual list but if I print the list the
&gt; interceptor is still there.
&gt;
&gt;
&gt;
&gt; On 2009/11/27 11:35 PM, "Ersin ER" &lt;ersin.er@gmail.com&gt; wrote:
&gt;
&gt; &gt; You need to call getInterceptorChain() if you really want to work on the
&gt; &gt; chain. getInterceptors() just returns a clone of it. And removing the
&gt; &gt; default Authn interceptor should really help, because it obviously
&gt; prevents
&gt; &gt; the bind call being forwarded in the chain. (I just checked the code.)
&gt; &gt;
&gt; &gt; HTH,
&gt; &gt;
&gt; &gt; On Fri, Nov 27, 2009 at 15:12, Jacques Oosthuizen &lt;jacqueso@conor.co.za
&gt; &gt;wrote:
&gt; &gt;
&gt; &gt;&gt; Still not having luck , even if I remove the default authenticator
&gt; &gt;&gt;
&gt; &gt;&gt;  List&lt;Interceptor&gt; interceptors = directoryService.getInterceptors();
&gt; &gt;&gt;        Iterator&lt;Interceptor&gt; iter = interceptors.iterator();
&gt; &gt;&gt;        while (iter.hasNext()) {
&gt; &gt;&gt;             Interceptor next = iter.next();
&gt; &gt;&gt;
&gt; &gt;&gt;             if (next instanceof
&gt; &gt;&gt; org.apache.directory.server.core.authn.AuthenticationInterceptor)
&gt; &gt;&gt;             {
&gt; &gt;&gt;
&gt; &gt;&gt;                 interceptors.remove(next);
&gt; &gt;&gt;                 break;
&gt; &gt;&gt;             }
&gt; &gt;&gt;
&gt; &gt;&gt;        }
&gt; &gt;&gt;
&gt; &gt;&gt; But my bind in my partition still does not get called . Any help will be
&gt; &gt;&gt; appreciated
&gt; &gt;&gt;
&gt; &gt;&gt; Jacques Oosthuizen
&gt; &gt;&gt; Conor Information Technologies
&gt; &gt;&gt; Director
&gt; &gt;&gt; mobile :  0827699138
&gt; &gt;&gt; web : http://www.conor.co.za
&gt; &gt;&gt; mail : jacqueso@conor.co.za
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;
&gt;
&gt; Jacques Oosthuizen
&gt; Conor Information Technologies
&gt; Director
&gt; mobile :  0827699138
&gt; web : http://www.conor.co.za
&gt; mail : jacqueso@conor.co.za
&gt;
&gt;
&gt;
&gt;
&gt;
&gt;
&gt;


-- 
Ersin ER
http://www.ersiner.net


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Starting the Server</title>
<author><name>Stefan Seelmann &lt;seelmann@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200911.mbox/%3c4B1179B9.1040203@apache.org%3e"/>
<id>urn:uuid:%3c4B1179B9-1040203@apache-org%3e</id>
<updated>2009-11-28T19:27:53Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Ersin ER wrote:
&gt; One of the strengths of ApacheDS is its embeddable architecture. It's also
&gt; very modular so that you can even turn it into something really different
&gt; from an LDAP server.
&gt; 
&gt; In order to embed it into your own app, you can check:
&gt; 
&gt; http://directory.apache.org/apacheds/1.5/41-embedding-apacheds-into-an-application.html

I just updated the page for ApacheDS 1.5.5. It should visible within the 
next hour.

&gt; You may also check the startup scripts installed with the distribution
&gt; package to see how it's started with java -jar ...

Another option is to download the zip or tar.gz archive. It contains a 
simple start scirpt (apacheds.sh or apacheds.bat) where you could see 
how it is started with java -jar.


&gt; 2009/11/28 Darko Hojnik &lt;hojnik@virtualizing.org&gt;
&gt;&gt; It is possible to ApacheDS with another Wrapper? Maybe with JSVC. Starts as
&gt;&gt; Root runs as User. To get them on Port 389. 

I think the recommended approach is to use port forwarding from 389 to 
10389:

http://mail-archives.apache.org/mod_mbox/directory-users/200805.mbox/%3Ca32f6b020805220904r1fd4f820s8f026494e785b273@mail.gmail.com%3E

Kind Regards,
Stefan


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: PARITION AGAIN</title>
<author><name>Jacques Oosthuizen &lt;jacqueso@conor.co.za&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/directory-users/200911.mbox/%3cC7372970.1A97%25jacqueso@conor.co.za%3e"/>
<id>urn:uuid:%3cC7372970-1A97%25jacqueso@conor-co-za%3e</id>
<updated>2009-11-28T17:24:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I still have tried to remove the interceptor like

      
directoryService.getInterceptorChain().remove("org.apache.directory.server.c
ore.authn.AuthenticationInterceptor");

I have also tried removing from actual list but if I print the list the
interceptor is still there.



On 2009/11/27 11:35 PM, "Ersin ER" &lt;ersin.er@gmail.com&gt; wrote:

&gt; You need to call getInterceptorChain() if you really want to work on the
&gt; chain. getInterceptors() just returns a clone of it. And removing the
&gt; default Authn interceptor should really help, because it obviously prevents
&gt; the bind call being forwarded in the chain. (I just checked the code.)
&gt; 
&gt; HTH,
&gt; 
&gt; On Fri, Nov 27, 2009 at 15:12, Jacques Oosthuizen &lt;jacqueso@conor.co.za&gt;wrote:
&gt; 
&gt;&gt; Still not having luck , even if I remove the default authenticator
&gt;&gt; 
&gt;&gt;  List&lt;Interceptor&gt; interceptors = directoryService.getInterceptors();
&gt;&gt;        Iterator&lt;Interceptor&gt; iter = interceptors.iterator();
&gt;&gt;        while (iter.hasNext()) {
&gt;&gt;             Interceptor next = iter.next();
&gt;&gt; 
&gt;&gt;             if (next instanceof
&gt;&gt; org.apache.directory.server.core.authn.AuthenticationInterceptor)
&gt;&gt;             {
&gt;&gt; 
&gt;&gt;                 interceptors.remove(next);
&gt;&gt;                 break;
&gt;&gt;             }
&gt;&gt; 
&gt;&gt;        }
&gt;&gt; 
&gt;&gt; But my bind in my partition still does not get called . Any help will be
&gt;&gt; appreciated
&gt;&gt; 
&gt;&gt; Jacques Oosthuizen
&gt;&gt; Conor Information Technologies
&gt;&gt; Director
&gt;&gt; mobile :  0827699138
&gt;&gt; web : http://www.conor.co.za
&gt;&gt; mail : jacqueso@conor.co.za
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt; 

Jacques Oosthuizen
Conor Information Technologies
Director
mobile :  0827699138
web : http://www.conor.co.za
mail : jacqueso@conor.co.za








</pre>
</div>
</content>
</entry>
</feed>
