Skip to content

Commit

Permalink
Add POSIX gidNumber for IPA groups in Global Catalog
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
  • Loading branch information
abbra committed May 19, 2023
1 parent 6b9ad91 commit 3237913
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ipaserver/globalcatalog/templates/gc_group_template.tmpl
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
{% macro first_val(attr) -%}
{{ entry[attr][0] }}
{%- endmacro %}
dn: cn={{ pkey }},cn=users,{{ suffix }}
objectClass: top
objectClass: ad-top
objectClass: group
objectClass: securityprincipal
objectClass: nsmemberof
objectClass: gcobject
objectClass: posixGroup
cn: {{ pkey }}
instanceType: 4
name: {{ pkey }}
Expand All @@ -20,5 +24,6 @@ member: {{ member }}
{%- for group in entry['memberof'] %}
memberof: {{ group }}
{%- endfor %}
gidnumber: {{ first_val('gidnumber') }}
groupType: {{ groupType }}
gcuuid: {{ entryuuid }}

0 comments on commit 3237913

Please sign in to comment.