Re: [xwiki-users] Refine searches by tag / Advanced search by tag

2014-07-30 Thread Jeremie BOUSQUET
Http://yourhost:port/xwiki/bin/view/Main/SolrSearchConfig

... Something around that ;-)
Le 30 juil. 2014 17:46, "Fabien Munoz"  a écrit :

> Yes I can see in the page that 'Solr Search UI can be found in
> Main.SolrSearchConfig' but I don't know where to find this
> Main.SolrSearchConfig page...
> Could you give me more details please ?
>
> Thanks in advance
>
>
> 2014-07-30 17:29 GMT+02:00 Jeremie BOUSQUET :
>
> > Hi,
> >
> > As defined here [1], you have to go to page Main.SolrSearchConfig.
> > Then you must edit it in "wiki" mode, and look after the 'facetFields'
> > configuration parameter.
> >
> > Side note: it might be nice to have a link to this page from the "Search"
> > admin section maybe, wdyt ?
> >
> > BR,
> > Jeremie
> >
> > [1] -
> >
> >
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Solr+Search+Application#HSearchUIConfiguration
> >
> >
> > 2014-07-30 16:58 GMT+02:00 Fabien Munoz :
> >
> > > Where can I configure the Solr Search UI to add a new facet for tags?
> > > I can see the kind of changes I have to make to add tags, but I don't
> > know
> > > where to implement them...
> > >
> >
> > > Thanks in advance,
> > >
> > >
> > > 2014-07-21 11:34 GMT+02:00 vinc...@massol.net :
> > >
> > > >
> > > >
> > > >
> > > >
> > > > On 21 Jul 2014 at 11:15:42, Marius Dumitru Florea (
> > > > mariusdumitru.flo...@xwiki.com(mailto:mariusdumitru.flo...@xwiki.com
> ))
> > > > wrote:
> > > >
> > > > > On Fri, Jul 18, 2014 at 10:30 PM, vinc...@massol.net wrote:
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > On 18 Jul 2014 at 19:31:50, Jeremie BOUSQUET (
> > > > jeremie.bousq...@gmail.com(mailto:jeremie.bousq...@gmail.com))
> wrote:
> > > > > >
> > > > > >> 2014-07-18 18:01 GMT+02:00 Marius Dumitru Florea <
> > > > > >> mariusdumitru.flo...@xwiki.com>:
> > > > > >>
> > > > > >> > On Fri, Jul 18, 2014 at 5:29 PM, Jeremie BOUSQUET
> > > > > >> > wrote:
> > > > > >> > > Hello,
> > > > > >> > >
> > > > > >> > > I tried the sample show in [1], changing it to the
> following:
> > > > > >> > >
> > > > > >> > > #set ($queryStatement = 'property.XWiki.TagClass.tags:')
> > > > > >> > > #set ($query = $services.query.createQuery($queryStatement,
> > > > 'solr'))
> > > > > >> > > #set ($discard = $query.setLimit(10).setOffset(0))
> > > > > >> > > #set ($discard = $query.bindValue('sort', "score desc"))
> > > > > >> > > #set ($discard = $query.bindValue('fq', '{!q.op=AND}
> > > type:DOCUMENT
> > > > > >> > > locales:(en OR fr) hidden:false'))
> > > > > >> > > #set ($searchResponses = $query.execute()[0])
> > > > > >> > > $searchResponses
> > > > > >> > >
> > > > > >> > > I replaced "" by the name of a tag existing on some pages,
> > but I
> > > > > >> > > could never obtain search results with this sample ... And I
> > > > don't know
> > > > > >> > > what should be put in search field in UI to obtain something
> > > > equivalent.
> > > > > >> >
> > > > > >> > This works for me:
> > > > > >> >
> > > > > >> > property.XWiki.TagClass.tags:Development
> > > > > >> >
> > > > > >> > And the above code works too if I replace "" with
> > > > > >> > "Development". Of course, I've tagged a few documents with
> > > > > >> > Development.
> > > > > >> >
> > > > > >> > >
> > > > > >> > > There's also XWIKI-9413 [2] that seems to relate, but to be
> > > > honest, I'm a
> > > > > >> > > bit lost with how to use solr search and how it integrates
> > with
> > > > xwiki,
> > > > > >> > so I
> > > > > >> > > won't be of much help I'm afraid ... :/ But I'm interested
> in
> > > the
> > > > answer
> > > > > >> > :)
> > > > > >> >
> > > > > >> > Besides what Jeremie has mentioned, there is also
> > > > > >> >
> > > > > >> >
> > > >
> > >
> >
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Solr+Search+Application#HFacetingonObjectProperties
> > > > > >> > . You can configure the Solr Search UI to add a new facet for
> > > tags.
> > > > > >> > I've just added
> > > > > >> >
> > > > > >> > property.XWiki.TagClass.tags_string
> > > > > >> >
> > > > > >> > and it simply worked!
> > > > > >> >
> > > > > >>
> > > > > >> Worked for me too, that's really nice, thanks !
> > > > > >
> > > > >
> > > > > > And I’ve now documented this example at
> > > > > >
> > > >
> > >
> >
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Solr+Search+Application#HFacetingonObjectProperties
> > > > >
> > > > > There was an example above for publishDate property of
> > > > > Blog.BlogPostClass but it wasn't very explicit. Another example
> won't
> > > > > hurt :)
> > > >
> > > > Yes I know. I've added this example for 2 reasons:
> > > >
> > > > 1) It took me a while to understand the existing example. It didn’t
> say
> > > > really how to do it in practice and when I looked at the config wiki
> > > page I
> > > > wondered how to do it.
> > > > 2) Using tags seems a pretty nice and common use case so it made
> sense
> > to
> > > > me to add an example about it. Actually it could even make sense to
> > have
> > > it
> > > > by default.
> > > >

Re: [xwiki-users] New Wiki Creation Issues / No Distribution Wizard

2014-07-30 Thread eamas
My final question regarding this topic: is the Distribution Wizard absolutely
necessary for the creation of a new sub-wiki (multi-wiki scenario)? In other
words, if the database for the new wiki is being created in MySQL and I get
the DocumentDoesNotExist page but I can still go to import the default set
of pages and can access this wiki through url.com/wiki/subwiki1/Main/ then
is it safe to assume that it worked and I can proceed with this as my newly
created sub-wiki?



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/New-Wiki-Creation-Issues-No-Distribution-Wizard-tp7591477p7591518.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] Refine searches by tag / Advanced search by tag

2014-07-30 Thread Fabien Munoz
Yes I can see in the page that 'Solr Search UI can be found in
Main.SolrSearchConfig' but I don't know where to find this
Main.SolrSearchConfig page...
Could you give me more details please ?

Thanks in advance


2014-07-30 17:29 GMT+02:00 Jeremie BOUSQUET :

> Hi,
>
> As defined here [1], you have to go to page Main.SolrSearchConfig.
> Then you must edit it in "wiki" mode, and look after the 'facetFields'
> configuration parameter.
>
> Side note: it might be nice to have a link to this page from the "Search"
> admin section maybe, wdyt ?
>
> BR,
> Jeremie
>
> [1] -
>
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Solr+Search+Application#HSearchUIConfiguration
>
>
> 2014-07-30 16:58 GMT+02:00 Fabien Munoz :
>
> > Where can I configure the Solr Search UI to add a new facet for tags?
> > I can see the kind of changes I have to make to add tags, but I don't
> know
> > where to implement them...
> >
>
> > Thanks in advance,
> >
> >
> > 2014-07-21 11:34 GMT+02:00 vinc...@massol.net :
> >
> > >
> > >
> > >
> > >
> > > On 21 Jul 2014 at 11:15:42, Marius Dumitru Florea (
> > > mariusdumitru.flo...@xwiki.com(mailto:mariusdumitru.flo...@xwiki.com))
> > > wrote:
> > >
> > > > On Fri, Jul 18, 2014 at 10:30 PM, vinc...@massol.net wrote:
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > On 18 Jul 2014 at 19:31:50, Jeremie BOUSQUET (
> > > jeremie.bousq...@gmail.com(mailto:jeremie.bousq...@gmail.com)) wrote:
> > > > >
> > > > >> 2014-07-18 18:01 GMT+02:00 Marius Dumitru Florea <
> > > > >> mariusdumitru.flo...@xwiki.com>:
> > > > >>
> > > > >> > On Fri, Jul 18, 2014 at 5:29 PM, Jeremie BOUSQUET
> > > > >> > wrote:
> > > > >> > > Hello,
> > > > >> > >
> > > > >> > > I tried the sample show in [1], changing it to the following:
> > > > >> > >
> > > > >> > > #set ($queryStatement = 'property.XWiki.TagClass.tags:')
> > > > >> > > #set ($query = $services.query.createQuery($queryStatement,
> > > 'solr'))
> > > > >> > > #set ($discard = $query.setLimit(10).setOffset(0))
> > > > >> > > #set ($discard = $query.bindValue('sort', "score desc"))
> > > > >> > > #set ($discard = $query.bindValue('fq', '{!q.op=AND}
> > type:DOCUMENT
> > > > >> > > locales:(en OR fr) hidden:false'))
> > > > >> > > #set ($searchResponses = $query.execute()[0])
> > > > >> > > $searchResponses
> > > > >> > >
> > > > >> > > I replaced "" by the name of a tag existing on some pages,
> but I
> > > > >> > > could never obtain search results with this sample ... And I
> > > don't know
> > > > >> > > what should be put in search field in UI to obtain something
> > > equivalent.
> > > > >> >
> > > > >> > This works for me:
> > > > >> >
> > > > >> > property.XWiki.TagClass.tags:Development
> > > > >> >
> > > > >> > And the above code works too if I replace "" with
> > > > >> > "Development". Of course, I've tagged a few documents with
> > > > >> > Development.
> > > > >> >
> > > > >> > >
> > > > >> > > There's also XWIKI-9413 [2] that seems to relate, but to be
> > > honest, I'm a
> > > > >> > > bit lost with how to use solr search and how it integrates
> with
> > > xwiki,
> > > > >> > so I
> > > > >> > > won't be of much help I'm afraid ... :/ But I'm interested in
> > the
> > > answer
> > > > >> > :)
> > > > >> >
> > > > >> > Besides what Jeremie has mentioned, there is also
> > > > >> >
> > > > >> >
> > >
> >
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Solr+Search+Application#HFacetingonObjectProperties
> > > > >> > . You can configure the Solr Search UI to add a new facet for
> > tags.
> > > > >> > I've just added
> > > > >> >
> > > > >> > property.XWiki.TagClass.tags_string
> > > > >> >
> > > > >> > and it simply worked!
> > > > >> >
> > > > >>
> > > > >> Worked for me too, that's really nice, thanks !
> > > > >
> > > >
> > > > > And I’ve now documented this example at
> > > > >
> > >
> >
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Solr+Search+Application#HFacetingonObjectProperties
> > > >
> > > > There was an example above for publishDate property of
> > > > Blog.BlogPostClass but it wasn't very explicit. Another example won't
> > > > hurt :)
> > >
> > > Yes I know. I've added this example for 2 reasons:
> > >
> > > 1) It took me a while to understand the existing example. It didn’t say
> > > really how to do it in practice and when I looked at the config wiki
> > page I
> > > wondered how to do it.
> > > 2) Using tags seems a pretty nice and common use case so it made sense
> to
> > > me to add an example about it. Actually it could even make sense to
> have
> > it
> > > by default.
> > >
> > > Thanks
> > > -Vincent
> > > >
> > > > Thanks,
> > > > Marius
> > > >
> > > > >
> > > > > :)
> > > > >
> > > > > Thanks
> > > > > -Vincent
> > > > >
> > > > >> > Hope this helps,
> > > > >> > Marius
> > > > >> >
> > > > >> > >
> > > > >> > > [1] -
> > > > >> > >
> > > > >> >
> > >
> >
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Solr+Search+Query+API
> > > > >> > > [2] - http://jira.xwiki.org/browse/XWIKI-9413
> > > > >> > >
>

