All,
I need to connect to egroupware from another web application running on the same server to create egroupware groups and grant permissions to applications.
1) Can I use EGW XMLRPC to create EGW groups and grant permissions to applications? Looking through class.applications.inc.php it looks like I should be able to, but, then again, I'm not a programmer by trade. I might as well be reading Ancient Greek!
2) If (1) is possible, can someone please, please, please help me get started? A snippet of example code would be greatly appreciated!
I've been exploring EGW XMLRPC capabilities on my own for a over week now and the only thing I've been able accomplish is login!
When I attempt to run addressbook.boaddressbook.list_methods the server returns '401 Unauthorized'--argh.
// causes a php error: mcrypt_generic_init(): Key size too large;
// supplied length: 26, max: 24 in …/class.egw_session.inc.php on line 405
$client->setCookie(‘sessionid’, $sessionid, $path, $domain);
$client->setCookie(‘kp3’, $kp3, $path, $domain);
$client->setCurlOptions(array(
CURLOPT_HTTPHEADER=>array('Authorization: Basic ' . base64_encode($this->sessionid . ':' . $this->kp3))
));
header('Authorization: Basic ' . base64_encode($sessionid . ':' . $kp3));
How do I maintain the session and, more importantly, what commands/parameters do I need to pass to EGW xmlrpc to add groups and grant permissions? I've followed the directions in the manual and searched and searched, but haven't been able to find a solution. I turned on EGW xmlrpc logging to /tmp/xmlrpc.log, but EGW isn't writing to the file, though it is world writable.
My environment:
A) openSuSE 13.2 with default libraries
B) EGroupware 1.8.007 (will try and upgrade to EPL 14.x after I get this running--unless advised otherwise)
C) PHP 5.6.1
D) XML-RPC for PHP 3.0.1 (gggeek.github.io)