[xwiki-users] CAS authenticator and groups

2014-07-01 Thread Pascal BASTIEN
Hello,

I wanted to know if it is possible to filter by groups with CAS authenticator.
http://extensions.xwiki.org/xwiki/bin/view/Extension/Authenticator+Jasig+CAS
I must maps groups with xwikiAllgroups?


Are there a parameter like LDAP one?
#-# Only members of the following group can authenticate.
#-# The following kind of groups are supported:
#-# * LDAP static groups (users/subgroups are listed statically in the group 
object)
xwiki.authentication.ldap.user_group=xxx

and BTW for ldap authentication what's LDAP static groups (users/subgroups are 
listed statically in the group object) meaning?
If I add a LDAP member in my LDAP group, I must relauinch Tomcat for 
synchronsie xwiki group?

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


[xwiki-users] Requesting a github repo the FileTransferPlatform package

2014-07-01 Thread Guillaume Fenollar
Hello everybody,

I'm using a platform I coded ~a year ago to provide an interface handling
chrooted user creation, with secure storage of password and of course file
storage.

I thought it would be a good idea, since I released the code yesterday, to
have a github repo for it.
See
http://extensions.xwiki.org/xwiki/bin/view/Extension/FTP+Wiki+%28File+Transfer+Platform%29

I'm not a real developper so surely the code can be improved.

I'd like to have a repo with the name of application-filetransferplatform ,
is it possible ?

Thanks

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


Re: [xwiki-users] Requesting a github repo the FileTransferPlatform package

2014-07-01 Thread Thomas Mortagne
Done: https://github.com/xwiki-contrib/application-filetransferplatform

On Tue, Jul 1, 2014 at 11:52 AM, Guillaume Fenollar
guillaume.fenol...@xwiki.com wrote:
 Hello everybody,

 I'm using a platform I coded ~a year ago to provide an interface handling
 chrooted user creation, with secure storage of password and of course file
 storage.

 I thought it would be a good idea, since I released the code yesterday, to
 have a github repo for it.
 See
 http://extensions.xwiki.org/xwiki/bin/view/Extension/FTP+Wiki+%28File+Transfer+Platform%29

 I'm not a real developper so surely the code can be improved.

 I'd like to have a repo with the name of application-filetransferplatform ,
 is it possible ?

 Thanks

 Guillaume
 ___
 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] CAS authenticator and groups

2014-07-01 Thread Thomas Mortagne
I don't know the CAS authenticator but I can certainly answer the LDAP
questions. I guess you can always ask ask for the feature on
http://jira.xwiki.org/browse/AUTHCAS and hope that the developer will
see it.

On Tue, Jul 1, 2014 at 10:43 AM, Pascal BASTIEN pbasnews-xw...@yahoo.fr wrote:
 Hello,

 I wanted to know if it is possible to filter by groups with CAS authenticator.
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Authenticator+Jasig+CAS
 I must maps groups with xwikiAllgroups?


 Are there a parameter like LDAP one?
 #-# Only members of the following group can authenticate.
 #-# The following kind of groups are supported:
 #-# * LDAP static groups (users/subgroups are listed statically in the group 
 object)
 xwiki.authentication.ldap.user_group=xxx

 and BTW for ldap authentication what's LDAP static groups (users/subgroups 
 are listed statically in the group object) meaning?

LDAP is organized as a tree of object/entryies containing properties
so in LDAP static groups the members of the group are listed
directly in one of the LDAP group object/entry property.

You have an example in the xwiki.cfg file:
XWiki.XWikiAdminGroup=cn=AdminRole,ou=groups,o=domain,c=com where
cn=AdminRole,ou=groups,o=domain,c=com is the complete group DN.

 If I add a LDAP member in my LDAP group, I must relauinch Tomcat for 
 synchronsie xwiki group?

LDAP group are stored in a cache on XWiki side (see
xwiki.authentication.ldap.groupcache_expiration property) so it's
possible the group you modify is already in the cache and that you
will need to wait a bit or restart tomcat if you want to apply the
change right away.


 Thxs.
 ___
 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] Implement Jsontool.serialize in groovy

