directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kiran Ayyagari <kayyag...@apache.org>
Subject Re: Custom partition bind is never called
Date Thu, 02 Jun 2011 16:55:49 GMT
On Thu, Jun 2, 2011 at 9:23 PM, Rajesh <rajesh@vimukti.com> wrote:
> Hi,
>
> I believe the Partition does not need to have bind method at all. Bind is
> handled at the AuthenticationInterceptor itself. So there is no need of
> passing this to the partition.
>
> That method should be removed I think.
>
AFAIR the bind method is maintained in Partition interface to support
virtual directory feature
> Rajesh
>
> On Thu, Jun 2, 2011 at 6:50 PM, Guilherme <guilherme@ati.com.br> wrote:
>>
>> Hi.
>>
>> I've created a custom partition (extending AbstractPartition), but its
>> bind(BindOperationContext) method is never called when I try to
>> bind/authenticate an user in this partition.
>>
>> I've attached a debugger to the server and added a breakpoint in the
>> bind method, but it's never called. The breakpoint at the
>> search(SearchOperationContext) works fine.
>>
>> Trying to run ldapsearch returns
>>
>> ldap_bind: Invalid credentials (49)
>>        additional info: INVALID_CREDENTIALS: Bind failed: ERR_333
>> Unexpected
>> exception.
>>
>> Trying to connect using Eclipse Apache DS plugin gives the same error,
>> and the stack trace below.
>>
>> Does anybody have any suggestions about how to fix or further
>> investigate this problem?
>>
>> Thanks a lot in advance.
>>
>> Guilherme
>>
>>
>> javax.naming.AuthenticationException: [LDAP: error code 49 -
>> INVALID_CREDENTIALS: Bind failed: ERR_333 Unexpected exception.]
>>        at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3041)
>>        at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2987)
>>        at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2789)
>>        at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2703)
>>        at com.sun.jndi.ldap.LdapCtx.ensureOpen(LdapCtx.java:2602)
>>        at com.sun.jndi.ldap.LdapCtx.ensureOpen(LdapCtx.java:2576)
>>        at com.sun.jndi.ldap.LdapCtx.reconnect(LdapCtx.java:2572)
>>        at
>>
>> javax.naming.ldap.InitialLdapContext.reconnect(InitialLdapContext.java:173)
>>        at
>>
>> org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper$7.run(JNDIConnectionWrapper.java:1055)
>>        at
>>
>> org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.runAndMonitor(JNDIConnectionWrapper.java:1272)
>>        at
>>
>> org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.doBind(JNDIConnectionWrapper.java:1065)
>>        at
>>
>> org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.bind(JNDIConnectionWrapper.java:254)
>>        at
>>
>> org.apache.directory.studio.connection.core.jobs.OpenConnectionsRunnable.run(OpenConnectionsRunnable.java:114)
>>        at
>>
>> org.apache.directory.studio.connection.core.jobs.StudioConnectionJob.run(StudioConnectionJob.java:114)
>>        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
>>
>>
>>
>>
>



-- 
Kiran Ayyagari

Mime
View raw message