Hi all,
I get trouble in building, installing and TESTING SASL/GSSAPI on Redhat Linux 9.

I have built and installed Cyrus-sasl and Kerberos. It's OK.
Next, I get a kerberos authentication ticket with command:

kinit tthai

It's OK.

Then, I start the test Server
cd /usr/local/src/cyrus-sasl-2.1.19/sample
./sample-server -s host -p ../plugins/.lib

I get a response similar to:

Generating client mechanism list...
Sending list of 6 mechanism(s)
S: QU5PTllNT1VTIFBMQUlOIEdTU0FQSSBPVFAgRElHRVN
ULU1ENSBDUkFNLU1ENQ==
Waiting for client mechanism...

Next, I start the test client:
cd /usr/local/src/cyrus-sasl-2.1.19/sample
./sample-client -s host -n linux-portal2.opensource.org -p../plugins/.lib

I get a response similar to:
service=host
Waiting for mechanism list from server...

Next, I cut the line in the test server:
S: QU5PTllNT1VTIFBMQUlOIEdTU0FQSSBPVFAgRElHR
VNULU1ENSBDUkFNLU1ENQ==

and paste to the test client. After press Enter key, I get a response similar to:
C:R1NTQVBJAGCCAisGCSqGSIb3EgECAgEAboICGjCCAhagAwIB BaEDAgEOogcDBQAgAAAAo4IBOmGCATYwggEyoAMCAQWhEBsOT1 BFTlNPVVJDRS5PUkeiLzAtoAMCAQOhJjAkGwRob3N0GxxsaW51 eC1wb3J0YWwyLm9wZW5zb3VyY2Uub3Jno4HnMIHkoAMCARChAw IBBaKB1wSB1MUFUlIKExAlXuhv2CmEMOVHNqD7ue07gau0chlW Q+9zxEDufbGeow0EFmHVnuOI1DEMCbZ4lsbUg5QP4RrBwBGFOC T8p/xXFlGlzQ/dF0uxxyEIPV46DyZNc1Oj61ywqJh8tl7KT130kSFm2nuGRxeXr VjrobQsaq23S7FHutgonSSFOdHU8pkqgmlFTzoPMBUK7nMS2u1 9yJFfSN47W02NHRdo81ac4xcZfjay4e+y/jauIwu+Bq4Pg/QsDEyDQgZauF3M4XT+7L3PfFEjU2m45LqspIHCMIG/oAMCARCigbcEgbQEmdlAS6T/4Y1JxDMhwtg9dkwDWONRCPiPJa4txcongdSM3+DhMUB2PCRnvM wkkeMnFodGlS7jJ6cIdMQnM+tE3wpob+4BcjnI1N30C5D3bMes c4P63JGD1PE9u45AOatBrtXjsrUCBvSngA/coCrSTbGTi6njOUDaQy+85j0tqdm27uNZZnTLUEnw9DjlRT4hL owM36aBeHdQXuJJkUfVzn69N2BAEU47VKK1owGOvyveLGg=
Waiting for server reply...

Next, I cut the lines in the test client (above, from "C:") and paste to the test server. After press Enter key, I get a response similar to:
got 'GSSAPI'
lt-sample-server: SASL Other: GSSAPI Error: Miscellaneous failure
(No principal in keytab matches desired name)
lt-sample-server: Starting SASL negotiation: generic failure
(generic failure)

------------------------------------------------------------------------

To fix this error ("...No principal in keytab matches desired name..."), I verify the principal in the keytab by using klist -k. I get a response similar to:

Keytab name: FILE:/etc/krb5.keytab
KVNO Principal
------------------------------------------------------------------------
4 host/linux-portal2.opensource.org@OPENSOURCE.ORG
4 host/linux-portal2.opensource.org@OPENSOURCE.ORG
4 ldap/linux-portal2.opensource.org@OPENSOURCE.ORG
4 ldap/linux-portal2.opensource.org@OPENSOURCE.ORG


Here, I could not know how to solve this error.

Thanks very much in advance.

Thanh Hai