[Perlgssapi-users] Little bit confused ...
Brought to you by:
achimgrolms
From: Massimiliano M. <mas...@ce...> - 2006-08-30 15:31:58
|
Hello, I'm trying to develop something with perl GSSAPI. I've two test machine, pcitadc05.cern.ch (where I'm testing the clients) and higgs.massicern.ch, the kdc. In the kdc, with heimdal, I've created the server ipmi/hig...@MA... With the getcred example, everythings seems to works: higgs:~/.cpan/build/GSSAPI-0.23/examples# klist klist: No ticket file: /tmp/krb5cc_0 V4-ticket file: /tmp/tkt0 klist: No ticket file (tf_util) higgs:~/.cpan/build/GSSAPI-0.23/examples# ./getcred_hostbased.pl ipmi using Name ipmi/hig...@MA... Errors: Miscellaneous failure (see text) open(/tmp/krb5cc_0): No such file or directory higgs:~/.cpan/build/GSSAPI-0.23/examples# kinit max ma...@MA...'s Password: higgs:~/.cpan/build/GSSAPI-0.23/examples# ./getcred_hostbased.pl ipmi using Name ipmi/hig...@MA... Security context's time to live 35998 secs seems everything is fine, type klist to see the ticket higgs:~/.cpan/build/GSSAPI-0.23/examples# klist Credentials cache: FILE:/tmp/krb5cc_0 Principal: ma...@MA... Issued Expires Principal Aug 30 16:14:26 Aug 31 02:14:26 krbtgt/MAS...@MA... Aug 30 16:14:28 Aug 31 02:14:26 ipmi/hig...@MA... V4-ticket file: /tmp/tkt0 klist: No ticket file (tf_util) Then, I run the server: higgs:~/.cpan/build/GSSAPI-0.23/examples# ./gss-server.pl ip...@hi... -port 10000 -hostname higgs.massicern.ch -keytabfile=/etc/krb5.keytab ./gss-server.pl: using [higgs.massicern.ch:10000] SERVER set environment variable KRB5_KTNAME to FILE:/etc/krb5.keytab Listening on port 10000 ... SERVER::waiting for request ... and then the client: mascanc@pcitadc05 ~/Desktop/GSSAPI-0.23/examples $ ./gss-client.pl -hostname higgs.massicern.ch -prodid ipmi/higgs.massicern.ch ./gss-client.pl: -port not specified, defaulting to 10000 ./gss-client.pl: using [ipmi/hig...@hi...:10000] CLIENT::principal [ipmi/hig...@hi...] means going to communicate with server name [ipmi/hig...@hi...] Use of uninitialized value in subroutine entry at ./gss-client.pl line 88. CLIENT::Unable to initialize security context: MAJOR::Unspecified GSS failure. Minor code may provide more information MINOR::Server not found in Kerberos database And the server says: SERVER::waiting for request ... SERVER::accepted connection from client ... Use of uninitialized value in subroutine entry at ./gss-server.pl line 78. SERVER::received token (length is 0): SERVER::waiting for request ... Have you any idea??? Thank you for your work!!! Bye -- Massimiliano Masi http://www.comunidelchianti.it/~max |