4.5WS to 6 - preferences in ASP?
We are planning the move to version 6 from 4.5WS. For old ASP portlets that have preferences - what changes are needed to work under 6? Are there samples? I have heard we can keep them in ASP for now, which will help our schedule. Also, what Plumtree software needs to be on the remote server where the portlets run?
Thanks,
Howard
I worked on a project converting 4.0 ASP Classic Portlets to run in G6, and there wasnt any modifications to the Preferences to make them work. The CSP is pretty much the same in regards to backwards compatibility.
Dan
[email protected]
Similar Messages
-
Hi guys
There has been a question thats bugging me for qute some time. I noticed many bank sites, or big companies use JSP/SERVLETS for their websites. Is there a particular reason why jsp/servlets are preferred over asp/php/coldfusion? I even realise a site (dbs.com.sg)using applet textfield as their forms ... isit supposed to be more secure this way? Can someone clear my doubts? thanksThe preference over ASP is clear: ASP runs on IIS which has security, performance and reliability problems (there's a Gartner advisory out, telling enterprises to move from IIS implementations till Microsoft rewrites IIS and giving a %85 probability that MS will begin to do so before the year ends). The performance penalty for ASP is that it is interpreted each time it is invoked. ASP.NET takes the JSP approach and will be compiled when it is deployed.
Preference over PHP and Coldfusion comes naturally if there is a Java business tier or the back-end is an IBM box (most of the time, it is) and Java is the easiest way to talk to it. -
Using the EDK (PRC) in ASP Pages
Hi there,
I have an ASP Portlet that I would like to move to use the EDK. (It formerly used the GDK). As it is quite a large application, moving it to .NET is not possible at this time. Does anyone have any experience with this?
The overall objective is to set Administrative Settings of a portlet. To do that, I want to use the RemoteSessionFactory to create an IRemoteSession which is used to call the PortletManager to open a portlet. The final goal is to get the IPortlet interface (from Plumtree.Remote.PRC) . Once I have the IPortlet Interface, I am able to get/set Administrative settings.
(For those of you who would recommend using the Portal Server API, the problem I have then is that once I change the administrative settings, the new settings are not picked up until I restart the portal on the portal server. It appears that the Portlet stays in the globalgadgetcache and does not know that it has been updated. Please let me know if there is a way to force that update from the Remote Server)
I've basically tried 2 options, with both resulting in the following problems.
1. Calling the EDK directly from the ASP, using Server.CreateObject. I have 2 major problems here. The firsrt is, it appears that the object I wish to use is not creatable. (RemoteSessionFactory) I have successfully created some classes off the EDK using Server.CreateObject. For example, Server.CreateObject("com.plumtree.remote.prc.xp.XPAdminPortletSettingsPersistence") seems to work. Unforutnately, I can not figure out how to get my IRemoteSession in ASP. If anyone knows how, I would be very grateful.
The other problem I have with using Server.CreateObject is that some of the objects I can find PROGIDs for do not create successfully. Here, I receive the error that the "DLL or some of its dependencies can not be found". This is noteable because of my strategy #2.
2. I have created a wrapper class that IS createable using Server.CreateObject. I can then create this class and call it's functions from the ASP. This C# .NET DLL references the EDK.dll. When I call functions in my class that to not use the EDK ( Set oPISettings = Server.CreateObject("PISettings.PIRemoteAdminSettings"), Response.Write "<BR>" & oPISettings.TestClass() ) it works fine. However, as soon as I try to use the EDK to open the RemoteSessionFactory (IRemoteSession session = RemoteSessionFactory.GetExplicitLoginContext(new System.Uri(sURI), sUserName, sPassword);) then I get the same error as above "the DLL or one of its dependencies can not be found". Interestingly, I can use SOME parts of the EDK - for example all of the classes that I can create in ASP - but not that Remote Session Factory.
With EDK 5.1 being signed, I thought my problem would be solved by putting the EDK into the Global Assembly Cache. I have put the EDK and OpenFoundation in. I have also registered them both using REGASM.exe. Neither fixed my problem. I have also installed the Microsoft Web Services Extensions (and put the dll in the GAC)
I'm wondering if there is another DLL that is required to go into the GAC? It's clear that the ASP can find the EDK - as I can call some functions from it - but only when I call certain other functions (through direct ASP or through my wrapper) that I hit problems.
ANY suggestions would be very much appreciated.
Thanks and Hpapy Holidays,KarenHi Phil and Joseph,
Thanks for your responses! Yes, Christams during summer is a bit wierd. It always sneaks up on me and I dont realize it's christmas until I go to the store and everthing is closed!!!
Joseph, to answer your questions - I can't use the GDK because I want to set Administrative preferences from a portal page. (As you know, Plumtree blocks you from setting admin preferences from a portal page).
Going direct to the database (via Plumtre server API) ALMOST works, except the settings aren't picked up until the server restarts? (I'm thinking here that the Gadget Cache isn't clearing - is there a way to force that?) However, going through the Remote API does work, except that I run into the problems described above. (The portlet does though update the settings right away)..
Yes, I have added all 4 to the project and to everywhere else I can think of (and used REGASM.exe), as well as the new EDK. (not all at the same time, and also all at the same time!). It is quite bizarre b/c I have 2 computers that it works fine with EDK 5.02 (never works with EDK 5.1) but nowhere else does it work?
(PS sorry Joseph it took me so long to reply, our email address changed and I guess my notifications have stopped!)
Phil, your suggestion is a good one, maybe you can give me a bit more detail? If I used ASP.net to route the request to the ASP files, then I would pull those admin settings that were set by the ASP file (ie GDK) out and set them via the EDK Remote Server? Do you think that would work?
Thanks so much for everything,Karen -
Hi there,
I have an ASP Portlet that I would like to move to use the EDK. (It formerly used the GDK). As it is quite a large application, moving it to .NET is not possible at this time. Does anyone have any experience with this?
The overall objective is to set Administrative Settings of a portlet. To do that, I want to use the RemoteSessionFactory to create an IRemoteSession which is used to call the PortletManager to open a portlet. The final goal is to get the IPortlet interface (from Plumtree.Remote.PRC) . Once I have the IPortlet Interface, I am able to get/set Administrative settings.
(For those of you who would recommend using the Portal Server API, the problem I have then is that once I change the administrative settings, the new settings are not picked up until I restart the portal on the portal server. It appears that the Portlet stays in the globalgadgetcache and does not know that it has been updated. Please let me know if there is a way to force that update form the Remote Server)
I've basically tried 2 options, with both resulting in the following problems.
1. Calling the EDK directly from the ASP, using Server.CreateObject. I have 2 major problems here. The firsrt is, it appears that the object I wish to use is not creatable. (RemoteSessionFactory) I have successfully created some classes off the EDK using Server.CreateObject. For example, Server.CreateObject("com.plumtree.remote.prc.xp.XPAdminPortletSettingsPersistence") seems to work. Unforutnately, I can not figure out how to get my IRemoteSession in ASP. If anyone knows how, I would be very grateful.
The other problem I have with using Server.CreateObject is that some of the objects I can find PROGIDs for do not create successfully. Here, I receive the error that the "DLL or some of its dependencies can not be found". This is noteable because of my strategy #2.
2. I have created a wrapper class that IS createable using Server.CreateObject. I can then create this class and call it's functions from the ASP. This C# .NET DLL references the EDK.dll. When I call functions in my class that to not use the EDK ( Set oPISettings = Server.CreateObject("PISettings.PIRemoteAdminSettings"), Response.Write "<BR>" & oPISettings.TestClass() ) it works fine. However, as soon as I try to use the EDK to open the RemoteSessionFactory (IRemoteSession session = RemoteSessionFactory.GetExplicitLoginContext(new System.Uri(sURI), sUserName, sPassword);) then I get the same error as above "the DLL or one of its dependencies can not be found". Interestingly, I can use SOME parts of the EDK - for example all of the classes that I can create in ASP - but not that Remote Session Factory.
With EDK 5.1 being signed, I thought my problem would be solved by putting the EDK into the Global Assembly Cache. I have put the EDK and OpenFoundation in. I have also registered them both using REGASM.exe. Neither fixed my problem. I have also installed the Microsoft Web Services Extensions (and put the dll in the GAC)
I'm wondering if there is another DLL that is required to go into the GAC? It's clear that the ASP can find the EDK - as I can call some functions from it - but only when I call certain other functions (through direct ASP or through my wrapper) that I hit problems.
ANY suggestions would be very much appreciated.
Thanks and Hpapy Holidays,KarenHi Phil and Joseph,
Thanks for your responses! Yes, Christams during summer is a bit wierd. It always sneaks up on me and I dont realize it's christmas until I go to the store and everthing is closed!!!
Joseph, to answer your questions - I can't use the GDK because I want to set Administrative preferences from a portal page. (As you know, Plumtree blocks you from setting admin preferences from a portal page).
Going direct to the database (via Plumtre server API) ALMOST works, except the settings aren't picked up until the server restarts? (I'm thinking here that the Gadget Cache isn't clearing - is there a way to force that?) However, going through the Remote API does work, except that I run into the problems described above. (The portlet does though update the settings right away)..
Yes, I have added all 4 to the project and to everywhere else I can think of (and used REGASM.exe), as well as the new EDK. (not all at the same time, and also all at the same time!). It is quite bizarre b/c I have 2 computers that it works fine with EDK 5.02 (never works with EDK 5.1) but nowhere else does it work?
(PS sorry Joseph it took me so long to reply, our email address changed and I guess my notifications have stopped!)
Phil, your suggestion is a good one, maybe you can give me a bit more detail? If I used ASP.net to route the request to the ASP files, then I would pull those admin settings that were set by the ASP file (ie GDK) out and set them via the EDK Remote Server? Do you think that would work?
Thanks so much for everything,Karen -
Help with Test Server & Binding Recordset ASP-SQL
Using CS 3.3/DW. Behavior is the same on two different
machines. One is Vista Home Premium SP1 IIS 7 with 6 compatability,
other is XP SP 3 IIS 5.1, both have IE 7 and full SQL 2005 with
SP's.
Haven't gotten very far away from static page yet, because I
can't test. Have scoured forums and even talked to Adobe who
recreated the problem then told me that they hadn't done sufficient
testing to SQL 2005 prior to release, were supposed to call me
back, did once, supposed to call back again and haven't (3 days).
So I'm turning to the community for help, please.
Set up test server in folder 'TServer' under
C:\inetpub\wwwroot. Built a 'Hello World' ASP/VB Script page with
no data attached, tests fine, puts in the appropriate folder and
says "Hello World" in browser like a good little box should! Have
built many DSN's, they tested during the building fine, I've tried
various versions of ODBC and OLE DB, including but not limited to
Native SQL Client, which is my preference and have been quite
successful setting up the DSN's...they add to the ASP page/Site
(it's greyed out unless you have an open ASP page) fine. Test at
that point works fine. As soon as I bind a Recordset (whether I
have dropped data on the page or not...same 'Hello World' page with
Recordset info near the top of the code) and test, I error out.
Any thoughts? I'm sure you'll need more info...I've tried to
put as much as I can for starters. Thanks in advance.
PeterWhen you say that you error out, what error are you getting?
Ken Ford
Adobe Community Expert - Dreamweaver/ColdFusion
Fordwebs, LLC
http://www.fordwebs.com
"Peter AZ" <[email protected]> wrote in
message news:g5qb7n$n30$[email protected]..
> Using CS 3.3/DW. Behavior is the same on two different
machines. One is Vista
> Home Premium SP1 IIS 7 with 6 compatability, other is XP
SP 3 IIS 5.1, both
> have IE 7 and full SQL 2005 with SP's.
>
> Haven't gotten very far away from static page yet,
because I can't test. Have
> scoured forums and even talked to Adobe who recreated
the problem then told me
> that they hadn't done sufficient testing to SQL 2005
prior to release, were
> supposed to call me back, did once, supposed to call
back again and haven't (3
> days). So I'm turning to the community for help, please.
>
> Set up test server in folder 'TServer' under
C:\inetpub\wwwroot. Built a
> 'Hello World' ASP/VB Script page with no data attached,
tests fine, puts in the
> appropriate folder and says "Hello World" in browser
like a good little box
> should! Have built many DSN's, they tested during the
building fine, I've tried
> various versions of ODBC and OLE DB, including but not
limited to Native SQL
> Client, which is my preference and have been quite
successful setting up the
> DSN's...they add to the ASP page/Site (it's greyed out
unless you have an open
> ASP page) fine. Test at that point works fine. As soon
as I bind a Recordset
> (whether I have dropped data on the page or not...same
'Hello World' page with
> Recordset info near the top of the code) and test, I
error out.
>
> Any thoughts? I'm sure you'll need more info...I've
tried to put as much as I
> can for starters. Thanks in advance.
>
> Peter
>
> -
Problem with getting Dreamweaver CC to support ASP and ASPX
My company and our developers have been using Dreamweaver for more than 10 years and over that time have used DW to build an ASP and SQL server based system with a code base of over 200 programs and literally thousands of web pages in many, many currently active business websites. We subscribed to Creative Cloud upon upgrading our workstations to Wondows 8 but found to our consternation that DW CC does not support ASP or ASP.NET. We have followed instructions provided in this forum in June and attempted to edit the Extensions file to include ASP and ASPX, but either DW or Windows 8 refuses to allow the change to be saved, even with have Administrator access. What can we do now, apart from cancel our CC subscriptions?
Thanks Nithya.MV for your earlier response.
We have now found a solution at http://helpx.adobe.com/dreamweaver/kb/change-add-recognized-file-extensions.html which applies to Dreamweaver CS6 but can be adapted to DW CC. The solution was:
1. Go to C\Users\username\AppData\Roaming\Adobe\Dreamweaver CC\en_US\Configuration\Extensions.txt
2. Open the file in say NotePad (visit Preferences first to turn off Read Only if necessary).
3. Add ASP, ASPX, to the front of the list of extensions in the first line.
4. Save the Extensions.txt file (then resent the file to Real Only in Preferences)
5. Close Dreamweaver CC if it's open.
6. (Re)start Dreamweaver CC and open the required .asp or .aspx file.
This worked a treat.
Unfortunately all the other intructions provided on the Support Forum had us looking in the wrong place at:
C\Program files (x86)\Adobe\Adobe Dreamweaver CC\configuration\Extensions.txt -
Link to Community in 4.5WS
I am trying to create a gadget in 4.5WS that provides a list of communities which when the user clicks on the link they are taken to that community. I have tried to follow the guidance given in one of the Plumtree Knowledge base articles which basicaully said all you needed to do was enter a URL along the lines of http://portal/myportal/communities/community.asp?intCommunityIndex=14&intCurrentPageIndex=0, which was basically taken from the address box when viewing that community myself and removing the userid. Although this works for me, when other users try it they are taken to the first community on their community list rather than the one I prescribe.
Can anybody confirm this is the best way of doing it in 4.5WS, or offer any alternatives. I also have the problem to handle in that some of the users might not have access to the community listed so it would be nice to be able to trap this and present some form of message to them if they try and visit one of these. I have seen a similar thread in this discussion from early last year but the ideas in that did not seem to work for me either.
Ross [email protected]Nevermind. Found how to add this link. Somehow was able to add a link by pasting the absolute link URL in both the "Link Text" and "URL or Email" fields.
-
Mac version does not display ASP in WYSIWYG
Hi, after losing my patience with Microsoft Vista I decided
to buy my first Mac (an iMac 24"). Yes, it's a beautiful machine,
but I still have a hard time seeing how the Mac makes my life
better. Among other problems, when I open one of my dozens of ASP
pages in the Mac version of DW3 I only get the code view. Display
view is grayed out. Likewise, I can create sites and open files
from my web server (IIS), but I can't put files (that too is grayed
out). What's the deal? I realize that ASP is a Windows technology
but is it really asking too much for the supposedly superior Mac to
display a legitimate web format in Display View? Unfortunately,
this is just one of many Mac issues that are making me question the
decision to invest in a Mac. Sorry, I don't really see the
superiority in my daily work tasks (and what's up with fonts that
require a magnifying glass to view? I've yet to see how I can
increase the font size in most applications, like this message--and
the font control in system preferences only affects the font size
of the desktop, big stinking help that is).
Thanks,
Larry SchankmanMac or PC both display design view for me on ASP pages.
Have you read this?
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16410
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"lschank" <[email protected]> wrote in message
news:fiaa50$heo$[email protected]..
> Hi, after losing my patience with Microsoft Vista I
decided to buy my
> first Mac
> (an iMac 24"). Yes, it's a beautiful machine, but I
still have a hard time
> seeing how the Mac makes my life better. Among other
problems, when I open
> one
> of my dozens of ASP pages in the Mac version of DW3 I
only get the code
> view.
> Display view is grayed out. Likewise, I can create sites
and open files
> from
> my web server (IIS), but I can't put files (that too is
grayed out).
> What's the
> deal? I realize that ASP is a Windows technology but is
it really asking
> too
> much for the supposedly superior Mac to display a
legitimate web format
> in
> Display View? Unfortunately, this is just one of many
Mac issues that are
> making me question the decision to invest in a Mac.
Sorry, I don't really
> see
> the superiority in my daily work tasks (and what's up
with fonts that
> require
> a magnifying glass to view? I've yet to see how I can
increase the font
> size in
> most applications, like this message--and the font
control in system
> preferences only affects the font size of the desktop,
big stinking help
> that
> is).
>
> Thanks,
> Larry Schankman
> -
DW9 (CS3) split view not work with ASP files?
I just installed and ran DW CS3 (ver 9.0 bulid 3481) -- I use
"coder" view for the screen layout. I like the split-view style
since I code inline HTML with my ASP and ASPX code. However, the
new version has the split-screen view button grayed out. How do I
enable split view when I edit files that are not just ending in
"htm" or "html" extensions? If the Adobe programmers made an
ASSumption then they need to issue a patch and remove it pronto. I
do not want someone else making decisions on how I do my work...I
get enough of that from Microsoft already, I do not need it from my
tools also. Please forward this to the developers if there is no
way to change my preferences, otherwise please tell me how to edit
a config file or hex-edit the executable to get this funtionality
back. TIA!I still can't figure out why the split view or design view is
grayed out and not accessible when editing files with an .asp or
.aspx extension and it is driving me crazy! I called the support
line and got someone in India who didn't understand my problem. 30
minutes later I finally got her to agree to transfer me to
secondary support but they were busy and she promised me they would
call the next day. That was over a week ago. I didn't even get a
voicemail, even though I stayed by my phone the whole day. I see
that support for DW under Adobe is no better than it was under
Macromedia...how sad. Microsoft Expression Web is looking better
and better every day....... :( -
Java Applet to Access ASP Info in Proxy server Environment
I Have a Java Applet on a Web server outside and when I access the
applet in my corporate office which has a ProxyServer I get "UnKnownHost Exception".
I did used the "System.getProperties" methods giving the Proxy information and can pass through the Proxy Server.But that is not what I want,The Applet should get through
the Proxy server and get the response from the ASP without using the "System.getProperties".
IS THERE ANY WAY TO GET THE INFO. OF PROXY SERVER FROM THE CLIENT MACHINE ON WHICH THE APPLET RESIDES(PROXY HOSTNAME:, PROXY PORT)OR FROM THE BROWSER (IE/NETSCAPE)CAUSE THEY STORE THE PROXY INFO INTERNALLY--WHERE??? AND HOW DO I GET THAT?
Thanks in AdvanceIf you are using the Microsoft VM, and your applet is signed, you can use MS security to query the registry for the proxy server info.
For example:
com.ms.security.PolicyEngine.assertPermission(com.ms.security.PermissionID.REGISTRY);
com.ms.lang.RegKey key = new com.ms.lang.RegKey(com.ms.lang.RegKey.getRootKey(
com.ms.lang.RegKey.USER_ROOT,
"Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings",
com.ms.lang.RegKey.KEYOPEN_READ);
String proxyServer = key.getStringValue("ProxyServer");However, if your client is using the Java plugin, this will not work. The Java Plugin loads the proxy server information based on the browser preferences, but I haven't figured out how to retrieve that proxy information from the Plugin itself. Sometimes the javaplugin.proxy.auto.url system property is null, even if the browser (MSIE) is configured to use an auto-configuration script/url for the proxy server configuration. I can see in the Java Console that the plugin knows the auto-config url.
Even if javaplugin.proxy.auto.url is not null, I don't know how to call the javascript function at that URL from within the applet to get the proxy server host name and port.
Does anyone know how to get the proxy information from the plugin? -
Programmatically changing user preferences when creating an InfoView user in code
Post Author: rickp101
CA Forum: .NET
I am very new to BO (using Business Objects 11.5) so bear with me if I am not clear or seem to have no idea what I'm talking about.
As a .NET Developer I have been asked to work on a project that involves creating new BO users and logging them in from an ASP.NET application (in order to mimic a single sign in system from another piece of software). I have found most of the information I require for this in the .NET SDK. However there is one function the client would like that I have not been able to find a solution for, and that is to change the users document viewing preferences.
Within InfoView, if you go into user preferences, under the General tab there is the following option:
For each document, show me ...
descriptionownerdateinstance countactions and description (if selected) initially not hidden
I think by default all of the boxes are checked however the client only wants the description showing for each user when they are set up. Is this something that can be modified within the code when the user is created or is each user going to have to change this themselves manually once logged in?
Any help will be much appreciated.
RichardPost Author: Ted Ueda
CA Forum: .NET
The InfoView settings aren't documented, unfortunately, but with sufficient trial-and-error, you'd be able to determine the correct values.
The settings are stored in the SI_DATA property 'desktopsettings' for a User object - you can have a look by logging onto 'Query Builder', accessible from the admin launchpad, and entering a query of the form: "Select SI_ID, SI_NAME, SI_DATA From CI_SYSTEMOBJECTS Where SI_KIND='User' And SI_NAME='<username here>'".
You'd see that, if you've specified the properties manually in InfoView (the property is not there by default) that it consists of '&'-separated key=value entries.
You'd retrieve the value via Enterprise .NET SDK call User.GetProfileString("desktopsettings"), and set new values via User.SetProfileString("desktopsettings", <new string value here>).
The specific values you're interested in are booleans dv0=1, dv1=1, dv2=1, dv3=1, and dv4=1.
Sincerely,
Ted Ueda -
Z22 Unable to change date in Preferences
My Z22 works fine except that I am unable to set the date in the Preference screen. When I do correct the date and press "Done" it goes back to 01/02/2005. I am able to HotSync OK and have tried a reset with no luck.
Post relates to: Palm Z22Hi.. Welcome to the Palm forums. If I am understanding this correctly you can change the time but as soon as you leave the screen, save the changes, it referts back to /1/02/2005. Now you state you did a reset, I'm assuming you mean you pressed the reset button on the back. That is whats called a soft reset, like rebooting your computer. What I would recommend is to do a hard reset. Be sure you have synced your data as this will delete all data on your device. Then before you sync data back to your device test the data and see if it holds. If so sync data back and test again to insure its not some software that has been installed when you resynced causing the problem. If you need instructions on how to do a hard reset go to http://kb.palm.com/SRVS/nua/launchKB.asp?c=887
-
Document type in Code Coloring preference
Edit, preference in Dreamweaver MX 2004, under code coloring
category, I can't see the various document type in Machine A but I
can see ASP JavaScript, PHP, Cold Fusion etc in Machine B, do
anybody know why????Configuration problem???
How do I get it back????Pls helpIt sounds like you may have some missing or corrupted
Configuration
files in the CodeColoring and DocumentType sub-folders.
Start by disabling any extensions that you have installed.
After that,
the easiest solution is probably to uninstall/reinstall.
HTH,
Randy
> Edit, preference in Dreamweaver MX 2004, under code
coloring category, I can't
> see the various document type in Machine A but I can see
ASP JavaScript, PHP,
> Cold Fusion etc in Machine B, do anybody know
why????Configuration problem??? -
Userinfo.asp and getting the info back
Hi All,
I'm probably being really stupid here but I need some help.
We have modified userinfo.asp to pick up settings from our SSO LDAP source. As far as I can tell this seem to have worked in that there are no errors. Running request server.variables (ALL_HTTP) I can see that it has picked up the user email addresses.
Now the problem is trying to pull this setting into a gadget. We are still running 4.5WS SP2 so all help is from the gadget book for this version.
I've tried following the examples and made a simple gadget which is
<%Dim objSettings, dictUserInfoSet objSettings = Server.CreateObject("GSServices.Settings")Set dictUserInfo = objSettings.GetUserInfoSettingsDim cUserMailcUserMail = dictUSerInfo("mail")%>Your email address is: <%=cUserMail%>
the call for 'mail' is set in userinfo.asp
vRequestedAttributes(0) = "cn" vRequestedAttributes(1) = "givenname" vRequestedAttributes(2) = "sn" vRequestedAttributes(3) = "mail"
Thing is that this displays nothing apart from the test. I've made sure these variables are added to the user information in the gadget wizard but still no luck. Could somebody please point out the obvious error.
Thanks Adam
If you are interested the full userinfo.asp code is
Sub PassUserInfo(ptSession, objSSOInfo) Dim lAuthSourceID Dim pUserInfo Dim strUserNameForBind Dim strUserPasswordForBind Dim vRequestedAttributes(4) Dim strObjectForQuery Dim objLDAPQueryTool
Err.Clear On Error Resume Next
Const strQueryFilter = "(objectclass=*)" Const strDelimiter = ";" If Instr(1, ptSession.CurrentAuthUniqueName, "o=Wiley") Then lAuthSourceID = Application("JWAUTHSOURCE")
Set pUserInfo = ptSession.UserInfo
strUserNameForBind = ptSession.CurrentAuthUniqueName strUserPasswordForBind = objSSOInfo.BasicAuthPassword
vRequestedAttributes(0) = "cn" vRequestedAttributes(1) = "givenname" vRequestedAttributes(2) = "sn" vRequestedAttributes(3) = "mail"
strObjectForQuery = ptSession.CurrentAuthUniqueName If (Application("bLDAPQueryToolProviderInitialized") = False) Then Application.Lock() If (Application("bLDAPQueryToolProviderInitialized") = False) Then Set Application("objLDAPQueryToolProvider") = ptSession.AuthSources.Open(lAuthSourceID).AuthSourceProvider Application("bLDAPQueryToolProviderInitialized") = True End If Application.UnLock() End If
Set objLDAPQueryTool = Application("objLDAPQueryToolProvider").Interfaces("IPTLDAPQueryTool") Call objLDAPQueryTool.Search(strObjectForQuery, strQueryFilter, vRequestedAttributes, strUserNameForBind, strUserPasswordForBind, pUserInfo, strDelimiter)
If (err.Number <> 0) Then Response.End Response.Write("<BR><B>There was an error while connecting to the LDAP repository</B><BR>") Response.Write("Please contact your system administrator") End If End IfEnd SubThe problem you're experiencing with objSSOInfo.BasicAuthPassword in the userinfo.asp page could be due to checking "remember my password" on the login screen. When that happens, the users password is encrypted and written to the Plumtree cookie. This frustrated us for a little while, because autologin still applies all our user info settings, but was not picking up password. It was blank, as you stated.
This is what we did to fix the problem:
In the newutility.asp page under PortalPages\Common we pick up the password used for autologin, and add it to a session variable. This page is called before userinfo.asp in the autologin process. Here's a code example:(from the AutoConnect subprocedure in newutility.asp)
strDP = ptCryptographer.Decrypt(Request.Cookies("PTLogin")("Password")) Session("tmpPassword") = strDP
Then, in the userinfo.asp page we have conditional logic to see if the session variable is blank, if it is not = "" then we know to pick up password from the session variable. If it is = "" then we pick up the password from objSSOInfo.BasicAuthPassword. Here's more code example (from userinfo.asp):
--------Dim sPasswordDim sPasswordEncryptedDim objCryptographerSet objCryptographer = Server.CreateObject("PTGRemote.PTRCryptographer")objCryptographer.Initialize("blahblah")if Session("tmpPassword") = "" then sPassword = objSSOInfo.BasicAuthPasswordelse sPassword = Session("tmpPassword")end ifsPasswordEncrypted = objCryptographer.Encrypt(sPassword)
Call PopulateUserInfo("ECPassword", sPasswordEncrypted, pUserInfo)Call PopulateUserInfo("UEPassword", sPassword, pUserInfo)--------
Sub PopulateUserInfo(inName, inValue, pUserInfo) Call pUserInfo.AddUserInfoSetting(inName, inValue)End Sub
This works 100%, just be sure to not clear out the tmpPassword session variable, or you'll lose the password.
More things to note. The E2K portlet suite expects the users password (when using user info settings) to be passed plain text, unencrypted. That's pretty bad (in my opinion), but that's the way it works. We've had a myriad of problems with this portlet suite (version 3.0.2). I'd love to talk with some other customers using user info settings for these portlets to compare notes, and see if you're running into some of the same issues we are.
Jason OdomCox Enterprises -
DW 9 crashes in classic ASP when ASP inside select tag.
I'm updating a site written in classic ASP with Dreamweaver CS3, 9.0. Dreamweaver is crashing to the desktop whenever I encounter a page that has ASP code within the Option tags of a Select list, like the example below. Rather then recoding all of the pages, is there a way to get Dreamweaver to work with these pages, maybe shutting of a feature in the preferences that is causing the crash? Has anyone else encountered this?
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<select name="MailList" class="Input" Style="Font-Size:11px; Width:98%">
<option Value="">Any</Option>
<option Value=""HolidayCard"" <%If Request.QueryString("MailList") = "HolidayCard" Then Response.Write " Selected" End If%>>Holiday Card</Option>
<option Value=""MetroMatters"" <%If Request.QueryString("MailList") = "MetroMatters" Then Response.Write " Selected" End If%>>Metro Matters</Option>
</select></body>
</html>I have just looked in another post and turning back the clock
on my pc seems to work for now.
Maybe you are looking for
-
MacBook Pro running very slow over 1 hour to boot up
I was out of the country on a trip and my daughter's MBP (15" early 2011) refused to boot. It was stuck on the gray screen with the rotating gear. She made an appointment at the genius bar and they told her basically the computer was dead in the wate
-
Setting a user's iChat status to available using Apple Remote Desktop
Hi, I have a couple of users who routinely forget to re-set their iChat status to 'available' when arriving for work and opening their laptops. (Of course, iChat usually fails to set their status automatically, even though that option is checked). Is
-
A font (News Gothic BT) that I want to set via Tools/Options/Content to be the default font for Firefox is not listed in the dropdown font menu on that tab, even though it is in my Windows/Fonts directory on my C:/ drive. The font in question is a TT
-
Package com.businessobjects.samples does not exist
<p>I am trying to run a jsp with parameters passed to a rpt file but Iam getting an error: package com.businessobjects.samples does not exist, import com.businessobjects.samples.*; //[ /Sample Reports/E2ECompliance-SelectionPage-viewer.jsp; Line: 6]<
-
About Export and Import of pages in R12
Hi, I am working on R12 Instance and i need export and import commands of pages for R12. I have commands To Import and Export of pages in 11i but not for R12. Regards Hitesh