cancel
Showing results for 
Search instead for 
Did you mean: 

Java Advice Needed[SSO]!!

Former Member
0 Kudos

Hail All,

I currently using BO XI R2 on linux Box. The Linux Box is not part of the Domain, but just a machine on the network.

I'm trying to created Single Sign On via Java Client.

Below are the code use to login


public static String getLogonToken(String username, String password) throws SDKException  {

	ISessionMgr sessionMgr;
	String token = "";
	String CMS = "10.20.169.89:6400";
	String auth = "secEnterprise";
	try {
		sessionMgr = CrystalEnterprise.getSessionMgr();
		IEnterpriseSession session = sessionMgr.logon(username, password, CMS, auth);
		token = session.getLogonTokenMgr().createLogonToken("", 1440, 100);
	} catch (SDKException e) {
		e.printStackTrace();
		throw e;
	}

	return token;
}

When the method is called i get SDKException Below.


om.crystaldecisions.sdk.exception.SDKException$OCAFramework: Unable to find servers in CMS 10.20.169.89 and cluster  with kind cms and extra criteria null. All such servers could be down or disabled by the administrator.
cause:com.crystaldecisions.enterprise.ocaframework.OCAFrameworkException$AllServersDown: Unable to find servers in CMS 10.20.169.89 and cluster  with kind cms and extra criteria null. All such servers could be down or disabled by the administrator.
detail:Unable to find servers in CMS 10.20.169.89 and cluster  with kind cms and extra criteria null. All such servers could be down or disabled by the administrator.
The exception originally thrown was com.crystaldecisions.enterprise.ocaframework.OCAFrameworkException$AllServersDown: Unable to find servers in CMS 10.20.169.89 and cluster  with kind cms and extra criteria null. All such servers could be down or disabled by the administrator. and had the following message: Unable to find servers in CMS 10.20.169.89 and cluster  with kind cms and extra criteria null. All such servers could be down or disabled by the administrator.
	at com.crystaldecisions.sdk.exception.SDKException.map(Unknown Source)
	at com.crystaldecisions.sdk.occa.security.internal.t.a(Unknown Source)
	at com.crystaldecisions.sdk.occa.security.internal.t.userLogon(Unknown Source)
	at com.crystaldecisions.sdk.occa.security.internal.m.userLogon(Unknown Source)
	at com.crystaldecisions.sdk.framework.internal.d.logon(Unknown Source)
	at BOLogin.getLogonToken(BOLogin.java:38)
	at BOLogin.main(BOLogin.java:50)
Caused by: com.crystaldecisions.enterprise.ocaframework.OCAFrameworkException$AllServersDown: Unable to find servers in CMS 10.20.169.89 and cluster  with kind cms and extra criteria null. All such servers could be down or disabled by the administrator.
	at com.crystaldecisions.enterprise.ocaframework.aa.for(Unknown Source)
	at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.for(Unknown Source)
	at com.crystaldecisions.enterprise.ocaframework.p.a(Unknown Source)
	at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.getManagedService(Unknown Source)
	... 6 more

Can Any one advice me what have i dont wrong?

Is there any other possible way to set CMS value to IP address instead of Name Service?

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

Please post this query to the Java Development - BusinessObjects Enterprise forum:

That forum is monitored by qualified technicians and you will get a faster response there.

Thank you for your understanding,

Ludek

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Ted,

The authentication is not using LDAP, but just using the BO authentication method.

The Entries i added in /etc/hosts as below


     10.20.169.89    CMS    cms

and in the application i change the constant value of CMS to


     String CMS = "CMS:6400";

then and only then, the application was able to connect to the BO server and perform logon.

Both Application Server and BO Server are in Linux Environment and is not part of Domain Network Services. They just to different 2 machine connected via IP.

Former Member
0 Kudos

Hi Ted,

I am able to connect to the server if i modified the <windows folder>\system32\drivers\etc\hosts or /etc/hosts file on the local PC and not the server.

I dont think this is an issue due to network.

To Forum Moderator,

I would like to request this post to be moved to a proper forums.

ted_ueda
Active Contributor
0 Kudos

Hello Alec,

You're able to connect when you hard-code entries in the /etc/hosts - what entries did you put in the file? For example, did you, on your local PC, list your local PC hostname with its IP?

I've known issues on Unix when using LDAP authentication where you'd need to do so such that the LDAP authentication can look up the IP of the client machine without name lookup, but you're using secEnterprise.

Sincerely,

Ted Ueda

ted_ueda
Active Contributor
0 Kudos

It's trying to find a CMS at 10.20.169.89:6400 and it can't.

I would check that there is a CMS running at 10.20.169.89, that it's using the listener port 6400, and that you can connect to the CMS (i.e., no firewalls) from your development box.

It looks to be not a coding issue but an environmental/network issue.

Sincerely,

Ted Ueda