All the steps involved in creating user attributes
where is it documented on how to create user attributes that are stored in the ldap?
I created a jspprovider channel, and I can get data out of the user attributes in the samplecontent.jsp by:
JSPProvider p = (JSPProvider)pageContext.getAttribute("JSPProvider");
SSOTokenManager mgr = SSOTokenManager.getInstance();
SSOToken token = mgr.createSSOToken(request);
AMStoreConnection dpc = new AMStoreConnection(token);
String name = token.getPrincipal().getName();
AMUser user = dpc.getUser(name);
Map attMap = user.getAttributes();
Collection valueCollection = attMap.values();
Iterator valueIterator = valueCollection.iterator();
int iSize = attMap.size();
Set attKeySet = attMap.keySet();
Iterator keyIterator = attKeySet.iterator();
and then iterate through to display them all.
I then tried to store a value using the sampledoedit.jsp file:
JSPProvider p = (JSPProvider)pageContext.getAttribute("JSPProvider");
SSOTokenManager mgr = SSOTokenManager.getInstance();
SSOToken token = mgr.createSSOToken(request);
AMStoreConnection dpc = new AMStoreConnection(token);
String name = token.getPrincipal().getName();
AMUser user = dpc.getUser(name);
String aname = request.getParameter("attributeName");
Object aval = request.getParameter("attributeValue");
HashMap attMap = new HashMap();
attMap.put(aname,aval);
user.setAttributes(attMap);
user.store(true);
response.sendRedirect((String)pageContext.getAttribute("url"));
For whatever reason, I get an error, and in the debug I just get couldn't set attributes.
Then, when I try to retreive the list of attributes, the new name/value pair is created, but the value is blank.....
Any ideas? Or a link on a step by step process on how to create user attributes?
BTW, here is the error I get in the debug log:
01/06/2005 12:43:47:232 PM AST: Thread[service-j2ee,5,main]
ERROR: DesktopServlet.handleException()
com.sun.portal.providers.ProviderException: JSPProvider.processJSPFile(): jsp=doedit.jsp, com.sun.portal.providers.ProviderException: JSPProvider.processJSPFile(): jsp=sampledoedit.jsp, com.iplanet.am.sdk.AMException: Unable to set attribute(s) com.sun.portal.desktop.taglib.DesktopTaglibException: JSPProvider.processJSPFile(): jsp=sampledoedit.jsp,
at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:880)
at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:777)
at com.sun.portal.providers.jsp.JSPProvider.processEdit(JSPProvider.java:673)
at com.sun.portal.desktop.DesktopServlet.doGetPost(DesktopServlet.java:644)
at com.sun.portal.desktop.DesktopServlet.service(DesktopServlet.java:320)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
at com.iplanet.ias.web.WebContainer.service(WebContainer.java:586)
com.sun.portal.providers.ProviderException: JSPProvider.processJSPFile(): jsp=sampledoedit.jsp, com.iplanet.am.sdk.AMException: Unable to set attribute(s) com.sun.portal.desktop.taglib.DesktopTaglibException: JSPProvider.processJSPFile(): jsp=sampledoedit.jsp,
at com.sun.portal.desktop.taglib.provider.ProcessEditTag.doStartTag(ProcessEditTag.java:28)
at jsps.etc._opt._SUNWps._desktop._AnyWarePortal_en_CA._JSPEditContainer._html._doedit_jsp._jspService(_doedit_jsp.java:193)
at com.sun.portal.providers.jsp.jasper3.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
at com.sun.portal.providers.jsp.JspServletWrapper.service(JspServletWrapper.java:182)
at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:863)
at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:777)
at com.sun.portal.providers.jsp.JSPProvider.processEdit(JSPProvider.java:673)
at com.sun.portal.desktop.DesktopServlet.doGetPost(DesktopServlet.java:644)
at com.sun.portal.desktop.DesktopServlet.service(DesktopServlet.java:320)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
at com.iplanet.ias.web.WebContainer.service(WebContainer.java:586)
com.sun.portal.providers.ProviderException: JSPProvider.processJSPFile(): jsp=sampledoedit.jsp, com.iplanet.am.sdk.AMException: Unable to set attribute(s)
at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:880)
at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:777)
at com.sun.portal.providers.jsp.JSPProvider.processEdit(JSPProvider.java:673)
at com.sun.portal.desktop.taglib.provider.ProcessEditTag.doStartTag(ProcessEditTag.java:26)
at jsps.etc._opt._SUNWps._desktop._AnyWarePortal_en_CA._JSPEditContainer._html._doedit_jsp._jspService(_doedit_jsp.java:193)
at com.sun.portal.providers.jsp.jasper3.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
at com.sun.portal.providers.jsp.JspServletWrapper.service(JspServletWrapper.java:182)
at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:863)
at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:777)
at com.sun.portal.providers.jsp.JSPProvider.processEdit(JSPProvider.java:673)
at com.sun.portal.desktop.DesktopServlet.doGetPost(DesktopServlet.java:644)
at com.sun.portal.desktop.DesktopServlet.service(DesktopServlet.java:320)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
at com.iplanet.ias.web.WebContainer.service(WebContainer.java:586)
com.iplanet.am.sdk.AMException: Unable to set attribute(s)
at com.iplanet.am.sdk.AMDirectoryManager.processInternalException(AMDirectoryManager.java:247)
at com.iplanet.am.sdk.AMDirectoryManager.setAttributes(AMDirectoryManager.java:2151)
at com.iplanet.am.sdk.AMCacheManager.setAttributes(AMCacheManager.java:867)
at com.iplanet.am.sdk.AMObjectImpl.store(AMObjectImpl.java:1573)
at jsps.etc._opt._SUNWps._desktop._AnyWarePortal_en_CA._WebFolders._html._sampledoedit_jsp._jspService(_sampledoedit_jsp.java:118)
at com.sun.portal.providers.jsp.jasper3.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
at com.sun.portal.providers.jsp.JspServletWrapper.service(JspServletWrapper.java:182)
at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:863)
at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:777)
at com.sun.portal.providers.jsp.JSPProvider.processEdit(JSPProvider.java:673)
at com.sun.portal.desktop.taglib.provider.ProcessEditTag.doStartTag(ProcessEditTag.java:26)
at jsps.etc._opt._SUNWps._desktop._AnyWarePortal_en_CA._JSPEditContainer._html._doedit_jsp._jspService(_doedit_jsp.java:193)
at com.sun.portal.providers.jsp.jasper3.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
at com.sun.portal.providers.jsp.JspServletWrapper.service(JspServletWrapper.java:182)
at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:863)
at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:777)
at com.sun.portal.providers.jsp.JSPProvider.processEdit(JSPProvider.java:673)
at com.sun.portal.desktop.DesktopServlet.doGetPost(DesktopServlet.java:644)
at com.sun.portal.desktop.DesktopServlet.service(DesktopServlet.java:320)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
at com.iplanet.ias.web.WebContainer.service(WebContainer.java:586)
Similar Messages
-
How to find all the SM37/36 jobs, created user and step user details
Hi Gurus,
Is there any table or transaction is available to check all the SM37/36 jobs that are running in the system, details of created user and step user in single screen?.
Regards,
SrinivasCheck the below tables
TBTCP Background Job Step Overview
TBTCO Job Status Overview Table
TBTCJSTEP Background Job Step Overview
TBTC_SPOOLID Background Processing Spool IDs Table
TBTCS Background Processing: Time Schedule Table -
Steps Involved in creating Users thru the API
Hi Mark or anybody from Oracle,
Your solution to build a string for the
XML and then parse it is ok. However I would
like to do it programmatically instead of building strings containing the XML.
What are the steps and exactly what attributes do you need to set for the User
to be created programmatically.
Here is the steps I have and It's giving me
the following exception: IFS-30002 - Unable to create new library object.
The objects needed to create a user are:
1) DirectoryUserDef + set its attributes
2) Folder Definition for User folder then add
to parent folder in this case /home
3) PrimaryProfileUserDefinition + set its attributes DirectoryUser and HomeFolder ?
Can you elaborate on the exact steps to take
and exact attributes to set.
Thanks
null#1 I would strongly recommend the XML based approach. It's much easier, and if we change the way the user / directory objects are organized in much less likely to require you to alter your code.
Note that in order to create the objects programatically you're going to have to make sure that you have set ACLs and Owners correctly. It really is quite a complex process.
At some later date we 'may' provide a simple Java API for creating users.
In order to understand your error I need to catch the exception and print the stack trace as per the end of my code example for creating a user from an XML string.
Please post the results of the stack trace and someone will attempt to respond to you. -
Request in steps in deleting all the tables data in an user schema.
Hi Gurus,
Could some one please provide me the steps involved in deleting all the tables data in an user(schema)
thanks in advancewrite a script as below
sys@11GDEMO> select 'truncate table '||owner||'.'||table_name||';' from dba_tables where owner='SCOTT';
'TRUNCATETABLE'||OWNER||'.'||TABLE_NAME||';'
truncate table SCOTT.DEPT;
truncate table SCOTT.EMP;
truncate table SCOTT.BONUS;
truncate table SCOTT.SALGRADE;
truncate table SCOTT.EMPBACKUP;
truncate table SCOTT.T_NAME;
truncate table SCOTT.D_TEMP_STSC;
Example:
sys@11GDEMO> truncate table SCOTT.T_NAME;
Table truncated.
sys@11GDEMO> -
When I try to setup my new iPad air, I go through all the steps for the iCloud sign-in and choosing security questions and what not. But after I hit the agree to the terms and conditions... It says Apple ID could not be created because of a server error. Have no clue what to do... I've restarted the iPad and get the same message. But my internet works just fine.
1. Turn router off for 30 seconds and on again
2. Settings>General>Reset>Reset Network Settings -
Hi All can someone outline to me the steps involved in updating my iphone from iOS 4.2.1 to a higher version,its a 3GS
Please read and follow the instructions of the Apple link you posted from. Please note, if you have a 3G as opposed to a 3GS, you can not upgrade above iOS 4.2.1.
-
to create apple US account i followed all the steps including none in the payment option. i dont have US address how should i fill the fields.
You need to be in a country to use its store - if you are not in the US with a US billing address then you cannot use the US store.
From the US store's terms of use :
The iTunes Service is available to you only in the United States, its territories, and possessions. You agree not to use or attempt to use the iTunes Service from outside these locations. Apple may use technologies to verify your compliance. -
tried to move my itunes library to an external to free up space and run itunes off of an external. Went through all the steps. Received the message "The folder containing "iTunes Library" cannot be found, and is required. Please choose or create a new iTunes library," like it mentioned I might, and here is where the instructions end. Now what?
tried to move my itunes library to an external to free up space and run itunes off of an external. Went through all the steps. Received the message "The folder containing "iTunes Library" cannot be found, and is required. Please choose or create a new iTunes library," like it mentioned I might, and here is where the instructions end. Now what?
-
When I complete all the steps to create Apple ID.In part that requires the credit card i dont have credit card and the option none does not appear.What can I do?
Greetings anabeqiri,
Thank you for contributing to the Apple Support Communities.
The advice and steps in this article may help if you don't see "None" as a payment option when creating your Apple ID:
Why can’t I select None when I edit my Apple ID payment information? - Apple Support
All the best,
Jeremy -
Every time I do all the steps to reset the questions the only problem I have is that I noticed in the link to reset them using an email the email in the link don't match the one I created my account with. Does anyone know how to fix this problem?
You won't be able to change your rescue email address until you can answer your questions, you will need to contact iTunes Support / Apple to get the questions reset.
Contacting Apple about account security : http://support.apple.com/kb/HT5699
When they've been reset you can then use the steps half-way down the HT5312 page that you posted from to upadte your rescue email address for potential future use -
I did all the steps, but my problem is that they are asking me some questions that I did not selected when I created my Apple ID, so I clicked where it said reset security quiestion info...... And then when I went and cheked my email, they did not send anything to me!
This problem started 1 month ago!
Ivana1728The email response is automated, and almost certainly is detected as "junk" or "spam". So, try again and check your spam folders for their reply.
-
Since purchasing the Note 3 in October i have had nothing but issues. I went through all the steps and eventually I was sent a different phone, which was working for the most part until the recent upgrade. Now I am back to the old issues, no service, it actually says not moblie network available, when everyone else in my family has coverage and are on my plan with iphones. I am missing text messages and dropping calls left and right. This is unacceptable for the cost of this phone and my service. I have did a hard reset etc. What else can I do??
Use the trackpad to scroll, thats what it was designed for. The scroll bars automatically disappear when not being used and will appear if you scroll up or down using the trackpad.
This is a user-to-user forum and most people will post on here if they have problems. You very rarely get people posting to say there update went smooth. The fact is the vast majority of Mountain Lion users will not be experiencing any major problems with the OS, or maybe with apps which are not compatible, but thats hardly Apple's fault if developers don't update their apps. -
What are the steps involved in configuring Oracle EBSR12 after installation
What are the steps involved in configuring Oracle EBS R12 after installation is complete?
We have an empty oracle EBS R12 installed and up and running. We do not have anything configured.
Please direct me to the documents that can be followed to do initial steps for the application functionality to work.
Thanks,
SRWhat are the steps involved in configuring Oracle EBS R12 after installation is complete?
We have an empty oracle EBS R12 installed and up and running. We do not have anything configured.
Please direct me to the documents that can be followed to do initial steps for the application functionality to work.All Oracle EBS Docs 11i/R12 can be found at:
Oracle Applications Documentation
http://www.oracle.com/technetwork/documentation/applications-167706.html
Thanks,
Hussein -
I'm trying to import contacts to outlook 2011 from a cvs file. I've followed all the steps, mapped the fields, etc. It appears to import all 900 contacts, but after finishing nothing appears in my contact list. Any ideas on why this is not working?
Option 1
Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
If that fails:
Option 2
Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
Regards
TD -
My mini ipod appears off and not respond to any commands when pressed the buttons to reset, apple logo appeared and then the apple support site and it shuts down. already tried all the steps, but none worked, and when I plug it into my computer it does not appear in the iTunes bar. what do I do?
If MacKeeper corrupted the Recovery partition then even I underestimated its potential for damage. Garbage "cleaning" apps will cause misery but I have not found that the Recovery partition to have been affected by using MacKeeper or anything like it. I doubt that it did so, but I have learned not to underestimate the potential for such things to result in system corruption.
Before concluding your Mac has a hardware failure, try booting OS X Internet Recovery by holding command option r on startup (three fingers). That will force your iMac to bypass the Recovery partition altogether, and convey the ability to create a new one.
An Internet connection will be required (wired or wireless).
At the Mac OS X Utilities screen, select Disk Utility. Select your startup volume (usually named "Macintosh HD") and click the Repair Disk button. Describe any errors it reports in red. If Disk Utility reports "The volume Macintosh HD appears to be OK" in green then you can be reasonably (though not completely) assured your hard disk is in good working order.
Assuming the HD remains usable you can then use Disk Utility to erase it. Reinstall OS X, restore your essential software and other files, and don't reinstall the junk.
Maybe you are looking for
-
Hi , I am from Spain and I am new in MacWorld, recently I have bought a MacBook Pro , but teh keyboard is not configured rightly, when I want to write @ I have to press g instead of the @ key, or the symbol for questions ?, I have to press :: key. P
-
Adobe Premiere Elements 7 - Selecting Multiple Still Images for Time Stretch
Hi, I have Adobe Premiere Elemetns 7. I would like to be able to select multiple still images on the timeline so that I can timestretch them all at the same time. I understand that you can do this when you drag the photos over to the sceneline, then
-
Using search bar in itunes when not connected to internet causes problem
I just upgraded to the newest version of itunes and I haven't had this problem before, but when I use the search bar in itunes to find something in the library (when I'm off line)I get an error report to send. Does the new itunes require being online
-
I'm making a generic error handler that I will use in many sub VI's. Is there a way to programatically get the name of any sub VI that I put my error handler into? Thanks!
-
BVI interface IP doesn't respond on AP802
I have my AP now running... Mostly... And associated clients now get ips from the router dhcp server, But although the docs indicate that you should be able to contact the ap via the BVI ip and use that to run the web intface, i cant get any response