Hi, I found a solution to the problem :-)
Downloade the source code for jCIFS go to the src\jcifs\smb directory and
change the NtlmPasswordAuthentication.java file as follows:
public String getName() {
boolean d = domain.length() > 0 && domain.equals( "?" ) == false;
return d ? domain + "\\" + username : username;
}
should be changed to
public String getName() {
boolean d = domain.length() > 0 && domain.equals( "?" ) == false;
return username;
}
now the domain is now longer added to the username, and you can change the
editor preferences in JSPWiki.
The code just needs to be recompiled...
Regards, Jens
----- Videresendt af Jens Borch Christiansen - T173344/SparNord den
03-03-2008 11:35 -----
Jens Borch Christiansen - T173344/SparNord
IT-Afdelingen
Lokaltlf.: 44376
28-02-2008 12:28
Til
[email protected]
cc
Emne
RE: NTLM Authentication and User Preferences
I tried to add to following the EditContent.jsp:
<div id="editorbar">
Editor:
<select onchange="location.href=this.value">
<wiki:EditorIterator id="editor">
<option <%=editor.isSelected()%>
value="<%=editor.getURL()%>"><%=editor.getName()%></option>
</wiki:EditorIterator>
</select>
</div>
This seems to create the links I want e.g.
http://xxxx:8080/wiki/Edit.jsp?page=Main&editor=FCK, but I still only gets
the plain editor. Shouldn't the <wiki:Editor /> tag give me the right
editor, or have I misunderstood how thing work?
Regards
Jens B. Christiansen
"Christophe Dupriez" <[EMAIL PROTECTED]>
28-02-2008 09:41
Besvar venligst til
[email protected]
Til
"[email protected]" <[email protected]>
cc
Emne
RE: NTLM Authentication and User Preferences
I have the same problem here... BUT my network manager wants me to leave
NTLM for Kerberos (more current standard Microsoft security schema).
I will let you know if it tougher or easier than NTLM+LDAP (which was
rather easy except for the problem you mention) at the end...
Christophe
-----Original Message-----
From: Eric Ladner [mailto:[EMAIL PROTECTED]
Sent: jeudi 28 février 2008 3:49
To: [email protected]
Subject: Re: NTLM Authentication and User Preferences
That's weird. I get a domain\username form that causes problems with
the Profile as well, but with an illegal character reference.
On Wed, Feb 27, 2008 at 3:38 PM, <[EMAIL PROTECTED]> wrote:
> Hi...
>
> I have set up JSPWiki 2.6.1 using NTLM Authentication (
> http://www.jspwiki.org/wiki/NTLMAuthentication) on Tomcat 5.5 and using
> JDK 1.4. Most of the functionality of JSPWiki seems to work, but I have
a
> problem with "User Preferences".
>
> I would like user to e.g. be able to chose there favorite editor (plan,
> wikiwizard or FCK), but when I save the preferences nothing happens. I
get
> the following in my log:
>
> INFO SecurityLog SASWiki:/wiki/Wiki.jsp
> SASWiki:http://xxxx:8080/wiki/Wiki.jsp -
> WikiSecurityEvent.LOGIN_AUTHENTICATED
> [EMAIL PROTECTED],
> princpal=jcifs.smb.NtlmPasswordAuthentication domain\xxxx,
> [EMAIL PROTECTED]
>
> WARN com.ecyrd.jspwiki.WikiSession SASWiki:/wiki/Wiki.jsp
> SASWiki:http://xxxx:8080/wiki/Wiki.jsp - User profile 'domain\xxxx' not
> found. This is normal for container-auth users who haven't set up a
> profile yet.
>
> INFO JSPWiki SASWiki:/wiki/UserPreferences.jsp
> SASWiki:http://xxxx:8080/wiki/UserPreferences.jsp - Redirecting user to
> http://xxxx:8080/wiki/Wiki.jsp?page=Main
>
> It should be noted, that I get a user name on the form
"domain/user-name"
> when using NTLM authentication. I don't know if this can be the source
of
> the problem.
>
> I have tried to manually add users to userdatabase.xml, but this
doesn't
> seem to resolve the problem.
>
> A workaround would could be to added an editor chooser drop down to the
> page editor, but I am not sure how to do that.
>
> Any help is appreciated.
>
> Regards
>
> Jens B. Christiansen
>
--
Eric Ladner
RE:
_____________________
Spar Nord Bank A/S
Postboks 162
9100 Aalborg
CVR nr. 13737584