Hi all,
I am doing some work with protocol link.
My question is "How to pass the username and password information from the Portal page to the PP protocol with the url below?"
http://server:9944/webport/default/main.htm?protocol=Protocols/Web%20Services/SomeFolder/MyProtocol ...
For example,users could login the system A and click the protocol link to open the new window to display the protocol results,who have the access to the PP protocol.
Thanks
sunny

If the user is logged into the Pipelint Pilot server, you can access his/her login name via global property UserName.
username := @UserName;
MK
Here's additional information about this issue:
There is a B/S system A not developed by Pipeline Pilot, its username and pwd are exactly the same with Pipeline Pilot Webclient. In this system we can run javascript, also we can get username and pwd when user login this system. When we click a link in system A, we want to login Pipeline Pilot Webport without inputing username and pwd. Can we make it? and how? Thanks!
I think you can do what you want to do; we have a similar system and here is how we do it:
1) I don't think you can go directly to a protocol within the webport. However, you can log the user into the webport with a cookie; we have a small protocol (I have attached it) that returns a session ID string. When users login to our portal, we call this protocol using the Java SDK (it would probably also work just as well with SOAP or any other web services call), running the protocol as the user with the user's credentials. The result of this call is that unless cookies are disabled on the user machine, if they go to the webport they will find they are already logged in.
2) We also use the session ID string that is returned to run protocols for them in the browser. You can run any protocol in a browser window using the protocol link, which has the form: http://myserver:9944/perlbin/runjob.pl?_protocol=Web+Services/Some+Folder/Some+Protocol¶m1=something¶m2=something. You can pass the user credentials directly in the querystring using the reserved parameters &_user=myusername&_password=myuserpassword, but this is obviously not desirable as they may briefly appear in plain text. Instead, we authenticate the user using the querystring parameter &_session=mysessionid, where mysessionid is the session ID string for the individual user that you got back from running the protocol in step 1. You can reuse this session ID string to run multiple protocols, it does not seem to expire.
Some gotchas:
1) The cookies and session ID strings are address sensitive; if you get session credentials by calling the server using the IP address (10.101.55.555:9944) and then try to use those in a protocol that you call with the dns name of that server (http://myserver:9944) they will not work.
2) Since the protocols are running in the browser, outside of the webport, you may need to modify the output to return links or results properly in a way that they can be accessed or downloaded by the user. Also, this method is not suitable for long running protocols where the user will want to return later and retrieve results, although there probably are workarounds for this by utilizing the runprotocol.exe function on the server (we just haven't needed to use any of them in our setup so we have not investigated).
Best,
Jennie
If you have access to the unencrypted password, you have a very insecure/easy-to-hack system.
At that point, I must ask: "Why are you even asking for a password?"
(back to the problem at hand)
Assuming you have a system that doesn't really have access to the unencrypted password, it sounds like you want:
The end-user to login to "System X"
Once authenticated there, those credentials should be auto-passed onto "System Y".
I know of only two ways to do this (securely)
1) skip the requirement and have them login to PLP manually
2) implement Single Sign On
As far as I know: Single Sign On was designed to do just what you are asking. Authentication in System X auto-authenticates you in System Y.
There are many SSO systems out there. Kerberos is one of them. (I believe, Active Directory implements it also)
Pipeline Pilot 9 is suppose to support a larger number of SSO system/methods.
We have not implemented SSO here... (yet). SSO is beyond my experience at this time.
Please contact Support for this.
I'm sure they have done this (at least, the PLP server portion) numerous times.
MK
(As Homer Simpson would say: DOH!!)
I totally forgot about that.
For the long-running jobs, you want to use the "polling" version of the SOAP calls.
As far as Session ID never expiring, I'd classify that as a security flaw if it were true.
MK