Re: [xwiki-users] Velocity Snipplet for getting the current user group

2008-08-13 Thread Brian Burns
Syam,

When you say currently logged in, I assume you mean the user who is viewing
the particular page as opposed to all users who are currently logged in?

In any case, it doesn't quite make sense because a user can be a member of
multiple groups. You can check if a user is in a particular group using
something along the lines of:
#if($xwiki.getUser().isUserInGroup(XWiki.DemoGroup))

I suppose it might be possible to do some sort of $hql search to generate a
list of all groups and then you could loop through them with an if statement
as shown above and then generate a list of groups of which the user is a
member.

Does that answer your question? Some of the more experienced contributors
might be able to give you more advice.

Brian
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
syam_kg
Sent: 13 August 2008 05:01
To: users@xwiki.org
Subject: [xwiki-users] Velocity Snipplet for getting the current user group


Hi

Can anybody please provide the velocity snipplet for getting the group of
the user currently logged in 

Regards
Syam
-- 
View this message in context:
http://n2.nabble.com/Velocity-Snipplet-for-getting-the-current-user-group-tp
721120p721120.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


Re: [xwiki-users] Velocity Snipplet for getting the current user group

2008-08-13 Thread syam_kg

Hi Brian,

Thanks a lot. The code provided by you would solve my problem

Regards
Syam

Brian Burns-2 wrote:
 
 Syam,
 
 When you say currently logged in, I assume you mean the user who is
 viewing
 the particular page as opposed to all users who are currently logged in?
 
 In any case, it doesn't quite make sense because a user can be a member of
 multiple groups. You can check if a user is in a particular group using
 something along the lines of:
 #if($xwiki.getUser().isUserInGroup(XWiki.DemoGroup))
 
 I suppose it might be possible to do some sort of $hql search to generate
 a
 list of all groups and then you could loop through them with an if
 statement
 as shown above and then generate a list of groups of which the user is a
 member.
 
 Does that answer your question? Some of the more experienced contributors
 might be able to give you more advice.
 
 Brian
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
 Of
 syam_kg
 Sent: 13 August 2008 05:01
 To: users@xwiki.org
 Subject: [xwiki-users] Velocity Snipplet for getting the current user
 group
 
 
 Hi
 
 Can anybody please provide the velocity snipplet for getting the group of
 the user currently logged in 
 
 Regards
 Syam
 -- 
 View this message in context:
 http://n2.nabble.com/Velocity-Snipplet-for-getting-the-current-user-group-tp
 721120p721120.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
 
 

-- 
View this message in context: 
http://n2.nabble.com/Velocity-Snipplet-for-getting-the-current-user-group-tp721120p721530.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


[xwiki-users] Monitoring and Export Application

2008-08-13 Thread Ludovic Dubost


Hi,

I've fixed the Monitoring application on http://code.xwiki.org (the 
package was corrupted) and published an Import/Export Application.


The Monitoring application includes scripts to check the running 
requests, view the memory consumption and flush the cache.


The Import/Export application includes a selective export, an export by 
date, a single page export and import.


The Applications are available on xwiki.org:

http://code.xwiki.org/xwiki/bin/view/Applications/MonitoringApplication
http://code.xwiki.org/xwiki/bin/view/Applications/ImportExportApplication

Ludovic

--
Ludovic Dubost
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost

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


[xwiki-users] Info about setting panels layout on edit

2008-08-13 Thread Michele Manfrin
Hi all

I'm using xwiki 1.5. I set a left panels layout with a PanelWizard. All is
correctly but when i try to edit a page, the panels on a left side magically
disappears and I don't know where i can set correctly this view.
Thanks in advance
-- 
Michele
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] XWiki 1.5 AD LDAP group_mapping

2008-08-13 Thread Todd Getz
We are trying to setup XWiki to work with LDAP via Active Directory.  I
have the authentication working, but group_mapping seems to fail.  I
cannot figure out the correct settings for the group mappings.  Could
somebody help?  Our cfg:

 

#

Kind regards,
Todd Getz
System Support Analyst
MTS Travel
124 East Main Street, 4th floor
Ephrata, PA 17522
800: 800-233-0157 x81352
Tel: 717-721-7352
Fax: 717-733-1009
Email: [EMAIL PROTECTED]
http://www.mtstravel.com 
---
--

# LDAP

#---
--

 

#-# new LDAP authentication service

xwiki.authentication.authclass=com.xpn.xwiki.user.impl.LDAP.LDAPAuthServ
iceImpl

 

#-# Turn LDAP authentication on - otherwise only XWiki authentication

#-# 0: disable

#-# 1: enable

xwiki.authentication.ldap=1

 

#-# LDAP Server (Active Directory, eDirectory, OpenLDAP, etc.)

xwiki.authentication.ldap.server=10.1.1.186

xwiki.authentication.ldap.port=389

 

#-# LDAP login, empty = anonymous access, otherwise specify full dn 

#-# {0} is replaced with the username, {1} with the password

xwiki.authentication.ldap.bind_DN=mts\\{0}

xwiki.authentication.ldap.bind_pass={1}

 

#-# Force to check password after LDAP connection

#-# 0: disable

#-# 1: enable

xwiki.authentication.ldap.validate_password=0

 

#-# only members of the following group will be verified in the LDAP

# otherwise only users that are found after searching starting from the
base_DN

xwiki.authentication.ldap.user_group=cn=WebAllMTS,ou=ChatGroups,ou=accou
nts,dc=mtstravel,dc=com

 

#-# base DN for searches

xwiki.authentication.ldap.base_DN=dc=ad,dc=mtstravel,dc=com

 

#-# Specifies the LDAP attribute containing the identifier to be used as
the XWiki name (default=cn)

# xwiki.authentication.ldap.UID_attr=sAMAccountName

 

#-# [SINCE 1.5M1, XWikiLDAPAuthServiceImpl]

#-# Specifies the LDAP attribute containing the password to be used
when xwiki.authentication.ldap.validate_password is set to 1

# xwiki.authentication.ldap.password_field=userPassword

 

#-# [SINCE 1.5M1, XWikiLDAPAuthServiceImpl]

#-# The potential LDAP groups classes. Separated by commas.

xwiki.authentication.ldap.group_classes=group,groupOfNames,groupOfUnique
Names,dynamicGroup,dynamicGroupAux,groupWiseDistributionList

 

#-# [SINCE 1.5M1, XWikiLDAPAuthServiceImpl]

#-# The potential names of the LDAP groups fields containings the
members. Separated by commas. 

xwiki.authentication.ldap.group_memberfields=member,uniqueMember

 

#-# retrieve the following fields from LDAP and store them in the XWiki
user object (xwiki-attribute=ldap-attribute)

#-# ldap_dn=dn  -- dn is set by class, caches dn in XWiki.user object
for faster access

xwiki.authentication.ldap.fields_mapping=name=sAMAccountName,last_name=s
n,first_name=givenName,fullname=displayName,mail=mail,ldap_dn=dn

 

#-# [SINCE 1.3M2, XWikiLDAPAuthServiceImpl]

#-# on every login update the mapped attributes from LDAP to XWiki
otherwise this happens only once when the XWiki account is created.

xwiki.authentication.ldap.update_user=1

 

#-# [SINCE 1.3M2, XWikiLDAPAuthServiceImpl]

#-# mapps XWiki groups to LDAP groups, separator is |

xwiki.authentication.ldap.group_mapping=XWiki.XWikiAdminGroup=cn=WebISte
am,ou=ChatGroups,ou=accounts,dc=mtstravel,dc=com|XWiki.XWikiAllGroup=cn=
WebAllMTS,ou=ChatGroups,ou=accounts,dc=mtstravel,dc=com

 

#-# [SINCE 1.3M2, XWikiLDAPAuthServiceImpl]

#-# time in s after which the list of members in a group is refreshed
from LDAP (default=3600*6)

xwiki.authentication.ldap.groupcache_expiration=21800

 

#-# [SINCE 1.3M2, XWikiLDAPAuthServiceImpl]

#-# - create : synchronize group membership only when the user is first
created

#-# - always: synchronize on every login

xwiki.authentication.ldap.mode_group_sync=always

 

#-# [SINCE 1.3M2, XWikiLDAPAuthServiceImpl]

#-# if ldap authentication fails for any reason, try XWiki DB
authentication with the same credentials

xwiki.authentication.ldap.trylocal=1

 

#-# [SINCE 1.3M2, XWikiLDAPAuthServiceImpl]

#-# SSL connection to LDAP server

#-# 0: normal

#-# 1: SSL

# xwiki.authentication.ldap.ssl=0

 

#-# [SINCE 1.3M2, XWikiLDAPAuthServiceImpl]

#-# The keystore file to use in SSL connection

# xwiki.authentication.ldap.ssl.keystore=

 

#-# [SINCE 1.5M1, XWikiLDAPAuthServiceImpl]

#-# The java secure provider used in SSL connection

#
xwiki.authentication.ldap.ssl.secure_provider=com.sun.net.ssl.internal.s
sl.Provider

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


Re: [xwiki-users] XWiki 1.5 AD LDAP group_mapping

2008-08-13 Thread Thomas Mortagne
Hi,

XWiki.XWikiAllGroup=cn=WebAllMTS,ou=ChatGroups,ou=accounts,dc=mtstravel,dc=com
is useless because all LDAP users are automatically added to
XWiki.XWikiAllGroup when created (the first time it logs in) like
any normal XWiki user.

What exactly means group_mapping seems to fail ? The user from LDAP
group cn=WebISteam,ou=ChatGroups,ou=accounts,dc=mtstravel,dc=com are
not added to XWiki group XWiki.XWikiAdminGroup ?

Don't you have anything in the xwiki log ?

