HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   General (
-   -   [CLIENTID] Prefix issue.. (

bajodel 20th January 2012 06:48

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

(testing on ISPConfig 3 v & debian squeeze)

If I globally set prefixes like that:

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 ?

till 20th January 2012 10:36

You might want to check the bugtracker first:

bajodel 23rd January 2012 14:02

This should fix the issue ..

On file /usr/local/ispconfig/interface/web/sites/
(diff original_file fixed_one)

<    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'])) {

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

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