Logging in to REST API Services Directory

4232
3
02-10-2011 03:36 AM
GarethBaker
New Contributor II
Hi all,

I'm trying to access the ArcGIS Server REST API at http://myserver:8399/arcgis/rest/login but am having problems logging in. We're at version 9.3.1 of the Java edition, running on Windows 2003.

I can do the following ok:

1. Log in to ArcGIS manager with arcgismanager account at http://myserver:8099/arcgismanager/main/login.jsf
2. Log in to ArcGIS REST API Admin page with the arcgismanager account at http://myserver:8399/arcgis/rest/admin/login
3. Log in to ArcGIS Server REST API with a generic user account created in ArcGIS Manager under Security > Users

The problem is that when I log in as the generic user I can only see services listed that have been explicitly secured and made available to that user (as you would expect). I had assumed that I should be able to log in to the REST API with the same administrator account that I log into manager or REST API Admin with and see ALL the services but the log in page keeps throwing up an invalid username/password message.

I have a separate instance of ArcGIS Server installed for which security hasn't been enabled and I can log into the REST API page using the admin account and can see everything.  Am I right in thinking that once security is enabled the only users who can access the REST API services directory are ones who've been set up in manager?

I'm slightly confused by the fact I can log into the REST API Admin page but not the REST API itself using the same account details.

Thanks in advance for any help received.

Gareth
0 Kudos
3 Replies
RaviNarayanan
Esri Contributor

1. Log in to ArcGIS manager with arcgismanager account at http://myserver:8099/arcgismanager/main/login.jsf
2. Log in to ArcGIS REST API Admin page with the arcgismanager account at http://myserver:8399/arcgis/rest/admin/login


Users that belong to the "agsadmin" group are allowed access to login to Manager and to login to REST admin - both for administrative purposes such as managing the services on the Server or for clearing cache. Please see http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_java_help/index.html#//0092000000np00... for more information




3. Log in to ArcGIS Server REST API with a generic user account created in ArcGIS Manager under Security > Users


When security is enabled on the ArcGIS Server, users/roles that are setup in the security store consume the secured services (note the difference, not administer) for which they are allowed to access. Please see http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_java_help/index.html#//0092000000nv00... for more information.
0 Kudos
GarethBaker
New Contributor II
Hi Ravi,

Thanks for the response, I think that has made it clearer in my mind. Think I was getting myself confused about the various user accounts and another server which didn't have security enabled on it.

Best regards
Gareth
0 Kudos
randyhorner
New Contributor II
When I attempt to login to the rest using
http://myserver:8399/arcgis/rest/admin/login
I get an HTTP status 404 error.

I believe I am admin and I can login to the server manager just fine.
0 Kudos