From: Mike Taylor Date: Wed, 23 Jul 2003 12:57:22 +0000 (+0000) Subject: Note incorrect ID-private OID for VAL_ADMINSERVICE X-Git-Tag: YAZ.2.0.4~16 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=b258a14997c70bf78310b2e094eb6bcf14b26a55 Note incorrect ID-private OID for VAL_ADMINSERVICE --- diff --git a/client/client.c b/client/client.c index 8374707..a57f354 100644 --- a/client/client.c +++ b/client/client.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2003, Index Data * See the file LICENSE for details. * - * $Id: client.c,v 1.204 2003-07-18 22:41:25 mike Exp $ + * $Id: client.c,v 1.205 2003-07-23 12:57:22 mike Exp $ */ #include @@ -590,9 +590,14 @@ int cmd_authentication(const char *arg) if (r == 1) { auth = &au; - au.which = Z_IdAuthentication_open; - au.u.open = user; - printf("Authentication set to Open (%s)\n", user); + if (!strcmp(user, "-")) { + au.which = Z_IdAuthentication_anonymous; + printf("Authentication set to Anonymous\n"); + } else { + au.which = Z_IdAuthentication_open; + au.u.open = user; + printf("Authentication set to Open (%s)\n", user); + } } if (r == 2) {