github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

bytemine / redmine_pureftpd_user

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 3
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (1)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (1)
    • v1.0
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

This Redmine plugin maintains a table with pureftpd compatible users. — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Bump to version 1.0. 
bernd (author)
Tue May 26 11:46:38 -0700 2009
commit  b820ceedf0d7705a41e835d109ee70d461c31a83
tree    6187f2855cf0e1b32c55bee362a8c455bb412a62
parent  a77f804b0c12dc6aa7577f8c5741d3c10f14788a
redmine_pureftpd_user /
name age
history
message
file LICENSE Loading commit data...
file README.textile
directory app/
directory db/
file init.rb
directory lang/
directory lib/
directory test/
README.textile

Redmine Pureftpd User

This is a plugin for Redmine that maintains a separate
user table with passwords encrypted by crypt(3).

That table can be queried by pureftpd.

Installing

  1. Run script/plugin install git://github.com/bytemine/redmine_pureftpd_user
  2. Run rake db:migrate_plugins
  3. Restart your web server

Usage

The plugin will transparently maintain the extra table.

Just point pureftpd to the pureftpd_users table.

Example pureftpd configuration

Here’s an example pureftpd-mysql.conf:

MYSQLSocket     /var/lib/mysql/mysql.sock
MYSQLUser       ftpuser
MYSQLPassword   insertyourpassword
MYSQLDatabase   your_redmine_database
MYSQLCrypt      crypt
MYSQLGetPW      SELECT password FROM pureftpd_users WHERE username="\L"
MYSQLDefaultUID 1000
MYSQLDefaultGID 1000
MYSQLGetDir     SELECT "/ftp"

Hint: Don’t use your rails user to access the Redmine database.

Create a pureftpd user who can only access the pureftpd_users table.

GRANT SELECT ON your_redmine_database.pureftpd_users TO 'ftpuser'@'localhost' IDENTIFIED BY 'insertyourpassword';

Caveats

Since it’s not possible to decrypt Redmine’s user passwords (which is good),
it’s not possible to create pureftpd users for existing user accounts.

You have to change the user’s password to create a pureftpd user.

TODO

  • Add tests!
  • Locked users shouldn’t be able to login via ftp.

License

See LICENSE file.

Author

Bernd Ahlers <ahlers@bytemine.net>

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server