#1  
Old 1st January 2013, 20:15
mccharlet mccharlet is offline
Senior Member
 
Join Date: Feb 2007
Posts: 262
Thanks: 63
Thanked 13 Times in 8 Posts
Default Reseller create client

Hi,


I have create a script for adding a client. i define the value parent_client_id with the reseller id. but when i check in the database the value is 1 not the reseller id. Is allways 1


I have open a task in the bugtracker

http://bugtracker.ispconfig.org/inde...s&task_id=2601

Tanks
__________________
Thanks
Cédric

Sorry for my english

Hosting : http://www.jheberge.ch
Reply With Quote
Sponsored Links
  #2  
Old 1st January 2013, 20:17
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,500 Times in 4,329 Posts
Default

I've closed the bugtracker request as its a duplicate to an existing request and has already been fixed in 3.0.5 RC1.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 1st January 2013, 20:24
mccharlet mccharlet is offline
Senior Member
 
Join Date: Feb 2007
Posts: 262
Thanks: 63
Thanked 13 Times in 8 Posts
Default

Thanks,

I have not find the other ticket

Best regards
__________________
Thanks
Cédric

Sorry for my english

Hosting : http://www.jheberge.ch
Reply With Quote
  #4  
Old 2nd January 2013, 10:54
mccharlet mccharlet is offline
Senior Member
 
Join Date: Feb 2007
Posts: 262
Thanks: 63
Thanked 13 Times in 8 Posts
Default

Hi,



I have send a request fo reopen the ticket 2314

I have create a user. In the reseller, the user display. But when i had a mail domain i have a error. I have checked and in the database, the field parent_id is false (always 1). If i change to the reseller id, it's OK

Best regards
__________________
Thanks
Cédric

Sorry for my english

Hosting : http://www.jheberge.ch
Reply With Quote
  #5  
Old 2nd January 2013, 11:32
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,500 Times in 4,329 Posts
Default

Quote:
I have create a user. In the reseller, the user display. But when i had a mail domain i have a error. I have checked and in the database, the field parent_id is false (always 1). If i change to the reseller id, it's OK
When you create a client which is assigned to a reseller, you have to set the value of the field parent_id to the ID of the reseller in the params array.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 2nd January 2013, 17:10
mccharlet mccharlet is offline
Senior Member
 
Join Date: Feb 2007
Posts: 262
Thanks: 63
Thanked 13 Times in 8 Posts
Default

Yes, i have set the parent_id value. But in the database the value is 1
__________________
Thanks
Cédric

Sorry for my english

Hosting : http://www.jheberge.ch
Reply With Quote
  #7  
Old 3rd January 2013, 10:01
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,500 Times in 4,329 Posts
Default

It should work when you set the ID correctly in these 2 places. Tested it before the RC got released and I was able to create clients with correct ID's for resellers.

$reseller_id = 2;
$params(
.....
'parent_client_id' => 2,
.....
);

$affected_rows = $client->client_add($session_id, $reseller_id, $params);
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #8  
Old 20th January 2013, 17:00
mccharlet mccharlet is offline
Senior Member
 
Join Date: Feb 2007
Posts: 262
Thanks: 63
Thanked 13 Times in 8 Posts
 
Default

Hi,

Ok, the $reseller_id variable is not present in the exemple (version 3.0.4.6)

many thanks
__________________
Thanks
Cédric

Sorry for my english

Hosting : http://www.jheberge.ch
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
link my domain to my server, impossible! 007007 Installation/Configuration 7 17th January 2012 13:59
ISPConfig 3.0.3.3 API-no client tab 4 Reseller dgmufasa Developers' Forum 1 15th November 2011 17:26
cannot create new ssh users for one client wildnux Server Operation 0 9th February 2011 01:10
Upgrade Client to Reseller atjensen11 Installation/Configuration 3 27th December 2010 08:50
Attach client to reseller gdekeijzer General 2 29th October 2010 12:41


All times are GMT +2. The time now is 21:41.


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