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
Description: S/MIME Cryptographic Signature
|