Ha! Happy days are here again...
 The solution is to log in to the secondary xwiki server as the
 administrator from the PRIMARY wiki, then open the RegisterNewUser
 document and save it.
 You do this by typing 'xwiki:XWiki.Admin' in the username field.
 The reason being that the magic 'programming rights' can only be
 applied to users of the primary wiki. So even logging n as
 'superadmin' to the secondary DB does not do the trick.
 Maybe this should have been obvious. But it took me a whole day of
 walking through the source code to work it out. (can't resist a small
 snipe at the xwiki developers here: It's a great program, guys, but
 you are allowed to write comments that are longer than one line, you
 know...)
 Thanks to all,
 Jon
 On 11 Oct 2006, at 18:31, Jonathan Essex wrote:
  It's either a bug or something
counterintuitive with the rights
 setup for virtual wikis.
 As far as I can see, on the secondary wiki the createUser API call
 generates a request for the register right on XWiki.XWikiPreferences
 on behalf of user XWiki.XWikiGuest, which gets denied.
 On the main wiki, I see a request for the programming right on
 XWiki.RegisterNewUser on behalf of XWiki.Admin (even though I really
 don't think I'm logged in as XWiki.Admin) which is granted at
 'master admin level'. Don't see how this could happen, but it's
 there in the log. Possibly an error on my part, as swiching debug on
 for XWikiRightServiceImpl really creates a __storm__ of log
 entries.
 Ah well, will keep looking at it. But thought I'd report what I've
 found so far in case someone else want to take a look.
 On 10 Oct 2006, at 21:41, Frank Haefemeier wrote:
  Am Di, den 10.10.2006 schrieb Robin Fernandes um
18:34:
  Frank,
 Are you sure you have the same problem? By this I mean:
 1. Are you also not on the wiki farm? 
 Yes, I am not on the farm. I'm running xwiki on two different
 machines
 and on one machine there are two virtual wikis. And on the second
 wiki
 I have exact the same problem.
  2. Have you also already tried saving
RegisterNewUser with a
 user with
 programming rights? (if you're on the farm you'll have to ask an
 admin
 to do it for you). 
 Yes, I did it, with no effect.
 I will check anything in the next days and will give here in the
 list
 a message about the result.
 Bye
 Frank
 --
 You receive this message as a subscriber of the
 xwiki-users(a)objectweb.org mailing list.
 To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
 For general help: mailto:sympa@objectweb.org?subject=help
 ObjectWeb mailing lists service home page:
 
http://www.objectweb.org/wws 
 --
 You receive this message as a subscriber of the
 xwiki-users(a)objectweb.org mailing list.
 To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
 For general help: mailto:sympa@objectweb.org?subject=help
 ObjectWeb mailing lists service home page:
 
http://www.objectweb.org/wws 
 ______________________________________________________________________
 --
 You receive this message as a subscriber of the xwiki-users(a)objectweb.org mailing list.
 To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
 For general help: mailto:sympa@objectweb.org?subject=help
 ObjectWeb mailing lists service home page: