Login

mvnForum

mvnForum Homepage Welcome Guest
  Search  
  Index  | Recent Threads  | Unanswered Threads  | List Polls  | Public Albums  | Who's Online  | Help


Quick Go »


No member browsing this thread
Thread Status: Active
Total posts in this thread: 4
Post new Thread
Author
Previous Thread This topic has been viewed 1217 times and has 3 replies Next Thread
Male vmax
Stranger




Joined: Jul 20, 2004
Post Count: 3
Status: Offline
Reply to this Post  Reply with Quote 
Remote authentication bugs MULTIPLE!

1.
The problem is because method
MyUtil.ensureCorrectCurrentPassword(...)
is called from many places in web handlers.
no check for authentication type and that authentication is configured passwordless.
With remote/realm passwordless authentication current password verification MUST be done via calling verify
method in Authenticator (or bypassed)
but not against password stored in forum table!

Following suggested inplementation of remote authenticator
I create copy of user with forum profile but I can't copy there
user password because site/realm password can be changed
later in realm and I wouldn't have chance to update it in forum table synchronously.

2. with realm and remote authentication login and logout operate
wrong... This forum actions MUST be disabled in this cases.
Let's say I do login with realm as "Dummy" then do logout in FORUM and do forum login as other user "vano"...
Well now in realm I'm still logged in as "dummy" but in forum I'm "vano"... really cool confusing

My suggestion is completely separate authentication
(name/password) from member profile.
and use Authenticator (default or custom implementation) for any password validations and logins...
----------------------------------------
[Edit 1 times, last edit by vmax at Jul 21, 2004 7:27:04 AM]
[Jul 21, 2004 7:12:27 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male minhnn
mvnForum Developer
Member's Avatar

Vietnam
Joined: Oct 16, 2002
Post Count: 2956
Status: Offline
Reply to this Post  Reply with Quote 
Re: Remote authentication bugs MULTIPLE!

Thanks, I noted to address these issues in the next RC4
----------------------------------------
Minh Nguyen
mvnForum Developer
Want a free, open source Java Jsp/Servlet forum, get mvnForum at http://www.mvnForum.com

http://www.DienDanLinux.org
[Oct 10, 2004 11:28:19 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest    http://www.MyVietnam.net    minhnn_mvn [Link] Report threatening or abusive post: please login first  Go to top 
Male minhnn
mvnForum Developer
Member's Avatar

Vietnam
Joined: Oct 16, 2002
Post Count: 2956
Status: Offline
Reply to this Post  Reply with Quote 
Re: Remote authentication bugs MULTIPLE!

1.
The problem is because method
MyUtil.ensureCorrectCurrentPassword(...)
is called from many places in web handlers.
no check for authentication type and that authentication is configured passwordless.
With remote/realm passwordless authentication current password verification MUST be done via calling verify
method in Authenticator (or bypassed)
but not against password stored in forum table!

I fixed it in the RC4_dev today, thanks for report this issue.
2. with realm and remote authentication login and logout operate
wrong... This forum actions MUST be disabled in this cases.
Let's say I do login with realm as "Dummy" then do logout in FORUM and do forum login as other user "vano"...
Well now in realm I'm still logged in as "dummy" but in forum I'm "vano"... really cool confusing

In RC4, you can disable login in the forum and mvnForum will only authenticate via Realm or Authenticator

ps: you can implement detailed authentication of mvnForum by implement interface OnlineUserFactory
----------------------------------------
Minh Nguyen
mvnForum Developer
Want a free, open source Java Jsp/Servlet forum, get mvnForum at http://www.mvnForum.com

http://www.DienDanLinux.org
[Dec 24, 2004 3:03:14 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest    http://www.MyVietnam.net    minhnn_mvn [Link] Report threatening or abusive post: please login first  Go to top 
Male minhnn
mvnForum Developer
Member's Avatar

Vietnam
Joined: Oct 16, 2002
Post Count: 2956
Status: Offline
Reply to this Post  Reply with Quote 
Re: Remote authentication bugs MULTIPLE!

1.
The problem is because method
MyUtil.ensureCorrectCurrentPassword(...)
is called from many places in web handlers.
no check for authentication type and that authentication is configured passwordless.
With remote/realm passwordless authentication current password verification MUST be done via calling verify
method in Authenticator (or bypassed)
but not against password stored in forum table!

For your information, this suggestion has been supported in mvnForum since version 1.0.2 GA
----------------------------------------
Minh Nguyen
mvnForum Developer
Want a free, open source Java Jsp/Servlet forum, get mvnForum at http://www.mvnForum.com

http://www.DienDanLinux.org
[Jun 9, 2008 6:43:46 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest    http://www.MyVietnam.net    minhnn_mvn [Link] Report threatening or abusive post: please login first  Go to top 
Show Printable Version of Thread  Post new Thread