Re: [xwiki-users] Authorisation through apache

2016-02-29 Thread Thomas Mortagne
This kind of use case means that at apache level whatever do the
actual authentication should set the HTTP REMOTE_USER in the request
and then you use an authenticator like
http://extensions.xwiki.org/xwiki/bin/view/Extension/XWiki+Authenticator+Trusted+LDAP
which will "trust" whatever is in front of it and gather information
about the user on configuraed LDAP server(s) based on the REMOTE_USER
found in the request.

On Mon, Feb 29, 2016 at 2:56 PM, aleksey-s  wrote:
> Hi,
>
> For authorisation on xwiki inside local network we use LDAP (users login
> with password). But we want use apache authorisation also from external
> network.
> We want use next scheme: user authenticate on apache  and after xwiki take
> only login (without password) and gives access to user.
>
> How we may do it ?
>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Authorisation-through-apache-tp7598161.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



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Minor editing by default

2016-02-29 Thread Jesse Bright
I managed to do this with a recent install of version 7.4.2, so I know it is 
possible. Here are my notes to self on how to do it:

Use the skins application to edit the default skin as indicated here:

http://extensions.xwiki.org/xwiki/bin/view/Extension/Skin+Application

Administer Wiki>Loook & Feel>Presentation

Select Customize.
Overrided Templates Add 'editactions.vm'.
Navigate to /wiki/skins/flamingo/editactions.vm and copy the contents.
update the code as follows:
 #if($request.minorEdit)checked="checked"#endTO
 checked="checked"

Sorry my directions aren't better, I am the on the bus to work. 

Regards,

Jesse

> On Feb 29, 2016, at 3:39 AM, Bruno  wrote:
> 
> 
> Hello,
> 
> Is it possible to make the default editions are minor and not major ?
> 
> Regards,
> Signature mails
> _
> 
> Bruno Joffredo
> 
> Ecole Centrale de Nantes
> 
> Centre de Ressources Informatiques - Bur. D019
> 
> 1 rue de la Noë
> 
> BP 92101
> 
> F-44321 Nantes cedex 3
> 
> Tél. 02.40.37.68.06
> Mail : bruno.joffr...@ec-nantes.fr 
> _
> 
> 
> ___
> 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


[xwiki-users] Authorisation through apache

2016-02-29 Thread aleksey-s
Hi,

For authorisation on xwiki inside local network we use LDAP (users login
with password). But we want use apache authorisation also from external
network. 
We want use next scheme: user authenticate on apache  and after xwiki take
only login (without password) and gives access to user.

How we may do it ? 



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Authorisation-through-apache-tp7598161.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


Re: [xwiki-users] Listing connected users

2016-02-29 Thread vinc...@massol.net
Hi Miroslav,

On 29 Feb 2016 at 12:43:20, Miroslav Galajda 
(miroslav.gala...@gmail.com(mailto:miroslav.gala...@gmail.com)) wrote:

> Hi, I've tried it, because I was interested in.
>  
> The macro is not very well implemented.
> Firstly: It uses direct SQL and is not working when running on Oracle DB,
> due to datetime format incompatibility. I've fixed it locally to work
> agains Oracle.
> Secondly: It is placed inside toplevel Macro space. Fortuntelly moving it
> and renaming it to something more suitable worked out of the box..
>  
> But, I'm happy that it works even with some fixes.

Great that you fixed it. Do you think you could contribute your changes back?

You could create a version 1.1 of the macro and put it on 
http://extensions.xwiki.org/xwiki/bin/view/Extension/List+Connected+Users+Macro 
?

That would help all future users.

Thanks
-Vincent

PS: BTW I agree that we need a better way. IMO we need an Event to be sent on 
login/logout and an extension could then be created to maintain a list of users 
who are connected. Note that an extension could already listen to the 
“loginsubmit” and “logout” actions in addition to implementing a  
HttpSessionBindingListener or HttpSessionListener#sessionDestroyed() (see 
http://stackoverflow.com/a/3271748/153102).


