Change location of PropertyService to properties directory
Create database and shared directories for database management code and shared code respectively.
In AuthSession, I've modified the formatOutput() method to include both the email and organization values found in the userInfo array. On successful login(), this changes the returned xml to include <email> and <organization> elements if they exist in the userInfo array. This information is useful to web client applications that need to show login status beyond just the users full name.
Beef up exception handling from file utilities. Move UtilException to MetacatUtilException to eliminate conflict with similar exception in utility package.
Added code to populate moderators from metacat.properties
Add a getAttributes method to pass through the getAttributes defined in the AuthInterface.
Merge 1.9 changes into Head
Removed the release ant token from all files in 'src'.
release
Also in the previous commit, the successful message changed. Now in addtion to the sessionid tag, the following tags also included: <name>[name of the user]</name>, <isModerator> (if is moderator) and <isAdministrator> (if is Administrator)
Added a new function - getUserInfo to AuthInterface and AuthLdapThe 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...
Replacing MetaCatUtil.debugMessage or MetaCatUtil.logMetacat call with logMetacat (private Logger object) call
Replacing debugMessage in metacat code with log4j methods for logging
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.
Fixed the bug for sessionid storing, revision couldn't be zero and Ldap DN is case sensitive.
Fixed the sessionId handling code to now properly return the sessionIdin the login response message. Updated junit tests to test this issue.
Modified metacat to now provide the session identifier in the responsexml message when a login is called. This has not been fully tested.I removed the HttpMessage class from metacat in favor of using the versionof that class that is found in the utilities module. This may cause some...
updated the referral mechanism so that metacat doesn't crash when a referral server is not available
fixed the error where the ldap authenticate took 15 seconds to execute
added support for multiple group membership
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 .
fixes on getting information from LDAP services
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>...
Included back getting the list of users and groups stored in auth schemethrough new action="getprincipals". No extra parameters are needed.Any logged in users are able to get this information
added precise location information (class.method) to each catch statement so that errors are more easily traced.
Added license terms to source code files, and cleaned up some javadocdocumentation in a few places.
XSLT transformation on "login" and "logout" action
AuthMcat- new class for authentication through MCA; implements AuthInterfaceAuthSession- assigning HttpSession obj only after successful athentication;- cleared isAuthenticated field - not needed- cleared invalidate() method - not neededAuthInterface...
merge AUTH_LDAP to the main branch