Re: [xwiki-users] Refine searches by tag / Advanced search by tag

2014-07-30 Thread Jeremie BOUSQUET
Hi,

As defined here [1], you have to go to page Main.SolrSearchConfig.
Then you must edit it in "wiki" mode, and look after the 'facetFields'
configuration parameter.

Side note: it might be nice to have a link to this page from the "Search"
admin section maybe, wdyt ?

BR,
Jeremie

[1] -
http://extensions.xwiki.org/xwiki/bin/view/Extension/Solr+Search+Application#HSearchUIConfiguration


2014-07-30 16:58 GMT+02:00 Fabien Munoz :

> Where can I configure the Solr Search UI to add a new facet for tags?
> I can see the kind of changes I have to make to add tags, but I don't know
> where to implement them...
>

> Thanks in advance,
>
>
> 2014-07-21 11:34 GMT+02:00 vinc...@massol.net :
>
> >
> >
> >
> >
> > On 21 Jul 2014 at 11:15:42, Marius Dumitru Florea (
> > mariusdumitru.flo...@xwiki.com(mailto:mariusdumitru.flo...@xwiki.com))
> > wrote:
> >
> > > On Fri, Jul 18, 2014 at 10:30 PM, vinc...@massol.net wrote:
> > > >
> > > >
> > > >
> > > >
> > > > On 18 Jul 2014 at 19:31:50, Jeremie BOUSQUET (
> > jeremie.bousq...@gmail.com(mailto:jeremie.bousq...@gmail.com)) wrote:
> > > >
> > > >> 2014-07-18 18:01 GMT+02:00 Marius Dumitru Florea <
> > > >> mariusdumitru.flo...@xwiki.com>:
> > > >>
> > > >> > On Fri, Jul 18, 2014 at 5:29 PM, Jeremie BOUSQUET
> > > >> > wrote:
> > > >> > > Hello,
> > > >> > >
> > > >> > > I tried the sample show in [1], changing it to the following:
> > > >> > >
> > > >> > > #set ($queryStatement = 'property.XWiki.TagClass.tags:')
> > > >> > > #set ($query = $services.query.createQuery($queryStatement,
> > 'solr'))
> > > >> > > #set ($discard = $query.setLimit(10).setOffset(0))
> > > >> > > #set ($discard = $query.bindValue('sort', "score desc"))
> > > >> > > #set ($discard = $query.bindValue('fq', '{!q.op=AND}
> type:DOCUMENT
> > > >> > > locales:(en OR fr) hidden:false'))
> > > >> > > #set ($searchResponses = $query.execute()[0])
> > > >> > > $searchResponses
> > > >> > >
> > > >> > > I replaced "" by the name of a tag existing on some pages, but I
> > > >> > > could never obtain search results with this sample ... And I
> > don't know
> > > >> > > what should be put in search field in UI to obtain something
> > equivalent.
> > > >> >
> > > >> > This works for me:
> > > >> >
> > > >> > property.XWiki.TagClass.tags:Development
> > > >> >
> > > >> > And the above code works too if I replace "" with
> > > >> > "Development". Of course, I've tagged a few documents with
> > > >> > Development.
> > > >> >
> > > >> > >
> > > >> > > There's also XWIKI-9413 [2] that seems to relate, but to be
> > honest, I'm a
> > > >> > > bit lost with how to use solr search and how it integrates with
> > xwiki,
> > > >> > so I
> > > >> > > won't be of much help I'm afraid ... :/ But I'm interested in
> the
> > answer
> > > >> > :)
> > > >> >
> > > >> > Besides what Jeremie has mentioned, there is also
> > > >> >
> > > >> >
> >
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Solr+Search+Application#HFacetingonObjectProperties
> > > >> > . You can configure the Solr Search UI to add a new facet for
> tags.
> > > >> > I've just added
> > > >> >
> > > >> > property.XWiki.TagClass.tags_string
> > > >> >
> > > >> > and it simply worked!
> > > >> >
> > > >>
> > > >> Worked for me too, that's really nice, thanks !
> > > >
> > >
> > > > And I’ve now documented this example at
> > > >
> >
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Solr+Search+Application#HFacetingonObjectProperties
> > >
> > > There was an example above for publishDate property of
> > > Blog.BlogPostClass but it wasn't very explicit. Another example won't
> > > hurt :)
> >
> > Yes I know. I've added this example for 2 reasons:
> >
> > 1) It took me a while to understand the existing example. It didn’t say
> > really how to do it in practice and when I looked at the config wiki
> page I
> > wondered how to do it.
> > 2) Using tags seems a pretty nice and common use case so it made sense to
> > me to add an example about it. Actually it could even make sense to have
> it
> > by default.
> >
> > Thanks
> > -Vincent
> > >
> > > Thanks,
> > > Marius
> > >
> > > >
> > > > :)
> > > >
> > > > Thanks
> > > > -Vincent
> > > >
> > > >> > Hope this helps,
> > > >> > Marius
> > > >> >
> > > >> > >
> > > >> > > [1] -
> > > >> > >
> > > >> >
> >
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Solr+Search+Query+API
> > > >> > > [2] - http://jira.xwiki.org/browse/XWIKI-9413
> > > >> > >
> > > >> > >
> > > >> > >
> > > >> > > 2014-07-18 14:20 GMT+02:00 Fabien Munoz :
> > > >> > >
> > > >> > >> Hello,
> > > >> > >>
> > > >> > >> I would like to be able to refine searches in xwiki enterprise
> > by tags
> > > >> > as I
> > > >> > >> already can by Spaces or wikis. How can I do that?
> > > >> > >>
> > > >> > >> Is there any way to do the same directly into the search input?
> > > >> > Something
> > > >> > >> like 'install tag:linux' would search for the word 'install',
> on
> > into
> > > >> > >> pages tagged 'linux'.
> > > >> > >>
> > > >> > >> Tha

