- do not end with strange edg_wll_gss_read() error when cert/key file is not owned...
authorMiloš Mulač <mulac@civ.zcu.cz>
Mon, 31 Jul 2006 12:05:51 +0000 (12:05 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Mon, 31 Jul 2006 12:05:51 +0000 (12:05 +0000)
- print descriptive error message on server side

org.glite.lb.server/src/lb_authz.c

index cd9920c..e59e4d2 100644 (file)
@@ -4,6 +4,7 @@
 #include <unistd.h>
 #include <errno.h>
 #include <syslog.h>
+#include <assert.h>
 
 #include "glite/lb/context-int.h"
 #include "lb_authz.h"
@@ -203,7 +204,10 @@ edg_wll_SetVomsGroups(edg_wll_Context ctx, edg_wll_GssConnection *gss, char *ser
 
    ret = get_peer_cred(gss, server_cert, server_key, &p_chain, &cert);
    if (ret) {
-      ret = 0;
+//      ret = 0;
+//     XXX (MM): I do not know whether this error may be triggered by other
+//             bugs too... The error message may be incomplete.
+      edg_wll_SetError(ctx, errno, "cert/key file not owned by process owner");
       goto end;
    }