List Info

Thread: Setting up the apacheds service




Setting up the apacheds service
country flaguser name
United States
2008-01-21 12:32:52

I’m trying to use the Apache DS service instead of the default Mina service so I can use SSL.  However, when I start up Penrose, it appears to ignore my mappings and present some kind of default directory tree to the LDAP browser.  There’s a log extract at the bottom of this message.

 

The documentation implies that the ApacheDS service is a drop-in replacement for the default mina service.  Is that correct, or do I need to configure Penrose as a plugin for ApacheDS, as the stuff in the “samples” subdirectory of the distribution seems to imply?

 

Thanks,

Rich

 

 

Session        ;      [ 757] Search "uid=admin,ou=system" with scope base and fil

ter ";(objectClass=*)"

Session        ;      [ 885] No Such Object

LDAPException: No Such Object (32) No Such Object

LDAPException: Server Message: No Such Object

 &nbsp; &nbsp; &nbsp;  at org.ietf.ldap.LDAPException.<init>(Unknown Source)

 &nbsp; &nbsp; &nbsp;  at org.safehaus.penrose.util.ExceptionUtil.createLDAPException(Exception

Util.java:73)

 &nbsp; &nbsp; &nbsp;  at org.safehaus.penrose.util.ExceptionUtil.createLDAPException(Exception

Util.java:61)

 &nbsp; &nbsp; &nbsp;  at org.safehaus.penrose.session.Session.search(Session.java:851)

 &nbsp; &nbsp; &nbsp;  at org.safehaus.penrose.session.Session.search(Session.java:742)

 &nbsp; &nbsp; &nbsp;  at org.safehaus.penrose.backend.PenroseSession.search(PenroseSession.jav

a:261)

 &nbsp; &nbsp; &nbsp;  at org.safehaus.penrose.apacheds.PenroseInterceptor.lookup(PenroseInterc

eptor.java:391)

 &nbsp; &nbsp; &nbsp;  at org.apache.directory.server.core.interceptor.InterceptorChain.lookup(

InterceptorChain.java:870)

 &nbsp; &nbsp; &nbsp;  at org.apache.directory.server.core.partition.PartitionNexusProxy.lookup

(PartitionNexusProxy.java:524)

 &nbsp; &nbsp; &nbsp;  at org.apache.directory.server.core.authn.SimpleAuthenticator.lookupUser

Password(SimpleAuthenticator.java:173)

 &nbsp; &nbsp; &nbsp;  at org.apache.directory.server.core.authn.SimpleAuthenticator.authentica

te(SimpleAuthenticator.java:118)

 &nbsp; &nbsp; &nbsp;  at org.apache.directory.server.core.authn.AuthenticationService.bind(Aut

henticationService.java:488)

 &nbsp; &nbsp; &nbsp;  at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1

.bind(InterceptorChain.java:1430)

 &nbsp; &nbsp; &nbsp;  at org.apache.directory.server.core.normalization.NormalizationService.b

ind(NormalizationService.java:394)

 &nbsp; &nbsp; &nbsp;  at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1

.bind(InterceptorChain.java:1430)

 &nbsp; &nbsp; &nbsp;  at org.safehaus.penrose.apacheds.PenroseInterceptor.bind(PenroseIntercep

tor.java:100)

 &nbsp; &nbsp; &nbsp;  at org.apache.directory.server.core.interceptor.InterceptorChain.bind(In

terceptorChain.java:726)

 &nbsp; &nbsp; &nbsp;  at org.apache.directory.server.core.partition.PartitionNexusProxy.bind(P

artitionNexusProxy.java:670)

 &nbsp; &nbsp; &nbsp;  at org.apache.directory.server.core.partition.PartitionNexusProxy.bind(P

artitionNexusProxy.java:699)

 &nbsp; &nbsp; &nbsp;  at org.apache.directory.server.core.jndi.ServerContext.&lt;init>(ServerCont

ext.java:126)

 &nbsp; &nbsp; &nbsp;  at org.apache.directory.server.core.jndi.ServerDirContext.<init&gt;(ServerD

irContext.java:83)

 &nbsp; &nbsp; &nbsp;  at org.apache.directory.server.core.jndi.ServerLdapContext.<init&gt;(Server

LdapContext.java:63)

 &nbsp; &nbsp; &nbsp;  at org.apache.directory.server.core.DefaultDirectoryService.getJndiConte

