
28th June 2012, 20:08
|
|
Junior Member
|
|
Join Date: Dec 2007
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Assign / Re-Assign existing client to a reseller
Hello everybody,
I'm missing something would allow me to assign an existing customer with all of his "assets" (domains, email and website stuff) to a reseller
How may I achieve that ?
If not in the GUI can I handle that manually in the database?
|
|
The Following User Says Thank You to ColdFire For This Useful Post:
|
|

29th June 2012, 11:16
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,896
Thanks: 693
Thanked 4,190 Times in 3,208 Posts
|
|
You can do that in the database only.
1) Edit the record of the client in the client table and set the field "parent_client_id" to the client_id of the reseller.
2) Then edit the the login user of the reseller in the "sys_user" table and add the groupid of the client (see sys_group for the id, you can look it up by using the client_id column) in the "groups" field, separated by ",".
|
|
The Following 2 Users Say Thank You to till For This Useful Post:
|
|

29th June 2012, 13:07
|
|
ISPConfig Developer
|
|
Join Date: Oct 2011
Location: NRW, Germany
Posts: 233
Thanks: 27
Thanked 56 Times in 31 Posts
|
|
maybe open a feature request on the bugtracker.
It seems like a feature that could come in handy for other users (me included) in the future.
|

7th August 2012, 12:15
|
|
ISPConfig Developer
|
|
Join Date: Oct 2011
Location: NRW, Germany
Posts: 233
Thanks: 27
Thanked 56 Times in 31 Posts
|
|
|

14th September 2012, 23:15
|
|
Junior Member
|
|
Join Date: Jun 2012
Location: Nikea, Greece
Posts: 9
Thanks: 2
Thanked 2 Times in 1 Post
|
|
Move client to another reseller: Not working exaclty as it should.
OK, it seems to work, but we cannot see the moved client under clients when we login with the new reseller. We can see the web site records under web sites. We can still see the clients that the new reseller has created.
Moreover, the reseller cannot delete the database that was created from the old reseller for the client. The old reseller is the admin user of ISPConfig, the one that was created during setup.
Any ideas?
Thank you in advance for your support.
Kind regards,
Panos.
Quote:
Originally Posted by till
You can do that in the database only.
1) Edit the record of the client in the client table and set the field "parent_client_id" to the client_id of the reseller.
2) Then edit the the login user of the reseller in the "sys_user" table and add the groupid of the client (see sys_group for the id, you can look it up by using the client_id column) in the "groups" field, separated by ",".
|
|

21st October 2012, 18:02
|
|
Junior Member
|
|
Join Date: Jun 2012
Location: Nikea, Greece
Posts: 9
Thanks: 2
Thanked 2 Times in 1 Post
|
|
Using the main administrator we have created a client under clients and a website which belongs to the client.
Later we created a reseller and want to assign the client and website under the reseller.
We followed
http://www.howtoforge.com/forums/showthread.php?t=55628
and assigned the website to the reseller. Then we should login with the reseller id and assign the website to the client.
We have followed the manual way of assigning a client created under the installation (main) user to a reseller we created later according to http://www.howtoforge.com/forums/showthread.php?t=57770.
When we login with the reseller id and we go to CLIENTS then we cannot see the client under clients. We can see the client when we edit the site but when we assign the the final client, the reseller has no more access the the website data.
Do we miss anything?
Quote:
Originally Posted by till
You can do that in the database only.
1) Edit the record of the client in the client table and set the field "parent_client_id" to the client_id of the reseller.
2) Then edit the the login user of the reseller in the "sys_user" table and add the groupid of the client (see sys_group for the id, you can look it up by using the client_id column) in the "groups" field, separated by ",".
|
|

21st October 2012, 18:33
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,896
Thanks: 693
Thanked 4,190 Times in 3,208 Posts
|
|
The permission system in ispconfig is similar to the used in Linux for file permissions and consists of users and groups. Each client and reseller has a group in the sys_group table. To make a record visible to a reseller or client, the record must either have the userid of the client or reseller in the sys_user_id column or the groupid of the client or reseller in the sys_group_id column.
Please check that the group_id of the sys_group of the reseller is used in the sys_group_id column of the client that is not visible when you login as reseller.
|
|
The Following User Says Thank You to till For This Useful Post:
|
pfaf (21st October 2012)
|

21st October 2012, 23:16
|
|
Junior Member
|
|
Join Date: Jun 2012
Location: Nikea, Greece
Posts: 9
Thanks: 2
Thanked 2 Times in 1 Post
|
|
Move a client under a different reseller
So, to summarize the steps in order for a Client to be moved under another Reseller :
1.Locate the following values for the Reseller under which you want to assign the client to.
R_userid: Search by 'username' in the 'sys_user' table and get column 'userid'
R_groupid: Search by 'name' in the 'sys_group' table and get column 'groupid'
R_client_id: Search by 'name' in the 'sys_group' table and get column 'client_id'
2. Locate the following values for the Client under which you want to assign the client to.
C_userid: Search by 'username' in the 'sys_user' table and get column 'userid'
C_groupid: Search by 'name' in the 'sys_group' table and get column 'groupid'
C_client_id: Search by 'name' in the 'sys_group' table and get column 'client_id'
3. Table 'client'
Locate the record of the client using C_client_id in column 'client_id' and modify the field 'parent_id' = R_client_id.
Also change column 'sys_userid' to R_userid and column 'sys_groupid' to R_groupid. This is done so that the reseller sees the clients under the clients page.
4. Table 'sys_user'
Locate the reseller record by using column 'username' or R_userid in column 'userid'. Modify the column 'groups' so that it contains also the C_group_id. This is done in order for the reseller to see the client websites.
I hope that the above will be of some help to others.
Kind regards to all,
Panos.
|
|
The Following 2 Users Say Thank You to pfaf For This Useful Post:
|
jvargas (25th October 2012),
till (22nd October 2012)
|

25th October 2012, 18:59
|
|
Junior Member
|
|
Join Date: May 2012
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Thanks pfaf, I do confirm your hint works as expected.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 10:46.
|
Recent comments
4 hours 58 min ago
11 hours 40 min ago
15 hours 30 min ago
17 hours 9 min ago
1 day 1 hour ago
1 day 11 hours ago
1 day 11 hours ago
1 day 15 hours ago
1 day 19 hours ago
1 day 20 hours ago