on 11-02-2007 1:13 AM
Hello,
I try to create a user by using UME API. It is working.
Now i try to create user mapping to this user but it doesn't work when i try to check in user management. The code is :
try {
// get umapping service
IUserMappingService iums = (IUserMappingService)
PortalRuntime.getRuntimeResources().getService(IUserMappingService.KEY);
// IUserMappingService
IUserMappingData iumd = iums.getMappingData("WebEx",epUser);
Map map = new HashMap ();
iumd.enrich (map);
map.put("user",im_usermapping);
map.put("mappedpassword",im_passmapping);
iumd.storeLogonData(map);
//This saves the new user and //password to that system
}
catch (NoLogonDataAvailableException nldae)
{
// Error handling
}
Thanks a lot
best regards
Hi Aurelien,
Put the user mapping values in your hashmap this way:
m2.put(IUserMappingService.UMAP_KEY_USER,yourusernamevariable);
m2.put(IUserMappingService.UMAP_KEY_PASSWORD,yourpasswordvariable);
And use saveLogonData();
e.g
iumd.saveLogonData(m2);
I think <b>"store"</b> is deprecated.
Hope this helped!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So I have this error now :
#1.5#00123F744AA900650000000600000C8000043DF2A71B8288#1194012301821#System.err#sap.com/irj#System.err#J2EE_GUEST#0####99eda380894c11dc8a6b00123f744aa9#Thread[ThreadPool.Worker3,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Error##Plain###com.sap.security.api.umap.NoLogonDataAvailableException: No logon data found in principal attributes.#
#1.5#00123F744AA900650000000B00000C8000043DF2A71F62D5#1194012302071#System.err#sap.com/irj#System.err#J2EE_GUEST#0####99eda380894c11dc8a6b00123f744aa9#Thread[ThreadPool.Worker3,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Error##Plain###com.sap.security.api.umap.NoLogonDataAvailableException: No logon data found in principal attributes.#
#1.5#00123F744AA9005B0000011D00000C8000043DF2AC294BA2#1194012386618#com.sapportals.portal.prt.service.usermapping.EPSystemLandscapeWrapper#sap.com/irj#com.sapportals.portal.prt.service.usermapping.EPSystemLandscapeWrapper#J2EE_GUEST#0##81.66.179.194_AZI_33895950#Guest#cd1382c0894c11dc9f3700123f744aa9#SAPEngine_Application_Thread[impl:3]_68##0#0#Error#1#/System/Security/Usermanagement#Plain###PCD lookup for system object 'pcd:portal_content/com.sap.gm.cnt/com.wnt7512en.SAp_R3' (system alias '') failed. User mapping data for the system can't be retrieved. User mapping iViews won't display the system.# #1.5#00123F744AA9005B0000011E00000C8000043DF2AC295E44#1194012386618#com.sapportals.portal.prt.service.usermapping.EPSystemLandscapeWrapper#sap.com/irj#com.sapportals.portal.prt.service.usermapping.EPSystemLandscapeWrapper.getSystemFromPcd(String)#J2EE_GUEST#0##81.66.179.194_AZI_33895950#Guest#cd1382c0894c11dc9f3700123f744aa9#SAPEngine_Application_Thread[impl:3]_68##0#0#Error##Java###PCD lookup for system object 'pcd:portal_content/com.sap.gm.cnt/com.wnt7512en.SAp_R3' (system alias '') failed. User mapping data for the system can't be retrieved. User mapping iViews won't display the system.
[EXCEPTION]
#1#javax.naming.NameNotFoundException: Child not found: com.wnt7512en.SAp_R3 at portal_content/com.sap.gm.cnt [Root exception is javax.naming.NameNotFoundException: Child not found: com.wnt7512en.SAp_R3 at portal_content/com.sap.gm.cnt]
So i found a solution, I create a group with an init mapping and now it's working !
Best regards
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.