cancel
Showing results for 
Search instead for 
Did you mean: 

Logging on to XMII as Guest.

Former Member
0 Kudos

I am trying to get a data service to give information to a Groovy program:


    // Logon to XMII
    def url = new URL('http://vc06martin:1080/Lighthammer/Illuminator?service=Personalization& ...
IllumLoginName=aguest&IllumLoginPassword=AGuest&Session=true')
    println "URL=" + url
    BufferedReader inStream = new BufferedReader(new InputStreamReader(url.openStream()));	
    def line = "";
    while ((line = inStream.readLine())!= null)
      println line
    inStream.close()

    // Should output the XML - just copied the URL from the Test button in the data service.
    url = new URL('http://vc06martin:1080/Lighthammer/Illuminator?Connector=&Server ...
s&RowCount=100&Content-Type=text%2Fxml')
    inStream = new BufferedReader(new InputStreamReader(url.openStream()));
    line = ""
    while (line = inStream.readLine()) println line

The result when running this is that I get the


 <TITLE>SAP xMII Login Page</title>

served with the first URL. The second URL returns nothing.

<br>

What am I doing wrong?

<br>

The documentation under Guest Configuration/Guest Account is not very clear. It says use the user Guest (with password Guest) and it has to be linked to a real existing account. I did create an 'AGuest' account with AGuest as a password and configured it in the guest configuration.

I am guessing that if my program executes the URL

http://server/Lighthammer/Illuminator?service=Personalization&IllumLoginName=Guest&IllumLoginPassword=Guest&Ses
sion=true

and afterwords the URL from the dataservice test button, things should work.

What am I doing wrong?

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

sufw
Active Participant
0 Kudos

Hi Martin,

try logging on using this URL:

http://vc06martin:1080/Illuminator/PortalLogin.jsp?&session=true&Guest=yes

Hope this helps,

Sascha

Former Member
0 Kudos

Things are better now. Thanks. The URL you mention shows a different output (excerpt follows)


function initialize() {
         // force focus to user name
          document.Login.username.focus();
}
</SCRIPT>
<BODY onLoad="initialize();">

my second URL, the one that is suposed to retrieve the XML for the data service still returns the logon HTML. So the first URL does not seem to really log me in.

sufw
Active Participant
0 Kudos

Hi Martin,

I think this might be due to the fact that xMII uses cookies to maintain the login session?

Try appending either

&Guest=yes&Session=false

or

&IllumLoginName=AGuest&IllumLoginPassword=AGuest&Session=false

to your second URL. This should work without your first GET to log in...

Sascha

jcgood25
Active Contributor
0 Kudos

Martin,

Just forget the attempts at obtaining a session and simply append &IllumLoginName=Guest&IllumLoginPassword=Guest to your http request, which will give passthrough credentials for each servlet call such as:

http://vc06martin:1080/Lighthammer/Illuminator?QueryTemplate=Folder/Query&IllumLoginName=Guest&Illum...

If your request is coming from a server and not a client that will have a fixed IP address, another shortcut would be to add the other machine as an entry into your Trusted Servers. When a request comes from a known IP address, it becomes a 'trusted' inbound request and does not require credentials at all.

Be warned however that this is a short lived solution...xMII 12.0 uses Netweaver UME for authentication and this will eliminate the trusted servers.

Best Regards,

Jeremy Good

sufw
Active Participant
0 Kudos

Jeremy,

would adding the other party to the Trusted Servers list not give them Administrator privileges?

jcgood25
Active Contributor
0 Kudos

Yes, a Trusted Server effectively bypasses security so it's wide open. That is why I asked if the requests were from a server proxying back to clients, which makes it a little safer

By the way - I look forward to meeting you in a couple of weeks in Melbourne.

Best Regards,

Jeremy

Former Member
0 Kudos

Jeremy - great suggestion! I should have had that idea myself! It should be stated that way in the documentation.

It doesn't stop here though: I now don't get the logon page any more, but the XML returned is


<?xml  ... 
<FatalError>Insufficient permission to access server Water MIT Postgres ...

I assume that I have to give the guest user access to my database server. So I went to data access in the security services 'tab' and added role guests to the 'roles assigned to' my DB server. Now it works!

Answers (0)