Problem: I do not find the group membership of my users

Problem

I do not find group membership of my users with univention-ldapsearch

Environment

UCS 4.4

Solution

You need to add ‘+’ to the search

root@dc0:~ # univention-ldapsearch -LLL uid=adda.henig '+'
dn: uid=adda.henig,cn=lehrer,cn=users,ou=Schule1,dc=reiherwaldschule,dc=intranet
structuralObjectClass: inetOrgPerson
entryUUID: b1742328-da74-103a-894c-0d9a7ea4bd7b
creatorsName: cn=admin,dc=reiherwaldschule,dc=intranet
createTimestamp: 20201224204525Z
memberOf: cn=Schule1-1q,cn=klassen,cn=schueler,cn=groups,ou=Schule1,dc=reiherwaldschule,dc=intranet
memberOf: cn=Schule1-1r,cn=klassen,cn=schueler,cn=groups,ou=Schule1,dc=reiherwaldschule,dc=intranet
memberOf: cn=lehrer-schule1,cn=groups,ou=Schule1,dc=reiherwaldschule,dc=intranet
memberOf: cn=Domain Users Schule1,cn=groups,ou=Schule1,dc=reiherwaldschule,dc=intranet
memberOf: cn=SAML-Test,cn=groups,dc=reiherwaldschule,dc=intranet
entryCSN: 20220120173407.019564Z#000000#000#000000
modifiersName: uid=administrator,cn=users,dc=reiherwaldschule,dc=intranet
modifyTimestamp: 20220120173407Z
entryDN: uid=adda.henig,cn=lehrer,cn=users,ou=Schule1,dc=reiherwaldschule,dc=intranet
subschemaSubentry: cn=Subschema
hasSubordinates: FALSE

If you want to get all attributes of the object use ‘+’ ‘*’

