# "local" is for Unix domain socket connections only local all postgres trust # IPv4 local connections: host all frank0.0.0.0/0 krb5 #host all all 127.0.0.1/32 trust # IPv6 local connections: host all all ::1/128 trust
kadmin.local Authenticating as principal rahimeh/admin@EXAMPLE.COM with password. kadmin.local: ank frank WARNING: no policy specified for frank@EXAMPLE.COM; defaulting to no policy Enter password for principal "frank@EXAMPLE.COM": Re-enter password for principal "frank@EXAMPLE.COM":
kadmin.local: ktadd -k /var/kerberos/krb5kdc/kadm5.keytab frank Entry for principal frank with kvno 2, encryption type Triple DES cbc mode with HMAC/sha1 added to keytab WRFILE:/var/kerberos/krb5kdc/kadm5.keytab. Entry for principal frank with kvno 2, encryption type ArcFour with HMAC/md5 added to keytab WRFILE:/var/kerberos/krb5kdc/kadm5.keytab. Entry for principal frank with kvno 2, encryption type DES with HMAC/sha1 added to keytab WRFILE:/var/kerberos/krb5kdc/kadm5.keytab. Entry for principal frank with kvno 2, encryption type DES cbc mode with RSA-MD5 added to keytab WRFILE:/var/kerberos/krb5kdc/kadm5.keytab.
Finally, it gives error like:
[root@localhost ~]# kinit frank -t /var/kerberos/krb5kdc/kadm5.keytab Password for frank@EXAMPLE.COM: kinit(v5): Password incorrect while getting initial credentials
or
in cmd when I run this instruction the below error is shown.
[root@localhost bin]# ./psql -h 127.0.0.1 -U frank psql: krb5_sendauth: Bad application version was sent (via sendauth)