Re: [xwiki-users] Refine searches by tag / Advanced search by tag

2014-07-30 Thread Fabien Munoz
Where can I configure the Solr Search UI to add a new facet for tags?
I can see the kind of changes I have to make to add tags, but I don't know
where to implement them...

Thanks in advance,


2014-07-21 11:34 GMT+02:00 vinc...@massol.net :

>
>
>
>
> On 21 Jul 2014 at 11:15:42, Marius Dumitru Florea (
> mariusdumitru.flo...@xwiki.com(mailto:mariusdumitru.flo...@xwiki.com))
> wrote:
>
> > On Fri, Jul 18, 2014 at 10:30 PM, vinc...@massol.net wrote:
> > >
> > >
> > >
> > >
> > > On 18 Jul 2014 at 19:31:50, Jeremie BOUSQUET (
> jeremie.bousq...@gmail.com(mailto:jeremie.bousq...@gmail.com)) wrote:
> > >
> > >> 2014-07-18 18:01 GMT+02:00 Marius Dumitru Florea <
> > >> mariusdumitru.flo...@xwiki.com>:
> > >>
> > >> > On Fri, Jul 18, 2014 at 5:29 PM, Jeremie BOUSQUET
> > >> > wrote:
> > >> > > Hello,
> > >> > >
> > >> > > I tried the sample show in [1], changing it to the following:
> > >> > >
> > >> > > #set ($queryStatement = 'property.XWiki.TagClass.tags:')
> > >> > > #set ($query = $services.query.createQuery($queryStatement,
> 'solr'))
> > >> > > #set ($discard = $query.setLimit(10).setOffset(0))
> > >> > > #set ($discard = $query.bindValue('sort', "score desc"))
> > >> > > #set ($discard = $query.bindValue('fq', '{!q.op=AND} type:DOCUMENT
> > >> > > locales:(en OR fr) hidden:false'))
> > >> > > #set ($searchResponses = $query.execute()[0])
> > >> > > $searchResponses
> > >> > >
> > >> > > I replaced "" by the name of a tag existing on some pages, but I
> > >> > > could never obtain search results with this sample ... And I
> don't know
> > >> > > what should be put in search field in UI to obtain something
> equivalent.
> > >> >
> > >> > This works for me:
> > >> >
> > >> > property.XWiki.TagClass.tags:Development
> > >> >
> > >> > And the above code works too if I replace "" with
> > >> > "Development". Of course, I've tagged a few documents with
> > >> > Development.
> > >> >
> > >> > >
> > >> > > There's also XWIKI-9413 [2] that seems to relate, but to be
> honest, I'm a
> > >> > > bit lost with how to use solr search and how it integrates with
> xwiki,
> > >> > so I
> > >> > > won't be of much help I'm afraid ... :/ But I'm interested in the
> answer
> > >> > :)
> > >> >
> > >> > Besides what Jeremie has mentioned, there is also
> > >> >
> > >> >
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Solr+Search+Application#HFacetingonObjectProperties
> > >> > . You can configure the Solr Search UI to add a new facet for tags.
> > >> > I've just added
> > >> >
> > >> > property.XWiki.TagClass.tags_string
> > >> >
> > >> > and it simply worked!
> > >> >
> > >>
> > >> Worked for me too, that's really nice, thanks !
> > >
> >
> > > And I’ve now documented this example at
> > >
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Solr+Search+Application#HFacetingonObjectProperties
> >
> > There was an example above for publishDate property of
> > Blog.BlogPostClass but it wasn't very explicit. Another example won't
> > hurt :)
>
> Yes I know. I've added this example for 2 reasons:
>
> 1) It took me a while to understand the existing example. It didn’t say
> really how to do it in practice and when I looked at the config wiki page I
> wondered how to do it.
> 2) Using tags seems a pretty nice and common use case so it made sense to
> me to add an example about it. Actually it could even make sense to have it
> by default.
>
> Thanks
> -Vincent
> >
> > Thanks,
> > Marius
> >
> > >
> > > :)
> > >
> > > Thanks
> > > -Vincent
> > >
> > >> > Hope this helps,
> > >> > Marius
> > >> >
> > >> > >
> > >> > > [1] -
> > >> > >
> > >> >
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Solr+Search+Query+API
> > >> > > [2] - http://jira.xwiki.org/browse/XWIKI-9413
> > >> > >
> > >> > >
> > >> > >
> > >> > > 2014-07-18 14:20 GMT+02:00 Fabien Munoz :
> > >> > >
> > >> > >> Hello,
> > >> > >>
> > >> > >> I would like to be able to refine searches in xwiki enterprise
> by tags
> > >> > as I
> > >> > >> already can by Spaces or wikis. How can I do that?
> > >> > >>
> > >> > >> Is there any way to do the same directly into the search input?
> > >> > Something
> > >> > >> like 'install tag:linux' would search for the word 'install', on
> into
> > >> > >> pages tagged 'linux'.
> > >> > >>
> > >> > >> Thanks in advance,
>
> ___
> 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] about password and LDAP

