Git Product home page Git Product logo

proftpd-mod_conf_sql's People

Contributors

castaglia avatar mcarbonneaux avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

mcarbonneaux

proftpd-mod_conf_sql's Issues

when proftpd recieve restart (SIGHUP) they not reload configuration...

when read the configuration in sqlconf_conf they not reinitialise sqlconf_confi read counter at the end of the configuration read.
then when proftpd restart, sqlconf_confi are at the last position and canot send the readed sql configuration (they are readed in new array, the old are not destroy!).

i've modifyed the source to reinitialise sqlconf_confi at array creation (after make_array call)
and use file_handle pool in place of sql_conf pool.
and set to NULL sqlconf_conf at the end of configuration.

this modification ar in my pull request #4

Update documentation to add sqlite schema

in documentation at https://htmlpreview.github.io/?https://github.com/Castaglia/proftpd-mod_conf_sql/blob/master/mod_conf_sql.html you don't have sqlite schema example, but seem to exist her: https://github.com/Castaglia/proftpd-mod_conf_sql/blob/master/sqlite-conf.sql

CREATE TABLE IF NOT EXISTS ftpctx (
  id INTEGER PRIMARY KEY AUTOINCREMENT,
  parent_id INTEGER UNSIGNED,
  name TEXT,
  type TEXT,
  value TEXT
);

CREATE TABLE IF NOT EXISTS ftpconf (
  id INTEGER PRIMARY KEY AUTOINCREMENT,
  name TEXT NOT NULL,
  value BLOB
);

CREATE TABLE IF NOT EXISTS ftpmap (
  conf_id INTEGER UNSIGNED NOT NULL,
  ctx_id INTEGER UNSIGNED NOT NULL
);

Use trace logging

Update the mod_conf_sql module to use trace logging, where appropriate.

Develop and run integration tests as part of the build

As part of the travis-ci builds, this project should include some integration tests, where we make use of the provided Postgres, MySQL, and SQLite database. The test would be something like:

$ ./proftpd -td10 -c sql://...

So that the locally built proftpd is directed to test the configuration the specified databases.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.