-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updating config and adding how to kerberos description
- Loading branch information
1 parent
9ce22d2
commit b4d5cbe
Showing
3 changed files
with
58 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
create new principal: | ||
|
||
HTTP/[email protected] | ||
|
||
``` | ||
kadmin.local | ||
addprinc HTTP/[email protected] | ||
ktadd -k /etc/krb5.keytab HTTP/[email protected] | ||
``` | ||
|
||
Export keytab | ||
|
||
krb5.conf | ||
``` | ||
[libdefaults] | ||
default_realm = EXAMPLE.COM | ||
dns_lookup_kdc = false | ||
dns_lookup_realm = false | ||
permitted_enctypes = aes256-cts-hmac-sha384-192 aes128-cts-hmac-sha256-128 aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96 camellia256-cts-cmac camellia128-cts-cmac | ||
[realms] | ||
EXAMPLE.COM = { | ||
kdc = dbildungs-iam-server-kdc-1 | ||
admin_server = dbildungs-iam-server-kdc-1 | ||
} | ||
[domain_realm] | ||
.example.com = EXAMPLE.COM | ||
example.com = EXAMPLE.COM | ||
``` | ||
|
||
copy keytab file and krb5.conf file to keycloak image to /etc | ||
|
||
set Kerberos Provider with | ||
|
||
![[Pasted image 20241217162644.png]] | ||
|
||
restart keycloak | ||
|
||
create new in Keykloak | ||
create Userprincipal in kerberos server: | ||
|
||
``` | ||
kadmin.local | ||
addprinc [email protected] | ||
``` | ||
|
||
Login to Client with activated Kerberos flow | ||
|
||
Create Kerberos Token in keycloak with: | ||
|
||
kinit <username> |