Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #21  
Old 8th August 2007, 15:49
geekman geekman is offline
Member
 
Join Date: Sep 2006
Location: Sydney, Australia
Posts: 56
Thanks: 1
Thanked 10 Times in 10 Posts
Send a message via ICQ to geekman Send a message via MSN to geekman
Default

Is it possible to have MD5 encryptions on passwords at all? At least anything other than plaintext, my mailserver already uses ENCRYPT in mysql whatever encryption that is, but i'd like to use MD5 on FTP (if you could advise on postifx/courier too that'd rock)

Thanks.
Reply With Quote
Sponsored Links
  #22  
Old 9th August 2007, 15:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

Are you referring to Proftpd or Pureftpd? The Pureftpd guide uses MD5 passwords, but I'm not aware of a way to do this with Proftpd...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #23  
Old 9th August 2007, 16:38
geekman geekman is offline
Member
 
Join Date: Sep 2006
Location: Sydney, Australia
Posts: 56
Thanks: 1
Thanked 10 Times in 10 Posts
Send a message via ICQ to geekman Send a message via MSN to geekman
Default

I was referring to proftpd...blah . Can you recommend a decent form of encryption that could be used across most daemons (ftp, mail, etc..) I guess I could have the password stored in the database using multiple records each one with a different encryption...but I don't exactly want to do that.

Thanks.
Reply With Quote
  #24  
Old 10th August 2007, 17:00
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

Quote:
Originally Posted by geekman
Can you recommend a decent form of encryption that could be used across most daemons (ftp, mail, etc..)
Unfortunately no...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #25  
Old 22nd October 2007, 20:57
MrMagix MrMagix is offline
Junior Member
 
Join Date: Oct 2007
Location: Germany, Rheine
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Using hashes instead of plain text passwords

Hi all,

this discussion saved me a lot of time (even it tooks half a day to find it ) Thanks al lot.

Not yet tested (to tired) there is a way to use hashes - like MD5 - to "encrypt" the password. I found this link - look for "openssl". In short, you can put "openssl" into SQLAuthTypes as we can see here...http://www.castaglia.org/proftpd/mod...l#SQLAuthTypes and here.
http://www.proftpd.org/docs/howto/SQL.html
Reply With Quote
  #26  
Old 23rd October 2007, 12:16
MrMagix MrMagix is offline
Junior Member
 
Join Date: Oct 2007
Location: Germany, Rheine
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up

I just found the time to set up the hashed password storage and it worked.

I didn't had openssl installed, a apt-get install openssl worked for me.
Reply With Quote
  #27  
Old 20th July 2008, 21:58
dragon dragon is offline
Junior Member
 
Join Date: Jul 2008
Location: Sofia, Bulgaria
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
Exclamation ProFTPD 1.3.0 with MySQL and MD5 hash on Debian Etch 4.0

Hi all,

this comes a bit late , but I hope someone can use this information.

1. ProFTPD fully supports MySQL authentication with MD5 hashes - the same used by Linux and UNIX systems in the /etc/shadow file. To use it, enter the following directive in your proftpd.conf file along with all other SQL directives:

SQLAuthTypes Crypt Plaintext

(You can probably skip the Plaintext if everything with hashes is working fine and you don't need fallback. I will update you on that later ).

2. When you get a message saying "FTP session requested from unknown class" on Debian Etch 4.0 (ProFTPD Version 1.3.0) and you are trying to use MySQL authentication, this is probably due to the

LoadModule mod_sql_postgres.c

in /etc/proftpd/modules.conf file, which line should be commented out.
I see this as a bug in the proftpd package, since I have NOT installed the proftpd-pgsql package, so this line should not be present, and also, at least it shouldn't affect the work of the proftpd-mysql package, which is successfully installed.

I would like to thank Falko for this line, mentioned in his tutorial (see up).
Reply With Quote
  #28  
Old 15th January 2010, 21:56
Franzus Franzus is offline
Junior Member
 
Join Date: Jan 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Thanks

that uncomment of postgresql worked for me

Thanks a lot!
Reply With Quote
  #29  
Old 27th September 2010, 18:03
dusktrader dusktrader is offline
Junior Member
 
Join Date: Sep 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by dragon View Post
2. When you get a message saying "FTP session requested from unknown class" on Debian Etch 4.0 (ProFTPD Version 1.3.0) and you are trying to use MySQL authentication, this is probably due to the

LoadModule mod_sql_postgres.c

in /etc/proftpd/modules.conf file, which line should be commented out.
I see this as a bug in the proftpd package, since I have NOT installed the proftpd-pgsql package, so this line should not be present, and also, at least it shouldn't affect the work of the proftpd-mysql package, which is successfully installed.

I would like to thank Falko for this line, mentioned in his tutorial (see up).
THANK YOU -- this also fixed my issue immediately. I was tearing my hair out after an upgrade to the latest dapper 6.0.6 release in repo, which is proftpd 1.3.0-9~dapper1

Just comment out the line listed above and restart proftpd. Started working correctly right away after that.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Junk mail and spamassassin... sthompson Installation/Configuration 4 27th December 2006 16:11
SECRUTIY issue with Virtual hosting with Proftpd & Mysql snowfly HOWTO-Related Questions 4 9th July 2006 04:50
Virtual Hosting With Proftpd And MySQL Problems bigredgecko HOWTO-Related Questions 1 7th July 2006 12:56
Problem with Virtual Users And Domains With Postfix, Courier And MySQL Howto fenix Server Operation 4 11th March 2006 02:53
Another Problem: Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP bluegrass Installation/Configuration 24 8th March 2006 01:41


All times are GMT +2. The time now is 07:36.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.