2014-07-01 Thread Eduardo Abritta
Hi Thomas, I instantiate the jsonbuilder as follows in the example yet returned 
to previous error that was not allow adding elements in my json method. Add 
(). 
I have also realized by placing the method within an array as criuado test 
(data.projetos [i]. Id.add ()).

{{groovy}}def hql0 = , BaseObject as obj where doc.fullName = obj.name and 
obj.className = 'E-nova.E-novaClass';def listProjetos = 
services.query.hql(hql0).execute();def i = 0;def data = new 
groovy.json.JsonBuilder();data = [totalprojetos: 
listProjetos.size(),projetos: [ id: , tag: , label: , size: , color: 
, x: , y :  ],edges:[ id: , source: , target:  ]];
for(item in listProjetos){ def hql = select distinct list from BaseObject as 
obj, DBStringListProperty as prop join prop.list list where 
obj.className='XWiki.TagClass' and obj.id=prop.id.id and prop.id.name='tags' 
and obj.name ='$item' ;def tag = services.query.hql(hql).execute(); i = i + 1; 
data.projetos.id.add()=1; data.projetos.tag.add()=tags; 
data.projetos.label.add()=Label do projeto; data.projetos.size.add()=5; 
data.projetos.color.add()=#696969; data.projetos.x.add()=1; 
data.projetos.y.add()= 1;}
def json = new groovy.json.JsonBuilder(data)println 
json.toPrettyString(){{/groovy}}
Atenciosamente,
Eduardo Abritta
e-mail: eduardo.abri...@outlook.com | cel: (32)8472-9631

 From: eduardo.abri...@outlook.com
 To: users@xwiki.org
 Date: Mon, 30 Jun 2014 15:23:37 -0300
 Subject: Re: [xwiki-users] Implement Jsontool.serialize in groovy
 
 I'm trying to implement a function that told me but I can not add the data 
 online, I can only add one. How do I do that?
{{groovy}}def hql0 = , BaseObject as obj where doc.fullName = obj.name and 
obj.className = 'E-nova.E-novaClass';def listProjetos = 
services.query.hql(hql0).execute();def i = 0;def data = new 
groovy.json.JsonBuilder();data = [totalprojetos: 
listProjetos.size(),projetos: [  id: ,  tag: ,
  label: ,  size: ,  color: , 
 x: ,  y : ],edges:[id: ,   
 source: ,target: ]];
for(item in listProjetos){ def hql = select distinct list from BaseObject as 
obj, DBStringListProperty as prop join prop.list list where 
obj.className='XWiki.TagClass' and obj.id=prop.id.id and prop.id.name='tags' 
and obj.name ='$item' ;def tag = services.query.hql(hql).execute(); i = i + 1; 
data.projetos.id=1; data.projetos.tag=tags; data.projetos.label=Label do 
projeto; data.projetos.size=5; data.projetos.color=#696969; 
data.projetos.x=1; data.projetos.y= 1;}
def json = new groovy.json.JsonBuilder(data)println 
json.toPrettyString(){{/groovy}}
 Atenciosamente,
 Eduardo Abritta
 e-mail: eduardo.abri...@outlook.com | cel: (32)8472-9631
 
 
 
  Date: Fri, 27 Jun 2014 11:51:47 +0200
  From: thomas.morta...@xwiki.com
  To: users@xwiki.org
  Subject: Re: [xwiki-users] Implement Jsontool.serialize in groovy
  
  You should probably use JsonBuilder which is the standard tool to
  manipulate JSON in Groovy.
  
  On Fri, Jun 27, 2014 at 10:33 AM, Clemens Klein-Robbenhaar
  c.robbenh...@espresto.com wrote:
  
   The velocity tools are not automatically created for groovy scripts
   The closest you can get is to create them manually in your script, like:
  
