keytabs
사용자 를 만들 때 문제 가 있습니다. 암호화를 사용하도록 설정 한
Keytabs
경우에만 rc4-hmac
작동
[root@host ~]# klist -kte test_user.keytab_rc4
Keytab name: FILE:test_user.keytab_rc4
KVNO Timestamp Principal
---- ------------------- ------------------------------------------------------
0 09/01/2018 14:54:07 test_user@testdomain.dev (arcfour-hmac)
[root@host]# kinit -V -kt test_user.keytab_rc4 test_user@testdomain.dev
Using default cache: /tmp/krb5_1015
Using principal: test_user@testdomain.dev
Using keytab: test_user.keytab_rc4
Authenticated to Kerberos v5
[root@host ~]# klist
Ticket cache: FILE:/tmp/krb5_1015
Default principal: test_user@testdomain.dev
Valid starting Expires Service principal
10/08/2018 09:10:40 10/08/2018 19:10:40 krbtgt/testdomain.dev@testdoman.dev
renew until 10/15/2018 09:10:40
[root@host ~]# kdestroy
keytab
다른 암호화가 포함 된 인증을 시도하는 경우
[root@host ~]# klist -kte test_user.keytab_aes256
Keytab name: FILE:test_user.keytab_aes256
KVNO Timestamp Principal
---- ------------------- ------------------------------------------------------
0 09/01/2018 14:57:07 test_user@testdomain.dev (aes256-cts-hmac-sha1-96)
또는 여러 암호화 유형
[root@host ~]# klist -kte test_user.keytab_rc4_aes256
Keytab name: FILE:test_user.keytab_rc4_aes256
KVNO Timestamp Principal
---- ------------------- ------------------------------------------------------
0 09/01/2018 14:57:07 test_user@testdomain.dev (arcfour-hmac)
0 09/01/2018 14:57:07 test_user@testdomain.dev (aes256-cts-hmac-sha1-96)
[root@host ~]# kinit -V -kt test_user.keytab_rc4_aes256 test_user@testdomain.dev
Using default cache: /tmp/krb5_1015
Using principal: test_user@testdomain.dev
Using keytab: test_user.keytab_rc4_aes256
kinit: Preauthentication failed while getting initial credentials
실패
CentOS에서 keytabs
동일하게 생성 된 모든 위치 ktutil
:
[root@host ~]# ktutil
ktutil: add_entry -password -p test_user@testdomain.dev -k 0 -e arcfour-hmac
Password for test_user@testdomain.dev:
ktutil: wkt test_user.keytab_rc4
- Kerberos 서버 : 최신 업데이트가 포함 된 Microsoft Active Directory 2012
- 작동하지 않는 테스트 된 암호화 유형 :
des3-cbc-sha1
aes128-cts-hmac-sha1-96
aes256-cts-hmac-sha1-96
dec-cbc-md5
- Kerberos 클라이언트 : 최신 업데이트가 포함 된 CentOS 7.4