[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Handle-info] Attempting to setup a Local server
Hi Everyone,
I looked in the archives but they were pretty lean so here's my question.
I'm using Sun Java 1.4.2 on Linux Handle 6.2, and I'm trying to get my
Handle Server running locally without contacting the Local Registry.
Here's what I did:
1. Went through the Simple Setup.
Performed the required client side steps
2. Copied siteinfo.bin to ~/.handle/resolver_site
3. Created ~/.handle/local_nas with a single entry in it: "0.NA/1234"
The client side setup seems to work. Based on the output from the
Handle Tool it seems that all messages are being sent to my local handle
server.
Performed the required servers side steps
4. Modified the config.dct file (question: do these parameters sit
inside the server_config = { ... } block, or do they sit by themselves
in the main body of the config file? I've tried both.)
5. Fired up DB Tool and added the Naming Authority "0.NA/1234"
6. Used DB Tool to add the Handle "1234/ADMIN", with a data of "admin".
Relative TTL of 86400 and (well, this is odd to me) a timestamp of
Monday Jan 05 07:15:57 EST 1970. Checked permissions are AR, PR, and
AW. PW is unchecked. The Refs box is empty.
Here are all the parameters -
+ index=300
+ type=HS_ADMIN
+ rwr-
+ "admin"
I can sucessfully list the naming authority and the 1234/ADMIN handle
using DB Tool.
7. Edited config.dct and replaced each occurance of "0.NA/ADMIN" with
"0.NA/1234/ADMIN".
I can start the handle server. Then I start the Handle Admin Tool.
I can click on the Handle Tool "Setup" button, then select
"Authentication". I Authenticate using a secret key ("admin") with an
ID handle of "1234/ADMIN", and an ID Index of 300. After
authenticating, I see "HS_SECKEY 1234/ADMIN:300" displayed at the bottom
of the Handle Tool.
So far so good. I can tell that the Handle authentication request was
sent to my local server:
sending HDL-TCP request (version=2.1; oc=201; rc=0; snId=0 crt caCrt
noAuth 1234/ADMIN) to 128.220.8.104:2641
received HDL-TCP response: version=2.1; oc=201; rc=1; snId=0 crt
caCrt noAuth
So I try adding a handle by clicking on the "Create Handle" button in
the Handle Admin Tool. I attempt to create the following handle:
Handle: 1234/testfoo
Handle Data View:
index=100 type=HS_ADMIN Admin ID Handle: 1234/ADMIN Admin ID Index: 300
index=1 type=URL
When I try to create it I receive the error:
Response: Handle Creation Failed Error(400): INVALID ADMIN
Handle Tool Output is:
sending HDL-TCP request (version=2.1; oc=100; rc=0; snId=0 caCrt noAuth
adm 1234/testfoo) to 128.220.8.104:2641
received HDL-TCP response: version=2.1; oc=100; rc=402; snId=3
caCrt noAuth
sending HDL-TCP request (version=2.1; oc=200; rc=0; snId=3 caCrt
noAuth / HS_SECKEY 300:1234/ADMIN) to 128.220.8.104:2641
received HDL-TCP response: Error(400): INVALID ADMIN
Any idea what I'm doing wrong?
Thanks in advance for advice!
Elliot
_______________________________________________
Handle-Info mailing list
Handle-Info@cnri.reston.va.us
http://www.handle.net/mailman/listinfo/handle-info