Re:[solved] [ogojogi:setPassword] Invalid new password supplied

Michael Dominok <[email protected]>
Newsgroups gmane.comp.cms.opengroupware.xmlrpc.devel
Organization natural computing
Message-ID <[email protected]>
On Thu, 2004-09-23 at 00:57, murphee (Werner Schuster) wrote:
> Helge Hess wrote:
> 
> > On Sep 22, 2004, at 15:30, Michael Dominok wrote:
> >
> >> org.opengroupware.jogi.ogo.OgoException: 1: Invalid new password
> >> supplied
> >
> > So the arguments for the XML-RPC function "account.setPassword" are:
> > 1. login:    "root" (this must be root currently)
> 
> 
> Er... does that mean  only root can change it password?
Can't be. The Pythonscript ogo_add_user.py at  
http://www.opengroupware.org/en/devs/resources/xmlrpc/adduser/index.html
correctly inserts a Quadrupel (login,password,name,firstname).
So it _can_ be done, in principle. 8-)
I will investigate further...
.
.
.
... and have done so.

In src/product/org/opengroupware/jogi/connect/xmlrpc/XmlRpcAccount.java

public void setPassword(String password) 

i changed 
	param.add(getLogin()); 
to      
	params.add(id_);
and put it in front of the   
	params.add(password);
to get the params into the correct order.
I'm not sure i completely understood why, but i works this way. 8-)

Though i'm still getting a Warning concerning the use of Boolean.

	04-09-23 11:24:30,238 [main] WARN
	org.opengroupware.jogi.connect.xmlrpc.ApacheXmlRpcCaller - paramater of
type: java.lang.Booleannot handled

  
	params.add(Boolean.TRUE);
or 
	params.add(Boolean.FALSE);

are having the expected effects. (Crypt-/Cleartext-Password)

Cheers

Michael

-- 
Michael Dominok		Tel.: +49 231 61048 - 42
natural computing GmbH	Fax.: +49 231 61048 - 40
Martener Strasse 535 	Mail: [email protected]
44379 Dortmund 		http://www.natural-computing.de/


-- 
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.