xt(DefaultDirectoryService.java:171)

 &nbsp; &nbsp; &nbsp;  at org.apache.directory.server.core.jndi.AbstractContextFactory.getIniti

alContext(AbstractContextFactory.java:138)

 &nbsp; &nbsp; &nbsp;  at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6

67)

 &nbsp; &nbsp; &nbsp;  at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247

)

 &nbsp; &nbsp; &nbsp;  at javax.naming.InitialContext.init(InitialContext.java:223)

 &nbsp; &nbsp; &nbsp;  at javax.naming.InitialContext.<init>(InitialContext.java:197)

 &nbsp; &nbsp; &nbsp;  at javax.naming.directory.InitialDirContext.&lt;init>(InitialDirContext.jav

a:82)

 &nbsp; &nbsp; &nbsp;  at org.safehaus.penrose.apacheds.ApacheDSLDAPService.start(ApacheDSLDAPS

ervice.java:171)

 &nbsp; &nbsp; &nbsp;  at org.safehaus.penrose.service.ServiceManager.start(ServiceManager.java

:79)

 &nbsp; &nbsp; &nbsp;  at org.safehaus.penrose.service.ServiceManager.start(ServiceManager.java

:66)

 &nbsp; &nbsp; &nbsp;  at org.safehaus.penrose.server.PenroseServer.start(PenroseServer.java:80

)

 &nbsp; &nbsp; &nbsp;  at org.safehaus.penrose.server.PenroseServer.main(PenroseServer.java:246

)

 

--
Richard J. Renomeron (Contractor)
TCG
Tel: (202) 742-8460
OMB Tel: 5-0996
www.tcg.com

 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "safehaus" group.
To post to this group, send email to safehausgooglegroups.com
To unsubscribe from this group, send email to safehaus-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/safehaus?hl=en
-~----------~----~----~----~------~----~------~--~---
Re: Setting up the apacheds service
user name
2008-01-21 12:53:34
Richard,

Penrose 1.2.4 contains OpenDS, ApacheDS and MINA libraries
for its
LDAP stack. The default LDAP stack is MINA, but if you
follow the
documentation, you can switch the LDAP Stack to ApacheDS
which support
SSL. The LDAP stack and mapping are independent so your
existing
mapping should still work. I'll be in the Penrose chat room
today,
please feel free to drop in.

Jim

