Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th July 2012, 13:04
teves teves is offline
Senior Member
 
Join Date: Oct 2006
Posts: 150
Thanks: 27
Thanked 15 Times in 10 Posts
Default Migrating to ISPC3 from other panels (here: Ispconfig 2)

Hello,

I am writing a skript for migrating ISPConfig2 to ISPConfig3.
While programming I have found a few issues that prevent me from getting on with the project.

At this moment, the script can read resellers and clients from ISPConfig2 and create them in ISPConfig3. Technically, I read directly from the ISPConfig2 database and use the remote api of ISPConfig3 to create the clients. I create both resellers and clients with the client_add function, and with clients I set the $reseller_id of the function to assign clients to the parent resellers.

But this does not work properly. As far as I can tell from the created database entries, everything worked fine regarding the assignment of clients and resellers. When I log in as admin, I see all created clients and resellers. But when I log in as a reseller, I do not have a client tab and can see no clients.
First I thought the assignment had gone wrong, but when whenever I try to delete the reseller as admin, ISPConfig3 tells me that the reseller has clients, and I have to delete these first.

Any hints what I might be doing wrong?

Another thing I noticed is that with the api creation of clients no id_rsa and ssh_rsa values are created in the database. Also, the created_at value cannot be written it seems.


Regards, Tom
Reply With Quote
Sponsored Links
  #2  
Old 17th July 2012, 13:41
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,804
Thanks: 840
Thanked 5,613 Times in 4,424 Posts
Default

Have you set the client limit field of the reseller to a number > 0?
__________________
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:
teves (17th July 2012)
  #3  
Old 17th July 2012, 13:48
teves teves is offline
Senior Member
 
Join Date: Oct 2006
Posts: 150
Thanks: 27
Thanked 15 Times in 10 Posts
Default

Yes I did. I have a preset of 10 at the moment.

BTW: I already guessed that the limit_client parameter is used to identify if an entry in the client database is a reseller or a client. That is correct, isn't it?

Regards, Tom
Reply With Quote
  #4  
Old 17th July 2012, 13:58
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,804
Thanks: 840
Thanked 5,613 Times in 4,424 Posts
Default

Yes, thats correct.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 17th July 2012, 13:59
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,804
Thanks: 840
Thanked 5,613 Times in 4,424 Posts
Default

Please make a report in the bugtracker that adding resellers with the api does not work as expected so we can take alook into thsi for the next release.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 17th July 2012, 14:21
teves teves is offline
Senior Member
 
Join Date: Oct 2006
Posts: 150
Thanks: 27
Thanked 15 Times in 10 Posts
 
Default

Ok, done. Here is the corresponding bugtracker link:
http://bugtracker.ispconfig.org/inde...2314&project=3
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
ISPconfig 3: can't send or receive messages zogthegreat Installation/Configuration 6 22nd May 2010 15:45
Loads of mysql connections to dbispconfig StrikerNL General 2 5th March 2009 15:31
ISPConfig installation into multiple OpenVZ containers letezo Installation/Configuration 11 3rd March 2009 23:47
Migrating from Virtualmin to ISPConfig xare Installation/Configuration 3 16th July 2006 13:58
SP-Server Setup - Ubuntu 5.10 "Breezy Badger" - Page 6 (changes) LuisC-SM HOWTO-Related Questions 0 21st April 2006 16:16


All times are GMT +2. The time now is 00:19.


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