logo       

adding ogo users via xmlrpc and php: msg#00004

Subject: adding ogo users via xmlrpc and php
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.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    politics.lenini...    audio.emagic.ex...    tex.texinfo.gen...    handhelds.linux...    ietf.sipping/20...    lang.erlang.gen...    cygwin.talk/200...    yellowdog.gener...    mozilla.devel.l...    xfree86.newbie/...    openbsd.ports/2...    db.oracle.devel...    kde.kalyxo.deve...    user-groups.lin...    bbc.cvs/2003-04...    gnu.libtool.bug...    redhat.k12osn/2...    emulators.wine....    freebsd.devel.d...    search.xapian.g...    java.izpack.use...    network.mrtg.us...    windows.total-c...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe