#1  
Old 13th May 2009, 14:02
t-mug t-mug is offline
Member
 
Join Date: Jun 2007
Posts: 70
Thanks: 11
Thanked 6 Times in 5 Posts
Default FTP User Disable Feature

At first glance it should be not be that hard to implement this:



I think this doesn't break the concept of ISPConfig 2. And it would be surely backward compatible, if all existing users get the box checked.

Would you integrate this feature, if available as a patch, into ISPConfig 2.x? What do you think about it?
Reply With Quote
Sponsored Links
  #2  
Old 14th May 2009, 13:17
t-mug t-mug is offline
Member
 
Join Date: Jun 2007
Posts: 70
Thanks: 11
Thanked 6 Times in 5 Posts
Default

Although the task is really a minor change: one thing makes me a bit confusing.
Till, how do you distribute an update of the field `doctype_def`, inside the doctype table? It seems that you don't perform db updates during ISPConfig install (update) time, when forms have changed... - so how would this be done??

The other post in this forum ("ISPConfig doctype (form) handling"), regarding to a changed doctype handling from database to filesystem, didn't help me. There is no /home/admispconfig/ispconfig/lib/doctypes/ folder and maybe you've changed the doctype handling again?

EDIT: Oh - I had never supposed that you delete the comlete db during update. So my grepping after "ALTER TABLE" had no chance there

Last edited by t-mug; 14th May 2009 at 13:50.
Reply With Quote
  #3  
Old 15th May 2009, 14:13
t-mug t-mug is offline
Member
 
Join Date: Jun 2007
Posts: 70
Thanks: 11
Thanked 6 Times in 5 Posts
Default One possibility to separate FTP and E-mail for 2.x

Look into the attachment, if you're in the mood. Otherwise: it's only half the way. In fact, I think, one can change this with similar effort to have FTP users without e-mail as well.

So instead of a checkbox - like in the attached solution - one could use an option field on the user tab, represented in the db as an char(1) field:
  1. => E-mail only
  2. => FTP & E-mail
  3. => FTP only
Then: only if the option value is > 1 you would define the /dev/false user directory in the password file. If the value is > 2 you would NOT write into virtualusertable of postfix.
Backward compabilty: for all already existing users the option '2' could be set. Make that sense?
Attached Files
File Type: gz email_user_only-2.2.32-patches.tar.gz (3.2 KB, 236 views)
Reply With Quote
  #4  
Old 16th May 2009, 00:56
sirrus sirrus is offline
Junior Member
 
Join Date: May 2009
Location: Frankfurt am Main
Posts: 15
Thanks: 4
Thanked 1 Time in 1 Post
Send a message via ICQ to sirrus Send a message via Skype™ to sirrus
Smile FTP Users

This patch is quite simple - but it seems to work...

In my opinion it would be easy to add an additional field for ftp_path too.

But this should be an addional option (ftp with path) to keep the original functionality.

Regards,
Andreas
Reply With Quote
  #5  
Old 16th May 2009, 01:35
t-mug t-mug is offline
Member
 
Join Date: Jun 2007
Posts: 70
Thanks: 11
Thanked 6 Times in 5 Posts
Default Almost ready

I am almost ready with a complete e-mail // FTP separation. Changed only a couple of lines! I will post this to the tipps and tricks section.

I would deny to hack around on this subject further (like configurable FTP dirs or fully virtual mail users) - too much effort for a falling star ... ;-)

I think ISPconfig 3 is the real thrill now. I think I'm going to love it, although usability is much more an issue for v3 than for v2 - surprisingly. But that's always the cost of flexibility, if you look closer.
Reply With Quote
  #6  
Old 16th May 2009, 01:43
sirrus sirrus is offline
Junior Member
 
Join Date: May 2009
Location: Frankfurt am Main
Posts: 15
Thanks: 4
Thanked 1 Time in 1 Post
Send a message via ICQ to sirrus Send a message via Skype™ to sirrus
Default ... ISPCOnfig 3

... is a good point - but I think the admin/reseller/customer seperation is not implemented yet...

Regards,
Andreas
Reply With Quote
  #7  
Old 23rd May 2009, 11:03
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,736
Thanks: 840
Thanked 5,597 Times in 4,408 Posts
Default

Quote:
Originally Posted by sirrus View Post
In my opinion it would be easy to add an additional field for ftp_path too.
No, thats not possible as ISPConfig 2 uses system users. Changing the FTP path ould also change the path of mailboxes, autoresponders, SSH logins, etc....
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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
Statistic not working mzo Installation/Configuration 49 20th April 2011 13:19
The system is currently updating the configuration files. warlock General 8 21st February 2009 19:15
proFTPd passive mode problems bisbell Server Operation 8 6th August 2008 22:12
Question about Virtual Hosting With Proftpd And MySQL (Incl. Quota) On Debian Etch ikkem HOWTO-Related Questions 30 26th February 2008 20:38
Website users? ctroyp General 25 6th January 2006 19:02


All times are GMT +2. The time now is 03:14.


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