Multiple Guest Accounts / Behind-the-scenes Login

How would we go about logging a visitor in as a specific user behind-the-scenes (without them even seeing the Login Screen)? This question is driven from a requirement where we need to display a replica of the subportal branding at the guest view level. (Needs to go on the wish list for sure: Redirecting to a subportal and/or subportal guest accounts.) For example, if I created a [subportalname] Guest user for a subportal and wanted to automatically log a visitor in as that user, how would I trigger that process? Login PEI doesn't help me - none of those events seem to fire until the user is presented with the Login screen and manually clicks Log In - Looking at the Interpreter class right now, where we see the Guest login functionality (DoGuestLogin, etc.). How might we pass around a username and password and trigger an automatic login attempt with that data? We're basically looking for a work-around for multiple guest accounts - 1 per subportal - so that branding can appear right up front before a user actually logs in. We will have a parameter somewhere to branch out which subportal guest user to log the visitor in as. We've gone down a couple of different routes with no luck.
Again, due to a tight timeframe, we need details - like, "Create a custom activity space replacing the Interpreter class, edit [blah] function and use [blah] function to pass in your hardcoded username and password. Rebuild [blah] and deploy [blah] dlls to [blah] directories."
Regards,
Sarah WheelerCox Enterprises, Inc.

It turns out this is pretty complicated due to the internals of how user sessions get initialized. I've managed to get a test working where it logs you in as a guest in a different sub-portal. I can give you some rough information now.
You will need a Login PEI, and a custom Space and IloginControl/IHTTPControl. Obviously, you will need to edit the Login PEI xml file and the CustomActivitySpaces.xml file to get your customizations deployed.
The OnAfterLogin() method of the ILoginActions PEI should look something like this:
publicRedirect OnAfterLogin(Object _oUserSession, ApplicationData arg1)
IPTSession ptSession = (IPTSession) _oUserSession;
if(ptSession.GetSessionInfo().GetCurrentUserID() == PT_INTRINSICS.PT_USER_GUEST)
if(PTDebug.IsInfoTracingEnabled(Component.Portal_Browsing))
PTDebug.Trace(Component.Portal_UI_Infrastructure, TraceType.Info,
"Guest user login redirecting to guestloginspace to go to non-standard guest user.");
Redirect guestRedirect = newRedirect();
guestRedirect.SetLinkCreateNewSpace(GuestLoginSpace.STR_MVC_CLASS_NAME, null);
guestRedirect.SetControl(GuestLoginSpace.STR_MVC_CLASS_NAME);
returnguestRedirect;
returnnull;
and the LoginControl that I mentioned earlier is a bit more complicated than I implied. It also needs to be an IHTTPControl for login purposes. The custom space is very simple, so I will skip it. Here's the full class code for the custom guest login control:
publicclassGuestLoginControl implementsILoginControl, IHTTPControl
publicstaticfinalString STR_MVC_CLASS_NAME = "GuestLogin";
privateAActivitySpace m_asOwner;
privateIPTSession m_UserSession;
/**theseneedtobenulledoutafterexecution.*/
privateIWebData m_WebData = null;
privateIXPRequest m_xpRequest = null;
*@seecom.plumtree.uiinfrastructure.activityspace.ILoginControl#DoGetSession()
publicbooleanDoGetSession()
returntrue;
*@seecom.plumtree.uiinfrastructure.activityspace.ILoginControl#GetSession()
publicObject GetSession()
// We need to set this manually before the Interpreter does because
// DoTasksAfterLogout depends on it.
// m_asOwner.SetUserSession(subportalGuestUser);
LoginResult rReturn = null;
try
rReturn = LoginHelper.INSTANCE.AttemptLogin(m_UserSession, m_asOwner,
m_xpRequest, m_WebData);
catch(Exception e)
if(PTDebug.IsErrorTracingEnabled(Component.Portal_UI_Infrastructure))
PTDebug.Trace(Component.Portal_UI_Infrastructure, TraceType.Error,
"AttemptLogin() failed.", e);
if(!rReturn.m_bSuccess)
if(PTDebug.IsErrorTracingEnabled(Component.Portal_UI_Infrastructure))
PTDebug.Trace(Component.Portal_UI_Infrastructure, TraceType.Error,
"GuestSubportalLoginControl AttemptLogin() failed: "+
rReturn.m_strError);
if(null!= rReturn.m_Redirect)
if(PTDebug.IsErrorTracingEnabled(Component.Portal_UI_Infrastructure))
PTDebug.Trace(Component.Portal_UI_Infrastructure, TraceType.Error,
"GuestSubportalLoginControl AttemptLogin() return redirect ignored.");
m_xpRequest = null;
m_WebData = null;
returnm_UserSession;
*@seecom.plumtree.uiinfrastructure.activityspace.IControl#CheckActionSecurityAndExecute(XPHashtable)
publicRedirect CheckActionSecurityAndExecute(XPHashtable arg0)
if(PTDebug.IsInfoTracingEnabled(Component.Portal_UI_Infrastructure))
PTDebug.Trace(Component.Portal_UI_Infrastructure, TraceType.Info,
"GuestSubportalLoginControl Execute() creating redirect to login space for dljr.");
m_UserSession = PortalObjectsFactory.CreateSession();
m_UserSession.Connect("non-standard guest", "", null);
ILink rReturn = LoginHelper.INSTANCE.GetDefaultPageRedirect(newRedirect(), m_UserSession, m_asOwner);
if(PTDebug.IsInfoTracingEnabled(Component.Portal_UI_Infrastructure))
PTDebug.Trace(Component.Portal_UI_Infrastructure, TraceType.Info,
"GuestSubportalLoginControl Execute() finished.");
return(Redirect) rReturn;
*@seeIHTTPControl
*@paramr
*@parampageData
publicvoidSetHTTPItems(IXPRequest r, IWebData pageData)
m_xpRequest = r;
m_WebData = pageData;
*@seecom.plumtree.uiinfrastructure.activityspace.IControl#Init(IModel,AActivitySpace)
publicvoidInit(IModel arg0, AActivitySpace _asOwner)
m_asOwner = _asOwner;
*@seecom.plumtree.uiinfrastructure.activityspace.ILoginControl#SetRedirectForUseAfterLogin(Redirect)
publicvoidSetRedirectForUseAfterLogin(Redirect arg0)
*@seecom.plumtree.uiinfrastructure.activityspace.IMVCObject#GetName()
publicString GetName()
returnSTR_MVC_CLASS_NAME;
*@seecom.plumtree.uiinfrastructure.activityspace.IManagedObject#Create()
publicObject Create()
returnnewGuestLoginControl();

