Hi all,
I admit that I am a Tomcat rookie. That being said, I have been
struggling with out-of-memory/permgen issues for a while now with no
progress. I have looked at this:
http://www.xwiki.org/xwiki/bin/view/FAQ/HowToSolveAJavaHeapMemoryError
...but I have not been successful in adjusting my settings. I am running
on Windows 2008 R2 64-bit with 12gb available RAM. I am trying to allocate
at least 4gb to run Xwiki, since nothing else is running on this server
(other than MySQL). I run Tomcat as a service, if that matters. I have
been using the Groovy function "${Runtime.getRuntime().maxMemory()}" to
keep an eye on my heap size. It stays at 259522560 bytes (247.5mb) no
matter what I do. I have tried setting a CATALINA_OPTS system variable
with the following settings:
-Xms2096m -Xmx=4096m -XX:MaxPermSize=1024m -XX:+CMSClassUnloadingEnabled
-XX:+CMSPermGenSweepingEnabled
I have also tried going into the Java tab on the Tomcat properties window
and setting the values there:
-DXms2096m
-DXmx4096m
-DXX:MaxPermSize=1024m
-DXX:+CMSClassUnloadingEnabled
-DXX:+CMSPermGenSweepingEnabled
So what am I doing wrong? Or is it my understanding that is off - is that
Groovy function not really telling me the allocated memory? Any advice
would be greatly appreciated.
Thanks!
- Matt L.
Hi xwikiers,
I just released a new authenticator on
http://extensions.xwiki.org/xwiki/bin/view/Extension/XWiki+Authenticator+Tr…
.
* extract the user id from the remote user and automatically create related
XWiki user profile
* allow using different LDAP configuration depending on what is in the
remote user
* synchronize user related information and group membership from LDAP (use
the standard LDAP authenticator for this actually)
Enjoy :)
--
Thomas Mortagne
Hello
I have just set up XWiki Enterprise Manager 4.5.1 and installed the Administration application. I logged in and went to the "Administration: Users" page. However, when I click on the "Edit" icon to edit a user profile, the popup area that appears doesn't show any fields. It just says "For more options to edit this user, please go to the user's profile" and there is a "Save" and "Cancel" button. There is supposed to be a lot more here. I think that I'm missing an extension. Does anyone know what I need to do?
Thank you.
Naoufel
Hi all,
I am having trouble understanding user permissions again. I have Xwiki
set up for LDAP authentication, so any user who signs in gets added to the
XWikiAllGroup. For this example, let's say I have GroupA and GroupB, both
of which have their own sets of protected pages. The way it works now is
that I have to remove each user from XWikiAllGroup and add them to either
GroupA or GroupB. This way, the protected pages are set to deny to anyone
NOT a member of that particular group.
My question is: how can I get a single member of Group A to be
authorized for the GroupB protected pages? I cannot simply add them to
GroupB - they would then not be allowed access to either set of pages
because the deny rules take precedence. I could add them to a third group
called GroupsA&B, but that seems a poor solution, as this would only
increase in complexity in the future. Do I have my architecture of
protected pages set up wrong - is there are more logical way to configure
this?
Thanks in advance!
- Matt L.
Mailed to soon. Solved it. The default works just fine.
xwiki.authentication.trustedldap.remoteUserParser=(.+)(a)(.+)
xwiki.authentication.trustedldap.remoteUserMapping.1=login
-----Oorspronkelijk bericht-----
Van: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org] Namens Mark
Verzonden: zaterdag 9 maart 2013 17:08
Aan: XWiki Users
Onderwerp: Re: [xwiki-users] kerberos SSO -> strip domainname from username
I managed to compile and activate the xwiki-authentication-trusted-ldap plugin. But still the same result: login works with login prompt, fails with SSO.
Debugging showed me that the xwiki doesn't accept the SSO because username doesn't match. I suppose my xwiki.authentication.trustedldap.remoteUserParser settings is incorrect.
Can anyone tell me what this settings should be when my kerberos sso user is "user(a)DOMAIN.COM" and my sAMAccountName in ldap is just "user"?
On Fri, Mar 8, 2013 at 1:53 PM, Mark Jas <mark(a)nieuwenborg.nl> wrote:
> Hi Thomas,
>
> Thanks for your reply. I should have given you some more info.
> I'm using the default authenticator, because if I use the com.xpn.xwiki.user.impl.xwiki.AppServerTrustedKerberosAuthServiceImpl, my ldap stops working.
>
> If I use com.xpn.xwiki.user.impl.xwiki.AppServerTrustedKerberosAuthServiceImpl Kerberos works fine, but new users aren't created, and group sync isn't working etc etc...
com.xpn.xwiki.user.impl.xwiki.AppServerTrustedKerberosAuthServiceImpl
only know about remote user and just create the user page, it's not connecting to LDAP to update informations or group membership like the LDAP authenticator do. There is no such authenticator by default but you can look at https://github.com/xwiki-contrib/sandbox/tree/master/authenticators/xwiki-a….
>
> Maybe my question should be: How do I get LDAP working with the Kerberos authenticator?
>
> Mark
>
>
> On Tue, Mar 5, 2013 at 4:35 PM, Mark Jas <mark(a)nieuwenborg.nl> wrote:
>> Hi all,
>>
>>
>> I have configured xwiki with LDAP authentication and kerberos SSO.
>>
>> When I use a browser without automatic Kerberos SSO, I get a keberos login page. When I fill in username and password manually it works great.
>>
>> But when I set the browser to use automatic logon, I get the xwiki
>> login page! (at least in FireFox, IE says “cannot show page”)
>>
>> I get the same results when I manually login with “username@DOMAIN”
>> and “password”. So I think the domain part is used in the automatic
>> logon. (and is the actual problem…)
>>
>>
>> I see there is java code that strips the @DOMAIN part from the username. But I have no idea how or where to implement this. I hope some can help me!
>
> I never used it myself but from what I see in the code it's supposed to do that all the time. Maybe there is a bug.
>
> You can try to enable debug log[1] for class
> com.xpn.xwiki.user.impl.xwiki.AppServerTrustedKerberosAuthServiceImpl
> (that's the authenticator you are using, right ?) to see what's going on. At least ou should get what remote user XWiki is getting if any.
>
> [1] http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Logging
>
>>
>>
>> Mark
>>
>>
>> _______________________________________________
>> users mailing list
>> users(a)xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>
>
>
> --
> Thomas Mortagne
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
--
Thomas Mortagne
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
I managed to compile and activate the xwiki-authentication-trusted-ldap plugin. But still the same result: login works with login prompt, fails with SSO.
Debugging showed me that the xwiki doesn't accept the SSO because username doesn't match. I suppose my xwiki.authentication.trustedldap.remoteUserParser settings is incorrect.
Can anyone tell me what this settings should be when my kerberos sso user is "user(a)DOMAIN.COM" and my sAMAccountName in ldap is just "user"?
On Fri, Mar 8, 2013 at 1:53 PM, Mark Jas <mark(a)nieuwenborg.nl> wrote:
> Hi Thomas,
>
> Thanks for your reply. I should have given you some more info.
> I'm using the default authenticator, because if I use the com.xpn.xwiki.user.impl.xwiki.AppServerTrustedKerberosAuthServiceImpl, my ldap stops working.
>
> If I use com.xpn.xwiki.user.impl.xwiki.AppServerTrustedKerberosAuthServiceImpl Kerberos works fine, but new users aren't created, and group sync isn't working etc etc...
com.xpn.xwiki.user.impl.xwiki.AppServerTrustedKerberosAuthServiceImpl
only know about remote user and just create the user page, it's not connecting to LDAP to update informations or group membership like the LDAP authenticator do. There is no such authenticator by default but you can look at https://github.com/xwiki-contrib/sandbox/tree/master/authenticators/xwiki-a….
>
> Maybe my question should be: How do I get LDAP working with the Kerberos authenticator?
>
> Mark
>
>
> On Tue, Mar 5, 2013 at 4:35 PM, Mark Jas <mark(a)nieuwenborg.nl> wrote:
>> Hi all,
>>
>>
>> I have configured xwiki with LDAP authentication and kerberos SSO.
>>
>> When I use a browser without automatic Kerberos SSO, I get a keberos login page. When I fill in username and password manually it works great.
>>
>> But when I set the browser to use automatic logon, I get the xwiki
>> login page! (at least in FireFox, IE says “cannot show page”)
>>
>> I get the same results when I manually login with “username@DOMAIN”
>> and “password”. So I think the domain part is used in the automatic
>> logon. (and is the actual problem…)
>>
>>
>> I see there is java code that strips the @DOMAIN part from the username. But I have no idea how or where to implement this. I hope some can help me!
>
> I never used it myself but from what I see in the code it's supposed to do that all the time. Maybe there is a bug.
>
> You can try to enable debug log[1] for class
> com.xpn.xwiki.user.impl.xwiki.AppServerTrustedKerberosAuthServiceImpl
> (that's the authenticator you are using, right ?) to see what's going on. At least ou should get what remote user XWiki is getting if any.
>
> [1] http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Logging
>
>>
>>
>> Mark
>>
>>
>> _______________________________________________
>> users mailing list
>> users(a)xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>
>
>
> --
> Thomas Mortagne
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
--
Thomas Mortagne
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Hello all!
I do not know if this is normal, but we have terrible performance upon the
initial connect to our wiki (selfbus.myxwiki.org).
Often the connection times out or hangs. Retrying shows the start page.
Once the wiki is initially loaded one can work as normal.
Another person trying to open the wiki page at the same time has the
same timeout problems. Even using another browser shows the same
delay in loading.
So I do not think the wiki is swapped out or something like that.
It rather looks like problems in the name resolution, if I may guess.
Is there anything that can be done to improve the situation?
Kind regards,
Stefan
Hi Thomas,
I think xwiki-authentication-trusted-ldap is exactly what I need. But I'm not that experienced to compiling java. Can I download it somewhere as a .jar file? Or can you point me the way to extract this from git and compile it myself?
Thanks,
Mark
On Fri, Mar 8, 2013 at 1:53 PM, Mark Jas <mark(a)nieuwenborg.nl> wrote:
> Hi Thomas,
>
> Thanks for your reply. I should have given you some more info.
> I'm using the default authenticator, because if I use the com.xpn.xwiki.user.impl.xwiki.AppServerTrustedKerberosAuthServiceImpl, my ldap stops working.
>
> If I use com.xpn.xwiki.user.impl.xwiki.AppServerTrustedKerberosAuthServiceImpl Kerberos works fine, but new users aren't created, and group sync isn't working etc etc...
com.xpn.xwiki.user.impl.xwiki.AppServerTrustedKerberosAuthServiceImpl
only know about remote user and just create the user page, it's not connecting to LDAP to update informations or group membership like the LDAP authenticator do. There is no such authenticator by default but you can look at https://github.com/xwiki-contrib/sandbox/tree/master/authenticators/xwiki-a….
>
> Maybe my question should be: How do I get LDAP working with the Kerberos authenticator?
>
> Mark
>
>
> On Tue, Mar 5, 2013 at 4:35 PM, Mark Jas <mark(a)nieuwenborg.nl> wrote:
>> Hi all,
>>
>>
>> I have configured xwiki with LDAP authentication and kerberos SSO.
>>
>> When I use a browser without automatic Kerberos SSO, I get a keberos login page. When I fill in username and password manually it works great.
>>
>> But when I set the browser to use automatic logon, I get the xwiki
>> login page! (at least in FireFox, IE says “cannot show page”)
>>
>> I get the same results when I manually login with “username@DOMAIN”
>> and “password”. So I think the domain part is used in the automatic
>> logon. (and is the actual problem…)
>>
>>
>> I see there is java code that strips the @DOMAIN part from the username. But I have no idea how or where to implement this. I hope some can help me!
>
> I never used it myself but from what I see in the code it's supposed to do that all the time. Maybe there is a bug.
>
> You can try to enable debug log[1] for class
> com.xpn.xwiki.user.impl.xwiki.AppServerTrustedKerberosAuthServiceImpl
> (that's the authenticator you are using, right ?) to see what's going on. At least ou should get what remote user XWiki is getting if any.
>
> [1] http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Logging
>
>>
>>
>> Mark
>>
>>
>> _______________________________________________
>> users mailing list
>> users(a)xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>
>
>
> --
> Thomas Mortagne
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
--
Thomas Mortagne
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Hi Thomas,
Thanks for your reply. I should have given you some more info.
I'm using the default authenticator, because if I use the com.xpn.xwiki.user.impl.xwiki.AppServerTrustedKerberosAuthServiceImpl, my ldap stops working.
If I use com.xpn.xwiki.user.impl.xwiki.AppServerTrustedKerberosAuthServiceImpl Kerberos works fine, but new users aren't created, and group sync isn't working etc etc...
Maybe my question should be: How do I get LDAP working with the Kerberos authenticator?
Mark
On Tue, Mar 5, 2013 at 4:35 PM, Mark Jas <mark(a)nieuwenborg.nl> wrote:
> Hi all,
>
>
> I have configured xwiki with LDAP authentication and kerberos SSO.
>
> When I use a browser without automatic Kerberos SSO, I get a keberos login page. When I fill in username and password manually it works great.
>
> But when I set the browser to use automatic logon, I get the xwiki
> login page! (at least in FireFox, IE says “cannot show page”)
>
> I get the same results when I manually login with “username@DOMAIN”
> and “password”. So I think the domain part is used in the automatic
> logon. (and is the actual problem…)
>
>
> I see there is java code that strips the @DOMAIN part from the username. But I have no idea how or where to implement this. I hope some can help me!
I never used it myself but from what I see in the code it's supposed to do that all the time. Maybe there is a bug.
You can try to enable debug log[1] for class com.xpn.xwiki.user.impl.xwiki.AppServerTrustedKerberosAuthServiceImpl
(that's the authenticator you are using, right ?) to see what's going on. At least ou should get what remote user XWiki is getting if any.
[1] http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Logging
>
>
> Mark
>
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
--
Thomas Mortagne
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users