Esri / geoportal-server

Geoportal Server is a standards-based, open source product that enables discovery and use of geospatial resources including data and services.
https://gptogc.esri.com/geoportal
Apache License 2.0
244 stars 149 forks source link

Administrative Tab #161

Closed srijanapanthee closed 9 years ago

srijanapanthee commented 9 years ago

Hi I am trying to geoportal with tomcat 7. If I login in gptuser it shows me green Welcome but it does not show welcome gptuser and after login there is no administrator tab

mhogeweg commented 9 years ago

are you using the simpleadapter or ldapadapter for authentication?

srijanapanthee commented 9 years ago

I am using simpleadapter

mhogeweg commented 9 years ago

the point of that one is that it's simple.. so something is wrong. can you paste the adapter section of gpt.xml here?

srijanapanthee commented 9 years ago
<identity encKey="PtkESRI" realm="Geoportal">  

    <simpleAdapter>
        <account username="gptuser" password="gptuser" encrypted="false"/>
        <roles>
            <role key="gptRegisteredUser"/>
            <role key="gptPublisher"/>
            <role key="gptAdministrator"/>
        </roles>
    </simpleAdapter>
    <!--

    <ldapAdapter>
        <ldapConnectionProperties
            providerURL="ldap://ldap_host_name:ldap_port"
            initialContextFactoryName="com.sun.jndi.ldap.LdapCtxFactory"
            securityAuthentication="simple"
            securityProtocol="">
            <ldapServiceAccount
                securityPrincipal="ldap_admin_user"
                securityCredentials="ldap_admin_password"
                encrypted="false"/>
        </ldapConnectionProperties>
mhogeweg commented 9 years ago

can you check that the entire ldapAdapter section is commented out properly? or just remove it?

srijanapanthee commented 9 years ago

I have deleted all the entire ldapAdapter section but when I login gptuser still it shows me green Welcome banner

mhogeweg commented 9 years ago

does your tomcat show errors in the logs? is your site public?

srijanapanthee commented 9 years ago

I am trying to run geoportal from my local host and tomcat log files does not shows any errors

mhogeweg commented 9 years ago

can you send the entire gpt.xml to mhogeweg@esri.com?

srijanapanthee commented 9 years ago

<?xml version="1.0" encoding="UTF-8"?>

``` ``` ``` ``` ``` ``` ``` ``` ``` ``` ``` ``` ``` ``` ``` ``` ``` ``` ``` ``` ``` ``` ? ``` ``` ``` ``` ``` ``` ``` ```

On Thu, May 7, 2015 at 1:54 PM, Marten notifications@github.com wrote:

can you send the entire gpt.xml to mhogeweg@esri.com?

— Reply to this email directly or view it on GitHub https://github.com/Esri/geoportal-server/issues/161#issuecomment-99960169 .

mhogeweg commented 9 years ago

hi, you had some invalid characters in the file. I recommend some form of XML validator to verify your edits. even opening in a browser and using the developer tools to see if there are errors will help. I edited the file (removed all the comments) and posted it as a gist: https://gist.github.com/mhogeweg/643855607852f3ef784c

I also configured the geoportal server to use ArcGIS Online's map viewer.

please try this file.

srijanapanthee commented 9 years ago

Thank you very much now I can run and see administrative tab and it shows welcome gptuser.

mhogeweg commented 9 years ago

enjoy!

srijanapanthee commented 9 years ago

Thanks

srijanapanthee commented 9 years ago

I closed computer and restart and login as a gptuser it gives me Unable to connect to LDAP. error. It was working before and I did not changed anything

mhogeweg commented 9 years ago

if you have geoportal.war in the webapps folder, tomcat may redeploy it after a reboot/restart of tomcat. to make sure your edits stick:

srijanapanthee commented 9 years ago

thanks

srijanapanthee commented 9 years ago

Thank you very much now I can upload files also.