You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by Ma...@bmi.gv.at on 2009/07/02 11:25:13 UTC

A documentation question

Hello,

I want to set the directory service in a mode that anonymous queries are
allowed.
On this page :

http://directory.apache.org/apacheds/1.0/31-authentication-options.html

I find a hint that made me use this in my server.xml :

<spring:bean id="configuration"
class="org.apache.directory.server.configuration.MutableServerStartupCon
figuration">
    <property name="allowAnonymousAccess" value="true" /> 
</spring:bean>

But when I start the service I receive this :

[16:51:28] ERROR [org.apache.directory.daemon.Bootstrapper] - Failed on
null.init(InstallationLayout, String[])
org.springframework.beans.factory.BeanDefinitionStoreException: Failed
to load type:
org.apache.directory.server.configuration.MutableServerStartupConfigurat
ion. Reason: java.lang.ClassNotFoundException:
org.apache.directory.server.configuration.MutableServerStartupConfigurat
ion; nested exception is java.lang.ClassNotFoundException:
org.apache.directory.server.configuration.MutableServerStartupConfigurat
ion
Caused by: 
java.lang.ClassNotFoundException:
org.apache.directory.server.configuration.MutableServerStartupConfigurat
ion

So what can I do to allow anonymous queries ?

Thank you
M.Muncke

A documentation question RESOLVED2

Posted by Ma...@bmi.gv.at.
Hi,

This also works :

Remove 
allowAnonymousAccess="false"
In <apacheDS/>

And set it to true in

  <ldapService id="ldapService"
              ipPort="10389"
              allowAnonymousAccess="true"  <------- here
              saslHost="ldap.example.com"
              ipPort="10389"


Regards
M.Muncke
 

-----Ursprüngliche Nachricht-----
Von: Emmanuel Lecharny [mailto:elecharny@gmail.com] Im Auftrag von Emmanuel Lecharny
Gesendet: Donnerstag, 02. Juli 2009 14:11
An: users@directory.apache.org
Betreff: Re: A documentation question RESOLVED

Marc-Peter.Muncke@bmi.gv.at wrote:
> Hello,
>
> In case you want to use anonymos acces edit this :
>
>   <apacheDS id="apacheDS"
>             synchPeriodMillis="15000"
>             allowAnonymousAccess="true">
>
>     <directoryService>#directoryService</directoryService>
>     <ldapService>#ldapService</ldapService>
>     <ldapsService>#ldapsService</ldapsService>
>   </apacheDS>
>
> In server.xml
> The docu in
> http://directory.apache.org/apacheds/1.5/146-enable-and-disable-anonym
> ous-access.html
> is not 100% correct
>   

Many thanks ! I have updated the doco.

Just a question : did you had to change the LdapService allowAnonymousAccess flag too ?

--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org



Re: A documentation question RESOLVED

Posted by Emmanuel Lecharny <el...@apache.org>.
Marc-Peter.Muncke@bmi.gv.at wrote:
> Hello,
>
> In case you want to use anonymos acces edit this :
>
>   <apacheDS id="apacheDS"
>             synchPeriodMillis="15000"
>             allowAnonymousAccess="true">
>
>     <directoryService>#directoryService</directoryService>
>     <ldapService>#ldapService</ldapService>
>     <ldapsService>#ldapsService</ldapsService>
>   </apacheDS>
>
> In server.xml
> The docu in 
> http://directory.apache.org/apacheds/1.5/146-enable-and-disable-anonymous-access.html
> is not 100% correct
>   

Many thanks ! I have updated the doco.

Just a question : did you had to change the LdapService 
allowAnonymousAccess flag too ?

-- 
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org



A documentation question RESOLVED

Posted by Ma...@bmi.gv.at.
Hello,

In case you want to use anonymos acces edit this :

  <apacheDS id="apacheDS"
            synchPeriodMillis="15000"
            allowAnonymousAccess="true">

    <directoryService>#directoryService</directoryService>
    <ldapService>#ldapService</ldapService>
    <ldapsService>#ldapsService</ldapsService>
  </apacheDS>

In server.xml
The docu in 
http://directory.apache.org/apacheds/1.5/146-enable-and-disable-anonymous-access.html
is not 100% correct

Regards
M.Muncke 

-----Ursprüngliche Nachricht-----
Von: Emmanuel Lecharny [mailto:elecharny@gmail.com] Im Auftrag von Emmanuel Lecharny
Gesendet: Donnerstag, 02. Juli 2009 11:33
An: users@directory.apache.org
Betreff: Re: A documentation question

Marc-Peter.Muncke@bmi.gv.at wrote:
> Hello,
>   
Hi,

which version of ADS are you using ?

> I want to set the directory service in a mode that anonymous queries 
> are allowed.
> On this page :
>
> http://directory.apache.org/apacheds/1.0/31-authentication-options.htm
> l
>
> I find a hint that made me use this in my server.xml :
>
> <spring:bean id="configuration"
> class="org.apache.directory.server.configuration.MutableServerStartupC
> on
> figuration">
>     <property name="allowAnonymousAccess" value="true" /> 
> </spring:bean>
>
> But when I start the service I receive this :
>
> [16:51:28] ERROR [org.apache.directory.daemon.Bootstrapper] - Failed 
> on null.init(InstallationLayout, String[])
> org.springframework.beans.factory.BeanDefinitionStoreException: Failed 
> to load type:
> org.apache.directory.server.configuration.MutableServerStartupConfigur
> at ion. Reason: java.lang.ClassNotFoundException:
> org.apache.directory.server.configuration.MutableServerStartupConfigur
> at ion; nested exception is java.lang.ClassNotFoundException:
> org.apache.directory.server.configuration.MutableServerStartupConfigur
> at
> ion
> Caused by: 
> java.lang.ClassNotFoundException:
> org.apache.directory.server.configuration.MutableServerStartupConfigur
> at
> ion
>
> So what can I do to allow anonymous queries ?
>
> Thank you
> M.Muncke
>
>   


