[xwiki-users] Unable to use LDAP with Active Directory in XWiki

2009-07-06 Thread Regan Gill
Hi All,

 

This problem has been driving me crazy for several days. I have XWiki
running in Tomcat and it works fine, but I am trying to get LDAP
authentication implemented and am unable to get past this current issue.
I have looked at all the past issues mentioned on this group and
searched the internet, but none of the cases seem to be related to mine.
I am able to use LDAP with Apache httpd from my machine against our AD
Server, but unable to get XWiki (in Tomcat) to do the same. I have tried
different versions of XWiki 1.9.2 and 2.0, followed the instructions
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication#HLDAP
ConfigurationforActiveDirectory, and am able to bind and find the user
uid, but then it fails on the password authentication.

 

This is the problem -- XWiki appears to find the user in the directory
then fails on the userPassword attribute:

 

2009-07-06 16:00:34,812
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPUtils - Searching for the
user in LDAP: user:rgill base:dc=AcceptSoftware,dc=local
query:(sAMAccountName=rgill) uid:sAMAccountName 

2009-07-06 16:00:34,812
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection- LDAP search:
baseDN=[dc=AcceptSoftware,dc=local] query=[(sAMAccountName=rgill)]
attr=[[sAMAccountName, sn, givenName, displayName, mail, dn]]
ldapScope=[2] 

2009-07-06 16:00:34,859
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection-   - values for
attribute "displayName" 

2009-07-06 16:00:34,859
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection- |- [Regan
Gill] 

2009-07-06 16:00:34,859
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection-   - values for
attribute "givenName" 

2009-07-06 16:00:34,859
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection- |- [Regan] 

2009-07-06 16:00:34,859
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection-   - values for
attribute "sn" 

2009-07-06 16:00:34,859
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection- |- [Gill] 

2009-07-06 16:00:34,859
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection-   - values for
attribute "mail" 

2009-07-06 16:00:34,859
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection- |-
[rg...@acceptsoftware.com] 

2009-07-06 16:00:34,859
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection-   - values for
attribute "sAMAccountName" 

2009-07-06 16:00:34,859
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection- |- [rgill] 

2009-07-06 16:00:34,875
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection- LDAP search found
attributes: [{name=dn value=CN=Regan
Gill,OU=Users,OU=Fremont,OU=ASC,DC=AcceptSoftware,DC=local},
{name=displayName value=Regan Gill}, {name=givenName value=Regan},
{name=sn value=Gill}, {name=mail value=rg...@acceptsoftware.com},
{name=sAMAccountName value=rgill}] 

2009-07-06 16:00:34,875
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection- Unable to verify
password because userPassword attribute not found. 

LDAPException: No Such Attribute (16) No Such Attribute

LDAPException: Server Message: 2080: AtrErr: DSID-03080139, #1:

0: 2080: DSID-03080139, problem 1001
(NO_ATTRIBUTE_OR_VAL), data 0, Att 23 (userPassword)

 

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.compare(Unknown
Source)

at com.novell.ldap.LDAPConnection.compare(Unknown
Source)

at
com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.checkPassword(XWikiLDAPCon
nection.java:251)

at
com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticateIn
Context(XWikiLDAPAuthServiceImpl.java:398)

 

The error message in red is exactly what the AD server sends back when
the request is made so I know its coming from the AD server itself.

 

However when I using Apache, it authenticates using the same
information:

 

[Mon Jul 06 16:05:56 2009] [debug] mod_authnz_ldap.c(474): [cli

[xwiki-users] Add user to a group button missing

2009-07-06 Thread Ajdin Brandic
Just updated * XWiki.XWikiGroupSheet
(xwiki-enterprise-wiki-2.0-milestone-1.xar) an got page listing feature
but lost Add User To a group button?

Any ideas?
 
 


NOTICE

This message and any files transmitted with it is intended for the addressee 
only and may contain information that is confidential or privileged. 
Unauthorised use is strictly prohibited. If you are not the addressee, you 
should not read, copy, disclose or otherwise use this message, except for the 
purpose of delivery to the addressee. 

Any views or opinions expressed within this e-mail are those of the author and 
do not necessarily represent those of Coventry University.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Crippled russian l10n.

2009-07-06 Thread Николаев Дмитрий
Hello everybody. I've set up Xwiki 1.9.21179 on Ubuntu 8.04, configured 
it to use Russian localisation (language: ru, default language: ru). But 
signs on many buttons are not shown. For example, the "rollback" button 
in history disappeared. When I switch back to English
all signs appear again.

What log files do I need to examine to figure out the problem? Thanks in 
advance.
Dmitry
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] CAPTCHA for comments and registration

