Hola Javi,
2009/1/20 Javi <[email protected]> > Hi, > > I have decided to use a custom user manager based on database. > > Due the nature of Java, all actions belons to the user running the JVM > process, so you canoot use Operating System ACL (Access Control List) > features. > > In order to build some ACL's (Directories not allowed for certain users, > or no write enabled etc.. ) I need to store this kind of information based > on per user. I still need to think the appropiate user fields structure. > > However, I do not manage to extend/implement custom user manager, > according to docu this is done in this way: > If I understand your needs correctly,I think (that's just a wild guess, correct me anyone if I'm wrong ) with our current codebase you should probably create your own 'Filesystem' implementation as well (You can check our own implementation or VFS FtpServer Bridege: http://vfs-utils.sourceforge.net/ftpserver/index.html ) <http://vfs-utils.sourceforge.net/ftpserver/index.html> otherwise how are you planning to implement the ACL checking? with onBeforeCommand hooks in your FTPLet? This would be a most welcome addition to FtpServer (and I would say that most FTP servers today try to manage their own users and ACLs instead of depending on the OS for this) so let us know how you're progressing on this! We might be able to help you or fix anything you need. Then, if you could donate your implementation afterwards that would be great - This is one of the main features we are lacking in my list. Although we might need to investigate further what is the best way to implement this feature. > > "You can write your own user manager to integrate it with your existing > applications. Your custom user manager should implement > org.apache.ftpserver.ftplet.UserManager interface." > > I do not want to take my time in the database driver and etc configuration. > > Is it posible to just extend DbUserManager so all I need to implement is > the euth methods but forget about the database side? If so how do I > registe my class in he ftpd-full.xml file? > Did you read my previous response with an example <user-manager> element? > > Also, all the methods I need to add for ACL's , can be used by other > FTPLets ? > > Thanks. > > Javi. > >
