Old 27th December 2011, 12:54
dgmufasa dgmufasa is offline
Join Date: Oct 2011
Posts: 86
Thanks: 5
Thanked 1 Time in 1 Post
Default How can this be disabled?

Hello all,

I am using the ISPConfig SOAP API to create a FTP user:
ex: G470917

when going through the interface, it automatically attaches the client name to the FTP user - even though I press "cancel" so you get something like this.

ex: h470917G470917

The API is generating UserIDs so the attachment of the client portion is not necessary.

How can this be disabled?

Reply With Quote
Sponsored Links
Old 27th December 2011, 13:34
till till is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,022
Thanks: 840
Thanked 5,655 Times in 4,464 Posts

FTP usernames have to be unique for the whole server, not just for the website. So if you remove the username prefix or if you dont set it when you use the API, then your system will fail as soon as another client tries to get the same username. So disabling the prefix is mostly an option for systems which dont host any clients like small home servers.

Nevertheless you can configure the prefixes in ispconfig, see section about System > interface config in the manual.
Till Brehm
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Old 28th December 2011, 00:18
dgmufasa dgmufasa is offline
Join Date: Oct 2011
Posts: 86
Thanks: 5
Thanked 1 Time in 1 Post

Hello Till,

Currently using this (within PHP) to generate unique (hopefully) userids:

private function __generateuserid()
$seed = rand(1000000, DEF_GENERATE_MAX_VAL_FOR_ID);
$yadda = rand (1, DEF_GENERATE_MAX_VAL_FOR_ID );
$yadda = str_pad(rand(1, DEF_GENERATE_MAX_VAL_FOR_ID),

return $yadda;
Also, from what I have seen, the client name used seems to use lower cased letters. Which is OK unless one is expecting uppercase.

Thanks for the pointer.
Reply With Quote


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
Need help with ISPConfig 3 Update midcarolina Installation/Configuration 36 8th November 2011 23:07
Problem with ispconfig 3 staff007 Installation/Configuration 4 10th October 2011 22:17
Unable to install ISPConfig bdonecker Installation/Configuration 21 26th May 2009 09:20
"mo" respawning too fast: disabled for 5 minutes alexo HOWTO-Related Questions 14 8th March 2009 16:46
colocation problem d3m0nic Installation/Configuration 14 24th June 2006 00:18

All times are GMT +2. The time now is 01:50.

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