Re: [xwiki-users] create my own search...
hey. i have followed the guidence from the links but it does not show any result. i am sure i am doing something wrong, ...but on the website the search form didn't work either. or i am doing something wrong tthere..:-| i have put the word box in the search tag (on the website: http://www.xwiki.org/xwiki/bin/view/FAQ/ ) i am writing the word:'box' or 'faq' and there is no result either. do you know the problem here? it should have searched in the current page for one.. cause the words are from there...but no luck. thx Vincent Massol [EMAIL PROTECTED] wrote: Hi Gabriela, On Apr 29, 2008, at 12:21 PM, Gabriela Radu wrote: hello i am looking at how the search property is created in xwiki because i wanna make my own search for a specific space. does anyone know where does the function for this operation has to be written. what i can tell so far... i found the search tag in more .vm files, like: global.vm, suggest, viewtoolbar etc but still don;t know where can i writte my own code. if u know something give a buzz. thanks:) No need to look at vm files at all. It's actually much simpler :) The best is for you to look at your Main.WebSearch or Main.LuceneSearch page in your wiki (just edit them in wiki mode). Alternatively you can look at how it's done on xwiki.org for the FAQ space for example: http://www.xwiki.org/xwiki/bin/view/FAQ/?viewer=code http://www.xwiki.org/xwiki/bin/view/FAQ/FAQSearch?viewer=code Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users Take care , Gabriela Radu :) www.gabrielaradu.com - Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] [xwiki-notifications] XWiki doesn't start anymore
Ok my bad I haven't looked at the stacktrace in the first place, indeed Vincent is right it's an out of memory error. On Wed, Apr 30, 2008 at 10:21 AM, Jean-Vincent Drean [EMAIL PROTECTED] wrote: Hello, Please don't use the notification mailing list to answer questions, I've cc-ed your message to the xwiki users list. About your problem the errors shows that xwiki is unable to connect to your database. On Wed, Apr 30, 2008 at 1:05 AM, Fabrizio Lamari (TeleJob - WebMaster) [EMAIL PROTECTED] wrote: Hello I was using the XWiki for our company and since yesterday evening it doesn't work anymore. I haven't changed anything on the settings yesterday. When I want to go on the XWiki (www.telejob.ch/wiki.html) I get this error: HTTP ERROR: 500 Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 3001 in 3: Cannot load class com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager from param xwiki.store.migration.manager.class Wrapped Exception: Error number 0 in 3: Exception while hibernate execute Wrapped Exception: Could not create a DBCP pool RequestURI=/xwiki/bin/view/Main/WebHome Powered by Jetty:// On the terminal side of the XWiki I have the outlines shown on the end of this message. I hope somebody can help me in adjusting the XWiki, cause we have already written many things in it. Perhaps somebody knows how to get the content of the wiki out, to import in a new one, manually. Thank you in advance for your help. With regards __ Fabrizio Lamari TeleJob.ch - WebMaster [EMAIL PROTECTED] Outlines from the terminarl side: at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292) at com.xpn.xwiki.store.XWikiHibernateBaseStore.initHibernate(XWikiHibernateBaseStore.java:175) at com.xpn.xwiki.store.XWikiHibernateBaseStore.checkHibernate(XWikiHibernateBaseStore.java:516) at com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:1031) at com.xpn.xwiki.store.XWikiHibernateBaseStore.executeRead(XWikiHibernateBaseStore.java:1074) at com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager.getDBVersion(XWikiHibernateMigrationManager.java:62) at com.xpn.xwiki.store.migration.AbstractXWikiMigrationManager.init(AbstractXWikiMigrationManager.java:68) at com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager.init(XWikiHibernateMigrationManager.java:49) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at com.xpn.xwiki.XWiki.createClassFromConfig(XWiki.java:852) at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:791) at com.xpn.xwiki.XWiki.init(XWiki.java:733) at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:305) at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:503) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:126) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:596) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1565) at
Re: [xwiki-users] ldap auth against active directory fails
Hallo thanks for the reply. back to stupid questions: #-# LDAP login, empty = anonymous access, otherwise specify full dn #-# {0} is replaced with the username, {1} with the password #xwiki.authentication.ldap.bind_DN=cn={0},department=USER,o=MP #xwiki.authentication.ldap.bind_pass={1} {0} is the username from the login form in xwiki? {1} is the password from the login form in xwiki? or are these documentation placeholders to be filled in the config file directly? thanks :) regards werner Thomas Mortagne schrieb: On Tue, Apr 29, 2008 at 1:30 PM, werner mueller [EMAIL PROTECTED] wrote: Hallo thanks for the hints. i tried some other configurations but with no luck. it seems not every user is allowed to query the ldap structure. i have to use a special user/password to bind xwiki to the active directory. that user can login but thats not a solution. aloow everyone to query the ad is not an option for us. has anyone a working active directory config he or she could share? is it possible to trick xwiki to use a different user to bind to the AD and then use username/password from login to process the login? i've been doing similar things for bugzilla/ldap using LDAPbinddn = cn=LDAPQUERYUSERNAME,cn=Users,dc=domain,dc=com:LDAPQUERYPASSWORD Yes and it's the default way to work for LDAP authenticator. You can see in default xwiki.cfg : #-# LDAP login, empty = anonymous access, otherwise specify full dn #-# {0} is replaced with the username, {1} with the password #xwiki.authentication.ldap.bind_DN=cn={0},department=USER,department=INFORMATIK,department=1230,o=MP #xwiki.authentication.ldap.bind_pass={1} So in your case it would be : xwiki.authentication.ldap.bind_DN=cn={0},cn=Users,dc=domain,dc=com xwiki.authentication.ldap.bind_pass={1} btw: yes i am sure its version 1.3.2.9174. its the one copy pasted from xwiki. unless its not correct there but that would be weird. any hints or examples would be cool :) thanks a lot regards werner Thomas Mortagne schrieb: Also I think http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication#HLDAPConfigurationforActiveDirectory is based in old LDAP authenticator (see http://platform.xwiki.org/xwiki/bin/view/AdminGuide/AuthenticationLdapOld). On Thu, Apr 17, 2008 at 7:35 PM, Thomas Mortagne [EMAIL PROTECTED] wrote: Hi, On Thu, Apr 17, 2008 at 7:02 PM, werner mueller [EMAIL PROTECTED] wrote: hallo i am currently trying to setup xwiki on taomcat 5.5/mysql. until now its doing quite well :) my next step is to get ldap authentication against an active directory working. i followed http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication#HLDAPConfigurationforActiveDirectory and some postings on the mailing list but i cant get it to work. i either end up with: com.xpn.xwiki.plugin.ldap.XWikiLDAPException: Error number 0 in 5: LDAP bind failed with LDAPException. Wrapped Exception: Invalid Credentials or worse (with in my eyes the propper config): WARN LDAP.XWikiLDAPAuthS erviceImpl - LDAP authentication failed. java.lang.NullPointerException at com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticate(XWikiLDAPAuthServiceImpl.java:256) at com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.authenticate(XWikiLDAPAuthServiceImpl.java:107) at com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.authenticate(MyFormAuthenticator.java:194) at com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:127) at com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:112) at com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.checkAuth(XWikiAuthServiceImpl.java:214) at com.xpn.xwiki.XWiki.checkAuth(XWiki.java:3307) at com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkAccess(XWikiRightServiceImpl.java:136) at com.xpn.xwiki.XWiki.checkAccess(XWiki.java:3315) at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:4259) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:173) ... Could you copy/paste your configuration. i've done ldap auth on several other tools (apache/subversion, bugzilla). there i used two accounts: one allowed to bind to the active directory and do searches and the useraccount itself. in the xwiki config i can only see the user logging in is used to bind to the ldap server? You can define a user able to bind to the active directory using bind_DN and bind_pass properties and it will search for provided login in ldap based on UID_attr property
Re: [xwiki-users] [xwiki-notifications] XWiki doesn't start anymore
It looks like your using one of our jetty distribution. Assuming you're using our startup script (start_xwiki.bat or .sh), you can try to replace : JAVA_OPTS=-Xmx300m (or : set JAVA_OPTS=-Xmx300m) by JAVA_OPTS=-Xmx512m (or : set JAVA_OPTS=-Xmx512m) BTW I wonder how 300m can be not enough. On Wed, Apr 30, 2008 at 11:23 AM, Lamari Fabrizio [EMAIL PROTECTED] wrote: Hello Thank you for your help. Can you help me solving the problem? I don't know how to check this. Thank you in advance. -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] im Auftrag von Jean-Vincent Drean Gesendet: Mi 30.04.2008 10:28 An: XWiki Users; Lamari Fabrizio Betreff: Re: [xwiki-notifications] XWiki doesn't start anymore Ok my bad I haven't looked at the stacktrace in the first place, indeed Vincent is right it's an out of memory error. On Wed, Apr 30, 2008 at 10:21 AM, Jean-Vincent Drean [EMAIL PROTECTED] wrote: Hello, Please don't use the notification mailing list to answer questions, I've cc-ed your message to the xwiki users list. About your problem the errors shows that xwiki is unable to connect to your database. On Wed, Apr 30, 2008 at 1:05 AM, Fabrizio Lamari (TeleJob - WebMaster) [EMAIL PROTECTED] wrote: Hello I was using the XWiki for our company and since yesterday evening it doesn't work anymore. I haven't changed anything on the settings yesterday. When I want to go on the XWiki (www.telejob.ch/wiki.html) I get this error: HTTP ERROR: 500 Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 3001 in 3: Cannot load class com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager from param xwiki.store.migration.manager.class Wrapped Exception: Error number 0 in 3: Exception while hibernate execute Wrapped Exception: Could not create a DBCP pool RequestURI=/xwiki/bin/view/Main/WebHome Powered by Jetty:// On the terminal side of the XWiki I have the outlines shown on the end of this message. I hope somebody can help me in adjusting the XWiki, cause we have already written many things in it. Perhaps somebody knows how to get the content of the wiki out, to import in a new one, manually. Thank you in advance for your help. With regards __ Fabrizio Lamari TeleJob.ch - WebMaster [EMAIL PROTECTED] Outlines from the terminarl side: at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292) at com.xpn.xwiki.store.XWikiHibernateBaseStore.initHibernate(XWikiHibernateBaseStore.java:175) at com.xpn.xwiki.store.XWikiHibernateBaseStore.checkHibernate(XWikiHibernateBaseStore.java:516) at com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:1031) at com.xpn.xwiki.store.XWikiHibernateBaseStore.executeRead(XWikiHibernateBaseStore.java:1074) at com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager.getDBVersion(XWikiHibernateMigrationManager.java:62) at com.xpn.xwiki.store.migration.AbstractXWikiMigrationManager.init(AbstractXWikiMigrationManager.java:68) at com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager.init(XWikiHibernateMigrationManager.java:49) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at com.xpn.xwiki.XWiki.createClassFromConfig(XWiki.java:852) at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:791) at com.xpn.xwiki.XWiki.init(XWiki.java:733) at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:305) at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:503) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:126) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at
Re: [xwiki-users] Import/Export
Vincent, Checking this again. I have the following files: XwikiBackup.xar Administrator 1.1 28/04/2008 13441188 Delete xwiki-enterprise-wiki-1.3~.xar Administrator 1.1 28/04/2008 363033 Delete I can click on the downloaded (from xwiki.org) xwiki-enterprise-wiki-1.3~.xar to display its contentsm, but I get the following message on the import page when I click on any of the other archives exported from XWiki 1.2: No documents found in the selected archive even though the files aren't empty and when I open the archive it does contain files. Why doesn't see the files in the archive? Is there anyway of getting it to see those files? Regards, Richard -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Vincent Massol Sent: 29 April 2008 07:31 To: XWiki Users Subject: Re: [xwiki-users] Import/Export On Apr 29, 2008, at 8:25 AM, goldring, richard wrote: Hi all, I've exported from xwiki enterprise hsqldb 1.2 milestone 2 and tried to import into xwiki enterprise hsqldb 1.3.2 by attaching the exported file, but when I click on the attached file it doesn't list the exported files within so I can import them. That should work fine. So you need to tell us what error you get in the xwiki logs. Also make sure you click only once and you wait enough. If your XAR is large it'll take time to display the items. BTW what's the size of your XAR? Anyone know how to get my pages from 1.2 to 1.3.2? See http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Backup Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users Thales UK Ltd (Wells) DISCLAIMER: The information contained in this e-mail is confidential. It may also be legally privileged. It is intended only for the stated addressee(s) and access to it by any other person is unauthorised. If you are not an addressee, you must not disclose, copy, circulate or in any other way use or rely on the information contained in this e-mail. Such unauthorised use may be unlawful. We may monitor all e-mail communications through our networks. If you have received this e-mail in error, please inform us immediately on +44 (0) 1749 672081 and delete it and all copies from your system. We accept no responsibility for changes to any e-mail which occur after it has been sent. Attachments to this e-mail may contain software viruses which could damage your system. We therefore recommend you virus-check all attachments before opening. A business of Thales UK Ltd. Registered Office: 2 Dashwood Lang Road, The Bourne Business Park, Addlestone, Weybridge, Surrey KT15 2NX Registered in England No. 868273 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] WG: [xwiki-notifications] XWiki doesn't start anymore
Thank you for your help, I've set the value to 512 and now it works. We have a lot of grafic files in our XWiki and they uses a lot of memory I think. But the 512 I've are only thought like RAM or not? I have another problem with my XWiki. When I log in it shows the Document does not exist page. Somebody knows how to fix that? I've testet some ways, but without succes. Von: Vincent Massol [mailto:[EMAIL PROTECTED] Gesendet: Mi 30.04.2008 11:44 An: XWiki Users Cc: Lamari Fabrizio Betreff: Re: [xwiki-users] [xwiki-notifications] XWiki doesn't start anymore On Apr 30, 2008, at 11:37 AM, Jean-Vincent Drean wrote: It looks like your using one of our jetty distribution. Assuming you're using our startup script (start_xwiki.bat or .sh), you can try to replace : JAVA_OPTS=-Xmx300m (or : set JAVA_OPTS=-Xmx300m) by JAVA_OPTS=-Xmx512m (or : set JAVA_OPTS=-Xmx512m) BTW I wonder how 300m can be not enough. I don't think this is the best way. If XWiki starts fine and it works for some time (which is the impression I got from Fabrizio's message) then it's either a memory leak issue in XWiki or some code he's put in some specific page that require more memory. I wouldn't change the memory used to start XWiki but rather observe the amount of memory your xwiki instance uses over time. Thanks -Vincent On Wed, Apr 30, 2008 at 11:23 AM, Lamari Fabrizio [EMAIL PROTECTED] wrote: Hello Thank you for your help. Can you help me solving the problem? I don't know how to check this. Thank you in advance. -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] im Auftrag von Jean-Vincent Drean Gesendet: Mi 30.04.2008 10:28 An: XWiki Users; Lamari Fabrizio Betreff: Re: [xwiki-notifications] XWiki doesn't start anymore Ok my bad I haven't looked at the stacktrace in the first place, indeed Vincent is right it's an out of memory error. On Wed, Apr 30, 2008 at 10:21 AM, Jean-Vincent Drean [EMAIL PROTECTED] wrote: Hello, Please don't use the notification mailing list to answer questions, I've cc-ed your message to the xwiki users list. About your problem the errors shows that xwiki is unable to connect to your database. On Wed, Apr 30, 2008 at 1:05 AM, Fabrizio Lamari (TeleJob - WebMaster) [EMAIL PROTECTED] wrote: Hello I was using the XWiki for our company and since yesterday evening it doesn't work anymore. I haven't changed anything on the settings yesterday. When I want to go on the XWiki (www.telejob.ch/wiki.html) I get this error: HTTP ERROR: 500 Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 3001 in 3: Cannot load class com .xpn .xwiki.store.migration.hibernate.XWikiHibernateMigrationManager from param xwiki.store.migration.manager.class Wrapped Exception: Error number 0 in 3: Exception while hibernate execute Wrapped Exception: Could not create a DBCP pool RequestURI=/xwiki/bin/view/Main/WebHome Powered by Jetty:// On the terminal side of the XWiki I have the outlines shown on the end of this message. I hope somebody can help me in adjusting the XWiki, cause we have already written many things in it. Perhaps somebody knows how to get the content of the wiki out, to import in a new one, manually. Thank you in advance for your help. With regards __ Fabrizio Lamari TeleJob.ch - WebMaster [EMAIL PROTECTED] Outlines from the terminarl side: at org .hibernate .cfg.Configuration.buildSessionFactory(Configuration.java:1292) at com .xpn .xwiki .store .XWikiHibernateBaseStore .initHibernate(XWikiHibernateBaseStore.java:175) at com .xpn .xwiki .store .XWikiHibernateBaseStore .checkHibernate(XWikiHibernateBaseStore.java:516) at com .xpn .xwiki .store .XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:1031) at com .xpn .xwiki .store .XWikiHibernateBaseStore.executeRead(XWikiHibernateBaseStore.java: 1074) at com .xpn .xwiki .store .migration .hibernate .XWikiHibernateMigrationManager .getDBVersion(XWikiHibernateMigrationManager.java:62) at com .xpn .xwiki .store .migration .AbstractXWikiMigrationManager .init(AbstractXWikiMigrationManager.java:68) at com .xpn .xwiki .store .migration .hibernate .XWikiHibernateMigrationManager .init(XWikiHibernateMigrationManager.java:49) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun .reflect .NativeConstructorAccessorImpl .newInstance(NativeConstructorAccessorImpl.java:39) at sun .reflect .DelegatingConstructorAccessorImpl .newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at com.xpn.xwiki.XWiki.createClassFromConfig(XWiki.java:852) at
Re: [xwiki-users] ldap auth against active directory fails
Hallo thanks for the quick reply. well the config should work then :/ i compared it with the bugzilla / subversion config which uses the same ldap / active directory auth. the only difference is that they distinguish the bind user with the user to be authenticated. but in my case even the bind user cannot login. 2008-04-30 13:44:34,891 [http://dev.edoras.ch:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin] [http-8080-Processor24] WARN LDAP.XWikiLDAPAuthServiceImpl - LDAP authentication failed. com.xpn.xwiki.plugin.ldap.XWikiLDAPException: Error number 0 in 5: LDAP bind failed with LDAPException. Wrapped Exception: Invalid Credentials at com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.open(XWikiLDAPConnection.java:178) at com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.open(XWikiLDAPConnection.java:109) at com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticate(XWikiLDAPAuthServiceImpl.java:194) at com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.authenticate(XWikiLDAPAuthServiceImpl.java:107) . Wrapped Exception: LDAPException: Invalid Credentials (49) Invalid Credentials LDAPException: Server Message: 80090308: LdapErr: DSID-0C090334, comment: AcceptSecurityContext error, data 525, vece LDAPException: Matched DN: at com.novell.ldap.LDAPResponse.getResultException(Unknown Source) at com.novell.ldap.LDAPResponse.chkResultCode(Unknown Source) at com.novell.ldap.LDAPConnection.chkResultCode(Unknown Source) at com.novell.ldap.LDAPConnection.bind(Unknown Source) at com.novell.ldap.LDAPConnection.bind(Unknown Source) at com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.open(XWikiLDAPConnection.java:170) at com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.open(XWikiLDAPConnection.java:109) at com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticate(XWikiLDAPAuthServiceImpl.java:194) is there some debug feature i can turn on to get some more information? or some small test-class to verify the settings? it seems it uses the login name from the login form but then authentication fails. thanks a lot :) regards werner Thomas Mortagne schrieb: On Wed, Apr 30, 2008 at 11:55 AM, werner mueller [EMAIL PROTECTED] wrote: Hallo thanks for the reply. back to stupid questions: #-# LDAP login, empty = anonymous access, otherwise specify full dn #-# {0} is replaced with the username, {1} with the password #xwiki.authentication.ldap.bind_DN=cn={0},department=USER,o=MP #xwiki.authentication.ldap.bind_pass={1} {0} is the username from the login form in xwiki? {1} is the password from the login form in xwiki? Yes, you really write {0} and {1} in the configuration and it will be replaced at runtime by user/pass provided by user in the login form. or are these documentation placeholders to be filled in the config file directly? thanks :) regards werner Thomas Mortagne schrieb: On Tue, Apr 29, 2008 at 1:30 PM, werner mueller [EMAIL PROTECTED] wrote: Hallo thanks for the hints. i tried some other configurations but with no luck. it seems not every user is allowed to query the ldap structure. i have to use a special user/password to bind xwiki to the active directory. that user can login but thats not a solution. aloow everyone to query the ad is not an option for us. has anyone a working active directory config he or she could share? is it possible to trick xwiki to use a different user to bind to the AD and then use username/password from login to process the login? i've been doing similar things for bugzilla/ldap using LDAPbinddn = cn=LDAPQUERYUSERNAME,cn=Users,dc=domain,dc=com:LDAPQUERYPASSWORD Yes and it's the default way to work for LDAP authenticator. You can see in default xwiki.cfg : #-# LDAP login, empty = anonymous access, otherwise specify full dn #-# {0} is replaced with the username, {1} with the password #xwiki.authentication.ldap.bind_DN=cn={0},department=USER,department=INFORMATIK,department=1230,o=MP #xwiki.authentication.ldap.bind_pass={1} So in your case it would be : xwiki.authentication.ldap.bind_DN=cn={0},cn=Users,dc=domain,dc=com xwiki.authentication.ldap.bind_pass={1} btw: yes i am sure its version 1.3.2.9174. its the one copy pasted from xwiki. unless its not correct there but that would be weird. any hints or examples would be cool :) thanks a lot regards werner Thomas Mortagne schrieb: Also I think http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication#HLDAPConfigurationforActiveDirectory is based in old LDAP authenticator (see http://platform.xwiki.org/xwiki/bin/view/AdminGuide/AuthenticationLdapOld). On Thu, Apr 17, 2008 at 7:35 PM, Thomas Mortagne [EMAIL PROTECTED] wrote: Hi,
Re: [xwiki-users] ldap auth against active directory fails
You can enable debug logging, see http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Logging On Wed, Apr 30, 2008 at 1:54 PM, werner mueller [EMAIL PROTECTED] wrote: Hallo thanks for the quick reply. well the config should work then :/ i compared it with the bugzilla / subversion config which uses the same ldap / active directory auth. the only difference is that they distinguish the bind user with the user to be authenticated. but in my case even the bind user cannot login. 2008-04-30 13:44:34,891 [http://dev.edoras.ch:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin] [http-8080-Processor24] WARN LDAP.XWikiLDAPAuthServiceImpl - LDAP authentication failed. com.xpn.xwiki.plugin.ldap.XWikiLDAPException: Error number 0 in 5: LDAP bind failed with LDAPException. Wrapped Exception: Invalid Credentials at com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.open(XWikiLDAPConnection.java:178) at com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.open(XWikiLDAPConnection.java:109) at com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticate(XWikiLDAPAuthServiceImpl.java:194) at com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.authenticate(XWikiLDAPAuthServiceImpl.java:107) . Wrapped Exception: LDAPException: Invalid Credentials (49) Invalid Credentials LDAPException: Server Message: 80090308: LdapErr: DSID-0C090334, comment: AcceptSecurityContext error, data 525, vece LDAPException: Matched DN: at com.novell.ldap.LDAPResponse.getResultException(Unknown Source) at com.novell.ldap.LDAPResponse.chkResultCode(Unknown Source) at com.novell.ldap.LDAPConnection.chkResultCode(Unknown Source) at com.novell.ldap.LDAPConnection.bind(Unknown Source) at com.novell.ldap.LDAPConnection.bind(Unknown Source) at com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.open(XWikiLDAPConnection.java:170) at com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.open(XWikiLDAPConnection.java:109) at com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticate(XWikiLDAPAuthServiceImpl.java:194) is there some debug feature i can turn on to get some more information? or some small test-class to verify the settings? it seems it uses the login name from the login form but then authentication fails. thanks a lot :) regards werner Thomas Mortagne schrieb: On Wed, Apr 30, 2008 at 11:55 AM, werner mueller [EMAIL PROTECTED] wrote: Hallo thanks for the reply. back to stupid questions: #-# LDAP login, empty = anonymous access, otherwise specify full dn #-# {0} is replaced with the username, {1} with the password #xwiki.authentication.ldap.bind_DN=cn={0},department=USER,o=MP #xwiki.authentication.ldap.bind_pass={1} {0} is the username from the login form in xwiki? {1} is the password from the login form in xwiki? Yes, you really write {0} and {1} in the configuration and it will be replaced at runtime by user/pass provided by user in the login form. or are these documentation placeholders to be filled in the config file directly? thanks :) regards werner Thomas Mortagne schrieb: On Tue, Apr 29, 2008 at 1:30 PM, werner mueller [EMAIL PROTECTED] wrote: Hallo thanks for the hints. i tried some other configurations but with no luck. it seems not every user is allowed to query the ldap structure. i have to use a special user/password to bind xwiki to the active directory. that user can login but thats not a solution. aloow everyone to query the ad is not an option for us. has anyone a working active directory config he or she could share? is it possible to trick xwiki to use a different user to bind to the AD and then use username/password from login to process the login? i've been doing similar things for bugzilla/ldap using LDAPbinddn = cn=LDAPQUERYUSERNAME,cn=Users,dc=domain,dc=com:LDAPQUERYPASSWORD Yes and it's the default way to work for LDAP authenticator. You can see in default xwiki.cfg : #-# LDAP login, empty = anonymous access, otherwise specify full dn #-# {0} is replaced with the username, {1} with the password #xwiki.authentication.ldap.bind_DN=cn={0},department=USER,department=INFORMATIK,department=1230,o=MP #xwiki.authentication.ldap.bind_pass={1} So in your case it would be : xwiki.authentication.ldap.bind_DN=cn={0},cn=Users,dc=domain,dc=com xwiki.authentication.ldap.bind_pass={1} btw: yes i am sure its version 1.3.2.9174. its the one copy pasted from xwiki. unless its not correct there but that would be weird. any hints or examples would be cool :) thanks a lot regards
Re: [xwiki-users] Max_allowed_packet (mySQL)
Jim Dowson wrote: In a client/server Xwiki/MySQL configuration, where are the appropriate locations to specify max_allowed_packet? (In attempting to import the XEM xar, I am getting an error indicating this may be the cause... The mysql server has the parameter set in /etc/my.cnf) Thanks in advance, http://dev.mysql.com/doc/refman/5.0/en/packet-too-large.html /etc/my.cnf is the right place to change this. -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users