my-proxy-init

6 views
Skip to first unread message

wjvriend

unread,
Sep 9, 2009, 10:01:08 AM9/9/09
to jlite
Is it anticipated that my-proxy-init will be supported by j-lite in
the future ?

Luiz Henrique Coura

unread,
Sep 9, 2009, 12:10:31 PM9/9/09
to jl...@googlegroups.com
Hi,

by the way, I want to put my proxy (created with jlite) on myproxy server. How can I do this?

Is it right?

  1. /* CREATE LOCAL PROXY */
  2. GridSessionConfig config = new GridSessionConfig();
  3. config.setUserKeyPass("userKeyPass");
  4. GridSession session = GridSessionFactory.create(config)
  5. GlobusCredential proxy = session.createProxy("myVO", 12 * 3600);
  6.            
  7. /* PUT PROXY CREATED ON MYPROXY SERVER
  8. (http://www.cogkit.org/release/current/api/jglobus/org/globus/myproxy/MyProxy.html)*/

  9. GSSCredential gss = new GlobusGSSCredentialImpl(proxy, GSSCredential.INITIATE_AND_ACCEPT);

  10. MyProxy mp = new MyProxy("myproxy.server.com", 7512);
  11. mp.put(gss, "myProxyUser", "myProxyPassword", 168*60*60);

regards,
Luiz


2009/9/9 wjvriend <wjvr...@gmail.com>

Oleg Sukhoroslov

unread,
Sep 9, 2009, 12:45:09 PM9/9/09
to jl...@googlegroups.com

Oleg Sukhoroslov

unread,
Sep 9, 2009, 12:47:22 PM9/9/09
to jl...@googlegroups.com
Hi Luiz,

I haven't used MyProxy API myself, but guess you're on the right way.
Try it and see if it works this way.

Regards,
Oleg

Luiz Henrique Coura wrote:
> Hi,
>
> by the way, I want to put my proxy (created with jlite) on myproxy
> server. How can I do this?
>
> Is it right?
>
> 1. /* CREATE LOCAL PROXY */
> 2. GridSessionConfig config = new GridSessionConfig();
> 3. config.setUserKeyPass("userKeyPass");
> 4. GridSession session = GridSessionFactory.create(config)
> 5. GlobusCredential proxy = session.createProxy("myVO", 12 * 3600);
> 6.
> 7. /* PUT PROXY CREATED ON MYPROXY SERVER
> 8. (http://www.cogkit.org/release/current/api/jglobus/org/globus/myproxy/MyProxy.html)*/
> <http://www.cogkit.org/release/current/api/jglobus/org/globus/myproxy/MyProxy.html%29*/>
> 9.
>
> 10. GSSCredential gss = new GlobusGSSCredentialImpl(proxy,
> GSSCredential.INITIATE_AND_ACCEPT);
> 11.
>
> 12. MyProxy mp = new MyProxy("myproxy.server.com
> <http://myproxy.server.com>", 7512);
> 13. mp.put(gss, "myProxyUser", "myProxyPassword", 168*60*60);
>
>
> regards,
> Luiz
>
>
> 2009/9/9 wjvriend <wjvr...@gmail.com <mailto:wjvr...@gmail.com>>

Luiz Henrique Coura

unread,
Sep 15, 2009, 1:49:43 PM9/15/09
to jl...@googlegroups.com
Hi Oleg,

It works, but myproxy.put() build a proxy with 12 hours instead of 168*60*60 (7 days).

Myproxy.put based on "session.createProxy("myVO", 12 * 3600)" lifetime to set up the proxy lifetime on myproxy.

I don't understand this.

att
Luiz


2009/9/9 Oleg Sukhoroslov <oleg.suk...@gmail.com>

Oleg Sukhoroslov

unread,
Sep 18, 2009, 2:24:45 AM9/18/09
to jl...@googlegroups.com
Hi Luiz,

As far as I understand, the lifetime of myproxy's proxy is limited by
the lifetime of the local proxy you create.
Note that jLite creates VOMS proxy (Globus proxy + VOMS extensions),
which usually has lifetime no more than 12-24 hours (set by VOMS server
administrator).
I'd suggest you to create normal Globus proxy (via CoGKit Java API) with
7 days lifetime and put it in MyProxy. Then after you retrieve the proxy
from MyProxy use it as user certificate and key (with empty passphrase)
to create a VOMS proxy via jLite.
Hope that helps.

Regards,
Oleg

Luiz Henrique Coura wrote:
> Hi Oleg,
>
> It works, but myproxy.put() build a proxy with 12 hours instead of
> 168*60*60 (7 days).
>
> Myproxy.put based on "session.createProxy("myVO", 12 * 3600)" lifetime
> to set up the proxy lifetime on myproxy.
>
> I don't understand this.
>
> att
> Luiz
>
>
> 2009/9/9 Oleg Sukhoroslov <oleg.suk...@gmail.com
> <mailto:oleg.suk...@gmail.com>>
> <mailto:wjvr...@gmail.com> <mailto:wjvr...@gmail.com
Reply all
Reply to author
Forward
0 new messages