2014-07-30 Thread Pascal BASTIEN
your SQL querie has also answered at my next question: if I use LDAP 
authentication, a copy of  user ldap password is apparently NOT stored in the 
database.




 De : Clemens Klein-Robbenhaar 
À : users@xwiki.org 
Envoyé le : Mercredi 30 juillet 2014 13h57
Objet : Re: [xwiki-users] about password and LDAP
 


...
> - I wondered where is stored local users password?  More precisely in which 
> table? I see that users are in xwikidoc table: 
> http://platform.xwiki.org/xwiki/bin/view/DevGuide/DatabaseSchema (but not the 
> password)
> Note, I don't want reinitialize password (I know how to do it with superuser)
> 

The password is a (string-valued) attribute of an object of class "XWikiUsers", 
which is attached to the profile page.
you can see this if you look at any user profile in the object editor.

In mySQLyou can see the stored passwords might look like:

  select * from xwikiobjects join xwikistrings on xwikiobjects.XWO_ID = 
xwikistrings.XWS_ID where XWO_CLASSNAME='XWiki.XWikiUsers' and 
xwikistrings.XWS_NAME='password';

...
> 
> - With ldap authentication, I filter members by ldap statics groups
> 
> #-# Only members of the following group can authenticate.
> xwiki.authentication.ldap.user_group=dn=_agents_,,dc=fr
> _agents_ contain a static list of memberUID with name.surname
> 
> I active log for ldap and I saw that for the first connexion by a ldap user, 
> cache creation take 1mn
> Apparently xwiki try to retrieve the dn for each member of the static group 
> for generate his cache (~5 queries by member)
> Of course, I increased xwiki.authentication.ldap.groupcache_expiration value
> 
> Are there a way to refresh the ldap cache by cron or scheduled script?
> 
> Thxs.
> 
> Pascal B
> ___
> 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


