• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Ntlm authentication

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have been using this good software from 1 month. I am trying to integrate this with some other web apps done in j2ee. In our, intranet we are using ntlm authentication for all web apps. Problem is I have to authenticate 2 times, one for my application and one for jforum. I want to have only 1 ntlm authentication. How can I use NTLM in jforum?.

Thank you
durga prasad
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Take a look here:

http://www.jforum.net/confluence/display/sso/Home

I don't have any experiencie with NTLM, though. However, you are very welcome to share with us your process, and maybe even document it in the Wiki, to have it registered for future users

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Rafael,
Actually I dont need NTLM authentication [My Boss told me later]. What I have to do is authenticate it with our corporate accounts.

I have done it myself. I have used jcifs and could do the authentication, if that user is not there in our JForum, I am creating a user on the fly and letting him proceed further.

I am willing to share that part of code [maybe others will be benifited].

I am attaching those files.

1) I have added NTLMLoginAuthenticator.java in src\net\jforum\drivers\external
2) I have modified configuration to use this authenticator
3) I used jcifs.jar
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey,

I have tried to click attach files button.. but I am not getting upload dialog.

So, I will paste the code of NTLMLoginAuthenticator.java here..

package net.jforum.drivers.external;


once after you have put above code in src\net\jforum\drivers\external
replace
"login.authenticator = net.jforum.drivers.external.DefaultLoginAuthenticator" with
"login.authenticator = net.jforum.drivers.external.NTLMLoginAuthenticator"
in SystemGlobals.properties

you can download jcifs.jar from net.

Thank you
Durga Prasad
[originally posted on jforum.net by durgaprasad_j]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Has anyone updated this code for the latest version?

Has anyone implemented NTLM authentication into the most recent stuff? Are there any guidelines I can read on it? I would greatly appreciate it..


My scenario is that I need to provide internal users with a forum for the application I develop for my employer.

The key is, I need to get the users from the Windows domain...
Ideally--anyone w/ a valid NT credentials would be allowed in as a general user ... but if there has to be an intermediate step for user creation, I can work with that as well.

Dave

[originally posted on jforum.net by xiarcel]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Using SSO and NTLM:

After a long time of trying, i got it. It's pretty easy and i want to show it to you, so everyone, who wants to implement NTLM and SSO in JForum, does not have to spend so much time like i did...

At first you have to install your JForum. Then you only have to change two things:

1. in the SystemGlobals.properties (../webapps/YOUR_FORUM_NAME/WEB-INF/config/ ):

in line 329 activate Single Sign-On:
authentication.type = sso

2. in the web.xml (../webapps/YOUR_FORUM_NAME/WEB-INF/ ):

put the NTLM-Filter before the first <servlet> - tag. The NTLM-filter looks like this:



� YOURDOMAINNAME = NTLM domain name (for example the name of your company)
� 1.2.3.4 = IP-Adresse des WINS Servers
(ipconfig/all -> findet alle IP-Adressen des WINS Servers)


At last, DO NOT FORGET to put the JCIFS.jar into the library (../webapps/YOUR_FORUM_NAME/WEB-INF/lib/ ).
The JCIFS is necessary for the NTLM Authentication. Please note: you have to use this Version: jcifs-1.2.25.jar
The newer versions throw exceptions in jforum, because they try to use NTLMv2, but in jforum runs only NTLMv1.

Here you get JCIFS: http://jcifs.samba.org/src/


That's it. Please note: you don't need the NTLMLoginAuthenticator if you use the sso.

Enjoy it..

David
[originally posted on jforum.net by david]
 
get schwifty. tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic