[krbdev.mit.edu #5497] sendauth rejected, error reply is: " Wrong principal in request"

Kevin Wang via RT rt-comment at krbdev.mit.edu
Thu Nov 12 14:21:27 EST 2009


Dear friends:
    I also found the problem while doing the experiment of krb5.
   All is well until I run the client to connect to the server.
  This is the command of server: ./sserver -p 8899 -s sample -S
/etc/krb5.keytab.  After that it waited for the connection.
   And this is command of client:./sclient kerberos.example.com 8899 sample.
When done,it shows the following:
connected,
    sendauth rejected, error reply is:
" Wrong principal in request"
I googled it, then found this page:
http://mailman.mit.edu/pipermail/krb5-bugs/2007-March/005505.html
but with no solutions.

Hope to get a solution.
Looking forward to your reply. Thank you.[?]


The following is the evironment. Maybe it will help.
The version of kerberos I use for experiment is krb5-1.6.3 in the form of
tar.gz package.

I did this under Fedora 9(i386)
ver: 9(Sulphur)
kernel:Linux 2.6.25-14.fc9.i686
GNOME 2.22.1

kadmin.local:  add_policy -maxlife 180days -minlife 2days -minlength 8
-minclasses 3 -history 10 default


[root at localhost sbin]# klist
Ticket cache: FILE:/tmp/krb5cc_0
Default principal: test1/kerberos.example.com at EXAMPLE.COM

Valid starting     Expires            Service principal
11/12/09 20:34:58  11/13/09 20:34:58  krbtgt/EXAMPLE.COM at EXAMPLE.COM


Kerberos 4 ticket cache: /tmp/tkt0
klist: You have no tickets cached


kadmin:  listprincs
K/M at EXAMPLE.COM
admin/admin at EXAMPLE.COM
kadmin/admin at EXAMPLE.COM
kadmin/changepw at EXAMPLE.COM
kadmin/history at EXAMPLE.COM
kadmin/localhost.localdomain at EXAMPLE.COM
krbtgt/EXAMPLE.COM at EXAMPLE.COM
sample/kerberos.example.com at EXAMPLE.COM
test1/kerberos.example.com at EXAMPLE.COM
test2/kerberos.example.com at EXAMPLE.COM




More information about the krb5-bugs mailing list