Project

General

Profile

  • svn:eol-style: native
  • svn:executable: *
  • svn:keywords: Author Date Id Revision

# Date Author Comment
5157 12/08/2009 10:20 AM daigle

Beefed up the logging

5030 08/24/2009 02:34 PM daigle

Change location of PropertyService to properties directory

4729 01/06/2009 10:28 AM daigle

Add back the auth.base variable to metacat.properties. Use this variable when creating ldap distinguished name.

4629 11/25/2008 10:50 AM daigle

Reformat file

4628 11/25/2008 09:54 AM daigle

Catch login errors and report the details via an exception.

4587 11/19/2008 03:12 PM daigle

change generic authentication properties from ldap.* to auth.*

4547 11/10/2008 03:22 PM daigle

Added validation that configured ldap admins actually exist in ldap

4516 11/05/2008 04:05 PM Jing Tao

Change the encoding method of reponse of getPrincipal from ASCII to iso-8859-1.

4159 07/24/2008 01:52 PM daigle

Add support for separate LDAP and organization level configurations

4080 07/06/2008 09:25 PM daigle

Merge 1.9 changes into Head

3941 06/06/2008 12:44 PM Jing Tao

Check into cvs head. Comment out an obsoleted code.

3938 06/05/2008 07:08 PM Jing Tao

Check into CVS head. Add code to handle that referral server is down.

3749 02/28/2008 02:33 PM Jing Tao

Add timeout parameter for searching user name. If some exception happens, it wouldnot throw it, just print it out.

3344 08/07/2007 01:40 PM berkley

fixed a bug in metacat that was preventing it from using non-TLS authentication. ldap was throwing a namingException which was causing the exception handling to go to the wrong block so non-tls auth never even got tried. this shoudl hopefully fix the problem with sanparks

3287 05/17/2007 06:35 PM Jing Tao

Change a log level. Sometime it confuses people.

3157 01/25/2007 10:35 PM Chris Jones

This is just a code cleanup patch that re-aligns some indentations and removes
some debugging code.

3156 01/25/2007 10:27 PM Chris Jones

As a partial fix to http://bugzilla.ecoinformatics.org/show_bug.cgi?id=2747,
I've modified AuthLdap.getGroups() and removed the code that handles LDAP
referral connect and search timeout issues in a separate thread. I've replaced
this code with ReferralException code that uses two JNDI parameter settings:...

3155 01/25/2007 10:00 PM Chris Jones

As a partial fix to http://bugzilla.ecoinformatics.org/show_bug.cgi?id=2747,

I'm applying 3 patches to AuthLdap.java that simplify the code that addresses
timeout issues when connecting and searching referral LDAP databases, fixes the
getGroups() method to correctly get groups in referral LDAP databases, and does...

3077 11/10/2006 10:25 AM Matt Jones

Removed the release ant token from all files in 'src'.

3023 07/19/2006 08:56 AM sgarg

Cleaned up the code with proper debug statements..

3022 07/17/2006 11:23 AM sgarg

Replaced getIdentifyingName and ldapAuthenticate with new code. ldapAuthenticate will first try to form a secure connection. If the secure connection fails then based on the value specified
in metacat.properties, an insecure connection will be made. authenticate() function first tries to connect using the dn specified with the default ldap base and url. in case that fails,...

2697 10/27/2005 04:15 PM sgarg

Changed the filter and ldapbase values in getUserInfo so that it works for both NCEAS and LTER ldap

2679 10/20/2005 11:26 AM sgarg

Added a new function - getUserInfo to AuthInterface and AuthLdap
The function returns a string array for a given username. the array contains the name, organization name and email address of the user. In case of ldap, it is cn, o and mail attributes for ldapbase=username...

2668 10/10/2005 12:27 PM sgarg

Changes in log levels of some commands mentioned in the previos commit.

2666 10/10/2005 11:25 AM sgarg

Replacing MetaCatUtil.debugMessage or MetaCatUtil.logMetacat call with logMetacat (private Logger object) call

2589 09/09/2005 01:59 PM sgarg

Replacing debugMessage in metacat code with log4j methods for logging

2559 09/07/2005 09:44 AM sgarg

Modified the code so that users show up outside the groups also in the tree constructed by action=getPrincipals.

2447 04/04/2005 04:17 PM sgarg

Removed occurence of enum which is a keyword in Java 1.5

2130 04/14/2004 06:41 PM sgarg

Added ou also to getprincipal output. So now organizationUnitName is also returned in getprincipal output.

2129 04/14/2004 05:27 PM sgarg

