incubator-jspwiki-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: NTLM Authentication and User Preferences
Date Mon, 03 Mar 2008 10:45:41 GMT
Hi, I found a solution to the problem :-)

Downloade the source code for jCIFS go to the src\jcifs\smb  directory and 
change the 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
Lokaltlf.: 44376 
28-02-2008 12:28


RE: NTLM Authentication and User Preferences

I tried to add to following the EditContent.jsp:

  <div id="editorbar"> 
    <select onchange="location.href=this.value">
      <wiki:EditorIterator id="editor">
        <option <%=editor.isSelected()%> 

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?


Jens B. Christiansen 

"Christophe Dupriez" <>

28-02-2008 09:41
Besvar venligst til

"" <>

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...


-----Original Message-----
From: Eric Ladner [] 
Sent: jeudi 28 février 2008 3:49
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,  <> wrote:
> Hi...
>  I have set up JSPWiki 2.6.1 using NTLM Authentication (
> on Tomcat 5.5 and using
>  JDK 1.4. Most of the functionality of JSPWiki seems to work, but I have 
>  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 
>  the following in my log:
>  INFO SecurityLog SASWiki:/wiki/Wiki.jsp
>  SASWiki:http://xxxx:8080/wiki/Wiki.jsp -
>  [source=com.ecyrd.jspwiki.auth.AuthenticationManager@5bf624,
>  princpal=jcifs.smb.NtlmPasswordAuthentication domain\xxxx,
>  target=com.ecyrd.jspwiki.WikiSession@1da87db]
>  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 
>  when using NTLM authentication. I don't know if this can be the source 
>  the problem.
>  I have tried to manually add users to userdatabase.xml, but this 
>  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


Spar Nord Bank A/S
Postboks 162
9100 Aalborg
CVR nr. 13737584
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message