Jay Clelland wrote:
> Hi,
> I'm trying to create a custom user manager but I can't find any
> documentation on how to declare it in the configuration file.
> From the schema it looks like it should be
> 
> <user-manager>
> <beans:bean class="org.apache.ftpserver.usermanager.myusermanager" />
> </user-manager>
> 
> but it errors out when the parser gets to the bean tag.
> Could someone give me an example of the proper syntax?
> 

The declaration seems to be ok. Have you declared the 'beans' name space?
Here is an example of what it can look like:

<?xml version="1.0" encoding="UTF-8"?>
<server
  xmlns="http://mina.apache.org/ftpserver/spring/v1";
  xmlns:beans="http://www.springframework.org/schema/beans";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="
    http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
    http://mina.apache.org/ftpserver/spring/v1 
http://mina.apache.org/ftpserver/ftpserver-1.0.xsd       
  "
   id="server"
   max-logins="20"
   anon-enabled="false"
   max-anon-logins="0"
   max-login-failures="3"
   login-failure-delay="500"
>

The complete configuration file can be found at:
http://baseplugins.thep.lu.se/browser/extensions/net.sf.basedb.ftp/trunk/ftp-config.xml

/Nicklas

Reply via email to