Re: [ogojogi:setPassword] Invalid new password supplied

Helge Hess <[email protected]>
Newsgroups gmane.comp.cms.opengroupware.xmlrpc.devel
Message-ID <[email protected]>
On Sep 22, 2004, at 15:30, Michael Dominok wrote:
> works fine but
> hot_iron.setPassword ("alb");
> fails with
> org.opengroupware.jogi.ogo.OgoException: 1: Invalid new password
> supplied

http://svn.opengroupware.org/viewcvs/trunk/XmlRpcAPI/Daemon/ 
Actions.subproj/DirectAction%2BAccount.m?rev=16&view=auto

---snip---
- (id)account_setPasswordAction:(id)_uid:(NSString *)_newPwd
   :(NSNumber *)_isCrypted
{
   if ([_newPwd length] == 0)
     return [self faultWithFaultCode:XMLRPC_FAULT_INVALID_PARAMETER
                  reason:@"Invalid new password supplied"];
---snap---

So the arguments for the XML-RPC function "account.setPassword" are:
1. login:    "root" (this must be root currently)
2. password: <your new password>
3. crypted:  false

I guess that the "hot_iron.setPassword" method passes in invalid values.

BTW: you can track XML-RPC traffic on the server side by starting  
ogo-xmlrpcd-51 with "-WOHttpAdaptor_LogStream YES".

Greets,
   Helge
-- 
http://docs.opengroupware.org/Members/helge/
OpenGroupware.org

-- 
OpenGroupware.org XML-RPC
[email protected]
http://mail.opengroupware.org/mailman/listinfo/xmlrpc
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.