#1  
Old 27th December 2011, 11:54
dgmufasa dgmufasa is offline
Member
 
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?

TIA
Reply With Quote
Sponsored Links
  #2  
Old 27th December 2011, 12:34
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,589
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

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
  #3  
Old 27th December 2011, 23:18
dgmufasa dgmufasa is offline
Member
 
Join Date: Oct 2011
Posts: 86
Thanks: 5
Thanked 1 Time in 1 Post
 
Default

Hello Till,

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

Quote:
private function __generateuserid()
{
srand((double)microtime()*1000000);
$seed = rand(1000000, DEF_GENERATE_MAX_VAL_FOR_ID);
srand((double)microtime()*$seed);
$yadda = rand (1, DEF_GENERATE_MAX_VAL_FOR_ID );
$yadda = str_pad(rand(1, DEF_GENERATE_MAX_VAL_FOR_ID),
strlen(DEF_GENERATE_MAX_VAL_FOR_ID), "0", STR_PAD_LEFT);

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


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


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