On Wed, Aug 13, 2008 at 8:44 PM, Todd Getz [EMAIL PROTECTED] wrote:
 We are trying to setup XWiki to work with LDAP via Active Directory.  I
 have the authentication working, but group_mapping seems to fail.  I
 cannot figure out the correct settings for the group mappings.  Could
 somebody help?  Our cfg:



 #

 Kind regards,
 Todd Getz
 System Support Analyst
 MTS Travel
 124 East Main Street, 4th floor
 Ephrata, PA 17522
 800: 800-233-0157 x81352
 Tel: 717-721-7352
 Fax: 717-733-1009
 Email: [EMAIL PROTECTED]
 http://www.mtstravel.com
 ---
 --

 # LDAP

 #---
 --



 #-# new LDAP authentication service

 xwiki.authentication.authclass=com.xpn.xwiki.user.impl.LDAP.LDAPAuthServ
 iceImpl



 #-# Turn LDAP authentication on - otherwise only XWiki authentication

 #-# 0: disable

 #-# 1: enable

 xwiki.authentication.ldap=1



 #-# LDAP Server (Active Directory, eDirectory, OpenLDAP, etc.)

 xwiki.authentication.ldap.server=10.1.1.186

 xwiki.authentication.ldap.port=389



 #-# LDAP login, empty = anonymous access, otherwise specify full dn

 #-# {0} is replaced with the username, {1} with the password

 xwiki.authentication.ldap.bind_DN=mts\\{0}

 xwiki.authentication.ldap.bind_pass={1}



 #-# Force to check password after LDAP connection

 #-# 0: disable

 #-# 1: enable

 xwiki.authentication.ldap.validate_password=0



 #-# only members of the following group will be verified in the LDAP

 # otherwise only users that are found after searching starting from the
 base_DN

 xwiki.authentication.ldap.user_group=cn=WebAllMTS,ou=ChatGroups,ou=accou
 nts,dc=mtstravel,dc=com



 #-# base DN for searches

 xwiki.authentication.ldap.base_DN=dc=ad,dc=mtstravel,dc=com



 #-# Specifies the LDAP attribute containing the identifier to be used as
 the XWiki name (default=cn)

 # xwiki.authentication.ldap.UID_attr=sAMAccountName



 #-# [SINCE 1.5M1, XWikiLDAPAuthServiceImpl]

 #-# Specifies the LDAP attribute containing the password to be used
 when xwiki.authentication.ldap.validate_password is set to 1

 # xwiki.authentication.ldap.password_field=userPassword



 #-# [SINCE 1.5M1, XWikiLDAPAuthServiceImpl]

 #-# The potential LDAP groups classes. Separated by commas.

 xwiki.authentication.ldap.group_classes=group,groupOfNames,groupOfUnique
 Names,dynamicGroup,dynamicGroupAux,groupWiseDistributionList



 #-# [SINCE 1.5M1, XWikiLDAPAuthServiceImpl]

 #-# The potential names of the LDAP groups fields containings the
 members. Separated by commas.

 xwiki.authentication.ldap.group_memberfields=member,uniqueMember



 #-# retrieve the following fields from LDAP and store them in the XWiki
 user object (xwiki-attribute=ldap-attribute)

 #-# ldap_dn=dn  -- dn is set by class, caches dn in XWiki.user object
 for faster access

 xwiki.authentication.ldap.fields_mapping=name=sAMAccountName,last_name=s
 n,first_name=givenName,fullname=displayName,mail=mail,ldap_dn=dn



 #-# [SINCE 1.3M2, XWikiLDAPAuthServiceImpl]

 #-# on every login update the mapped attributes from LDAP to XWiki
 otherwise this happens only once when the XWiki account is created.

 xwiki.authentication.ldap.update_user=1



 #-# [SINCE 1.3M2, XWikiLDAPAuthServiceImpl]

 #-# mapps XWiki groups to LDAP groups, separator is |

 xwiki.authentication.ldap.group_mapping=XWiki.XWikiAdminGroup=cn=WebISte
 am,ou=ChatGroups,ou=accounts,dc=mtstravel,dc=com|XWiki.XWikiAllGroup=cn=
 WebAllMTS,ou=ChatGroups,ou=accounts,dc=mtstravel,dc=com



 #-# [SINCE 1.3M2, XWikiLDAPAuthServiceImpl]

 #-# time in s after which the list of members in a group is refreshed
 from LDAP (default=3600*6)

 xwiki.authentication.ldap.groupcache_expiration=21800



 #-# [SINCE 1.3M2, XWikiLDAPAuthServiceImpl]

 #-# - create : synchronize group membership only when the user is first
 created

 #-# - always: synchronize on every login

 xwiki.authentication.ldap.mode_group_sync=always



 #-# [SINCE 1.3M2, XWikiLDAPAuthServiceImpl]

 #-# if ldap authentication fails for any reason, try XWiki DB
 authentication with the same credentials

 xwiki.authentication.ldap.trylocal=1



 #-# [SINCE 1.3M2, XWikiLDAPAuthServiceImpl]

 #-# SSL connection to LDAP server

 #-# 0: normal

 #-# 1: SSL

 # xwiki.authentication.ldap.ssl=0



 #-# [SINCE 1.3M2, XWikiLDAPAuthServiceImpl]

 #-# The keystore file to use in SSL connection

 # xwiki.authentication.ldap.ssl.keystore=



 #-# [SINCE 

Re: [xwiki-users] XWiki 1.5 AD LDAP group_mapping

2008-08-13 Thread Todd Getz
AD users can login but they go to an error page that says:  You are not
allowed to view this document or perform this action.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users