Discussion:
[KBibTeX] Z39.50 connection woes
Stefano Franchi
2010-01-12 15:29:01 UTC
Permalink
I am trying to connect to the Z39.50 server at the BNF (Biblioteque Nationale
de France) with no success. I got the connection parameters from their site
(http://www.bnf.fr/PAGES/infopro/produits/pb-protocole_z3950.htm):


Server :
z3950.bnf.fr
Port :
2211
Database :
catalogue g?n?ral de la BnF
Database name* :
TOUT
User :
Z3950
Password :
Z3950_BNF
Element set :
F
Version :
2
Record syntax :
pour UNIMARC
pour INTERMARC

1.2.840.10003.5.1
1.2.840.10003.5.2



The connection attempts gives an error with the following message:

The server returned the following message:
Connection error 10005: Init rejected

There seems to be an error in the authorization process. In a thread on the
Yaz mailing list (http://lists.indexdata.dk/pipermail/yazlist/2006-
March/001542.html), I found out that the BNF uses a different authentication
procedure (idPass authentication instead of open authentication). I suppose
that may be the source of the problem, but I do not know how to use this
information, or even if it is possible to use it within KBibtex. Apparently
Yaz needs to be called with a different string, containing a space instead of
a slash between user and password. The example in Yaz client is:

yaz-client -u "Z3950 Z3950_BNF" z3950.bnf.fr:2211/TOUT


Help appreciated.

Cheers,

Stefano

______________________________________________________________
Stefano Franchi
Department of Philosophy Ph: (979) 862-2211
Texas A&M University Fax: (979) 845-0458
305B Bolton Hall franchi at philosophy.tamu.edu
College Station, TX 77843-4237
Thomas Fischer
2010-01-13 21:59:01 UTC
Permalink
Hello Stefano,

I think I have fixed this bug. I simply forgot to set the
username/password in a Z39.50 connection. Please test if the newest SVN
snapshot or apply this patch (watch out for line breaks):

===================================================================
--- webqueryz3950.cpp (revision 961)
+++ webqueryz3950.cpp (working copy)
@@ -247,6 +247,7 @@
{
m_syntax = it.data().syntax;
m_conn = new KBibTeX::Z3950Connection( this,
it.data().host, it.data().port, it.data().database, it.data().charset,
m_syntax, "f" );
+ m_conn->setUserPassword( it.data().user,
it.data().password );
}
}



Bye,
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.unix-ag.uni-kl.de/pipermail/kbibtex/attachments/20100113/ac7a3d21/attachment.pgp
Loading...