Re: [xwiki-users] about password and LDAP

2014-07-30 Thread Jeremie BOUSQUET
Hi,


2014-07-30 13:57 GMT+02:00 Clemens Klein-Robbenhaar <
c.robbenh...@espresto.com>:

>
> I do not know about the internals of the LDAP-stuff, but at least I know
> where the password is stroed in the DB :)
>
> > Hello,
> >
> > I have some questions (today :-) )
> >
> > - I wondered where is stored local users password?  More precisely in
> which table? I see that users are in xwikidoc table:
> http://platform.xwiki.org/xwiki/bin/view/DevGuide/DatabaseSchema (but not
> the password)
> > Note, I don't want reinitialize password (I know how to do it with
> superuser)
> >
>
> The password is a (string-valued) attribute of an object of class
> "XWikiUsers", which is attached to the profile page.
> you can see this if you look at any user profile in the object editor.
>
> In mySQLyou can see the stored passwords might look like:
>
>   select * from xwikiobjects join xwikistrings on xwikiobjects.XWO_ID =
> xwikistrings.XWS_ID where XWO_CLASSNAME='XWiki.XWikiUsers' and
> xwikistrings.XWS_NAME='password';
>
> Unless something is utterly wrong with your installation the passwords
> should be stored as SHA-hashes or the like.
>
> Note: In the DB schema the table xwikiproperties also appears between the
> xwikiobjects and the xwikistrings, but I have to admit I did not need it
> for the query.
> Maybe I did something wrong, in that case please someone correct me :)
>

