Skip to Content
avatar image
Former Member

Problem to recieve SAP User from WD

Wt have a code like this in our WD Application:

String execlogin = "";
	try {
		IWDClientUser user = WDClientUser.getCurrentUser();
		IUser sapuser = user.getSAPUser();
		if (sapuser != null){
			execlogin = sapuser.getUniqueName();
			wdContext.currentContextElement().setLogin(execlogin);
		}
		else {
			wdContext.currentContextElement().setLogin("anonymous");	
		}
	}
	catch (WDUMException ex) {	
		wdContext.currentContextElement().setLogin("anonymous");
	}

If user uses PKI for authentication we can catch sap user without any problems. If user uses kerberos or password login sometimes user.getSAPUser() returns us sap user and sometimes returns null (we didn't find any reasons for such behaviour). And we've got anonymous as login name.

Kind Regards

Pavel

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jan 16, 2008 at 08:32 AM

    solved

    Add comment
    10|10000 characters needed characters exceeded