сервис_keycloak

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
сервис_keycloak [2025/12/04 11:16]
val [LDAP]
сервис_keycloak [2025/12/25 15:08] (current)
val [Kubernetes]
Line 182: Line 182:
 #  password: strongpassword #  password: strongpassword
  
-##​extraVolumeMounts:​ +###​extraVolumeMounts:​ 
-##- mountPath: /​opt/​bitnami/​keycloak/​themes +###- mountPath: /​opt/​bitnami/​keycloak/​themes 
-##  name: themes +###  name: themes 
-##​extraVolumes:​ +###​extraVolumes:​ 
-##- emptyDir: {} +###- emptyDir: {} 
-##  name: themes+###  name: themes
  
 #​initContainers:​ #​initContainers:​
Line 201: Line 201:
 #  volumeMounts:​ #  volumeMounts:​
 #  - mountPath: /​opt/​bitnami/​keycloak/​themes #  - mountPath: /​opt/​bitnami/​keycloak/​themes
-##    name: themes+###    name: themes
 #    name: empty-dir #    name: empty-dir
 #    subPath: app-themes-dir #    subPath: app-themes-dir
Line 266: Line 266:
 может понадобиться включить может понадобиться включить
     Direct access grants     Direct access grants
 +    ​
 +для передачи списка групп в токене понадобится:​
 +Client scopes -> 
 +  Create client scope -> Name: groups
 +    Configure a new mapper: Groups Membership
 +      Name: groups
 +    Configure a new mapper: Audience ​ !!! Для "​подсовывания"​ токена в .kube/​config
 +   Name (и везде):​ any-client
 +
 +Clients -> any-client
 +  Client scopes
 +  Add client scopes to any-client: groups
 +  Add: Default
 +  ​
 +Include in token scope ?
 +  ​
 +Add to lightweight access token ?
 +
 +Token Claim Name: groups
 +Full group path: No
 </​code>​ </​code>​
  
-==== Проверка ====+==== Проверка получения токена ====
  
   * [[Материалы по Windows#​Windows CA для Linux сервисов]]   * [[Материалы по Windows#​Windows CA для Linux сервисов]]
Line 370: Line 390:
 Edit mode: READ_ONLY Edit mode: READ_ONLY
  
-Users DN: cn=users,​cn=compat,​dc=corpX,​dc=un+#Users DN: cn=users,​cn=compat,​dc=corpX,​dc=un
 Users DN: cn=users,​cn=accounts,​dc=corpX,​dc=un Users DN: cn=users,​cn=accounts,​dc=corpX,​dc=un
 ... ...
Line 377: Line 397:
 RDN LDAP attribute: uid RDN LDAP attribute: uid
 ... ...
-UUID LDAP attribute: ipaAnchorUUID +#UUID LDAP attribute: ipaAnchorUUID 
-UUID LDAP attribute: uid+#UUID LDAP attribute: uid 
 +UUID LDAP attribute: ipaUniqueID 
 + 
 +Mappers ->  
 + 
 +  Name: first name 
 +  LDAP Attribute: givenname 
 + 
 +  Name: groups 
 +  Mapper type: group-ldap-mapper 
 +  LDAP Groups DN: cn=groups,​cn=accounts,​dc=corpX,​dc=un 
 +  Relative creation DN: cn 
 +  Group Name LDAP Attribute: cn 
 </​code>​ </​code>​
  
сервис_keycloak.1764836166.txt.gz · Last modified: 2025/12/04 11:16 by val