adding ogo users via xmlrpc and php

Matthias Wies <[email protected]>
Newsgroups gmane.comp.cms.opengroupware.xmlrpc.devel
Message-ID <[email protected]>
Hello,

currently I am working on a php function which adds a user to 
opengroupware via xmlrpc. I am using the xmlrpc library from pear. 
Adding a user works but only firstname and (last)name are inserted 
correctly into ogo. It goes wrong with the login name and is_account is 
set to 0 in the database so the account does not show up in the ogo 
users list. When I set it to 1 by hand the account shows up.

The code where it goes wrong is this:

$rpc_message = array (
                  'login'   => new XML_RPC_Value($struct->login, "string"),
                  'name'   => new XML_RPC_Value($struct->name, "string"),
                  'firstname'   => new XML_RPC_Value($struct->firstname, 
"string"),
                  'password'   => new XML_RPC_Value($struct->password, 
"string"),
                  'is_account' => new XML_RPC_Value(1, "boolean"),
             );
$message = new XML_RPC_Message('person.insert',
                    array(new XML_RPC_Value($rpc_message, "struct")));

it would be nice if someone could help me out,

thanks in advance,

Matthias Wies
Netland Internet Services B.V.
smime.p7s (application/x-pkcs7-signature, 3.1 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.