Made changes so that PISCO and NRS trees are also returned in getPrincipals action.

2121 04/14/2004 11:27 AM sgarg

Fixed getprincipals output. Earlier DNs for LTER were in URL form. Now they appear in DN form.
Earlier:
ldap://knb.lternet.edu:389/DN,base
Now:
DN

Have to make changes so that PISCO and NRS also show up.

2117 04/12/2004 08:20 PM sgarg

Fixed two small bugs.

2116 04/12/2004 04:49 PM sgarg

Made changes in XML that is sent back as result of action=getprincipals. Changes are as following:

1. <authSystem> tag contains organization attribute which specifies organization name
2. <user> tag now has <organization> tag which specifies the organization name of the user. This is being generated as null for LTER as of now.

2095 04/01/2004 05:24 PM sgarg

Made change in result tag that is returned in getprincipals action. Replaced userdn with username.

2058 03/23/2004 10:26 AM sgarg

Made changes in these three files so that getPrincipal returns back more details about users and groups. Users now contain userDN, user Name and user Email. Groups now contain Group name and Group description. So some function calls which returned single string array earlier now returns multiple string arrays. AuthSession.java called one of these functions - so accordingly changes were made to fix that part of the code.

1998 01/08/2004 09:21 AM Matt Jones

Restoring AuthLdap to previous search filter. Determined that the problem was
a missing o: attribute in the UCNRS LDAP directory. Adding it in makes the old
method work. The change I had made caused some confusion about authentication
because using just uid for a filter caused too many return dn's, and it was just...

1988 01/06/2004 06:18 PM Matt Jones

Modified LDAP authentication to support a lookup for the NRS system. If
the auth on the provided string fails as a DN, try to look up a new
DN based on the UID. If we get a match, use that DN for auth and see
if that works. This allows us to use a referral within the...

1494 03/19/2003 03:11 PM Jing Tao

Change the debugMessage from (string) to (string int)

1477 03/17/2003 12:18 PM Jing Tao

Change the debug message.

1006 04/11/2002 08:35 AM Jing Tao

Fixed getGroup method return a exception and cause authenticate failed.

1005 04/11/2002 12:18 AM Matt Jones

Fixed the getIdentifyingName() sub so that it properly looks up someones
DN if passed in a DN that is an alias. This is mainly important for
sites like PISCO that use a different root to their tree than the
ecoinformatics.org tree. Now we can successfully authenticate againast...

1004 04/10/2002 10:04 PM Jing Tao

Some changes for pisco.

1000 04/10/2002 02:09 PM berkley

fixed groups error, I hope.

991 04/09/2002 08:31 AM Jing Tao

fixed auth bug

980 04/04/2002 01:36 PM berkley

updated authldap to get the groups to work (king of)

976 03/22/2002 02:24 PM Jing Tao

Method getGourps was revised. Attributes variables were set there. Other wise, when it caught a referral exception and started a thread, this will caused a exception problem. When string array groups were returned by method getGroups in getPrincipals method, we should check if the groups is null or not. Otherwise it will cause a exception problem. This revise is for bug 445.

935 02/13/2002 05:48 PM Jing Tao

Some code format problem was fixed.

934 02/13/2002 03:17 PM Jing Tao

The bug was fixed.
After a referral exception happend, we should set enviroment properties again before creating a contex. These environment properties include PROVIDER_URL, SECURITY_PRINCIPLE, SECURITY_CREDENTIALS, REFERRAL, and INITIAL_CONTEXT_FACOTRY. Otherwise, you couldn't get a naming exception.

930 02/12/2002 09:14 PM Jing Tao

Authentication bug was fixed (bug 408).
However, it needs to test if referral cotaining a referral.

928 02/11/2002 05:56 PM Jing Tao

Please check it.

927 02/11/2002 08:10 AM Jing Tao

In order to fix bug 408 (authentication), some important variables' values
were followed.

915 01/29/2002 10:15 AM berkley

fixed error I introduced when I got postgres working

894 01/15/2002 08:46 AM berkley

fixed bug with ampersands in the returned relations in the resultset.

893 01/14/2002 03:04 PM berkley

added a manual timeout to counteract the hideously long ldap time out that is encountered when a referred ldap server is down.

888 01/03/2002 02:02 PM berkley

updated the referral mechanism so that metacat doesn't crash when a referral server is not available

873 11/26/2001 02:36 PM Matt Jones

Fixed the getUsers() and getPrincipals() methods so that they no longer
fail when large result sets are requested. The problem was that the
LDAP server was returning a "size limit exceeded" message when the resultset
from the query exceeded the default limit of 500 entries. Now we...

