cancel
Showing results for 
Search instead for 
Did you mean: 

PORTAL ID in SAPSSOEXT.dll

Former Member
0 Kudos

Hello all,

We are using sapssoext.dll and sapsecu.dll on Windows platform in conjunction with sample SSO2Ticket.java code from service market place.

If we have portal and backend ids different and have reference system defined; ticket contains PORTAL and SAP ID both. We have noticed that evalLogonTicket method is, by default, picking user_id for SAP back end system, that is SAP ID.

Is there any way we can tell evalLogonTicket method to pick PORTAL ID rather then SAPID?

Any Help?

Best Regards

Ash

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos
Strehle
Advisor
Advisor
0 Kudos

Hi,

some time has gone, but SAPSSOEXT is now available with version 2 !!!

This means, now you can retrieve the Portal ID from the Ticket with SAPSSOEXT. The version method returns now 2.

See the updated OSS note 304450 .

The creation of a logon ticket with SAPSSOEXT is not support and wont be supported in the future - this is a political decision, that only SAP systems should be able to create logon tickets.

regards,

-markus

Former Member
0 Kudos

Dear Ashutosh,

I have been trying to set up SSO between SAP and Non SAP systems. I have got SAPSSOEXT.dll and SAPSECU.dll. But I have no idea how to generate code to use these libraries.

Can u help me with some inputs..

Thanks and Regards,

Bhavish Bhatia

former_member184387
Participant
0 Kudos

Hello Ash,

I'm trying to do the same thing. Did you have any advance?

I've used this code bellow and it works almost fine for "<b>

createLogonTicket

</b>", but I get an exception on "<b>

evalLogonTicket

</b>". Besides, after generating LogonTicket I was wondering wich cookie do I have to set to my old SAP application (MarketSet DA/DB) understand it.

Any help is appreciated.

Thank you very much.

Best regards,

Raphael Barboza

String myticket = null;
try {
	String user  = "myuser";
	String orgid = "myorgid";
	String pw    = "mypassword";

	//original decompiled methodcall
	//myticket   = SSO2Ticket.createLogonTicket("friedrichm", "B0123456", "000", 24, pse, "test", psedn, null);
	
	myticket =
		SSO2Ticket.createLogonTicket(
			user,       //myuser works
			"B0123456", //myorgid or mypassword doesn't work 
			"000",      //mypassword or myorgid doesn't work
			24,         //don't know what is this parameter!
			mySAPProperties.get("SSO_PSE_NAME"),
			mySAPProperties.get("COOKIE_SEED"),
			mySAPProperties.get("SSO_PSE_DN"),
			null);      //don't know what is this parameter!
	//here myticket is printed correctly
	System.out.println(myticket);
} catch (Exception e) {
	System.out.println(e);
} catch (Throwable te) {
	System.out.println(te);
}
try {
	Object o[] = SSO2Ticket.evalLogonTicket(myticket, "SAPdefault", null);
	//this commented line doesn't work!
	//Object o[] = SSO2Ticket.evalLogonTicket(myticket, mySAPProperties.get("COOKIE_SEED"), null);
	System.out.println("The User ID is:          " + (String) o[0]);
	System.out.println("Issuing System (Sysid) : " + (String) o[1]);
	System.out.println("Issuing System (Client): " + (String) o[2]);
	if (o[3] != null)
		System.out.println(o[3]);
} catch (Exception e) {
	//exception is thrown: "java.lang.Exception: MySapEvalLogonTicket failed: standard error= 5, ssf error= 22"
	System.out.println(e);
} catch (Throwable te) {
	System.out.println(te);
}

Strehle
Advisor
Advisor
0 Kudos

Hi,

corrently the SAPSSOEXT does not support this feature. This library was not created for portal purposes. However you can/should open an customer OSS message on component BC-SEC due to add this feature.

regards,

-markus

Former Member
0 Kudos

I am assuming you want to get the portal id from the java code using portal apis.

If that is the case use the following code.

IPortalComponentRequest request =

(IPortalComponentRequest) this.getRequest();

IPortalComponentContext context = request.getComponentContext();

IPortalComponentProfile profile = context.getProfile();

String login = request.getUser().getUserId();

Can you please explain more about your req?

Please let me know if this helps.

Regards,

Rajesh Khanna Venkatesan.

Message was edited by: Rajesh Venkatesan

Former Member
0 Kudos

Thanks Rajesh for the reply,

But that is not I am looking for. I am taking about third part SSO solution per say. Where we are reading SSO ticket issued by portal.

Solution in question is SAPSSOEXT; which is JNI based solution on varios platform. I am not able to instruct respective method (I do not have document) to fetch Portal ID. It is fetching mapped ID (if present).

We can say it is geared (by default) to SAP communication.

Any body who can help me?

Best regards

Ash

Former Member
0 Kudos

Hello All,

Can anybody answer this to this?

Best Regards

Ash