> It would be nice if that macro would be reworked to use ORM instead of
> direct SQL access. Then the DB-specific problems should by gone.
>  
> Mirec
>  
> On 29 February 2016 at 10:11, Bruno wrote:
>  
> >
> > Hello Vincent,
> >
> > I do not want to install the extension 'Connected Users List Macro'
> > because it requires to activate the statistics (which I do not want either).
> > My wish to list connected users is not essential.
> >
> > Thanks,
> > Signature mails
> > _
> >
> > Bruno Joffredo
> >
> > Ecole Centrale de Nantes
> >
> > Centre de Ressources Informatiques - Bur. D019
> >
> > 1 rue de la Noë
> >
> > BP 92101
> >
> > F-44321 Nantes cedex 3
> >
> > Tél. 02.40.37.68.06
> > Mail : bruno.joffr...@ec-nantes.fr  
> > _
> >
> >
> > Le 23/02/2016 18:38, vinc...@massol.net a écrit :
> >
> >> On 23 Feb 2016 at 18:37:37, vinc...@massol.net (vinc...@massol.net
> >> (mailto:vinc...@massol.net)) wrote:
> >>
> >> Does it work? :) (why don’t you try it and let us know :))
> >>>
> >> I don’t know of any other BTW.
> >>
> >> Thanks
> >> -Vincent
> >>
> >> Thanks
> >>> -Vincent
> >>> On 23 Feb 2016 at 15:23:06, Bruno (bruno.joffr...@ec-nantes.fr
> >>> (mailto:bruno.joffr...@ec-nantes.fr)) wrote:
> >>>
> >>>
>  Hello,
>  I try to list the connected users.
>  I fall on "Connected Users List Macro" but it dates from 2014.
>  Should I use this extension or is there another way to list open
>  connections ?
>  Thank you,
>  Bruno Joffredo
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Not able to create new skin

2016-02-29 Thread Mark Sack
In 7.4.1 (standalone installation) I'm trying to create a new skin using A.
and C. in http://platform.xwiki.org/xwiki/bin/view/DevGuide/Skins. I've a
couple of different variations but can't figure out what I'm doing wrong. 

The steps I followed are:

1. Login as Admin - URL is http://localhost:8080/xwiki/bin/view/Main/
2. Edit URL and go to http://localhost:8080/xwiki/bin/view/Main/MySkinPage/
3. I see that the page does not exist and follow the 'edit this page' to
create it.
4. Press the Create button and then Save & View.
5. Open the Objects editor and select the XWiki.XWikiSkins class - press Add
6. In the object properties, set the Name to 'My New Skin'
7. Set the base skin to 'flamingo' - Press Save & View.
8. Select the Test this skin link and everything looks fine.
9. Go to Administer Wiki -> Presentation.
10. Set both the Stylesheet and Stylesheets fields to Main.MySkinPage
11. Set the Skin field to 'My New Skin' and press Save.
12. This results in a Java error 
...
Caused by: java.net.URISyntaxException: Illegal character in path at index
9: /skins/My New Skin/admin.vm
...

I thought maybe the error was that spaces were not allowed. So I created a
new instance and followed the same steps but in steps 6 and 11 used
'MyNewSkin'. Then the browser showed the following:
Error
You are not allowed to view this page or perform this action.
The URL was
http://localhost:8080/xwiki/bin/admin/XWiki/XWikiPreferences?editor=globaladmin=Presentation=XWiki

I also thought that maybe in step 11 I need to use Main.MySkinPage instead.
This resulted in the same error, i.e.
Error
You are not allowed to view this page or perform this action.



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Not-able-to-create-new-skin-tp7598159.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


Re: [xwiki-users] Listing connected users

2016-02-29 Thread Miroslav Galajda
Hi,  I've tried it, because I was interested in.

The macro is not very well implemented.
Firstly: It uses direct SQL and is not working when running on Oracle DB,
due to datetime format incompatibility. I've fixed it locally to work
agains Oracle.
Secondly: It is placed inside toplevel Macro space. Fortuntelly moving it
and renaming it to something more suitable worked out of the box..

But, I'm happy that it works even with some fixes.

It would be nice if that macro would be reworked to use ORM instead of
direct SQL access. Then the DB-specific problems should by gone.

Mirec

On 29 February 2016 at 10:11, Bruno  wrote:

