on 01-14-2005 7:34 PM
Hi,
I have a System (with one extra paramater called domain) and an alias
I set the Administrator user to map under this system and entered values for username, password and domain
I have followed the details in the "Systems Portal Service" tutorial to get access to the User Mapped values
I don't get a user or password or domain back. Most of the parameters are empty
The 'usermappingfields' property is 'domain' but there is no value for domain given that I can see
The code and output are below, does anyone have any idea what I am doing wrong?
Vin
-
-- code (MyTrace writes the value to file)
Systems mySystems = new Systems();
string[] aliases = mySystems.GetAliases(this.User,false);
for (int i=0;i<aliases.Length;i++)
{
MyTrace(aliases<i>);
}
string myAlias = aliases[0];//"rapid_system";
SystemData systemData = mySystems.GetSystem(myAlias, this.User);
if (systemData != null)
{
SystemUserMappingData sumd = systemData.GetUserMappingData(this.User);
MyTrace("User = " + sumd.User);
MyTrace("Password = " + sumd.Password);
Session[m_csUserName] = sumd.User;
Session[m_csPassword] = sumd.Password;
IDictionaryEnumerator enm = systemData.GetEnumerator();
while (enm.MoveNext() != false)
{
if ((enm.Value != null) && (!enm.Value.Equals("")))
{
MyTrace(enm.Key + " = " + enm.Value);
if ((string)enm.Key == "domain")
{
Session[m_csDomain] = enm.Value;
}
}
}
}
-
-- output
System Alias = rapid_system
User =
Password =
wap.USER_ADMIN.category = USER_ADMIN
com.sap.portal.reserved.system.ConnectionGroup = Dedicated Server
CookieNameForSession = JSESSIONID
com.sap.portal.pcd.gl.CreatedAt = 1105723427015
wap.WFM.category = WFM
wap.WFM_CS.category = WFM_CS
wap.ISA_B2R.category = ISA_B2R
wap.DRS.category = DRS
usermappingfields = domain
com.sap.portal.iview.IsTemplate = false
wap.CATALOG_ADMIN.category = CATALOG_ADMIN
com.sap.portal.pcd.gl.CreatedBy = Administrator
CodeLink = com.sap.portal.systems.sap.SAP_R3_Dedicated
wap.FSCM.category = FSCM
wap.SHARED_CATALOG.category = SHARED_CATALOG
wap.CVIEWS.category = CVIEWS
type = 3
UrlNameForSession = jsessionid
snc_mode = 0
ValidateAlive = false
wap.ICSS.category = ICSS
com.sap.portal.pcd.gl.Responsible = Administrator
wap.ISA_HOM.category = ISA_HOM
ComponentType = com.sapportals.portal.system
com.sap.portal.pcm.Title = RAPID System
com.sap.portal.pcd.gl.LastChangedBy = Administrator
com.sap.portal.private.system.NameSpaceSep = .
usermappingtype = admin,user
wap.CRYSTAL_ENTERPRISE.category = Crystal Enterprise
com.sap.portal.pcd.gl.LastChangedAt = 1105724535046
wap.WAS.category = WAS
com.sap.portal.pcd.gl.Collection = IP_PTL_INITIAL_CONTENT
com.sap.portal.pcd.gl.OriginalLanguage = en
wap.ITS.category = ITS
wap.SHOP_ADMIN.category = SHOP_ADMIN
trace = 0
com.sap.portal.pcd.gl.Domain = EP
wap.ISA_B2B.category = ISA_B2B
SharingSameSessionID = true
logonmethod = SAPLOGONTICKET
com.sap.portal.reserved.system.ConnectionFactoryClass = SAPFactory
snc_qop = 0
UseUrlRewriting = false
com.sap.portal.pcd.gl.ObjectClass = com.sapportals.portal.system
Hi,
Open your system for edit, then go to the property "logon method" (under "user management" category). It needs to be set to UIDPW, which means you are using user mapping (and not SSO cookie or certificate).
Hope that helps
Regards,
Ofer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am having exactly the same problem however I am trying to get username and password data from an HTTP system and not a SAP system. This means that in the System properties there is no option for logon method.
Can anyone help?
Paul.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.