Similar Messages

  • How to open multiple hotmail accounts at the same time ?

    Hi,
    Seems maybe normal for some people but I coming from internet explorer and with this explorer I was able to open multiple hotmail accounts at the same time, by default firefox can't do that, is there some setup to modify to open these at the same time ?
    Thanks in advance for any help.
    (Version updated 3.6.8)
    Regards,
    Chris

    You can look at one of these if you want to sign on with different identities at the same time:
    * CookiePie: http://www.nektra.com/oss/firefox/extensions/cookiepie/
    * CookieSwap: https://addons.mozilla.org/firefox/addon/3255
    * Multifox: http://br.mozdev.org/multifox/ - Different logins at the same time

  • Exception behind the scenes while trying to paint images

    Hi,
    I am trying to load up an image (bufferedimage) by pasting 2 images one after the other. The response type of the jsp is set to image/jpg. I am able to see the image, but behind the scenes, i get an exception like this
    [3/7/08 12:51:40:819 EST] 34a16964 SystemErr R java.lang.IllegalStateException: Context has not been prepared for next connection
    [3/7/08 12:51:40:819 EST] 34a16964 SystemErr R at com.ibm.ws.webcontainer.srt.NilSRPConnection.prepareForWrite(SRTConnectionContext.java:593)
    [3/7/08 12:51:40:819 EST] 34a16964 SystemErr R at com.ibm.ws.webcontainer.srt.SRTServletResponse.commit(SRTServletResponse.java:303)
    [3/7/08 12:51:40:819 EST] 34a16964 SystemErr R at com.ibm.ws.webcontainer.srt.SRTServletResponse.alertFirstFlush(SRTServletResponse.java:227)
    [3/7/08 12:51:40:819 EST] 34a16964 SystemErr R at com.ibm.ws.webcontainer.srt.BufferedServletOutputStream.flushBytes(BufferedServletOutputStream.java:359)
    [3/7/08 12:51:40:819 EST] 34a16964 SystemErr R at com.ibm.ws.webcontainer.srt.BufferedServletOutputStream.flush(BufferedServletOutputStream.java:343)
    [3/7/08 12:51:40:819 EST] 34a16964 SystemErr R at javax.imageio.stream.FileCacheImageOutputStream.close(FileCacheImageOutputStream.java:226)
    [3/7/08 12:51:40:819 EST] 34a16964 SystemErr R at com.sun.imageio.stream.StreamCloser$1.run(StreamCloser.java:79)
    [3/7/08 12:51:40:819 EST] 34a16964 SystemErr R at java.lang.Thread.run(Thread.java:570)
    Any ideas here?
    Thanks

    Hello INFINITI11,
    I've build a test machine and I can update the content so the online content doesn't have problem in my mind.
    You may need to check your network setting here because we can see this error:
    "The operation being requested was not performed because the user has not logged on to the network. The specified service does not exist."
    You can check your account privilege and check whether you have any policy settings on your OS. You'd better also check that you've disabled all Anti-virus software.
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Multiple iTunes Accounts on the Same Computer

    iTunes states that you can have multiple iTunes accounts on the same computer. But when I attempt to put in a new user account (for my wife so she can have her own music library) my own iTunes account pops up when I go to load iTunes while in her user account. And if I create any account that is NOT an 'Admistrator' account iTunes refuses to install itself as the "user does not have the privileges - consult your Administrator". So I am lost as to what I need to do to create separate iTunes accounts where each person has their own iTunes library and thus their own music. Perplexed...
    Robert

    iTunes states that you can have multiple iTunes accounts on the same computer. But when I attempt to put in a new user account (for my wife so she can have her own music library) my own iTunes account pops up when I go to load iTunes while in her user account. And if I create any account that is NOT an 'Admistrator' account iTunes refuses to install itself as the "user does not have the privileges - consult your Administrator". So I am lost as to what I need to do to create separate iTunes accounts where each person has their own iTunes library and thus their own music. Perplexed...
    Robert

  • HT204053 can i have multiple iCloud accounts with the same Apple id

    Can i have multiple iCloud accounts with the same Apple id

    Welcome to the Apple Community.
    No, your ID is essentially your account. You can have email aliases and you can have multiple accounts, but I don't think that's what you are asking.

  • How do i set up multiple iCloud accounts on the same mac?

    how do i set up multiple iCloud accounts on the same mac?

    Interesting - I was sure I'd seen a note somewhere that it was only Mail, but this article:
    http://support.apple.com/kb/ts4020
    does say
    Your secondary iCloud accounts can be set up and viewed in Settings > Mail, Contacts, Calendars on your iOS device, or Apple () menu > System Preferences > Mail, Contacts, Calendars on OS X Lion. You may choose to do this if you have a second iCloud account and need to access its Mail, Contacts, or Calendar data. 
    Note: While you can configure multiple iCloud Mail accounts in iOS, Push mail will only work for the primary iCloud account in iOS. Secondary account(s) will check for mail based on the settings in Settings > Mail, Contacts, Calendars > Fetch New Data.
    It's not something I can test - I suppose the second account's data gets added to the lists in iCal and Address Book?

  • Is there a way to get multiple email accounts on the front page of my Iphone?  Also I would like to have different sounds when I receive mail in the different accounts. Is this possible?

    Is there a way to get multiple email accounts on the front page of my iphone instead of just the generic mail icon?  Also is there a way to get a different alert sound for each email?

    No.
    You need to review this (WYSISWG):
    http://manuals.info.apple.com/en_US/iPhone_iOS4_User_Guide.pdf

  • Synchronizing multiple user accounts on the same computer

    We bought a .mac family pack. Synchronizing 3 computers works great. But we cannot synchronize our 5 family member's multiple user accounts on the brand new iMac G5. Can it be true that synchronizing does not work between different user accounts on the same computer? To be able to do this was the prime motivator to buy a .mac family pack. Please someone tell us that we are doing something wrong!?
    Cheers, Leo
    PowerBook G4   Mac OS X (10.4.3)   iMacG5 and G3

    Leo,
    I seem to be having better luck with what I think you are trying to do. Let me describe my situation.
    I have accounts for my wife and I and each of our children on each of our several Macs.
    For my wife's accounts (on each of the Macs) and my account (on each of the Macs) I enabled syncing via the preference pane. I did not sync the mail accounts (she has different e-mail accounts) but we did sync the addresses, bookmarks and such. We did not sync the calendars since we each "subscribe" to each others calendar.
    On each machine and across the machines our "sync'd" information appears properly synchronized.
    Now, here is one difference, I do NOT have a family pack. I only have my single .Mac account and I use that one account as the .Mac account for my wife and I. Now that I think about it, that would seem to be the big difference.
    Might I suggest that you go into your wife's account and change her .Mac information to be YOUR information and see if it synchorizes.
    Regards,
    Tom

  • Can I have multiple iTunes accounts for the same Ipod?

    Can I have multiple iTunes accounts for the same Ipod? What I mean is can I use multiple iTunes accounts through the same iPod for buying stuff?

    I believe you're limited to syncing DRM'd items from 5 different accounts.
    tt2

  • How do I share itunes will a guest account on the same computer?

    I am trying to give a person within my house hold access to my computer, without giving them access to my personal files. However, I would like to share my itunes library with this individual. How do I share my library with my guest account on the same computer, without sharing everything else?

    iTunes: Setting up Home Sharing on your computer

  • How to make every account in the system login automatically?

    How to make every account in the system login automatically when Mac OS X startup?
    Thanks!

    I can see one way to do it. You'll need to install a script in each user account, and have it set as a login item for each user. Let's imagine you have three user accounts. Each user in Mac OS X has a UID number. Normally your first user has the UID of 501, the second one will be 502 and so on...
    You can determine the UID by running the following AppleScript while logged in on each user:
    do shell script ("ID")
    This'll return a long block of text, but right at the start you'll see the UID number. Let's assume your three users have the UIDs 501, 502 and 503. We begin with 501.
    Create the following script and save it as an application while logged in as 501. Note that the password you're entering is the password for UID 502. Also note that the forum system is creating line breaks where there shouldn't be any. The long "do shell script" line should be one line.
    delay 5 --This delay allows time for login to complete, but it may not be necessary.
    try
    do shell script "/System/Library/CoreServices/Menu\\ Extras/User.menu/Contents/Resources/CGSession -switchToUserID 502"
    delay 5 --This delay could be shorter or longer, depending on how fast your machine is.
    tell application "System Events"
    keystroke "password for 502" --the password for UID 502
    keystroke return
    delay 1
    end tell
    on error
    display dialog "Unable to switch user."
    end try
    Open System Preferences, go to Accounts, click "login items" and drag your script (saved as an application) to the login items window.
    You basically repeat this process for each user account, modifying the script so it switches to the next user.
    This isn't ideal, because your passwords will be stored in the scripts, and each user could open the scripts and learn the passwords of the other users on that machine.
    I picked some of this up from a discussion over at the Macworld forums:
    http://hints.macworld.com/article.php?story=20031102031045417
    Message was edited by: The Preacher
    Message was edited by: The Preacher
    Message was edited by: The Preacher

  • Links work behind the scene

    Hi All,
    I have a pdf which is pretty much a guide. I created InDesign file with layers and exported as pdf.
    I'm trying to do the following:
    When i hit one of the navigation links, a layer associated with that link shows up. In layer that showed up, i have more links associated with images in its own layers. Everything works like i want.
    The problem is that links in non active layers work behind the scene when i hover over so i can hit link in non active layres.
    Is there a way to solve this problem?
    The script (in link action) i'm using to show/hide layers is:
    var ocgs = this.getOCGs();
    for (var i=0; i<ocgs.length; i++)
    if (ocgs[i].name == "LayerName")
    ocgs[i].state = ocgs[i].state=true;
    var ocgs = this.getOCGs();
    for (var i=0; i<ocgs.length; i++)
    if (ocgs[i].name == "LayerName")
    ocgs[i].state = ocgs[i].state=false;
    I'm using Acrobat 9 pro
    Please help
    Thanks in advance

    Hi,
    Thanks for the answer. I solved the problem in acrobat with buttons.
    Thanks anyway

  • Behind the Scenes in Captivate 2

    I'm creating an application where I ask the user to enter
    comments in a text entry box. What I want to be able to do is save
    whatever they type in the text box and display it in a later slide
    so they can compare their comments to an "expert's" assessment.
    When I was at a learning conference, I heard some Captivate
    users refer to going "behind the scenes" to make changes to
    Captivate. Is that what I need to do here? Any suggestions?

    See "Text Input/Output" by Silke Fleischer, posted on the
    Captivate Exchange:
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_us&extid=1253 021
    Works great!

  • Running "nightly scripts" and other behind the scenes tasks

    I keep seeing posts about how the iMac Intel runs nightly scripts and/or other tasks behind the scenes. There is no mention of this in the user manual nor does Apple warn you about not putting the computer to sleep so that these tools will run. My iMac hard drive is asleep every night (as am I...) how can I get these things to run manually? How often? And can someone point me to literature to support this info?
    Thanks much,
    HS

    522/2968
    Hi HS,
    "There is no mention of this in the user manual"
    That's because the three nightly maintenance scripts are not important at all, and don't affect Mac OS X performance.
    They are only a relic from the glorious Unix system times when it was used on rather small capacities HDs, on computers that were running non stop for months or years...
    Running them yourself manually, as a "perfectionist measure", can be done easily using the "daily, weekly & monthly" features in OnyX or Cocktail for example. All three tasks together, once a month or so, is fine. No harm (but useless) rerunning them many times.
    Litterature:
    The KB article is quite old, it shows only the default 10.2 times and commands:
    - http://docs.info.apple.com/article.html?artnum=107388
    (almost same as 10.3 and 10.4 though)
    What I really would like to learn, is whether the scripts have been modified in the Intel version of Tiger.
    Could you please (or Joseph or somebody else), in Finder, Go To (shiftcommandG) this folder:
    /private/etc/
    see if there is still the same
    /private/etc/periodic
    folder, with the three
    /private/etc/periodic/daily
    /private/etc/periodic/weekly
    and
    /private/etc/periodic/monthly
    scripts?
    (I'm asking because I don't own an Intel Mac myself).
    Next you would Go To (⇧⌘G) this folder:
    /System/Library/LaunchDaemons
    please, see if you find those three files
    /System/Library/LaunchDaemons/com.apple.periodic-daily.plist
    /System/Library/LaunchDaemons/com.apple.periodic-weekly.plist
    and
    /System/Library/LaunchDaemons/com.apple.periodic-monthly.plist
    If they are still there, you can open them (with TextEdit if your Developer Tools are not installed), and read the default times when the tasks are scheduled to run.
    Thanks in advance!
    Axl

  • I recently upgraded to Lion and am using the current version.  I cannot remove the guest account from the startup screen.  I disabled it in the system pref but it still appears.

    I downloaded and installed the most recent verison of Lion for my iMac.  After doing so I noticed that my start up screen now has a "guest" account.  I went into settings and disabled the "guest" account.  Still, the startup sceen displays a "guest" account and allows one to start the computer in a "safari" only mode.
    How do I removed the "guest" account from the start up screen and disable access via the "guest" account?

    Have a read here OS X 10.7.2 with iCloud showing Guest user account at log-in
    To get rid of it, uncheck "Find my Mac" in System Peferences -> iCloud
    Stefan

