116a6bbe1066ee9cd819c58cfb7cb99c69785cb8
[devwiki.git] / testing / myproxy.mdwn
1 # Testing MyProxy with Moonshot support
2
3 ## Prerequsities
4     # apt-get install libglobus-gss-assist-dev
5
6 ## Build the MyProxy server and client
7     $ wget http://downloads.sourceforge.net/project/cilogon/myproxy/myproxy-5.3.tar.gz
8     $ tar xzf myproxy-5.3.tar.gz && cd myproxy-5.3
9     $ patch -p0 <<EOF
10     --- myproxy_sasl_client.c       2011-04-14 12:08:59.000000000 -0400
11     +++ myproxy_sasl_client.c.orig  2011-04-14 12:08:43.000000000 -0400
12     @@ -328,7 +328,7 @@
13                     result = SASL_FAIL;
14                     goto error;
15                 }
16     -        } else /* if (result != SASL_OK) */ {
17     +        } else if (result != SASL_OK) {
18                 if (send_response_sasl_data(attrs, &server_response, "", 0) < 0) {
19                     result = SASL_FAIL;
20                     goto error;
21     EOF
22     $ /usr/share/globus/globus-bootstrap.sh
23     $ ./configure --with-flavor=gcc32pthr --with-sasl2=/usr --sbindir=/usr/sbin
24     $ make
25
26 ## Configure the server
27     # mkdir /etc/myproxy
28     # ./myproxy-server -c .....
29
30 ## Try obtaining a certificate for steve
31     $ export SASL_PATH=/usr/local/lib/sasl2
32     $ export X509_CERT_DIR=/etc/ssl/certs
33     $ ./myproxy-logon -s localhost -n -l steve@local
34
35 The PKI credentials will be in ....