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 14:00:24 UTC

A documentation question RESOLVED

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



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