--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org



Re: A documentation question

Posted by Emmanuel Lecharny <el...@apache.org>.
Marc-Peter.Muncke@bmi.gv.at wrote:
> Hello,
>   
First, avoid posting to private person.
> Thank you for your help but there is still room for imrovement :
>
> [12:39:24] ERROR [org.apache.directory.daemon.Bootstrapper] - Failed on null.init(InstallationLayout, String[])
> org.springframework.beans.factory.BeanDefinitionStoreException: Failed to load type: org.apache.directory.server.ldap.LdapConfiguration. Reason: java.lang.ClassNotFoundException: org.apache.directory.server.ldap.LdapConfiguration; nested exception is java.lang.ClassNotFoundException: org.apache.directory.server.ldap.LdapConfiguration
> Caused by: 
> java.lang.ClassNotFoundException: org.apache.directory.server.ldap.LdapConfiguration
>   

Seems like the doco for 1.5 is not up to date...

Have you tried to change the allowAnonymousAccess attribute in the 
LdapService bean ?

Something like :

  <ldapService id="ldapService"
              ipPort="10389"
              allowAnonymousAccess="true"  <------- here
              saslHost="ldap.example.com"
              saslPrincipal="ldap/ldap.example.com@EXAMPLE.COM"
              searchBaseDn="ou=users,ou=system"
              maxTimeLimit="15000"
              maxSizeLimit="1000">

...

-- 
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org



Re: AW: A documentation question

Posted by Emmanuel Lecharny <el...@apache.org>.
Marc-Peter.Muncke@bmi.gv.at wrote:
> Hello,
>
> >From the README it says Version 1.5
> Can I execute a certain -v command to find the exact version ?
>   
Hmmm, not that I know. It's stored in the DiT. (We should probably add 
such a common line option though ...)

Ok, then the documentation you are looking at is not the good one : it's 
about 1.0.

Have a look at
http://directory.apache.org/apacheds/1.5/146-enable-and-disable-anonymous-access.html

-- 
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org



AW: A documentation question

Posted by Ma...@bmi.gv.at.
Hello,

>From the README it says Version 1.5
Can I execute a certain -v command to find the exact version ?

Regards
M.Muncke
 

-----Ursprüngliche Nachricht-----
Von: Emmanuel Lecharny [mailto:elecharny@gmail.com] Im Auftrag von Emmanuel Lecharny
Gesendet: Donnerstag, 02. Juli 2009 11:33
An: users@directory.apache.org
Betreff: Re: A documentation question

Marc-Peter.Muncke@bmi.gv.at wrote:
> Hello,
>   
Hi,

which version of ADS are you using ?

> I want to set the directory service in a mode that anonymous queries 
> are allowed.
> On this page :
>
> http://directory.apache.org/apacheds/1.0/31-authentication-options.htm
> l
>
> I find a hint that made me use this in my server.xml :
>
> <spring:bean id="configuration"
> class="org.apache.directory.server.configuration.MutableServerStartupC
> on
> figuration">
>     <property name="allowAnonymousAccess" value="true" /> 
> </spring:bean>
>
> But when I start the service I receive this :
>
> [16:51:28] ERROR [org.apache.directory.daemon.Bootstrapper] - Failed 
> on null.init(InstallationLayout, String[])
> org.springframework.beans.factory.BeanDefinitionStoreException: Failed 
> to load type:
> org.apache.directory.server.configuration.MutableServerStartupConfigur
> at ion. Reason: java.lang.ClassNotFoundException:
> org.apache.directory.server.configuration.MutableServerStartupConfigur
> at ion; nested exception is java.lang.ClassNotFoundException:
> org.apache.directory.server.configuration.MutableServerStartupConfigur
> at
> ion
> Caused by: 
> java.lang.ClassNotFoundException:
> org.apache.directory.server.configuration.MutableServerStartupConfigur
> at
> ion
>
> So what can I do to allow anonymous queries ?
>
> Thank you
> M.Muncke
>
>   


--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org



Re: A documentation question

Posted by Emmanuel Lecharny <el...@apache.org>.
Marc-Peter.Muncke@bmi.gv.at wrote:
> Hello,
>   
Hi,

which version of ADS are you using ?

> I want to set the directory service in a mode that anonymous queries are
> allowed.
> On this page :
>
> http://directory.apache.org/apacheds/1.0/31-authentication-options.html
>
> I find a hint that made me use this in my server.xml :
>
> <spring:bean id="configuration"
> class="org.apache.directory.server.configuration.MutableServerStartupCon
> figuration">
>     <property name="allowAnonymousAccess" value="true" /> 
> </spring:bean>
>
> But when I start the service I receive this :
>
> [16:51:28] ERROR [org.apache.directory.daemon.Bootstrapper] - Failed on
> null.init(InstallationLayout, String[])
> org.springframework.beans.factory.BeanDefinitionStoreException: Failed
> to load type:
> org.apache.directory.server.configuration.MutableServerStartupConfigurat
> ion. Reason: java.lang.ClassNotFoundException:
> org.apache.directory.server.configuration.MutableServerStartupConfigurat
> ion; nested exception is java.lang.ClassNotFoundException:
> org.apache.directory.server.configuration.MutableServerStartupConfigurat
> ion
> Caused by: 
> java.lang.ClassNotFoundException:
> org.apache.directory.server.configuration.MutableServerStartupConfigurat
> ion
>
> So what can I do to allow anonymous queries ?
>
> Thank you
> M.Muncke
>
>   


-- 
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org