Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 20th January 2012, 06:48
bajodel bajodel is offline
Member
 
Join Date: Jul 2007
Location: Italy
Posts: 63
Thanks: 26
Thanked 12 Times in 11 Posts
Default [CLIENTID] Prefix issue..

In order to better explain my issue, i'll give you an example..

(testing on ISPConfig 3 v 3.0.4.2 & debian squeeze)

If I globally set prefixes like that:

FTP USer: ftp[CLIENTID]_
DB Name: dbn[CLIENTID]_
DB User: dbu[CLIENTID]_


The Client (and also the admin) can successfully create/edit items like..
- ftp3_mycustom
- dbn_mydbname
- dbu_whatiwant
..without any conflicts.

The reseller, instead, cannot add/edit items correctly because the interface imposes the reseller [CLIENTID] which take precedence over the client one.
For example.. if a reseller try to edit an already inserted client ftp user like 'ftp3_mycustom', the interface add another prefix and the result is something like 'ftp2_ftp3_mycustom'.
The problem is also visible if the reseller create first the user (so 'ftp2_mycustom') and the client try to edit it.

All is ok if the add/edit actions are made by the admin. In this case the prefixes are correctly preserved.

Am I wrongly using the "prefix feature" or it's a little bug ?

Last edited by bajodel; 20th January 2012 at 06:56. Reason: adding some missing info..
Reply With Quote
Sponsored Links
  #2  
Old 20th January 2012, 10:36
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,804
Thanks: 840
Thanked 5,614 Times in 4,425 Posts
Default

You might want to check the bugtracker first:

http://bugtracker.ispconfig.org/inde...s&task_id=2005
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
bajodel (23rd January 2012)
  #3  
Old 23rd January 2012, 14:02
bajodel bajodel is offline
Member
 
Join Date: Jul 2007
Location: Italy
Posts: 63
Thanks: 26
Thanked 12 Times in 11 Posts
 
Default

This should fix the issue ..

On file /usr/local/ispconfig/interface/web/sites/tools.inc.php
(diff original_file fixed_one)
Code:
85,86c85,87
<
<     if($_SESSION["s"]["user"]["typ"] != 'admin' || $app->auth->has_clients($_SESSION['s']['user']['userid'])) {
---
>     /* (like FS#1234 above) - CLIENTID value when in reseller account - need check this workarround impact */
>     //if($_SESSION["s"]["user"]["typ"] != 'admin' || $app->auth->has_clients($_SESSION['s']['user']['userid'])) {
>     if($_SESSION["s"]["user"]["typ"] != 'admin' && ! $app->auth->has_clients($_SESSION['s']['user']['userid'])) {
Reply With Quote
The Following 2 Users Say Thank You to bajodel For This Useful Post:
falko (24th January 2012), till (23rd January 2012)
Reply

Bookmarks

Tags
clientid, prefix

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
SMTP error Dovecot postfix aberrio Server Operation 26 3rd February 2011 15:25
FTP Problems wabz Installation/Configuration 6 11th January 2010 19:51
Unable to receve email aberrio Server Operation 16 8th July 2009 11:26
slow download through webserver problem snewp Technical 14 9th May 2008 06:25
No ftp login for ispconfig-webuser agri Installation/Configuration 12 19th March 2007 11:06


All times are GMT +2. The time now is 12:09.


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