RE: Best practice advice sought: Classes shared by 1 webapp
BDY.RTF Description: RTF file
Tomcat - JNDILDAP - Netware
Hey All, I got an modified Tomcat JNDIRealm to work by connecting with Netware 5. I am pretty sure my solution stinks for several reasons which would become apparent. It does however verify a login and return the groupMemberships as Roles into Tomcat so it has accomplished my purposes. If someone can review it and let me know if there is a better way - especially for getting the groupMemberships (I am tokenizing it now). There is a jar file at developed for 4.0.4 (or 4.0.3) http://www.explosivo.com/bill/downloads/tomcat/ That has the code. Any comments or suggestions for improvements are more than welcome. if I ever update it I will post it to the same place (in case someone somewhere down the line needs it). I hear 4.1 will have the authentication by connecting that netware needs... Hopefully it will also handle the groups! Thanks Bill -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Problems with Tomcat 4.0.3 - JNDIRealms - LDAP - Netware 5
Well, I got it working by making a new JNDIRealms object that when it checks the authentication it tries to connect as that user. Roles are still a problem but that should not be insurmountable... If anyone has good code for doing this, or know of an issue with how I handled it, please let me know Thanks -Original Message- From: Chmura, William B. Sent: Monday, July 15, 2002 4:11 PM To: '[EMAIL PROTECTED]' Subject:Problems with Tomcat 4.0.3 - JNDIRealms - LDAP - Netware 5 Hi All, Can someone tell me if this is possible or what... I have Tomcat connecting the LDAP server on Netware... Beyond that I have had many problems: (1) Netware does not export a userPassword attribute. I have a few ideas on getting around this, such as a patch to try to connect as the requested user, or using a different arribute I told Tomcat to use the Language attribute as the password field and I can authenticate using the password ENGLISH... that works. Any other ideas? This is going to be for some low level intranet stuff, so storing the password in a different field is not all that far out of an option (yes I know its security terrible). (2) Beyond the one above: Roles... I cannot get it to get me a list of roles... anyone do this before? From what I read in the tomcat docs it does not seem likes its possible based on the way netware lists the groups... ANY help, pointers, etc would be greatly apprecaited! Bill -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Problems with Tomcat 4.0.3 - JNDIRealms - LDAP - Netware 5
Ah sonofa... Do you know if it handles the funny groupMembership rules and such now? -Original Message- From: funkman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 2:14 PM To: tomcat-user Subject: Re: Problems with Tomcat 4.0.3 - JNDIRealms - LDAP - Netware 5 If you need to bind as the user - that implementation is done in the 4.1.X branch. [EMAIL PROTECTED] wrote: Well, I got it working by making a new JNDIRealms object that when it checks the authentication it tries to connect as that user. Roles are still a problem but that should not be insurmountable... If anyone has good code for doing this, or know of an issue with how I handled it, please let me know Thanks -Original Message- From: Chmura, William B. Sent: Monday, July 15, 2002 4:11 PM To: '[EMAIL PROTECTED]' Subject: Problems with Tomcat 4.0.3 - JNDIRealms - LDAP - Netware 5 Hi All, Can someone tell me if this is possible or what... I have Tomcat connecting the LDAP server on Netware... Beyond that I have had many problems: (1) Netware does not export a userPassword attribute. I have a few ideas on getting around this, such as a patch to try to connect as the requested user, or using a different arribute I told Tomcat to use the Language attribute as the password field and I can authenticate using the password ENGLISH... that works. Any other ideas? This is going to be for some low level intranet stuff, so storing the password in a different field is not all that far out of an option (yes I know its security terrible). (2) Beyond the one above: Roles... I cannot get it to get me a list of roles... anyone do this before? From what I read in the tomcat docs it does not seem likes its possible based on the way netware lists the groups... ANY help, pointers, etc would be greatly apprecaited! Bill -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Problems with Tomcat 4.0.3 - JNDIRealms - LDAP - Netware 5
Hi All, Can someone tell me if this is possible or what... I have Tomcat connecting the LDAP server on Netware... Beyond that I have had many problems: (1) Netware does not export a userPassword attribute. I have a few ideas on getting around this, such as a patch to try to connect as the requested user, or using a different arribute I told Tomcat to use the Language attribute as the password field and I can authenticate using the password ENGLISH... that works. Any other ideas? This is going to be for some low level intranet stuff, so storing the password in a different field is not all that far out of an option (yes I know its security terrible). (2) Beyond the one above: Roles... I cannot get it to get me a list of roles... anyone do this before? From what I read in the tomcat docs it does not seem likes its possible based on the way netware lists the groups... ANY help, pointers, etc would be greatly apprecaited! Bill -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]