872 11/21/2001 06:10 PM Matt Jones

Re-enabled referrals which I had turned off for debugging purposes.

871 11/21/2001 06:09 PM Matt Jones

Modified AuthLdap to fix the may problems associated with group and user
queries. Now the getGroups() and getUsers() methods work as advertised,
and there is a test of each of the methods in "main" for testing purposes.
Simplified the class substantially. Fixed the getAttributes method as...

868 11/14/2001 01:33 PM berkley

fixed referral catching mechanism in authLdap.ldapAuthenticate() so that it will refer through a bunch of linked servers instead of just one....I still haven't figured out why the getGroups method wont work.

867 11/01/2001 02:29 PM berkley

fixed the error where the ldap authenticate took 15 seconds to execute

866 10/31/2001 11:06 AM berkley

I think i have fixed the ldap referral bug. the test lter account that david made for me works, however I would like matt or someone more knowedgeable with ldap to please check my code. the changes I made are around line 200 of AuthLdap. I put a comment in the source where the code needs to be checked.

865 10/25/2001 05:18 PM Matt Jones

Fix for bug #309 so that Metacat will now follow LDAP referrals. Previously
the default was to ignore referrals. Now we explictly set the JNDI
Context.REFERRAL value to the value in the metacat.propert "referral".
The metacat.properties file has been modified to add the "referral" property,...

852 10/21/2001 05:51 PM Matt Jones

Updated metacat login semantics. Now, metacat assumes the username passed
in is the 'full' distinguished name of the user. If that fails, then
instead it tries looking up the string and seeing if it can determine
what the DN is, then uses it. The preferred method of logging in via...

842 10/02/2001 11:51 AM bojilova

fixed to get groupnames for a user using any identifying name

802 07/20/2001 09:03 PM bojilova

added support for multiple group membership

788 07/05/2001 09:38 AM bojilova

fixed bug - hardcoded LDAP URL

787 07/02/2001 03:06 PM bojilova

made use of the new property for ldaps url;
it is used for secure connection to LDAP server listening on second port 636 by default with SSL sockets;
it is used from Metacat for the authetication process only;
all the rest communications with LDAP server are made on the default port 389 with plain sockets

740 05/09/2001 01:49 PM bojilova

fixed the problem with empy password authentication.
Ldap somehow allows DirContext to be created
when empty password is provided as in our case
instead of comlaining like with wrong password string.
So included a check for empty password in order to reject the login.

730 04/17/2001 09:32 AM bojilova

Changes related to running LDAP servers referred each other in one tree modeling the KNB tree.
Currently there are running LDAP server on dev that holds the KNB root and the NCEAS' s subtree.
It also refers to a subtree modeling the LTER's tree which is held by another LDAP server runnig on alpha .

728 03/22/2001 03:49 PM bojilova

fixes on getting information from LDAP services

726 03/09/2001 04:41 PM bojilova

fixes around getUsers and getGroups.
"getprincipals" action can now produce output like:

<principals>
<group>
<groupname>Administrators<groupname>
<user>
<username>uid=admin,o=NCEAS, c=US<username>
</user>
</group>...

725 03/05/2001 04:25 PM bojilova

Included back getting the list of users and groups stored in auth scheme
through new action="getprincipals". No extra parameters are needed.
Any logged in users are able to get this information

723 03/02/2001 04:23 PM bojilova

included missing implementation of getUsers(), getGroups() interfaces

675 01/18/2001 03:15 PM berkley

added precise location information (class.method) to each catch statement so that errors are more easily traced.

669 01/18/2001 11:52 AM Matt Jones

Added license terms to source code files, and cleaned up some javadoc
documentation in a few places.

515 11/07/2000 08:22 PM Matt Jones

Updated the Javadoc documentation so that the current release can be provided
on the web site.

514 11/06/2000 05:21 PM Matt Jones

Fixed problem with AuthInterface, AuthLdap, and AuthMcat where the
sigantures of the methods of these classes were not in agreement, which was
causing AuthLdap to no longer compile. Changed parameter signatures so that
the 'user' parameter is used consistently in all of the methods.

504 10/26/2000 02:38 PM Matt Jones

Fixed the LDAP authentication adapter (AuthLdap.java) so that it now looks up
the distinguished name for a user before attempting to do authentication.
This is because the user's distinguished name can sometimes be based on
their uid attribute, but sometimes be based on their cn (common name)...

503 10/24/2000 01:03 PM bojilova

merge AUTH_LDAP to the main branch