Hello,
I'm wondering what the zURL syntax is if the database you're trying to search requires authentication?
Thank you!
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | z3950.module-credentials.patch | 1.34 KB | schildi |
Hello,
I'm wondering what the zURL syntax is if the database you're trying to search requires authentication?
Thank you!
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | z3950.module-credentials.patch | 1.34 KB | schildi |
Comments
Comment #1
Gocho commentedI don't know any user/password protected database to test, but the usual is:
user:password@server:port/database
user:password@z3950.loc.gov:7090/Voyager
Comment #2
schildi commentedAs far as I can see in chapter 3.1 of "YAZ User’s Guide and Reference" ( http://www.indexdata.dk/yaz/doc/yaz.pdf ) the syntax is
These credentials have to be separated from the URL and passed as options to function yaz_connect
as
mixed yaz_connect ( string zurl [, mixed options] )see http://www.php-resource.de/handbuch/function.yaz-connect.htm
Comment #3
schildi commentedafter having a first look at the sources I set up a patch to pass credentials as options.
But it needs to be cross checked by somebody!
It looks that user/password are accepted by "Deutsche Bibliothek" even when not receiving a valid result. But this might have a different reason. So please check the attached patch.
Deutsche Bibliothek (using SUTRS and UNIMARC as default):
user=gast,password=gast:z3950.dbf.ddb.de:210/iltis