2009-07-06 Thread maxelcat

PLEASE HELP - REALLY STUCK

I am trying to get a captcha field to verify

I have (I think) fully carried out step 1 from Sachin's reply in the file
registerinline.vm in my xwiki. The captcha field appears with an input box.

I now want to add part 2 - but I can't work out where to put the code (is it
in the same vm file, and if not which one?). Sachin says "For Validation in
the vm file that is called from "verifyCaptcha" action
add the following:" - but I can't work out which vm file to put it in.




Sachin Mittal wrote:
> 
> Following is needed to get the Captcha working on say user registration
> page:
> 1. For display
> inside the form that submits the user registration information add the
> following:
> 
> ...
> ## declare the plugin
> #set($captchaPlugin = $xwiki.jcaptcha)
> #if ($captchaPlugin)
> ##call the displayCaptcha pass the class name as "register_captcha" which
> should map to the css classname to render the image
> ##pass the name as edit
> ##and under
> http://:/xwiki/bin/edit/XWiki/XWikiPreferences?editor=object&
> ##under XWiki.XWikiPreferences[0]: XWiki.DefaultSkin select the values for
> Anonymous: and Registered: as image or text
>   $captchaPlugin.displayCaptcha("edit","register_captcha")
> #end
> 
> ...
> 
> 
> 2. For Validation in the vm file that is called from "verifyCaptcha"
> action
> add the following:
> ## declare the plugin
> #set($captchaPlugin = $xwiki.jcaptcha)
> #if ($captchaPlugin)
> ##call the verifyCaptcha 
>   #if($captchaPlugin.verifyCaptcha("edit"))
> ##register the user
> #$xwiki.createUser(false)
>   #else
> ##display some error
> #error("$msg.get('core.register.registerFailed', [$reg])")
>#end
> #end
> 
> 
> *note: by default in register use the RegisterAction is called which by
> default does not verify captcha. However same is done in other actions
> like PreviewAction,CommentAddAction and SaveAction.
> 
> Again all this may not be easy for users of xwiki as to add Captcha to
> registration page progmaing knowledge is required.
> 
> Thanks
> Sachin
> 
> 



-- 
View this message in context: 
http://n2.nabble.com/CAPTCHA-for-comments-and-registration-tp507976p3212461.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] Hello - I'm new to XWiki

2009-07-06 Thread MAI QUOC, Phuong-Tram
Thank you very much
These clues will help me a lot 



-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of 
Anca Paula Luca
Sent: Friday, July 03, 2009 11:03 AM
To: XWiki Users
Subject: Re: [xwiki-users] Hello - I'm new to XWiki

MAI QUOC, Phuong-Tram wrote:
> Hello, i'm new to XWiki
> 
> I am more used to MediaWiki, thanks to Wikipedia and i was looking for two 
> features from MediaWiki :
> 
> - the Category thing : the ability to filter pages by category. Maybe Xwiki 
> does have this functionnality but i have search macro and snippets and FAQs 
> but i can't find how Xwiki named this functionnality.

XWiki allows grouping documents in "spaces", some sort of directories for the 
docs, for simple, one-level categories.

Also, you can attach tags to documents (see the information tab at the bottom 
of 
a document) which you can use for filtering afterwards (checkout the tag cloud 
on the main page of your wiki /xwiki/bin/view/Main/WebHome).

> 
> - the Modele thing : I would like to create several pages on a same modele : 
> like zoologic classification record : all pages should use the same template 
> : name, nature, classification, sub classification etc… Is it possible to 
> create a canvas with XWiki (maybe a page) and include the page with 
> parameters so, once opened, the page will have all the fields fill by the 
> parameters ?
> 

For the model, you can define classes (types) and instances of the types 
(objects) in documents, as well as templates to create documents of these types 
and sheets to configure how these types are displayed.

Checkout the FAQ and TODO application tutorials here: 
http://platform.xwiki.org/xwiki/bin/view/DevGuide/Tutorials . Be warned that 
they are slightly outdated, since changes happened in the mean time (for 
example, they use xwiki/1.0 syntax documents although in the current version 
the 
default is 2.0). But the model and the concepts are the same.

Happy hacking,
Anca

>  
> 
>  
> 
> Cordialement
> 
> Best Regards
> 
>  
> 
> MAI Phương Trâm
> 
> Nouvelles Frontières Informatique
> 
> =
> 
> NOUVELLES FRONTIERES
> 
> 74, rue de Lagny
> 
> API 4A10
> 
> 93107 MONTREUIL CEDEX
> 
> +33(0)1 48 51 81 21
> 
>  
> 
> ___
> 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