>
> Hello Vincent,
>
> I do not want to install the extension 'Connected Users List Macro'
> because it requires to activate the statistics (which I do not want either).
> My wish to list connected users is not essential.
>
> Thanks,
> Signature mails
> _
>
> Bruno Joffredo
>
> Ecole Centrale de Nantes
>
> Centre de Ressources Informatiques - Bur. D019
>
> 1 rue de la Noë
>
> BP 92101
>
> F-44321 Nantes cedex 3
>
> Tél. 02.40.37.68.06
> Mail : bruno.joffr...@ec-nantes.fr 
> _
>
>
> Le 23/02/2016 18:38, vinc...@massol.net a écrit :
>
>>   On 23 Feb 2016 at 18:37:37, vinc...@massol.net (vinc...@massol.net
>> (mailto:vinc...@massol.net)) wrote:
>>
>> Does it work? :) (why don’t you try it and let us know :))
>>>
>> I don’t know of any other BTW.
>>
>> Thanks
>> -Vincent
>>
>> Thanks
>>> -Vincent
>>>   On 23 Feb 2016 at 15:23:06, Bruno (bruno.joffr...@ec-nantes.fr
>>> (mailto:bruno.joffr...@ec-nantes.fr)) wrote:
>>>
>>>
   Hello,
   I try to list the connected users.
 I fall on "Connected Users List Macro" but it dates from 2014.
 Should I use this extension or is there another way to list open
 connections ?
   Thank you,
 Bruno Joffredo


>>> ___
>> 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
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Minor editing by default

2016-02-29 Thread Bruno


Hello,

Is it possible to make the default editions are minor and not major ?

Regards,
Signature mails
_

Bruno Joffredo

Ecole Centrale de Nantes

Centre de Ressources Informatiques - Bur. D019

1 rue de la Noë

BP 92101

F-44321 Nantes cedex 3

Tél. 02.40.37.68.06
Mail : bruno.joffr...@ec-nantes.fr 
_


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


Re: [xwiki-users] Include Macro Usage

2016-02-29 Thread vinc...@massol.net

On 29 Feb 2016 at 06:40:02, Jesse Bright 
(je...@abrightfamily.com(mailto:je...@abrightfamily.com)) wrote:

> Interestingly, explicitly stating .WebHome also fixed an issue I found where 
> clicking the link for a page that does not yet exist will create a sibling 
> page instead of a child page.

Thanks for mentioning this.

I’ve reported http://jira.xwiki.org/browse/XWIKI-13148 because I also don’t 
think it’s very natural to create wanted pages as siblings instead of children. 
We lost this when we recently implement the ability to easily link sibling 
Nested Pages.

Thanks
-Vincent

> Regards,
>  
> Jesse
>  
> > On Feb 28, 2016, at 12:28 PM, Jesse Bright wrote:
> >
> >
> >> On Feb 28, 2016, at 10:08 AM, "vinc...@massol.net" wrote:
> >>
> >> Without an example it’s hard to tell you what you’re doing wrong but if I 
> >> had to guess I’d say you’re missing the “WebHome” part of the page 
> >> reference.
> >
> > You are exactly correct. This also explains why the links (even the include 
> > link) worked perfectly but the include itself was empty.
> >
> > Sorry for the lack of example.
> >
> > Regards,
> >
> > Jesse
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Listing connected users

2016-02-29 Thread Bruno


Hello Vincent,

I do not want to install the extension 'Connected Users List Macro' 
because it requires to activate the statistics (which I do not want either).

My wish to list connected users is not essential.

Thanks,
Signature mails
_

Bruno Joffredo

Ecole Centrale de Nantes

Centre de Ressources Informatiques - Bur. D019

1 rue de la Noë

BP 92101

F-44321 Nantes cedex 3

Tél. 02.40.37.68.06
Mail : bruno.joffr...@ec-nantes.fr 
_


Le 23/02/2016 18:38, vinc...@massol.net a écrit :
  
On 23 Feb 2016 at 18:37:37, vinc...@massol.net (vinc...@massol.net(mailto:vinc...@massol.net)) wrote:



Does it work? :) (why don’t you try it and let us know :))

I don’t know of any other BTW.

Thanks
-Vincent


Thanks
-Vincent
  
  
  
On 23 Feb 2016 at 15:23:06, Bruno (bruno.joffr...@ec-nantes.fr(mailto:bruno.joffr...@ec-nantes.fr)) wrote:
  
  
Hello,
  
I try to list the connected users.

I fall on "Connected Users List Macro" but it dates from 2014.
Should I use this extension or is there another way to list open
connections ?
  
Thank you,

Bruno Joffredo
  

___
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