Re: [PATCH] change jndi auth in tomcat

2002-12-05 Thread John Holman
Carsten LDAP authentication with a bind is supported in the JNDIRealm included with Tomcat 4.1 John. Carsten Burghardt wrote: Hi, I tried to get a ldap-authentification with domino but noticed that the current code (I checked tomcat 4.0.6 so if this is obsolete in a newer version forgive m

Re: Absolute fields required for JDBC & JNDI Realm pages in adminwebapp

2002-08-16 Thread John Holman
Amy Roh wrote: > I just committed fixes to validate only className and connectionURL and also to > check either userPattern or userSearch is specified but not both. Thanks! > I don't think any change to JNDIRealm is necessary since I changed admin so that > it doesn't replace null values with "

Re: Absolute fields required for JDBC & JNDI Realm pages in adminwebapp

2002-08-15 Thread John Holman
Amy Yes - much too strict for JNDIRealm! The only configuration attributes that should always be specified for this realm are className and connectionURL. In addition either userPattern or userSearch must be specified (but not both). Other attributes either have default values, or not specify

Re: cvs commit: jakarta-tomcat-site/xdocs index.xml

2002-08-11 Thread John Holman
The Tomcat 4.1 documents referenced on the index.html page are not up to date (e.g. jndi-datasource-examples-howto, realm-howto). John. [EMAIL PROTECTED] wrote: > remm2002/08/11 08:35:27 > > Modified:docs index.html >xdocsindex.xml > Log: > - Update s

Patch for security problem

2002-07-27 Thread John Holman
Bug 11210 (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11210) is a security problem which could have serious effects for people using JNDIRealm with the Netscape/iPlanet JNDI LDAP provider (com.netscape.jndi.ldap.LdapContextFactory). The default provider (com.sun.jndi.ldap.LdapCtxFactor

Re: JNDIRealm in v4.1

2002-06-21 Thread John Holman
Sean JNDIRealm in 4.1 does include an option to search the directory for the user's entry, very much along the lines you suggest (except the directory connection is persistent). Unfortunately much of the documentation has still not been updated so this is less than obvious - and the spec proba

JNDIRealm maintenance

2002-06-11 Thread John Holman
Remy I wrote the original JNDIRealm which Craig committed with modifications, made major enhancements in March this year and submitted documentation updates a couple of times since (which have still not been committed). I'm prepared to maintain this component, but the difficulty of finding an

[PATCH] Documentation for JNDI Realm

2002-05-18 Thread John Holman
I submitted some major changes to the JNDI Realm earlier this year, which Craig committed in March. I also sent updates for the realm how-to and realm configuration docs to this list shortly afterwards, but those have not yet been committed. The current how-to doc in particular does not cover

[PATCH] JNDIRealm documentation

2002-03-21 Thread John Holman
; > John, thanks for your patience with me on getting this patch committed! > Could you also make sure that I got the facts right on my edits to the > configuration docs? (A patch to tomcat-docs/realm-howto.xml to explain > the new options would also be cool.)

[PATCH} Re: cvs commit: jakarta-tomcat-4.0/webapps/tomcat-docs/config realm.xml

2002-03-17 Thread John Holman
Craig, At 18:37 15/03/02, you wrote: > John, thanks for your patience with me on getting this patch committed! > Could you also make sure that I got the facts right on my edits to the > configuration docs? (A patch to tomcat-docs/realm-howto.xml to explain > the new options would also be

Re: {PATCH] Enhanced JNDI realm

2002-03-03 Thread John Holman
At 20:11 01/03/02, Jonathan Eric Miller wrote >Hi John, > >I'm glad to see that you have come up with a patch for JNDIRealm which >allows users to be authenticated by a bind instead of having to query for a >password. > >One thing that I'm wondering about though, with regard to your >implementati

{PATCH] Enhanced JNDI realm

2002-02-01 Thread John Holman
Craig I've attached a patch to enhance the current JNDI realm implementation. This includes three features that have been requested a number of times and appear in the draft functional specification: ** the realm can authenticate by binding to the directory as the user. This mode of operation

Re: Proposal for a new realm module for tomcat

2002-01-29 Thread John Holman
BTW if you want to take a look at the native ldap realm >module you >can grab it from my web site. http://www.dahbura.com/ldap I thought if folks >liked it and wanted to use it we could include it in the base build for >tomcat. > >Should I just take the current snapshot in t

Re: Functional spec for JNDI Realm

2002-01-09 Thread John Holman
now, there is no standard attribute for this purpose, so the user would have the extend the directory schema to accommodate it, which might be a deterrant to some. John. >Tony > > >John Holman wrote: > > > Craig > > > > I understand (and prefer!) the &quo

Revised specification for JNDIRealm

2002-01-08 Thread John Holman
Craig I've attached a revised version of your proposed functional specification for JNDIRealm. The main changes are to spell out in more detail options for determining the user's distinguished name, and expanding on the functionality of the User Login mode. I've not said much about determining

Re: Functional spec for JNDI Realm

2002-01-08 Thread John Holman
ministrator sets things up to allow this. >That should let us improve overall performance -- at least on the "log in >with the system username/password" mode that we currently support. > >Craig > > >On Tue, 8 Jan 2002, John Holman wrote: > > > Date: Tue, 08

Functional spec for JNDI Realm

2002-01-08 Thread John Holman
Craig After a long delay, I'm looking at your proposed functional spec for the Tomcat 4 JNDI Realm, and am having trouble with this excerpt from the "Adminstrator Login Mode Functionality" section: > The following approaches should be supported [ for retrieving the roles associated with an a

Re: Proposal for a new realm module for tomcat

2002-01-07 Thread John Holman
ny of the >points of what I was looking at doing. I agree for many folks the JNDI >implementation can suit much of their needs, I have just run across some >folks that >wanted better support for more diverse network environments. I'd be happy to cooperate on this. >L

Re: Proposal for a new realm module for tomcat

2002-01-04 Thread John Holman
At 04:28 04/01/02, Tony Dahbura wrote: >I would like to see about proposing the development of an additional realm >module for tomcat. I have begun some design on this and think it will >meet the >needs of many folks out there utilizing LDAP. I would like to propose a >native >LDAP realm modul

Re: Suggested change to JNDIRealm

2001-06-10 Thread John Holman
Casey Unless I misunderstand, I think the existing JNDIRealm will handle this. In the roleSearch parameter, {1} is substituted by the username, so in your example you could have roleBase= [ basedn for user entries ] roleName="memberof" roleSearch = "(uid={1})" This might involve an additional d

Re: [PATCH] Catalina JNDIRealm - binding as the user

2001-05-17 Thread John Holman
you imagine making people type in X.500-style user names > >Martin >Torgeir Veimo wrote: > > > John Holman wrote: > > > > > > As said before I'd like to add the ability to search the directory > for the > > > user's dn to cover cases

Re: [PATCH] Catalina JNDIRealm - binding as the user

2001-05-16 Thread John Holman
I was planning to fail authentication if more than one entry is found. At 09:58 16/05/01, you wrote: >John Holman wrote: > > > > As said before I'd like to add the ability to search the directory for the > > user's dn to cover cases when a fixed pattern will not

RE: JNDI/LDAP realm

2001-05-16 Thread John Holman
en it >will only fail under load. Usually in some horrible manner that will be >difficult to trace back to the root cause. Yes. The initial code makes no attempt at performance - it serialises all requests through a single directory context. John > > -Original Message- &

[PATCH] Catalina JNDIRealm - binding as the user

2001-05-15 Thread John Holman
Here is a patch for the JNDI realm in Catalina that supports authentication by binding to the directory with the credentials specified by the user. I've added a configuration parameter "bindAsUser" which defaults to "true". If set to "false" the realm authenticates as before: ie it retrieves the

Re: JNDI/LDAP realm

2001-05-14 Thread John Holman
to the > > directory with the resultant DN and the user-entered password to > > authenticate. This might be a little less efficient than > > just searching and > > getting the password as well, but is more secure than having the root > > password to the ldap serv

Re: JNDI/LDAP realm

2001-05-13 Thread John Holman
> I preferred binding to the directory with supplied credentials because it > allows the realm implementation to use an anonymous password for the rest of > what it needs. Yes - I think binding is the better approach in general. Also the directory can then contain password hashes rather than plai

JNDI/LDAP realm

2001-05-13 Thread John Holman
The current JNDI realm implementation in Tomcat 4 is based on code I submitted, which was subsequently modified and committed by Craig. Two significant changes he made are: - the original code found the DN of the user by searching the directory. The current implementation, like Ellen Lockhart's

JNDI realm

2001-04-17 Thread John Holman
The log of Craig's initial commit for JNDIRealm says: > TODO: Support an operational mode where the Realm attempts to bind to the > directory server using the user's username and password (instead of a > system administrator username and password). This is a different enough > style that it pro

Re: JNDI realm for Catalina

2001-04-05 Thread John Holman
- Original Message - From: "Martin Smith" <[EMAIL PROTECTED]> > I wonder if it wouldn't be useful to permit a principal or a credential to be an > attribute in the user's (subject's) own entry, e.g., "creditbalance." (For some > types of data, I wonder if it may be more efficient to mai

Re: JNDI realm for Catalina

2001-04-03 Thread John Holman
- Original Message - From: "Craig R. McClanahan" <[EMAIL PROTECTED]> >> To authenticate the > > user, the directory is first searched for an entry with an attribute > > matching the given username. An attempt is then made to bind to the > > directory using the name of that entry and the

JNDI realm for Catalina

2001-04-02 Thread John Holman
One of the action items in the Catalina status document is a JNDI realm. I've been working on this recently and wonder whether what I've done would be useful to the project - though I'm not sure how best to get involved. Incidentally, the status document lists James W as a volunteer for this item.

Proposed release of 3.3

2001-01-18 Thread John Holman
I'm a user and I rightly don't get a vote (and might do better to keep quiet!) but I think releasing a version 3.3 would be bad for the project unless the concerns about support can be fully resolved. This is so even though it seems to be agreed that the basic code itself is technically supe