If I'm right, xwikiproperties table mainly gives you the type of a specific
object field (like, StringProperty etc). If you already know it, you don't
need this table and you can directly query the needed xwiki table.


>
> HTH,
> Clemens
>
> > - If I use LDAP authentication, a copy of  user ldap password is stored
> in the database?
> >
> > - With ldap authentication, I filter members by ldap statics groups
> >
> > #-# Only members of the following group can authenticate.
> > xwiki.authentication.ldap.user_group=dn=_agents_,,dc=fr
> > _agents_ contain a static list of memberUID with name.surname
> >
> > I active log for ldap and I saw that for the first connexion by a ldap
> user, cache creation take 1mn
> > Apparently xwiki try to retrieve the dn for each member of the static
> group for generate his cache (~5 queries by member)
> > Of course, I increased xwiki.authentication.ldap.groupcache_expiration
> value
> >
> > Are there a way to refresh the ldap cache by cron or scheduled script?
> >
> > Thxs.
> >
> > Pascal B
> > ___
> > 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


Re: [xwiki-users] about password and LDAP

2014-07-30 Thread Clemens Klein-Robbenhaar

I do not know about the internals of the LDAP-stuff, but at least I know where 
the password is stroed in the DB :)

> Hello,
> 
> I have some questions (today :-) )
> 
> - I wondered where is stored local users password?  More precisely in which 
> table? I see that users are in xwikidoc table: 
> http://platform.xwiki.org/xwiki/bin/view/DevGuide/DatabaseSchema (but not the 
> password)
> Note, I don't want reinitialize password (I know how to do it with superuser)
> 

The password is a (string-valued) attribute of an object of class "XWikiUsers", 
which is attached to the profile page.
you can see this if you look at any user profile in the object editor.

In mySQLyou can see the stored passwords might look like:

  select * from xwikiobjects join xwikistrings on xwikiobjects.XWO_ID = 
xwikistrings.XWS_ID where XWO_CLASSNAME='XWiki.XWikiUsers' and 
xwikistrings.XWS_NAME='password';

Unless something is utterly wrong with your installation the passwords should 
be stored as SHA-hashes or the like.

Note: In the DB schema the table xwikiproperties also appears between the 
xwikiobjects and the xwikistrings, but I have to admit I did not need it for 
the query.
Maybe I did something wrong, in that case please someone correct me :)

HTH,
Clemens

> - If I use LDAP authentication, a copy of  user ldap password is stored in 
> the database?
> 
> - With ldap authentication, I filter members by ldap statics groups
> 
> #-# Only members of the following group can authenticate.
> xwiki.authentication.ldap.user_group=dn=_agents_,,dc=fr
> _agents_ contain a static list of memberUID with name.surname
> 
> I active log for ldap and I saw that for the first connexion by a ldap user, 
> cache creation take 1mn
> Apparently xwiki try to retrieve the dn for each member of the static group 
> for generate his cache (~5 queries by member)
> Of course, I increased xwiki.authentication.ldap.groupcache_expiration value
> 
> Are there a way to refresh the ldap cache by cron or scheduled script?
> 
> Thxs.
> 
> Pascal B
> ___
> 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] about password and LDAP

2014-07-30 Thread Pascal BASTIEN
Hello,

I have some questions (today :-) )

- I wondered where is stored local users password?  More precisely in which 
table? I see that users are in xwikidoc table: 
http://platform.xwiki.org/xwiki/bin/view/DevGuide/DatabaseSchema (but not the 
password)
Note, I don't want reinitialize password (I know how to do it with superuser)

- If I use LDAP authentication, a copy of  user ldap password is stored in the 
database?

- With ldap authentication, I filter members by ldap statics groups

#-# Only members of the following group can authenticate.
xwiki.authentication.ldap.user_group=dn=_agents_,,dc=fr
_agents_ contain a static list of memberUID with name.surname

I active log for ldap and I saw that for the first connexion by a ldap user, 
cache creation take 1mn
Apparently xwiki try to retrieve the dn for each member of the static group for 
generate his cache (~5 queries by member)
Of course, I increased xwiki.authentication.ldap.groupcache_expiration value

Are there a way to refresh the ldap cache by cron or scheduled script?

Thxs.

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


Re: [xwiki-users] Ratings Extension - Can guest vote?

2014-07-30 Thread Clemens Klein-Robbenhaar
On 07/29/2014 09:11 PM, Danilo Oliveira wrote:
> Hello XWiki Community,
> 
> I am using the Ratings Extension with XWiki 6.1 and  Flamingo Skin and I
> noticed that the guest user can not vote. Is it the normal behavior?
> 

Yes, it is normal, anonymous users cannot vote in the Ratings extension.
(If they could, they would all share a single vote on behalf of the "Anonymous 
user",
which would make little sense)

Clemens

> I am asking because I made some skin customizations and I am wondering if
> my settings is interfering in this extension.
> 
> Thanks.
> Danilo
> 



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