diff options
author | Simo Sorce <idra@samba.org> | 2008-10-12 16:37:55 -0400 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2008-10-12 16:37:55 -0400 |
commit | 40b2779eab3a91e6e1f131bbb1b85facaf3c4eaf (patch) | |
tree | 1c9ed9369a5327cba99aae6bf23ae63a0b077b67 /server/nss/nss_ldb.h | |
parent | 38a6ec436bef7a1a43da09750721e00b86724645 (diff) | |
download | sssd-40b2779eab3a91e6e1f131bbb1b85facaf3c4eaf.tar.gz sssd-40b2779eab3a91e6e1f131bbb1b85facaf3c4eaf.tar.bz2 sssd-40b2779eab3a91e6e1f131bbb1b85facaf3c4eaf.zip |
Implement getgrnam()
Diffstat (limited to 'server/nss/nss_ldb.h')
-rw-r--r-- | server/nss/nss_ldb.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/server/nss/nss_ldb.h b/server/nss/nss_ldb.h index 64ac592b..3dbe70d9 100644 --- a/server/nss/nss_ldb.h +++ b/server/nss/nss_ldb.h @@ -3,12 +3,20 @@ #define NSS_LDB_PATH "/var/lib/sss/db/sssd.ldb" #define NSS_USER_BASE "cn=users,cn=local" +#define NSS_GROUP_BASE "cn=groups,cn=local" #define NSS_PWNAM_FILTER "(&(objectclass=user)(uid=%s))" #define NSS_PWUID_FILTER "(&(objectclass=user)(uidNumber=%llu))" #define NSS_PWENT_FILTER "(objectclass=user)" +#define NSS_GRNAM_FILTER "(&(objectclass=group)(gid=%s))" +#define NSS_GRNA2_FILTER "(&(objectclass=user)(memberof=%s))" +#define NSS_GRUID_FILTER "(&(objectclass=group)(gidNumber=%llu))" +#define NSS_GRENT_FILTER "(objectclass=group)" + #define NSS_PW_ATTRS {NSS_PW_NAME, NSS_PW_UIDNUM, NSS_PW_GIDNUM, \ NSS_PW_FULLNAME, NSS_PW_HOMEDIR, NSS_PW_SHELL, \ NULL} +#define NSS_GRNAM_ATTRS {NSS_GR_NAME, NSS_GR_GIDNUM, NULL} +#define NSS_GRPW_ATTRS {NSS_PW_NAME, NULL} |