Maybe you are looking for

  • DTW on Windows Vista

    Hi All, I'm running SAP Business One 2005B on Windows Vista Ultimate successfully for sometime now. When i tried installing DTW, it gives an error saying wrong operating system, during the installation. I then tried installing DTW which came with SBO

  • Determining Message Server Host and Port information

    Hi, I am working on the NWDS creating a Java WD application and I was told which Netweaver system I should work on but I was not told the Message Server Host  information neither the Port information. I ran transaction SM51 (right click->details)in t

  • PAINFULLY slow cover flow....this can't be right.

    Is coverflow really supposed to be so slow it looks like I'm running this on a pentium 1? I've got a Dell XPS M1530 with 2 ghz dual core processor, 4 gig of ram, a 320 gig hard drive, a Geforce 8600 video card & directX 10. Everything else on the com

  • IOS 6.0.1 iMsg Photo not sending

    I was so happy when i got another iPod touch in July, after the 4th Gen one i got for christmas got stolen in January. I have the same exact one i did, 4th Gen 32gig iPod touch. I upgraded to iOS 6 right after it came out, not even thinking about the

  • Approving agents of an item in SC ?

    Hi  :{), I am trying to get the list of agents who approved an item in a shopping cart. ( Item based workflow) I know how to get the agent list for the SC itself, using the FM SAP_WAPI_WORKITEMS_TO_OBJECT, OBJTYPE = 'BUS2121',OBJKEY ='10000001319' ,