def jsontool = new org.xwiki.velocity.tools.JSONTool()
  
   I feel there should be a better way to do that, but it works this way.
   (it is likely that using groovy.json.JsonBuilder() works, too, but I have 
   not tried)
  
   Clemens
  
   On 06/24/2014 09:21 PM, Eduardo Abritta wrote:
   Hello Sirs,
   I need to implement the function jsontool.serialize in the code below, 
   groovy, and I do not understand the error that is accusing, can help me 
   solve this?
   {{groovy}}def hql0 = , BaseObject as obj where doc.fullName = obj.name 
   and obj.className = 'E-nova.E-novaClass';def listProjetos = 
   services.query.hql(hql0).execute();def json = ['totalprojetos': 
   listProjetos.size(), 'projetos':[1000] , 'edges':[1000] ];def i = 0;
   for(item in listProjetos){def hql = select distinct list from 
   BaseObject as obj, DBStringListProperty as prop join prop.list list 
   where obj.className='XWiki.TagClass' and obj.id=prop.id.id and 
   prop.id.name='tags' and obj.name ='$item' ;def tag = 
   services.query.hql(hql).execute();i = i + 1;
   json.projetos.add({id: xwiki.getDocument(item).getName()
   })}
   jsontool.serialize(json);
   {{/groovy}}
   Ty.
   Atenciosamente,
   Eduardo Abritta
   e-mail: eduardo.abri...@outlook.com | cel: (32)8472-9631
  
  
   ___
   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
  
  
  
  -- 
  Thomas Mortagne
  ___
  users 

[xwiki-users] Xwiki Logout

2014-07-01 Thread Brockmeier, Chris S
Hey all,

I'm using an SSO authenticator to login to Xwiki.   The Xwiki has a logout 
button that doesn't appear to do anything (for SSO) once pressed .   Is there a 
way to disable this button?

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


Re: [xwiki-users] Xwiki Logout

2014-07-01 Thread Brockmeier, Chris S
Actually, please cancel that request.  I need the logout button to actually 
logout the user.When I view the log I get a whole bunch of Oracle10gDialect 
errors followed by a StackOverflowError
SEVERE: Cannot send action notifications for document [XWiki.XWikiLougout using 
action [logout]

Any Ideas?

Thanks,
Chris. 



-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Brockmeier, Chris S
Sent: Tuesday, July 01, 2014 11:44 AM
To: users@xwiki.org
Subject: EXTERNAL: [xwiki-users] Xwiki Logout

Hey all,

I'm using an SSO authenticator to login to Xwiki.   The Xwiki has a logout 
button that doesn't appear to do anything (for SSO) once pressed .   Is there a 
way to disable this button?

Thanks,
Chris.
___
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


Re: [xwiki-users] Xwiki Logout

2014-07-01 Thread Guillaume Fenollar
Hello,

This is the role of any SSO to make you authenticate everytime you access a
ressource. So when you click on Logout, it sends your credentials again and
keep you loggued in. So it depends greatly on the type of your SSO, but for
example for CAS, the only way would be to experiment Single Sign Out (which
was experimental last time I looked to it).

The main problem is that the mod_cas for Apache doesn't have the ability to
destroy the SSO cookie, which would be a 100% sure way to log you out.

What SSO have you implemented?

Guillaume


2014-07-01 20:13 GMT+02:00 Brockmeier, Chris S chris.s.brockme...@lmco.com
:

 Actually, please cancel that request.  I need the logout button to
 actually logout the user.When I view the log I get a whole bunch of
 Oracle10gDialect errors followed by a StackOverflowError
 SEVERE: Cannot send action notifications for document [XWiki.XWikiLougout
 using action [logout]

 Any Ideas?

 Thanks,
 Chris.



 -Original Message-
 From: users [mailto:users-boun...@xwiki.org] On Behalf Of Brockmeier,
 Chris S
 Sent: Tuesday, July 01, 2014 11:44 AM
 To: users@xwiki.org
 Subject: EXTERNAL: [xwiki-users] Xwiki Logout

 Hey all,

 I'm using an SSO authenticator to login to Xwiki.   The Xwiki has a logout
 button that doesn't appear to do anything (for SSO) once pressed .   Is
 there a way to disable this button?

 Thanks,
 Chris.
 ___
 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