Commit Graph

10 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 7b7b4c6631 Added support for a commit hook:
* Transformed the config a bit.
  * Added Backend::Basic#commit, call commit when one or more updates are
    performed by the backend.
  * Implemented commit for the LDAPv3 backend updating the serial and
    calling an optional hook.
  * Style fixes.


git-svn-id: svn+ssh://svn.luon.net/svn/ildus/trunk@11 65a33f86-aa00-0410-91be-cd1bf5efb309
2005-11-01 15:12:51 +00:00
paul baca1dd160 * Only delegate the last authentication part to the backend,
added Backend::Basic#authenticate by splitting pass=().
* Make Hanlder#updt_cmd parse the address via IPAddr.
* Moved some raising of 5xx errors from Backend to Handler.
* Rename *hostname to *host.
* Implemented Backend#LDAPv3#update_host.
* Style fixes.


git-svn-id: svn+ssh://svn.luon.net/svn/ildus/trunk@10 65a33f86-aa00-0410-91be-cd1bf5efb309
2005-10-02 12:59:13 +00:00
paul 40bc5d22a3 Implemented some parts of the LDAPv3 backend, moved account stuff:
* Merged Account with Backend::Basic.
 * Adapted the Handler and Backend for this change.
 * Implemented parts of Backend::LDAPv3 (init, hostnames).
 * Add auxiliary ildus.schema.
 * Fixed unit tests.


git-svn-id: svn+ssh://svn.luon.net/svn/ildus/trunk@9 65a33f86-aa00-0410-91be-cd1bf5efb309
2005-09-30 15:17:09 +00:00
paul 787f6fc97e Resolved typo of SetUserFirstError.
git-svn-id: svn+ssh://svn.luon.net/svn/ildus/trunk@8 65a33f86-aa00-0410-91be-cd1bf5efb309
2005-09-29 15:12:42 +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