If you're using batch files to communicate with the wiki, you can create a user 
by sending a request to:
http://xwiki/bin/register/XWiki/Register?register_first_name=John&register_last_name=Smith&xwikiname=jsmith&register_password=trivial&register2_password=trivial&register_email=x...@y.zz
the only 3 required fields are register_password, register2_password, and 
xwikiname (the name of the user document, must only contain a-z, A-Z, 0-9, and 
_ characters)
note that you will need to disable CSRF prevention tokens in the 
xwiki.properties file for this to work but given you are looking to register 
without any password, CSRF attack protection is probably not something you are 
looking for.

then to save a page as your new user, this would be the wget command, you will 
need to change that for whatever http client you use.
wget --user=jsmith --password=trivial 
http://xwiki/bin/save/Main/WebHome?basicauth=1&content=HelloWorld!

You can just look at the source and mimic any request you would like to with 
your script, you can also install firebug to watch the requests happen in real 
time so you can mimic them easier.

Caleb


On 11/12/2011 04:26 PM, Legeinfo wrote:
> Thank you for replying!
> I can start a windows batch with %username% as a variable. I think about
> "http://xwiki?username=foo&Realname=Volker Lap..".
> Xwiki should lookup the user. If not existing? Make a new user. If existing
> login.
> 
> But the problem is that i have do not have a password, or only a trivial
> password. How to protect this kind of login process? I was thinking about a
> admin login (http or rest) and doing the login process for this user without
> password.  Volker
> 
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/autologin-without-password-tp6986733p6988722.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> _______________________________________________
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
> 

_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to