RE: Help! I am so stuck. Tomcat NT credential
Hi all, Thanks for all of your help. I did a test by taking the administrators group off the allowed NT credential list on my JSP folder. It stops working. Put it back in, it works. So, Tomcat must be using that credential to load JSPs. My question now is that how can we direct Tomcat to use the credential of the person who logged in. Also, do you guys know what the values of the auth-method element (FORM, BASIC, ...) in the web.xml means? I read the dtd and digged for documentation but nothing came up. Thanks very much. Bao-Ha Dam Bui [EMAIL PROTECTED] S. Jude Medical, Inc 651.765.1018 -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 06, 2002 12:09 PM To: Tomcat Users List Subject: RE: Help! I am so stuck. Tomcat NT credential Hi, It's possible to understand your question in two different ways, so I answer in two different ways. First answer : If you are running tomcat as a service you should be able to see which user it is that runs it (from the services dialog). If you are not running it as service it is using the nt user that starts it. Second answer : I dont know if there is any NT-authentication realm with tomcat, but still, it's always possible to implement one, by implementing the interface org.apache.catalina.realm.RealmBase. I guess I would use JAAS to access the user-accounts in NT. http://java.sun.com/j2se/1.4/docs/guide/security/jaas/tutorials/index.html If you are using ADSI-userbase (or Exchange 5.5 or newer) you might want to check out JNDI access over LDAP to ADSI. In that context you might want to take a look at JNDIRealm. I suggest you read http://jakarta.apache.org/tomcat/tomcat-4.0-doc/realm-howto.html hope it helps -reynir -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 6. júní 2002 16:49 To: [EMAIL PROTECTED] Subject: Help! I am so stuck. Tomcat NT credential Hi all, When Tomcat is installed on W2K, what NT Security Role does it use to access files? How can I tell Tomcat4 to use NT Security? Thanks very much. Bao-Ha Dam Bui [EMAIL PROTECTED] S. Jude Medical, Inc 651.765.1018 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Help! I am so stuck. Tomcat NT credential
Hi all, When Tomcat is installed on W2K, what NT Security Role does it use to access files? How can I tell Tomcat4 to use NT Security? Thanks very much. Bao-Ha Dam Bui [EMAIL PROTECTED] S. Jude Medical, Inc 651.765.1018
RE: Help! I am so stuck. Tomcat NT credential
You can either use the tomcat-users.xml file to define users, passwords and roles (located in the conf folder in the root of Tomcat), or use a realm to authenticate to a database, either way there is really good documentation on it at the jakarta tomcat site, it took me about 15 min to have an authentication set up against an Access database, really straightforward... http://jakarta.apache.org/tomcat/tomcat-4.0-doc/realm-howto.html Geoff Geoff Peters, BScFE, AIT Phone : (441) 296-9640 Applications DeveloperFax: (441) 292-1509 Logic Communications E-mail : [EMAIL PROTECTED] 12 Par-La-Ville Road WWW: http://www.logic.bm Hamilton, Bermuda HM JX -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: June 6, 2002 1:49 PM To: [EMAIL PROTECTED] Subject: Help! I am so stuck. Tomcat NT credential Hi all, When Tomcat is installed on W2K, what NT Security Role does it use to access files? How can I tell Tomcat4 to use NT Security? Thanks very much. Bao-Ha Dam Bui [EMAIL PROTECTED] S. Jude Medical, Inc 651.765.1018 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help! I am so stuck. Tomcat NT credential
Hi, Thanks for responding so quickly. How about using NT User Group to authenticate access to JSP files inside a secured directory? (I will read the paper now but I thought I should ask.) Thanks again. Bao-Ha Dam Bui [EMAIL PROTECTED] S. Jude Medical, Inc 651.765.1018 -Original Message- From: Geoff Peters [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 06, 2002 11:46 AM To: Tomcat Users List Subject: RE: Help! I am so stuck. Tomcat NT credential You can either use the tomcat-users.xml file to define users, passwords and roles (located in the conf folder in the root of Tomcat), or use a realm to authenticate to a database, either way there is really good documentation on it at the jakarta tomcat site, it took me about 15 min to have an authentication set up against an Access database, really straightforward... http://jakarta.apache.org/tomcat/tomcat-4.0-doc/realm-howto.html Geoff Geoff Peters, BScFE, AIT Phone : (441) 296-9640 Applications DeveloperFax: (441) 292-1509 Logic Communications E-mail : [EMAIL PROTECTED] 12 Par-La-Ville Road WWW: http://www.logic.bm Hamilton, Bermuda HM JX -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: June 6, 2002 1:49 PM To: [EMAIL PROTECTED] Subject: Help! I am so stuck. Tomcat NT credential Hi all, When Tomcat is installed on W2K, what NT Security Role does it use to access files? How can I tell Tomcat4 to use NT Security? Thanks very much. Bao-Ha Dam Bui [EMAIL PROTECTED] S. Jude Medical, Inc 651.765.1018 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help! I am so stuck. Tomcat NT credential
Not sure (haven't done it) - but that sounds like standard folder security issue, just set up a user or user group with the User Manager in windows, and change folder permissions on the server, but as far as making NT security mesh with Tomcat, I am unfamiliar with that - Tomcat uses the windows authentication in its own way (to authenticate against the tomcat-users.xml or the database defined in the realm), but integrating it with folder permissions - maybe someone else has done this? Geoff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: June 6, 2002 1:56 PM To: [EMAIL PROTECTED] Subject: RE: Help! I am so stuck. Tomcat NT credential Hi, Thanks for responding so quickly. How about using NT User Group to authenticate access to JSP files inside a secured directory? (I will read the paper now but I thought I should ask.) Thanks again. Bao-Ha Dam Bui [EMAIL PROTECTED] S. Jude Medical, Inc 651.765.1018 -Original Message- From: Geoff Peters [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 06, 2002 11:46 AM To: Tomcat Users List Subject: RE: Help! I am so stuck. Tomcat NT credential You can either use the tomcat-users.xml file to define users, passwords and roles (located in the conf folder in the root of Tomcat), or use a realm to authenticate to a database, either way there is really good documentation on it at the jakarta tomcat site, it took me about 15 min to have an authentication set up against an Access database, really straightforward... http://jakarta.apache.org/tomcat/tomcat-4.0-doc/realm-howto.html Geoff Geoff Peters, BScFE, AIT Phone : (441) 296-9640 Applications DeveloperFax: (441) 292-1509 Logic Communications E-mail : [EMAIL PROTECTED] 12 Par-La-Ville Road WWW: http://www.logic.bm Hamilton, Bermuda HM JX -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: June 6, 2002 1:49 PM To: [EMAIL PROTECTED] Subject: Help! I am so stuck. Tomcat NT credential Hi all, When Tomcat is installed on W2K, what NT Security Role does it use to access files? How can I tell Tomcat4 to use NT Security? Thanks very much. Bao-Ha Dam Bui [EMAIL PROTECTED] S. Jude Medical, Inc 651.765.1018 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help! I am so stuck. Tomcat NT credential
I think you most likely will need a COM-Java bridge. For example: http://www.linar.com/jintegra/doc/jsp2com/ [EMAIL PROTECTED] To: [EMAIL PROTECTED] 06/06/2002 11:56 cc: AM Subject: RE: Help! I am so stuck. Tomcat NT credential Please respond to Tomcat Users List Hi, Thanks for responding so quickly. How about using NT User Group to authenticate access to JSP files inside a secured directory? (I will read the paper now but I thought I should ask.) Thanks again. Bao-Ha Dam Bui [EMAIL PROTECTED] S. Jude Medical, Inc 651.765.1018 -Original Message- From: Geoff Peters [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 06, 2002 11:46 AM To: Tomcat Users List Subject: RE: Help! I am so stuck. Tomcat NT credential You can either use the tomcat-users.xml file to define users, passwords and roles (located in the conf folder in the root of Tomcat), or use a realm to authenticate to a database, either way there is really good documentation on it at the jakarta tomcat site, it took me about 15 min to have an authentication set up against an Access database, really straightforward... http://jakarta.apache.org/tomcat/tomcat-4.0-doc/realm-howto.html Geoff Geoff Peters, BScFE, AIT Phone : (441) 296-9640 Applications DeveloperFax: (441) 292-1509 Logic Communications E-mail : [EMAIL PROTECTED] 12 Par-La-Ville Road WWW: http://www.logic.bm Hamilton, Bermuda HM JX -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: June 6, 2002 1:49 PM To: [EMAIL PROTECTED] Subject: Help! I am so stuck. Tomcat NT credential Hi all, When Tomcat is installed on W2K, what NT Security Role does it use to access files? How can I tell Tomcat4 to use NT Security? Thanks very much. Bao-Ha Dam Bui [EMAIL PROTECTED] S. Jude Medical, Inc 651.765.1018 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help! I am so stuck. Tomcat NT credential
DO you have a database with users and passwords? Or if you simply have a couple of users and won't need to add / remove lots of users frequently I would recommend using the tomcat-users.xml file, it does the job easily.. Geoff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: June 6, 2002 1:56 PM To: [EMAIL PROTECTED] Subject: RE: Help! I am so stuck. Tomcat NT credential Hi, Thanks for responding so quickly. How about using NT User Group to authenticate access to JSP files inside a secured directory? (I will read the paper now but I thought I should ask.) Thanks again. Bao-Ha Dam Bui [EMAIL PROTECTED] S. Jude Medical, Inc 651.765.1018 -Original Message- From: Geoff Peters [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 06, 2002 11:46 AM To: Tomcat Users List Subject: RE: Help! I am so stuck. Tomcat NT credential You can either use the tomcat-users.xml file to define users, passwords and roles (located in the conf folder in the root of Tomcat), or use a realm to authenticate to a database, either way there is really good documentation on it at the jakarta tomcat site, it took me about 15 min to have an authentication set up against an Access database, really straightforward... http://jakarta.apache.org/tomcat/tomcat-4.0-doc/realm-howto.html Geoff Geoff Peters, BScFE, AIT Phone : (441) 296-9640 Applications DeveloperFax: (441) 292-1509 Logic Communications E-mail : [EMAIL PROTECTED] 12 Par-La-Ville Road WWW: http://www.logic.bm Hamilton, Bermuda HM JX -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: June 6, 2002 1:49 PM To: [EMAIL PROTECTED] Subject: Help! I am so stuck. Tomcat NT credential Hi all, When Tomcat is installed on W2K, what NT Security Role does it use to access files? How can I tell Tomcat4 to use NT Security? Thanks very much. Bao-Ha Dam Bui [EMAIL PROTECTED] S. Jude Medical, Inc 651.765.1018 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help! I am so stuck. Tomcat NT credential
Hi, It's possible to understand your question in two different ways, so I answer in two different ways. First answer : If you are running tomcat as a service you should be able to see which user it is that runs it (from the services dialog). If you are not running it as service it is using the nt user that starts it. Second answer : I dont know if there is any NT-authentication realm with tomcat, but still, it's always possible to implement one, by implementing the interface org.apache.catalina.realm.RealmBase. I guess I would use JAAS to access the user-accounts in NT. http://java.sun.com/j2se/1.4/docs/guide/security/jaas/tutorials/index.html If you are using ADSI-userbase (or Exchange 5.5 or newer) you might want to check out JNDI access over LDAP to ADSI. In that context you might want to take a look at JNDIRealm. I suggest you read http://jakarta.apache.org/tomcat/tomcat-4.0-doc/realm-howto.html hope it helps -reynir -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 6. júní 2002 16:49 To: [EMAIL PROTECTED] Subject: Help! I am so stuck. Tomcat NT credential Hi all, When Tomcat is installed on W2K, what NT Security Role does it use to access files? How can I tell Tomcat4 to use NT Security? Thanks very much. Bao-Ha Dam Bui [EMAIL PROTECTED] S. Jude Medical, Inc 651.765.1018 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]