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 Sub

The 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

Similar Messages

  • HT5699 I forgot the answers for security questions, how can I reset them and get the access back to the iTunes store?

    Need help to get access to iTunes store. I bought an iTunes card bor buying on iTunes store.
    I forgot the answers for security questions, how can I reset them and get the access back to the iTunes store?

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then go to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you should see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then you won't get the reset option - you will need to contact iTunes Support or Apple to get them reset.
    e.g. you can try contacting iTunes Support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Account Management , and then 'Forgotten Apple ID security questions'
    or try ringing Apple in your country and ask to talk to the Accounts Security Team : http://support.apple.com/kb/HE57
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down this page to add a rescue email address for potential future use : http://support.apple.com/kb/HT5312 . Or you could change to 2-step verification : http://support.apple.com/kb/HT5570

  • IDoc to webservice and get the response back into another IDoc.

    Hi guys
    We have a scenario where we need to send an IDoc to webservice and get the response back into another IDoc.
    Questions:
    1. Is this scenario possible without a BPM? or do we need to use BPM (Sync-Async bridge).
    2. Is there a Async to Sync bridge in BPM?
    3. How do I use this bridge in my scenario and customize it?
    4. If not possible, provide me the related docs using BPM for the same scenario.
    Appreciate your quick response
    Regards
    Naidu

    Hi,
    this link may help u............,
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1134. [original link is broken] [original link is broken] [original link is broken]
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1403. [original link is broken] [original link is broken] [original link is broken]
    Regards,
    Azeez khan.

  • I have a huge amount of my memory used by 'other' than photos and music - to my knowledge, there is nothing there apart from a few songs and photos and 5 podcasts. What could it be? How could I get rid of this 'other' stuff and get the memory back?

    I have a huge amount of my memory used by 'other' than photos and music - to my knowledge, there is nothing there apart from a few songs and photos and 5 podcasts. What could it be? How could I get rid of this 'other' stuff and get the memory back?

    See -> What is "Other" and what can I do about it? by Kappy.
    Clinton

  • I have an old MAC running OS X 10.2.8 and lost internet capabilities, how do I update and get the internet back?

    Help please, I have an old iMac running OS X 10.2.8 and lost internet capabilities, how do I update and get the internet back?

    Was it connected to the internet before, and if so how?

  • HT4859 i want to get the info back from iCloud

    i want to get the info back from iCloud

    Welcome to the Apple Community.
    You'll need to provide more information, what info do you want back, how did you lose it.

  • Contacts are missing information since the upgrade, how do I get the information back?  They were recently added contacts and I am missing info on about 100 of them.  Anyone know how I can get the info back?

    Itunes said I needed to do the upgrade to the new OS.  So I downloaded the new OS and all the contacts that I have added over the last 2 months just have names and no other information.  I tried re-syncing with my computer and that did not work and now that info is missing on my computer.  Is there any way I can get the information back???? 

    No, you can't downgrade iOS. You should be able to restore the address book on your computer from your backup, though. Windows address book probably got wiped on the first sync after the upgrade completed. It sounds like the iPhone may have been disconnected before the entire restore cycle was complete if the contact records in Windows Address book got munged.

  • My Vista system crashed due to a corrupted windows file. When I reformatted C:/ & reloaded firefox & tbird, my bookmarks were gone. I have an image of the drive , but I don't know how to recover them and get the data back where I can access it.

    Vista system crashed due to a corrupted system file. The C drive was reformatted, and windows reloaded, along with the rest of my programs.
    Before the drive was reformatted, an image was made of it on a USB drive to save all the data. Now I need to know how to get the Bookmarks back for Firefox, and the Address Book back for Thunderbird.
    Thanks

    Thanks for the quick response. It worked very well, for both Firefox and Tbird.
    One hitch, until I remembered: those are all hidden files, in hidden folders. I had a devil of a time finding the "roaming" folder, until I found out how to unhide everything. In years past, I used DOS for that kind of thing. Explorer is much less user-friendly. Now that I know how to do it, it's simple.
    Thanks again for the guidance

  • When I open a HTML document in Safari all the images change to a ?  How do i stop this and get the images back?

    When I open a HTML document in Safari rather then getting an image, I get a ? in a box.  Why is this and how can I change it to get the images back?

    monkeyde,
    You are getting entagled in the two confusing meanings of the term pixels, namely as a unit identical to points and equalling 1/72 inch, and the basic component of raster images (and effects).
    You can read on in this very recent thread:
    Is there a way to get Illustrator to know how many pixels are in an inch?

  • I accidentally paid for 2 photoshop products and now i have two same products i need one of them to be canceled and get the payment back for one of them

    I accidentally ordered two same products and need one of them to be canceled and i need to get the payment back. Thanks

    This is an open forum, not Adobe support... You need Adobe support to cancel a subscription
    -cancel http://helpx.adobe.com/x-productkb/policy-pricing/return-cancel-or-change-order.html
    -or http://helpx.adobe.com/x-productkb/policy-pricing/cancel-membership-subscription.html
    -or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • New palm and getting the info from my old palm on the new one.

    Hi there.  I had to have a new centro ordered because my first cento's keys stopped working.  The sprint store recommended me coming home and backing up all my data on my first centro while I was waiting for the new centro to arrive.  All of my data from my first phone is backed up on my computer but I do not know how to get all of my calendar events and what not onto the new centro.  As soon as I hook up my new centro with the hotsync cable it wants to create a new user on my computer.  I"m not sure if that's what I need to do in order to get my old data on my new centro.  The sprint store was able to get all of my contacts on my new phone, I'm mainly wanting all of my calendar (which has important dates and things going on) and my downloaded ringtones.  If anyone can please help me figure out how to get all the old stuff on my new palm that would be great!  Thank you!
    Post relates to: Centro (Sprint)

    When you connect the Centro to the PC does it only ask to create a new username or do you get the option to use an existing username? You should have this option. If you don't, make sure the Centro is not connected to the PC. On the Centro, go to hotsync, look in the upper right corner of the screen, is there a username listed? Is it the same name that is in Palm desktop that has your data?
    If the name on the Centro is different than the one in Palm desktop, you will need to erase the username on the Centro and then you should get the prompt to use an existing username in Palm desktop.
    Here is a link to the Palm article regarding erasing the username on your device. Use the Option 2 in the article to erase the username on the device using the shortcut character.
    Click on the following link to the kb.palm.com webpage for the article regarding How do I change or delete the user name on my handheld?
    http://www.palm.com/cgi-bin/cso_kbURL.cgi?ID=33416
    For reference purposes, click on the following link for the support page for your device on the kb.palm.com webpage.
    http://kb.palm.com/SRVS/NUA/launchTab.asp?t=home&fn=centro&mn=centro&cn=sprint
    There are links on the page to the user guide, troubleshooting, how to's, downloads, etc.

  • Using SUBMIT and getting the results back

    Hi,
    I need to call a BAPI on-line (not in the background) using a different User ID as the one that's logged in.  I read from the threads the use of SUBMIT ...VIA JOB. 
    CALL FUNTION 'OPEN JOB'...
    SUBMIT zsubmitted_program
           VIA JOB     l_jobname
               NUMBER  l_jobcount
               USER    i_user       ====> changed User ID
           TO SAP-SPOOL WITHOUT SPOOL DYNPRO
               SPOOL PARAMETERS ls_params
                  AND RETURN.
    CALL FUNTION 'JOB_CLOSE'...
    Questions:
    1. How would I know that the job is finished?
    2. How do I retrieve the messages returned by the BAPI so I can present it on the screen?
    Many thanks,
    Huntr

    Hi,
    I will be wrapping BAPI_MATERIAL_SAVEDATA into a Z program to run it and use the method mentioned above.  I need to know by that method when the batch job is done and how to retrieve the results.
    Is there a function module to retrieve the job status or log?
    Also I think if i write the bapi results in the spool, I should be able to retrieve the spool.  What is the function module to do so?
    Regards,
    Huntr

  • TS3991 I was using a Numbers spreadsheet that had a lot of info on it. It started being difficult regarding inputting things on cells and then suddenly closed. I can't access it either on the iMac or in iCloud. What can I do to get the info back? Do I sto

    Can anyone help me get all my info that is locked in a NUmbers spreadsheet? I was inputting a lot of info when it started being a little difficult, and then it closed down on me. It now will not open telling me that there is no index in it!!
    I need that info and of course it has just happened when I am having problems with loads of houseguests and trying to set up an exhibition. I need that data.
    Please help me someone!

    The proper way to close Firefox is through the File menu "Exit" or the equivalent with the Firefox button.
    More detail in item '''#38 Firefox already running '''
    of
    [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 look like 3.6) (#fx4interface)]
    Firefox already running, to properly shutdown Firefox when closing the last window use File → Exit/Quit (or Firefox button → Exit). Closing Firefox with the [X] in the upper right corner closes the window ("Ctrl+W") but that does not necessarily close Firefox if it has subtasks running. If you want to close and reopen Firefox use the "Restart" within Add-ons if you made a change requiring a restart, or install "[https://addons.mozilla.org/firefox/addon/restartless-restart/ Restartless Restart]" ("Ctrl+Alt+R") which will allow you to take Firefox down and restart without having to check the Windows Task Manager to see if Firefox first actually ended. [http://kb.mozillazine.org/Firefox_hangs Firefox hangs]

  • I recently upgraded to iso5 and lost data associated to an app, how do i get the info back

    I recently upgraded to iso5 and lost data associated to an app which I have been entering for over a year.  I have the app but no data, how do i get it back.

    did you made an icloud backup before updating? you can recover if this is done.

  • Renamed all my songs in vision:m's organiser, how do i get the info back for x-f

    hiya i used to have a vision:m, and i renamed all of my songs (sorting out the genres etc), but when i installed x-fi's?organiser, they were mostly all wrongly named, and had gone back to what they orginially were
    is there anything i can do to get them back to their?renamed names? like something i have to have ticked in options or something?
    thanks alot

    I can't help with how to get back the previous tags, except to say that it happened to me also switching from a Rio Karma to and x-fi.
    In media monkey, if you right-click the track on the x-fi, and click on properties, you can edit the tags from there. You can also highlight a lot of tracks in one go, and change them to have the same genre, and it won't change the settings for the other tags.

Maybe you are looking for