sssd list all the member of a group

Issues related to applications and software problems
Post Reply
marcolefo
Posts: 2
Joined: 2015/06/25 18:01:00

sssd list all the member of a group

Post by marcolefo » 2015/06/25 18:08:59

Hello

Is there a way to list all the members of an AD group ?

getent only return members of the cache :

$ getent group mygroup
mygroup:*:zzz:toto
$ id tata
uid=xxx(tata) gid=yyy(first_group) groups=zzz(mygroup)
$ getent group mygroup
mygroup:*:zzz:toto,tata

My /etc/sssd/sssd.conf :

Code: Select all

[sssd]
domains = domain.local
config_file_version = 2
services = nss, pam

[domain/domain.local]
ad_domain = domain.local
krb5_realm = DOMAIN.LOCAL
realmd_tags = manages-system joined-with-samba
cache_credentials = True
id_provider = ad
krb5_store_password_if_offline = True
default_shell = /bin/bash
ldap_id_mapping = True
use_fully_qualified_names = False
fallback_homedir = /home/%d/%u
access_provider = ad
Thanks for your help

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: sssd list all the member of a group

Post by aks » 2015/06/25 20:03:59

Can't you just do an ldapsearch?

marcolefo
Posts: 2
Joined: 2015/06/25 18:01:00

Re: sssd list all the member of a group

Post by marcolefo » 2015/06/26 08:03:47

Yes it's true...

But I have lost my last hair with ldapsearch :)
getent is so easy to use.

Post Reply