Always thrown back to Login page

1430
0
10-03-2011 02:11 AM
tongkimongki
New Contributor
Dear experts,

I am installing Geoportal 1.1.1 with Glassfish 2.1.1, and openDS. My environment : Windows Server 2008.

I am able to login using various users (gptadmin,gptuser,gptpublisher) correctly BUT whenever i click on links "My Profile", it throws me back to the Login page... Also, It always throws me to Login page whenever i click on link "Administration" (for publisher) and link "Validation" (for user).
Also, I can Register a new user from the geoportal web application..

Geoportal 1.1.1 is meant to be for glassfish 3.1, so I edit the "DTD entry" in sun-web.xml to suit glassfish 2.1. I change the value to :
"<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">"

Here is my ldap setting in gpt.xml :



<ldapAdapter>

<ldapConnectionProperties
providerURL="ldap://192.168.10.37:2389"
initialContextFactoryName="com.sun.jndi.ldap.LdapCtxFactory"
securityAuthentication="simple"
securityProtocol="">
<ldapServiceAccount
securityPrincipal="cn=Directory Manager"
securityCredentials="Testing1"
encrypted="false"
catalogAdminDN="cn=gptadmin,ou=users,ou=system,dc=esri_user,dc=sdi,dc=local"/>
</ldapConnectionProperties>

<singleSignOn
active="true"
credentialLocation="header.OAM_AUTH_USER"
anonymousValue=""
logoutOutcome=""/>

<selfCareSupport
supportsLogin="true"
supportsLogout="true"
supportsUserRegistration="true"
supportsUserProfileManagement="true"
supportsPasswordChange="true"
supportsPasswordRecovery="true"/>

<roles authenticatedUserRequiresRole="true">
<role
key="gptRegisteredUser"
groupDN="cn=gpt_registeredUsers,ou=groups,ou=system,dc=esri_user,dc=sdi,dc=local"/>
<role
key="gptPublisher"
inherits="gptRegisteredUser"
groupDN="cn=gpt_publishers,ou=groups,ou=system,dc=esri_user,dc=sdi,dc=local"/>
<role
key="gptAdministrator"
inherits="gptPublisher"
groupDN="cn=gpt_administrators,ou=groups,ou=system,dc=esri_user,dc=sdi,dc=local"/>
</roles>

<users
displayNameAttribute="cn"
passwordEncryptionAlgorithm="MD5"
newUserDNPattern="cn={0},ou=users,ou=system,dc=esri_user,dc=sdi,dc=local"
usernameSearchPattern="(&amp;(objectclass=person)(cn={0}))"
searchDIT="ou=users,ou=system,dc=esri_user,dc=sdi,dc=local">
<requiredObjectClasses>
<objectClass name="top"/>
<objectClass name="person"/>
<objectClass name="organizationalPerson"/>
<objectClass name="inetOrgPerson"/>
</requiredObjectClasses>
<userAttributeMap>
<attribute key="username" ldapName="uid"/>
<attribute key="password" ldapName="userPassword"/>
<attribute key="email" ldapName="mail"/>
<attribute key="firstName" ldapName="givenName"/>
<attribute key="lastName" ldapName="sn"/>
<attribute key="organization" ldapName="o"/>
<attribute key="affiliation" ldapName="businessCategory"/>
<attribute key="street" ldapName="street"/>
<attribute key="city" ldapName="l"/>
<attribute key="stateOrProv" ldapName="st"/>
<attribute key="postalCode" ldapName="postalCode"/>
<attribute key="phone" ldapName="telephoneNumber"/>
</userAttributeMap>
</users>

<groups
displayNameAttribute="cn"
dynamicMemberOfGroupsAttribute=""
dynamicMembersAttribute=""
memberAttribute="uniquemember"
memberSearchPattern="(&amp;(objectclass=groupOfUniqueNames)(uniquemember={0}))"
searchDIT="ou=groups,ou=system,dc=esri_user,dc=sdi,dc=local">

<metadataManagementGroup
name="gpt_administrators"
groupDN="cn=gpt_administrators,ou=groups,ou=system,dc=esri_user,dc=sdi,dc=local"/>
<metadataManagementGroup
name="gpt_publishers"
groupDN="cn=gpt_publishers,ou=groups,ou=system,dc=esri_user,dc=sdi,dc=local"/>
<metadataManagementGroup
name="gpt_registeredUsers"
groupDN="cn=gpt_registeredUsers,ou=groups,ou=system,dc=esri_user,dc=sdi,dc=local"/>

</groups>
</ldapAdapter>



I dont encounter this problem when I use Glassfish 3.1...

Whats wrong with my gpt.xml ? or maybe something else is wrong... Any suggestions ?

Thanks
0 Kudos
0 Replies