View Single Post
  #3  
Old 15th August 2011, 16:18
osterhase osterhase is offline
Member
 
Join Date: Jul 2011
Location: Germany
Posts: 49
Thanks: 5
Thanked 7 Times in 5 Posts
Default

Thanks for your fast reply. Just to unterstand the concept:

API: Is basically meant to create an interface between (in this case) roundcube and ISPConfig. A php-script is wirtten that logs into ISPConfig as a remote-user which is equipped with certain rights (f.e. mail-user-edit) and makes certain changes defined in the scirpt.

...so I think I'll try to go with the API-solution.

I had a look at the examples and I think that the soap-mail-user-update.php file is my one. Due to the fact, that I only want to update one field in the db-table I wanted to ask if this is possible via API.

Currently all fields in the array inserted:

Code:
$params = array(	'server_id' => 1,
				'email' => 'test23@domain.ltd',
				'password' => 'testen',
				'quota' => '10',
				'maildir' => '/var/vmail/domain.ltd/test23',
				'homedir' => '/var/vmail',
				'uid' => '5000',
				'gid' => '5000',
				'postfix' => 'y',
				'disableimap' => 'n',
				'disablepop3' => 'n');
If this is not possible and the entire record is written completly new using the mail_user_update function it would be the best way to query the current entries from the db, save them as variables and then send them back to the params array, like:

Code:
$params = array(	'server_id' => 1,
				'email' => $email,
				'password' => $pass,
(...)
Am I correct here or completly of the track?

References:
http://www.howtoforge.com/how-to-cre...or-ispconfig-3

And: /tmp/ispconfig3_install/remoting_client/examples/soap-mailuser-update.php

A punch into any direction is appreciated (whereas "give up" does not count).
Reply With Quote