On Jan 21, 12:32 pm, "Renomeron, Richard J."
<RENOMERO...omb.eop.gov>
wrote:
> I'm trying to use the Apache DS service instead of the
default Mina
> service so I can use SSL.  However, when I start up
Penrose, it appears
> to ignore my mappings and present some kind of default
directory tree to
> the LDAP browser.  There's a log extract at the bottom
of this message.
>
> The documentation
> <http://docs.safehaus.org/display/PENROSE1
2/Services#Services-ApacheDSLD
> APService>  implies that the ApacheDS service is a
drop-in replacement
> for the default mina service.  Is that correct, or do I
need to
> configure Penrose as a plugin for ApacheDS, as the
stuff in the
> "samples" subdirectory of the distribution
seems to imply?
>
> Thanks,
>
> Rich
>
> Session              [ 757] Search
"uid=admin,ou=system" with scope base
> and fil
>
> ter "(objectClass=*)"
>
> Session              [ 885] No Such Object
>
> LDAPException: No Such Object (32) No Such Object
>
> LDAPException: Server Message: No Such Object
>
>         at
org.ietf.ldap.LDAPException.<init>(Unknown Source)
>
>         at
>
org.safehaus.penrose.util.ExceptionUtil.createLDAPException(
Exception
>
> Util.java:73)
>
>         at
>
org.safehaus.penrose.util.ExceptionUtil.createLDAPException(
Exception
>
> Util.java:61)
>
>         at
org.safehaus.penrose.session.Session.search(Session.java:851
)
>
>         at
org.safehaus.penrose.session.Session.search(Session.java:742
)
>
>         at
>
org.safehaus.penrose.backend.PenroseSession.search(PenroseSe
ssion.jav
>
> a:261)
>
>         at
>
org.safehaus.penrose.apacheds.PenroseInterceptor.lookup(Penr
oseInterc
>
> eptor.java:391)
>
>         at
>
org.apache.directory.server.core.interceptor.InterceptorChai
n.lookup(
>
> InterceptorChain.java:870)
>
>         at
>
org.apache.directory.server.core.partition.PartitionNexusPro
xy.lookup
>
> (PartitionNexusProxy.java:524)
>
>         at
>
org.apache.directory.server.core.authn.SimpleAuthenticator.l
ookupUser
>
> Password(SimpleAuthenticator.java:173)
>
>         at
>
org.apache.directory.server.core.authn.SimpleAuthenticator.a
uthentica
>
> te(SimpleAuthenticator.java:118)
>
>         at
>
org.apache.directory.server.core.authn.AuthenticationService
.bind(Aut
>
> henticationService.java:488)
>
>         at
>
org.apache.directory.server.core.interceptor.InterceptorChai
n$Entry$1
>
> .bind(InterceptorChain.java:1430)
>
>         at
>
org.apache.directory.server.core.normalization.Normalization
Service.b
>
> ind(NormalizationService.java:394)
>
>         at
>
org.apache.directory.server.core.interceptor.InterceptorChai
n$Entry$1
>
> .bind(InterceptorChain.java:1430)
>
>         at
>
org.safehaus.penrose.apacheds.PenroseInterceptor.bind(Penros
eIntercep
>
> tor.java:100)
>
>         at
>
org.apache.directory.server.core.interceptor.InterceptorChai
n.bind(In
>
> terceptorChain.java:726)
>
>         at
>
org.apache.directory.server.core.partition.PartitionNexusPro
xy.bind(P
>
> artitionNexusProxy.java:670)
>
>         at
>
org.apache.directory.server.core.partition.PartitionNexusPro
xy.bind(P
>
> artitionNexusProxy.java:699)
>
>         at
>
org.apache.directory.server.core.jndi.ServerContext.<init
>(ServerCont
>
> ext.java:126)
>
>         at
>
org.apache.directory.server.core.jndi.ServerDirContext.<i
nit>(ServerD
>
> irContext.java:83)
>
>         at
>
org.apache.directory.server.core.jndi.ServerLdapContext.<
init>(Server
>
> LdapContext.java:63)
>
>         at
>
org.apache.directory.server.core.DefaultDirectoryService.get
JndiConte
>
> xt(DefaultDirectoryService.java:171)
>
>         at
>
org.apache.directory.server.core.jndi.AbstractContextFactory
.getIniti
>
> alContext(AbstractContextFactory.java:138)
>
>         at
>
javax.naming.spi.NamingManager.getInitialContext(NamingManag
er.java:6
>
> 67)
>
>         at
>
javax.naming.InitialContext.getDefaultInitCtx(InitialContext
.java:247
>
> )
>
>         at
javax.naming.InitialContext.init(InitialContext.java:223)
>
>         at
javax.naming.InitialContext.<init>(InitialContext.java
:197)
>
>         at
>
javax.naming.directory.InitialDirContext.<init>(Initia
lDirContext.jav
>
> a:82)
>
>         at
>
org.safehaus.penrose.apacheds.ApacheDSLDAPService.start(Apac
heDSLDAPS
>
> ervice.java:171)
>
>         at
>
org.safehaus.penrose.service.ServiceManager.start(ServiceMan
ager.java
>
> :79)
>
>         at
>
org.safehaus.penrose.service.ServiceManager.start(ServiceMan
ager.java
>
> :66)
>
>         at
>
org.safehaus.penrose.server.PenroseServer.start(PenroseServe
r.java:80
>
> )
>
>         at
>
org.safehaus.penrose.server.PenroseServer.main(PenroseServer
.java:246
>
> )
>
> --
> Richard J. Renomeron (Contractor)
> TCG
> Tel: (202) 742-8460
> OMB Tel: 5-0996
> <http://www.tcg.com
/>www.tcg.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "safehaus" group.
To post to this group, send email to safehausgooglegroups.com
To unsubscribe from this group, send email to
safehaus-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/safehaus?hl=en
-~----------~----~----~----~------~----~------~--~---