root@dc0:~ # univention-ldapsearch -LLL uid=adda.henig '+' '*'
dn: uid=adda.henig,cn=lehrer,cn=users,ou=Schule1,dc=reiherwaldschule,dc=intranet
uid: adda.henig
krb5PrincipalName: adda.henig@REIHERWALDSCHULE.INTRANET
sambaProfilePath: %LOGONSERVER%\%USERNAME%\windows-profiles\default
uidNumber: 4924
sambaAcctFlags: [U          ]
sambaBadPasswordCount: 0
krb5MaxLife: 86400
cn: Adda Henig
mailForwardCopyToSelf: 0
sambaHomePath: \\sl1\adda.henig
ucsschoolRecordUID: Adda.Henig
krb5MaxRenew: 604800
sambaLogonScript: ucs-school-logon.vbs
sambaBadPasswordTime: 0
departmentNumber: Schule1
description: A teacher.
loginShell: /bin/bash
univentionObjectType: users/user
krb5KDCFlags: 126
gidNumber: 5023
ucsschoolRole: teacher:school:Schule1
sambaPrimaryGroupSID: S-1-5-21-119416551-1807362367-2580201446-11047
telephoneNumber: +14-431-745108
displayName: Adda Henig
ucsschoolSchool: Schule1
sambaHomeDrive: I:
sambaSID: S-1-5-21-119416551-1807362367-2580201446-10848
gecos: Adda Henig
sn: Henig
homeDirectory: /home/Schule1/lehrer/adda.henig
ucsschoolSourceUID: schule1-teacher
givenName: Adda
structuralObjectClass: inetOrgPerson
entryUUID: b1742328-da74-103a-894c-0d9a7ea4bd7b
creatorsName: cn=admin,dc=reiherwaldschule,dc=intranet
createTimestamp: 20201224204525Z
memberOf: cn=Schule1-1q,cn=klassen,cn=schueler,cn=groups,ou=Schule1,dc=reiherwaldschule,dc=intranet
memberOf: cn=Schule1-1r,cn=klassen,cn=schueler,cn=groups,ou=Schule1,dc=reiherwaldschule,dc=intranet
memberOf: cn=lehrer-schule1,cn=groups,ou=Schule1,dc=reiherwaldschule,dc=intranet
memberOf: cn=Domain Users Schule1,cn=groups,ou=Schule1,dc=reiherwaldschule,dc=intranet
memberOf: cn=SAML-Test,cn=groups,dc=reiherwaldschule,dc=intranet
krb5Key:: MF2hKzApoAMCARKhIgQg9fmJxWs1sJKJLk+JJYIF6hYD5lpxftnARdNGSE4A54miLjAsoAMCAQOhJQQjUkVJSEVSV0FMRFNDSFVMRS5JTlRSQU5FVGFkZGEuaGVuaWc=
krb5Key:: ME2hGzAZoAMCARGhEgQQiRT3/wmTTShfyqTGZc9RuaIuMCygAwIBA6ElBCNSRUlIRVJXQUxEU0NIVUxFLklOVFJBTkVUYWRkYS5oZW5pZw==
krb5Key:: ME2hGzAZoAMCARehEgQQyqEjnUTaft+Sa8459cZdD6IuMCygAwIBA6ElBCNSRUlIRVJXQUxEU0NIVUxFLklOVFJBTkVUYWRkYS5oZW5pZw==
krb5Key:: MEWhEzARoAMCAQGhCgQIGqgq9yqhds2iLjAsoAMCAQOhJQQjUkVJSEVSV0FMRFNDSFVMRS5JTlRSQU5FVGFkZGEuaGVuaWc=
krb5Key:: MEWhEzARoAMCAQOhCgQIGqgq9yqhds2iLjAsoAMCAQOhJQQjUkVJSEVSV0FMRFNDSFVMRS5JTlRSQU5FVGFkZGEuaGVuaWc=
krb5Key:: MEWhEzARoAMCAQKhCgQIGqgq9yqhds2iLjAsoAMCAQOhJQQjUkVJSEVSV0FMRFNDSFVMRS5JTlRSQU5FVGFkZGEuaGVuaWc=
krb5Key:: MFWhIzAhoAMCARChGgQYbtyM0FtM+2t6zjKUxxUyZ147BHwf/kCtoi4wLKADAgEDoSUEI1JFSUhFUldBTERTQ0hVTEUuSU5UUkFORVRhZGRhLmhlbmln
pwhistory: $6$p5X.GISjVs7L0.EK$qjlYz8eo5NA6ta/rzdeiNmpUcuco9k4BNsjvt/bXOcZ7lL4O7bvrmV4VFMCe70MhopKGbQm2GFiG1pa2fbFLg.
sambaNTPassword: CAA1239D44DA7EDF926BCE39F5C65D0F
nextcloudEnabled: 1
objectClass: krb5KDCEntry
objectClass: organizationalPerson
objectClass: automount
objectClass: top
objectClass: univentionSAMLEnabled
objectClass: krb5Principal
objectClass: person
objectClass: ucsschoolTeacher
objectClass: univentionMail
objectClass: inetOrgPerson
objectClass: ucsschoolType
objectClass: univentionPWHistory
objectClass: shadowAccount
objectClass: sambaSamAccount
objectClass: nextcloudUser
objectClass: posixAccount
objectClass: univentionObject
univentionMailUserQuota: 0
shadowLastChange: 18928
userPassword:: e2NyeXB0fSQ2JHo0ZktySjg2MUZlaW0yc2kkbkExTk5NVUFDR2NYZFoyNDNUMTMuRU02MTk0NW9mb2paUVUudEQya1lLQ0F5OVZpc2RVb0s4T1l2OWY3bS5zR1dCT0FaMkF5R3JtNlpDeXRLMDhOVzE=
krb5KeyVersionNumber: 4
sambaPasswordHistory: 8102089F82F77383F4E0DDA40A922E714279D47F1FFCB0F7BE6A5E2F51060CF7C7CC91EDA0F96A56A3B946D2FF1CDB4A64BF730907ABF79E5040C5CD792809B56D8CFF9DA633EC41AC8AA44A365FBF8F019D064188000B7F0E2B203E46683C2020FB884BA66377BAA1ED75710F588E7EF38A3167B5F605F40D45F3DA381B4BF6
sambaPwdLastSet: 1642699981
entryCSN: 20220120173407.019564Z#000000#000#000000
modifiersName: uid=administrator,cn=users,dc=reiherwaldschule,dc=intranet
modifyTimestamp: 20220120173407Z
entryDN: uid=adda.henig,cn=lehrer,cn=users,ou=Schule1,dc=reiherwaldschule,dc=intranet
subschemaSubentry: cn=Subschema
hasSubordinates: FALSE

This topic was automatically closed after 24 hours. New replies are no longer allowed.

Mastodon