Bug 46123 - HTTP Authentication - store username & password
HTTP Authentication - store username & password
Status: NEW
Product: serverplugins
Classification: Unclassified
Component: Infrastructure
4.x
Sun All
: P2 (vote)
: TBD
Assigned To: Petr Hejl
issues@serverplugins
:
: 71778 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-07-14 11:03 UTC by Petr Blaha
Modified: 2007-09-17 20:30 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Blaha 2004-07-14 11:03:34 UTC
Build 20040713
Steps:
1) change ide password in Tomcat's properties panel
2) restart NB and start Tomcat
3) Tomcat Manager Application dialog box is
appeared. I type ide and correct ide password.
Server starting.
4) Restart NB and then start Tomcat. The admin's
password dialog is appeared again
Comment 1 Sherold Dev 2004-07-20 13:02:28 UTC
When Tomcat module tries to make an HttpURLConnection to Tomcat
Manager web application, it tries to pass username and password as a
request property during connection opening. If the username or
password is incorrect, Java transparently calls the default
Authenticator (which is org.netbeans.core.NbAuthenticator) to obtain
authentication for this network connection. There is currently however
no way how to obtain supplied u/p from the NbAuthenticator.
Comment 2 Sherold Dev 2004-07-20 13:20:50 UTC
add

Therefore username & password cannot be saved and after restarting NB
and starting Tomcat, authentication dialog is displayed again.
Comment 3 Marek Fukala 2004-07-20 15:36:19 UTC
Thank you for your intimate investigation. Please add a link to the
enhancement filled agains core module concerning the possibility to
obtain the entered u/p from the NbAuthenticator. 

As wee agreed I propose to modify the tomcat-users.xml file
appropriately when an user changes the username or the password via
tomcat instance properties editor. So the next attempt to connect to
the tomcat's manager will containt right u&p and the annoying dialog
won't appear.
Comment 4 Sherold Dev 2004-07-22 14:04:24 UTC
Here is the link to that issue in core: issue 46331.

The final agreement is that changes made in username and password in
the properties editor will not be reflected in tomcat-users.xml file.
The only reason why user should be interested in changing those values
is when he would manually change his tomcat-users.xml file or when he
would been using another method (Realm) for authentication to the
Tomcat Manager application.

What still needs to be changed is when an authentication dialog
appears entered values should be stored.
Comment 5 zikmund 2005-05-12 14:30:37 UTC
It should be implemented ASAP - 4.2?
Comment 6 Sherold Dev 2005-06-02 15:16:40 UTC
Moving to j2eeserver.

The current suggestion how to solve the Authenticator issue is to create a proxy
Authenticator in the j2eeserver, which would delegate authentication of server
request to plugins and would use a general authenticator for other requests.
Comment 7 Sherold Dev 2005-08-24 14:15:08 UTC
removing 4.2-candidate status whiteboard, we can't make it into 4.2
Comment 8 Sherold Dev 2006-01-25 15:59:53 UTC
*** Issue 71778 has been marked as a duplicate of this issue. ***
Comment 9 Jiri Prox 2007-09-17 20:30:55 UTC
Obsolete milestone, please reevaluate


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo