Commit Graph

7 Commits

Author SHA1 Message Date
paul 50ccb02e2f Backend system rework:
* Use two kind of backends: a domain backend and account backend.
 * Adapt the configuration for this change.
 * Changed the backend loading system via Backend.get.
 * Created two new namespaces: AccountBackend and DomainBackend.
 * Split up the Backend::Basic class into AccountBackend::Basic and
   DomainBackend.
 * Removed the Server::Account class, moved the methods to
   AccountBackend::Basic.
 * Created the Htaccess AccountBackend, moved the LDAPv3 backend
   to DomainBackend::Ldap.
 * Removed AccountBackend related stuff from DomainBackend::Ldap.


git-svn-id: svn+ssh://svn.luon.net/svn/ildus/trunk@12 65a33f86-aa00-0410-91be-cd1bf5efb309
2005-11-11 14:56:19 +00:00
paul ac69b92281 Fixed bug allowing PASS to be given before USER:
* Added a unit test for this case.
 * Added a TODO item about the protocol errors.
 * Added SetUserFirst protocol error and new mapping to error
   code 531 (protocol change!).
 * Adapated Handler#pass_cmd to raise the SetUserFirst error
   when a username has not been set.


git-svn-id: svn+ssh://svn.luon.net/svn/ildus/trunk@7 65a33f86-aa00-0410-91be-cd1bf5efb309
2005-09-29 15:09:45 +00:00
paul 046f4b7b1e Added unit test for the command handler.
git-svn-id: svn+ssh://svn.luon.net/svn/ildus/trunk@6 65a33f86-aa00-0410-91be-cd1bf5efb309
2005-09-29 14:38:39 +00:00
paul 1254787d03 Added multiple backend/plugin support:
* Transformed Server::Handler::Backend to Server::Handler::Backend::Basic.
 * Inheritance from this class will result in registering of the class
   for that type.
 * Written Server::Handler::Backend module for loading and getting backends.
 * Provided empty LDAP backend class.
 * Changed auth stub to not use rand() but to check whether the password
   is "foo".


git-svn-id: svn+ssh://svn.luon.net/svn/ildus/trunk@5 65a33f86-aa00-0410-91be-cd1bf5efb309
2005-09-28 14:51:32 +00:00
paul 55bf169b2c Implemented protocol parts:
* Added exceptions for all protocol errors (4xx, 5xx).
 * Implement commands: help, quit, adda, dela, updt, list.
 * Added Backend#prot_msg_body, let Backend#prot_msg do the outputting.
 * Added Server::Backend and Server::Account (empty stub implementations).


git-svn-id: svn+ssh://svn.luon.net/svn/ildus/trunk@4 65a33f86-aa00-0410-91be-cd1bf5efb309
2005-09-27 14:28:59 +00:00
paul 50062f3b9f Implemented parts of the server and protocol handler.
git-svn-id: svn+ssh://svn.luon.net/svn/ildus/trunk@3 65a33f86-aa00-0410-91be-cd1bf5efb309
2005-09-15 14:47:25 +00:00
paul 3f0dff1084 Initial import into Subversion.
git-svn-id: svn+ssh://svn.luon.net/svn/ildus/trunk@1 65a33f86-aa00-0410-91be-cd1bf5efb309
2005-09-13 19:08:42 +00:00