Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PROftpd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Dikkiedik
Guru
Guru


Joined: 04 Oct 2004
Posts: 406
Location: Netherlands

PostPosted: Thu Oct 27, 2005 9:41 am    Post subject: PROftpd Reply with quote

Hi, I used the following howto to install proftpd with mysql support,
but it won't work.

http://gentoo-wiki.com/HOWTO_ProFTPD

I've enabled mysql support, set up the ftp database, and as far as I know configured proftpd.conf
the right way, but it just won't work!

Some info:

Section of proftpd.conf

Code:

# Password type
SQLAuthTypes              Plaintext

# Authentication type
SQLAuthenticate           users

# Use only SQL when authenticating, and not the system's /etc/passwd
# If the user's information is not in SQL, they're not a user to use
# this server.

AuthOrder mod_sql.c

# DB connect info. Format: database_name@server_address database_username database_password
SQLConnectInfo           mysql@172.16.16.62 proftpd aardolie

# Default UID/GID. Change to suit needs.
SQLDefaultUID             5000
SQLDefaultGID             5000

# Mininum UID/GID. Change to suit needs.
SQLMinUserUID            1000
SQLMinUserGID            1000

# Database query. Format: ** defined below **
SQLUserInfo                ftp username password uid gid ftpdir homedir

# Jail users in ftpdir
DefaultRoot             ~


The table 'ftp' is located in the 'mysql' database (database named mysql in mysql on 172.16.16.62 local),


I'm unsure about the following. It's the ftp table in mysql, but it's weird when I try to add something so I think I must be doing something wrong.
Code:

user_id  username       password                                        uid gid ftpdir homedir 
1          107               *19433E1788D23D9489BE29167EB193C1E0C2AED1 5000 5000 47 /home/kevin



Help is welcome
Back to top
View user's profile Send private message
Quincy
Apprentice
Apprentice


Joined: 02 Jun 2005
Posts: 201
Location: Germany

PostPosted: Fri Oct 28, 2005 2:59 am    Post subject: Reply with quote

Your passwords don't match!

You configured:
Code:
SQLAuthTypes              Plaintext


but you set it to an MySQL encrypted password.


Read the proftpd doc: http://proftpd.org/docs/directives/linked/config_ref_SQLAuthTypes.html

And chose the apporiate pair of encryption and SQLAuthType.

With your currently with MySQL PASSWORD() encrypted password you can try SQLAuthType Backend.
It works surely with SQLAuthType Crypt and the MySQL ENCRYPT() function.
Back to top
View user's profile Send private message
adelante
Tux's lil' helper
Tux's lil' helper


Joined: 19 Apr 2003
Posts: 133
Location: South Africa - Johannesburg

PostPosted: Tue Nov 01, 2005 1:36 pm    Post subject: Reply with quote

Now imagine there was a way to convert the mysql4.0 Password() values to the new mysql4.1 Password() values.

Because when using mysql4.1 your proftpd wont work work mysql if you use the old mysql4.0 password hash.

This is would be find is you doing a new install, but my problem is that I have around 1000 ftp username/password in the database, i have no way to convert the passwords, is there anyway to tell proftpd to use old_password() instead of password() ?
Back to top
View user's profile Send private message
Quincy
Apprentice
Apprentice


Joined: 02 Jun 2005
Posts: 201
Location: Germany

PostPosted: Thu Nov 03, 2005 1:11 am    Post subject: Reply with quote

Doesn't MySQL recognized that itself? You are able to use old and new passwords side by side when connecting to mysql, but don't know how it is implemented into proftpd.

Perhaps asks on the proftpd mailing list (after searching it)...

I know why i'm using crypt... :roll:
Back to top
View user's profile Send private message
adelante
Tux's lil' helper
Tux's lil' helper


Joined: 19 Apr 2003
Posts: 133
Location: South Africa - Johannesburg

PostPosted: Thu Nov 03, 2005 6:29 am    Post subject: Reply with quote

Well from what I understand, proftpd takes the password that you enter when you ftp, does the MySQL PASSWORD() function on it, then compares it's output to whatever is in the database.

What they actually need to do is in the mod_sql for proftpd, and build in a feature to allow you to use the OLD_PASSWORD() function and call it like Backend_Old or something.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum