Commit Graph

29 Commits

Author SHA1 Message Date
Paul van Tilburg f66d6d0d24 Fixed dummy backend to make committing work. 2011-07-16 14:16:32 +02:00
Paul van Tilburg 421ba85620 Fixed multiple updt-command deafness problem. 2011-07-15 21:50:45 +02:00
Paul van Tilburg 0f79b81e01 Bumped version to 1.1 (development version). 2011-03-12 11:31:24 +01:00
Paul van Tilburg e591c9ac1e Make sure threads are aborted on exception. 2011-03-12 11:30:04 +01:00
Paul van Tilburg f31b64e70e Removed backend loading debuggin info; added TODO item about unnecessary loading. 2011-03-12 11:29:21 +01:00
Paul van Tilburg bafb1c6e25 Updated the TODO list. 2011-03-12 11:27:56 +01:00
Paul van Tilburg 0b4e386e54 Updated the help messages for the update UPDT and new UPNP commands. 2011-03-12 01:47:29 +01:00
Paul van Tilburg abdb91e58e Added the UPNP protocol command for non-persistent updates. 2011-03-12 01:47:08 +01:00
Paul van Tilburg f185aceb41 Enabled support for auto-IP detection updates. 2011-03-12 01:46:07 +01:00
Paul van Tilburg 40a7b53203 Bundled of small fixes.
* Listen on 0.0.0.0, updates over IPv4 are crucial, and there is an
  IPv6-support bug in GServer.
* Enable GServer logging (for now).
* Fixed ildus/server/backend/ldap.rb header.
* Make the welcome message (prot. 220) give the real hostname instead of
  the hardcoded "localhost".
2011-03-12 01:44:24 +01:00
Paul van Tilburg e7dc498c17 Added the 'dummy' domain backend (for testing/debugging purposes. 2011-03-12 01:43:48 +01:00
paul bdd9c303e4 Introduced A/AAAA field clearing. Updated the LDAP backend to support it.
git-svn-id: svn+ssh://svn.luon.net/svn/ildus/trunk@18 65a33f86-aa00-0410-91be-cd1bf5efb309
2008-12-14 12:06:03 +00:00
paul 14778157c6 Better error handling and feedback.
git-svn-id: svn+ssh://svn.luon.net/svn/ildus/trunk@17 65a33f86-aa00-0410-91be-cd1bf5efb309
2008-12-14 12:06:01 +00:00
paul 83a868f5f0 * Fixed bug in the LDAP domain backend, do not try to check if an address
is already defined if there is no record for that address.
* Fixed bug in the YAML account backend.  A user may not exist, then
  its password is not findable and thus can not be crypted!


git-svn-id: svn+ssh://svn.luon.net/svn/ildus/trunk@16 65a33f86-aa00-0410-91be-cd1bf5efb309
2005-12-29 22:33:07 +00:00
paul 82d09e2039 Only return true when the address is actually updated to a different one.
git-svn-id: svn+ssh://svn.luon.net/svn/ildus/trunk@15 65a33f86-aa00-0410-91be-cd1bf5efb309
2005-11-15 11:33:32 +00:00
paul 021de3e57a Fixed several bugs in the LDAP domain backend.
git-svn-id: svn+ssh://svn.luon.net/svn/ildus/trunk@14 65a33f86-aa00-0410-91be-cd1bf5efb309
2005-11-12 19:44:36 +00:00
paul 37536b1fac Added a YAML account backend, removed the not in forseeable future working htaccess backend.
git-svn-id: svn+ssh://svn.luon.net/svn/ildus/trunk@13 65a33f86-aa00-0410-91be-cd1bf5efb309
2005-11-12 19:28:47 +00:00
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
paul cb0cf672bd Removed config.rb that should be generated setup-time.
git-svn-id: svn+ssh://svn.luon.net/svn/ildus/trunk@2 65a33f86-aa00-0410-91be-cd1bf5efb309
2005-09-13 19:19:07 +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