Hi guys,
can anyone tell me, what this might be about when trying to loging via
Ldap on Active directory?
---snip--
java.lang.NullPointerException
at com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.authenticate(XWikiLDAPAuthServiceImpl.java:157
at com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.authenticate(MyFormAuthenticator.java:239)
at com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:165)
at com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:148)
at com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.checkAuth(XWikiAuthServiceImpl.java:203)
at com.xpn.xwiki.XWiki.checkAuth(XWiki.java:3578)
at com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkAccess(XWikiRightServiceImpl.java:139)
at com.xpn.xwiki.XWiki.checkAccess(XWiki.java:3586)
at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:4572)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:190)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
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.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.plugin.webdav.DavFilter.doFilter(DavFilter.java:68)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:287)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
--snap--
my ldap is configured as follows:
--snip--
xwiki.authentication.authclass=com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl
xwiki.authentication.ldap=1
xwiki.authentication.ldap.server=dc50546
xwiki.authentication.ldap.port=389
xwiki.authentication.ldap.base_DN=ou=benutzer,dc=ruv,dc=de
xwiki.authentication.ldap.bind_DN=benutzer\\{0}
xwiki.authentication.ldap.bind_pass={1}
xwiki.authentication.ldap.validate_password=0
xwiki.authentication.ldap.UID_attr=sAMAccountName
xwiki.authentication.ldap.password_field=userPassword
xwiki.authentication.ldap.fields_mapping=name=sAMAccountName,last_name=sn,first_name=givenName,fullname=displayName,mail=mail,ldap_dn=dn
xwiki.authentication.ldap.update_user=1
xwiki.authentication.ldap.mode_group_sync=always
xwiki.authentication.ldap.trylocal=0
xwiki.authentication.ldap.ssl=0
xwiki.authentication.ldap.ssl.keystore=
--snap--
Cheers and many thanx for suggestions in advance...
Sebastian
PS: the users to be authenticated are all able to bind to the AD, so I
figured the ldap configuration to be right so. Nethertheless this
NullPointerException comes up. I'm using XWiki 1.7 war in Apache
Tomcat 6.0.18 at the moment, as I think switching to Jboss later, once
this whole stuff works shouldn't be too hard.
I have a class in one of my spaces that has instances of itself attached. Eg.
MySpace
MySpace.TopicsClass
MySpace.TopicsClass[0]
MySpace.TopicsClass[1]
How can I get the class from the space? I've tried:
#set ($hql = ", BaseObject as obj where obj.name = doc.fullName and
obj.className = 'FranchiseTax.TopicsClass' and doc.space='FranchiseTax'")
#set($topics = $xwiki.searchDocuments($hql))
Topics comes back with one item, which I can see by displaying
$topics.get(0) and it prints out MySpace.TopicsClass. So it appears to have
returned a string name of the document, however when I try:
#set($topicObj = $xwiki.getDocument($topics.get(0)))
Nothing is set into $topicObj. Do I have to do something different if the
thing I am trying to get is a class and not a document? Once I have the
class how do I get the collection of associated objects?
Thanks!
.:. Kevin
--
View this message in context: http://n2.nabble.com/Get-class-from-space-and-retrieve-list-of-attached-obj…
Sent from the XWiki- Users mailing list archive at Nabble.com.
I have the following code stolen directly from the Blog Categories app:
$doc.getURL( Add New Topic
Is there an "objectdelete" action for getURL. This is probably in the code
but I don't have the sources and it's not in the API docs.
Thanks!
.:. Kevin
--
View this message in context: http://n2.nabble.com/Generate-Url-to-delete-attached-object..-tp2163415p216…
Sent from the XWiki- Users mailing list archive at Nabble.com.
I have the following code in one of my pages and it does what I am expecting
however I'd like to try and generalize it some.
#set ($hql = ", BaseObject as obj where obj.name = doc.fullName and
obj.className = 'CPA_FAQs.FAQClass' and doc.space='MySpace'")
#set($recentDocs = $xwiki.searchDocuments($hql, 5, 0))
#if($recentDocs.size() > 0)
<ol>
#foreach($entry in $recentDocs)
#set($faqDoc = $xwiki.getDocument('MySpace', $entry))
<li>[$faqDoc.question>$faqDoc.fullName]</li>
#end
</ol>
#else
#info($noFAQs)
#end
In this example is $entry an instance of com.xpn.xwiki.api.Object? If so, is
there a way to get the space from it without doing
$xwiki.getDocument('MySpace', $entry)? I would like to generalize that
statement so I can re-use the code for any documents in any space as opposed
to having to hard-code the space.
Thanks!
.:. Kevin
--
View this message in context: http://n2.nabble.com/Working-with-query-results...-tp2162883p2162883.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
I am using this query:
#set($hql = ", BaseObject as obj where obj.name=doc.fullName and
obj.className='Space1.MyClass' and
obj.name<>'${doc.space}.${class}ClassTemplate' and doc.space='MySpace'")
to return a list of documents from a different space and I am trying to now
create a view link to the document. I have tried several combinations using
getUrl() but nothing seems to work. Here's some of the code I've tried:
<ol>
#foreach($faq in $recentlyCreated)
#set($doc = $xwiki.getDocument('FranchiseTax', $faq))
<li>[$doc.question>$doc.getUrl("view")]</li>
#end
</ol>
What am I missing?
Thanks in Advance!
.:. Kevin
--
View this message in context: http://n2.nabble.com/Linking-to-documents-in-different-spaces-tp2156815p215…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi again,
If I create a class similar to the one in the FAQ tutorial but add one or
more new properties to define a space and category could I use this class
and associated design sheet and template to create FAQ documents for more
than one space?
Is it possible to programatically determine what space a document should be
created in when it is saved?
Are there any simple examples of how something like this would be done? I've
gone through just about every piece of documentation but the development
process is still unclear.
Thanks!
.:. Kevin
--
View this message in context: http://n2.nabble.com/Using-one-Class-and-Template-for-creating-documents-in…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi guys,
I'm very enthusiastic about getting everything out of the XWiki
environment I'm about to set up for my company. As a matter of fact,
right now I'm thinking about the best solution for getting Kerberos
authentication/authorization to work as all 12000 employees are
already part of the company's Active Directory.
I've read the XWiki article about Auth issues and am now thinking
about what would be the best/easiest/strongest solution.
The solution mentioned in the Wiki wants to use Apache Webserver mit
mod_auth_kerb. As for now, I did not succeed in building a working
mod_auth_kerb module for Win32, which somehow disencourages me to
follow this suggestion. Anyway I wonder, whether I would only be able
to authenticate users or whether there would be a way to have XWikis
builtin auth features cooperate with the Kerberos mechanism. The I
just came across "josso" which seems to a framework which can be
deployed into a JBoss Application Server and work as an authentication
gateway to any josso-enabled applications running on JBoss. Is XWiki
capable of doing this? And the question about XWikis auth mechanism
from before remains. Any other suggestions and hints for such are
scenario from you guys are highly appreciated , since the whole
AD/Kerberos/JBoss stuff is rather new to me. Again, many thanx in
advance for any potential reply on this, it's really important to me.
Cheers,
Sebastian
Hi xwiki-users,
I'm trying to create a plugin to dynamically create a download link for a SH
or BAT file, and am wondering if I could get some ideas from people on the
list. What I'm trying to do is the following:
{{shell-script name="fixed_income.sh" display="true" type="sh"}}
#!/bin/sh
# Startup the bond server
${APP_DIR}/fi/ust/bond_server -conf=fi_ust_prod.xml&
# Startup the pricing server
${APP_DIR}/fi/ust/pricing_server -conf=fi_ust_prod.xml -region=ny&
# Startup the risk analysis tool
${APP_DIR}/fi/ust/risk_analysis -days=365&
{{/shell-script}}
I don't want the server to actually "execute" this (that's easy to do), but
rather to dynamically create an output stream and pipe it to the user's
browser. The user will then be able to save the fixed_income.sh file in
his/her own local directory to execute it.
I know this can be easily done with attachments, but I want to be able to
display the contents of this file on the wiki (possibly in a <div> that's
initially hidden), and also be able to edit this file "on the fly" without
having to create locally/save locally/upload every time (kind of like a
temporary attachment which disappears together with the {{shell-script /}}
tag). I could also just create another servlet that takes in a single
base64 encoded parameter to reconstruct the shell script, but that's not a
clean solution imho. Any other way (perhaps via Javascript) of doing this
cleanly within Xwiki space? Thanks in advance (and also for another
successful release :-D)!
Hi folks, i've heard that in xwiki 1.7 it is possible to link to headlines
in other xwiki documents. is this
information correct?
i am trying to figure this out. the only way i found, is to manually attach
an anchor to a headline and append this
"#<anchorname>" at the end of the link to the file.
is there any change in 1.7 of an comfortable way to do this?
in the doc i found this: "anchor: An optional anchor name pointing to an
anchor defined in the referenced link. Note
that in XWiki anchors are automatically created for titles. Example:
"TableOfContentAnchor"."
unfortunately there are no anchors automatically created for titels (btw toc
isn't working, is this a hint what causes
this?) I use a fresh new xwiki war deployed to a tomcat (using an old xwiki
database 1.1.2.5797 with mysql)
best regards