(no commit message)
[devwiki.git] / testing / myproxy.mdwn
index c7f7dcb..e365172 100644 (file)
@@ -1,24 +1,11 @@
 # Testing MyProxy with Moonshot support
 
 ## Prerequsities
-    # apt-get install libglobus-gss-assist-dev
+    # apt-get install libglobus-gss-assist-dev grid-packaging-tools
 
 ## Build the MyProxy server and client
-    $ wget http://downloads.sourceforge.net/project/cilogon/myproxy/myproxy-5.3.tar.gz
-    $ tar xzf myproxy-5.3.tar.gz && cd myproxy-5.3
-    $ patch -p0 <<EOF
-    --- myproxy_sasl_client.c       2011-04-14 12:08:59.000000000 -0400
-    +++ myproxy_sasl_client.c.orig  2011-04-14 12:08:43.000000000 -0400
-    @@ -328,7 +328,7 @@
-                    result = SASL_FAIL;
-                    goto error;
-                }
-    -        } else /* if (result != SASL_OK) */ {
-    +        } else if (result != SASL_OK) {
-                if (send_response_sasl_data(attrs, &server_response, "", 0) < 0) {
-                    result = SASL_FAIL;
-                    goto error;
-    EOF
+    $ wget http://downloads.sourceforge.net/project/cilogon/myproxy/myproxy-5.4.tar.gz
+    $ tar xzf myproxy-5.4.tar.gz && cd myproxy-5.4
     $ /usr/share/globus/globus-bootstrap.sh
     $ ./configure --with-flavor=gcc32pthr --with-sasl2=/usr --sbindir=/usr/sbin
     $ make
 ## Try obtaining a certificate for steve
     $ export SASL_PATH=/usr/local/lib/sasl2
     $ export X509_CERT_DIR=/etc/ssl/certs
-    $ ./myproxy-logon -s localhost -n -l steve@local
+    $ ./myproxy-logon -s localhost -n -l steve@local -o /tmp/creds.pem
+
+The client will prompt for the steve's password and finishes saying
+
+    'A credential has been received for user steve@local in /tmp/cred.pem.'
+You can check the obtained credentials with
 
-The PKI credentials will be in ....
+    $ openssl x509 -in /tmp/cred.pem -noout -text |less