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
  #21  
Old 16th November 2011, 17:00
dgmufasa dgmufasa is offline
Member
 
Join Date: Oct 2011
Posts: 86
Thanks: 5
Thanked 1 Time in 1 Post
Default

Hello,

Saw this old thread. Above it mentions:

The client_id is the same in all functions, it is the unique ID that identifies a client and has to be used in all functions. There is a function to get the client_id by sys_userid of a record. All functions are described in detail in the new api docs.

OK, how can one get the sys_userid associated with a VAT or a CustomerNo or any other field in the "clients" table?

Where / how is one supposed to get the sys_userid with the API?

TIA
Reply With Quote
Sponsored Links
  #22  
Old 16th November 2011, 17:05
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

Quote:
OK, how can one get the sys_userid associated with a VAT or a CustomerNo or any other field in the "clients" table?
http://www.howtoforge.com/forums/showthread.php?t=54845

Quote:
Where / how is one supposed to get the sys_userid with the API?
Every function returns the sys_userid as part of the record that you get back from a query.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #23  
Old 16th November 2011, 17:13
dgmufasa dgmufasa is offline
Member
 
Join Date: Oct 2011
Posts: 86
Thanks: 5
Thanked 1 Time in 1 Post
Default

Thanks for the response.

I saw this information as well. I thought the sys_userid was set. It seems to be set by who is currently logged in

http://www.howtoforge.com/forums/sho...ght=sys_userid

There seem to ebe a misunderstanding on what the sys_userid is. the sys_userid is a internal ID used by ispconfig to configure the permissions for records in the database. The sys_userid is the ID of the user that is currently logged into the ispconfig interface (or when the admin created it, then its the userid of the sys_user that is associated with the client that shall own a record) which has created that specific record. So the sys_userid is always the same for all mailboxes of a given domain in ISPConfig.

That the sys_userid is identical with the sys_groupid in your example is just a coincident.
Reply With Quote
  #24  
Old 16th November 2011, 17:31
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
 
Default

You mix up the remote API with the ISPConfig interface again. Remote API Users are no ispconfig users, the remote API is a low level interface which has admin permissions so it can set the owner of every record. The owner is defined by the client_id that you pass to the add and update functions. The sys_userid and sys_groupid are resolved and set automatically be the remote API for every new/updated record.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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
Postfix Cannot Receive Email - Smtp Timed Out newbielinx Installation/Configuration 4 26th September 2011 18:14
Email delivery problem - Ubuntu Karmic Koala (Ubuntu 9.10) [ISPConfig 2] qiubosu General 58 16th April 2010 13:24
Email delivery problem - Ubuntu Karmic Koala (Ubuntu 9.10) [ISPConfig 2] qiubosu Installation/Configuration 1 18th January 2010 10:21
hotmail rejects outgoing email nzimas Server Operation 3 1st May 2009 04:39
email forwarding locally consumes all resources rdells General 20 1st May 2006 20:43


All times are GMT +2. The time now is 02:03.


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