RE: Setting up the apacheds service
country flaguser name
United States
2008-01-21 15:29:55
After some consultation, I found out that with the ApacheDS
service, you jxplorer (my LDAP browser) needed to specify a
base DN on connection.

Thanks to Jim and Endi for their help.

Rich

-- 
Richard J. Renomeron (Contractor)
TCG
Tel: (202) 742-8460
OMB Tel: 5-0996
www.tcg.com 

-----Original Message-----
From: safehausgooglegroups.com [mailto:safehausgooglegroups.com] On Behalf Of yingyang
Sent: Monday, January 21, 2008 1:54 PM
To: safehaus
Subject: Re: Setting up the apacheds service


Richard,

Penrose 1.2.4 contains OpenDS, ApacheDS and MINA libraries
for its
LDAP stack. The default LDAP stack is MINA, but if you
follow the
documentation, you can switch the LDAP Stack to ApacheDS
which support
SSL. The LDAP stack and mapping are independent so your
existing
mapping should still work. I'll be in the Penrose chat room
today,
please feel free to drop in.

Jim

On Jan 21, 12:32 pm, "Renomeron, Richard J."
<RENOMERO...omb.eop.gov>
wrote:
> I'm trying to use the Apache DS service instead of the
default Mina
> service so I can use SSL.  However, when I start up
Penrose, it appears
> to ignore my mappings and present some kind of default
directory tree to
> the LDAP browser.  There's a log extract at the bottom
of this message.
>
> The documentation
> <http://docs.safehaus.org/display/PENROSE1
2/Services#Services-ApacheDSLD
> APService>  implies that the ApacheDS service is a
drop-in replacement
> for the default mina service.  Is that correct, or do I
need to
> configure Penrose as a plugin for ApacheDS, as the
stuff in the
> "samples" subdirectory of the distribution
seems to imply?
>
> Thanks,
>
> Rich
>
> Session              [ 757] Search
"uid=admin,ou=system" with scope base
> and fil
>
> ter "(objectClass=*)"
>
> Session              [ 885] No Such Object
>
> LDAPException: No Such Object (32) No Such Object
>
> LDAPException: Server Message: No Such Object
>
>         at
org.ietf.ldap.LDAPException.<init>(Unknown Source)
>
>         at
>
org.safehaus.penrose.util.ExceptionUtil.createLDAPException(
Exception
>
> Util.java:73)
>
>         at
>
org.safehaus.penrose.util.ExceptionUtil.createLDAPException(
Exception
>
> Util.java:61)
>
>         at
org.safehaus.penrose.session.Session.search(Session.java:851
)
>
>         at
org.safehaus.penrose.session.Session.search(Session.java:742
)
>
>         at
>
org.safehaus.penrose.backend.PenroseSession.search(PenroseSe
ssion.jav
>
> a:261)
>
>         at
>
org.safehaus.penrose.apacheds.PenroseInterceptor.lookup(Penr
oseInterc
>
> eptor.java:391)
>
>         at
>
org.apache.directory.server.core.interceptor.InterceptorChai
n.lookup(
>
> InterceptorChain.java:870)
>
>         at
>
org.apache.directory.server.core.partition.PartitionNexusPro
xy.lookup
>
> (PartitionNexusProxy.java:524)
>
>         at
>
org.apache.directory.server.core.authn.SimpleAuthenticator.l
ookupUser
>
> Password(SimpleAuthenticator.java:173)
>
>         at
>
org.apache.directory.server.core.authn.SimpleAuthenticator.a
uthentica
>
> te(SimpleAuthenticator.java:118)
>
>         at
>
org.apache.directory.server.core.authn.AuthenticationService
.bind(Aut
>
> henticationService.java:488)
>
>         at
>
org.apache.directory.server.core.interceptor.InterceptorChai
n$Entry$1
>
> .bind(InterceptorChain.java:1430)
>
>         at
>
org.apache.directory.server.core.normalization.Normalization
Service.b
>
> ind(NormalizationService.java:394)
>
>         at
>
org.apache.directory.server.core.interceptor.InterceptorChai
n$Entry$1
>
> .bind(InterceptorChain.java:1430)
>
>         at
>
org.safehaus.penrose.apacheds.PenroseInterceptor.bind(Penros
eIntercep
>
> tor.java:100)
>
>         at
>
org.apache.directory.server.core.interceptor.InterceptorChai
n.bind(In
>
> terceptorChain.java:726)
>
>         at
>
org.apache.directory.server.core.partition.PartitionNexusPro
xy.bind(P
>
> artitionNexusProxy.java:670)
>
>         at
>
org.apache.directory.server.core.partition.PartitionNexusPro
xy.bind(P
>
> artitionNexusProxy.java:699)
>
>         at
>
org.apache.directory.server.core.jndi.ServerContext.<init
>(ServerCont
>
> ext.java:126)
>
>         at
>
org.apache.directory.server.core.jndi.ServerDirContext.<i
nit>(ServerD
>
> irContext.java:83)
>
>         at
>
org.apache.directory.server.core.jndi.ServerLdapContext.<
init>(Server
>
> LdapContext.java:63)
>
>         at
>
org.apache.directory.server.core.DefaultDirectoryService.get
JndiConte
>
> xt(DefaultDirectoryService.java:171)
>
>         at
>
org.apache.directory.server.core.jndi.AbstractContextFactory
.getIniti
>
> alContext(AbstractContextFactory.java:138)
>
>         at
>
javax.naming.spi.NamingManager.getInitialContext(NamingManag
er.java:6
>
> 67)
>
>         at
>
javax.naming.InitialContext.getDefaultInitCtx(InitialContext
.java:247
>
> )
>
>         at
javax.naming.InitialContext.init(InitialContext.java:223)
>
>         at
javax.naming.InitialContext.<init>(InitialContext.java
:197)
>
>         at
>
javax.naming.directory.InitialDirContext.<init>(Initia
lDirContext.jav
>
> a:82)
>
>         at
>
org.safehaus.penrose.apacheds.ApacheDSLDAPService.start(Apac
heDSLDAPS
>
> ervice.java:171)
>
>         at
>
org.safehaus.penrose.service.ServiceManager.start(ServiceMan
ager.java
>
> :79)
>
>         at
>
org.safehaus.penrose.service.ServiceManager.start(ServiceMan
ager.java
>
> :66)
>
>         at
>
org.safehaus.penrose.server.PenroseServer.start(PenroseServe
r.java:80
>
> )
>
>         at
>
org.safehaus.penrose.server.PenroseServer.main(PenroseServer
.java:246
>
> )
>
> --
> Richard J. Renomeron (Contractor)
> TCG
> Tel: (202) 742-8460
> OMB Tel: 5-0996
> <http://www.tcg.com
/>www.tcg.com




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "safehaus" group.
To post to this group, send email to safehausgooglegroups.com
To unsubscribe from this group, send email to
safehaus-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/safehaus?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )