diff options
author | Simo Sorce <idra@samba.org> | 2008-10-17 13:58:52 -0400 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2008-10-20 10:41:59 -0400 |
commit | cd632a9d2cda129f79b4ddd5484b748806c68ef6 (patch) | |
tree | 2712798ce6b49d728306f101ce0ace34d9c4a6ef /server/nss/nss_ldb.h | |
parent | 8b0afbc4aa94628290d74165cab6bec97c7e532b (diff) | |
download | sssd-cd632a9d2cda129f79b4ddd5484b748806c68ef6.tar.gz sssd-cd632a9d2cda129f79b4ddd5484b748806c68ef6.tar.bz2 sssd-cd632a9d2cda129f79b4ddd5484b748806c68ef6.zip |
Add configuration database functions.
Convert nss responder to use the confdb
Diffstat (limited to 'server/nss/nss_ldb.h')
-rw-r--r-- | server/nss/nss_ldb.h | 49 |
1 files changed, 31 insertions, 18 deletions
diff --git a/server/nss/nss_ldb.h b/server/nss/nss_ldb.h index aa820168..f8a161dc 100644 --- a/server/nss/nss_ldb.h +++ b/server/nss/nss_ldb.h @@ -1,26 +1,39 @@ /* nss_ldb private header file */ -#define NSS_LDB_PATH "/var/lib/sss/db/sssd.ldb" +#define NSS_DEF_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_DEF_USER_BASE "cn=users,cn=local" +#define NSS_DEF_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_DEF_PWNAM_FILTER "(&(objectclass=user)(uid=%s))" +#define NSS_DEF_PWUID_FILTER "(&(objectclass=user)(uidNumber=%llu))" +#define NSS_DEF_PWENT_FILTER "(objectclass=user)" -#define NSS_GRNAM_FILTER "(&(objectclass=group)(cn=%s))" -#define NSS_GRNA2_FILTER "(&(objectclass=user)(memberof=%s))" -#define NSS_GRGID_FILTER "(&(objectclass=group)(gidNumber=%llu))" -#define NSS_GRENT_FILTER "(objectclass=group)" +#define NSS_DEF_GRNAM_FILTER "(&(objectclass=group)(cn=%s))" +#define NSS_DEF_GRNA2_FILTER "(&(objectclass=user)(memberof=%s))" +#define NSS_DEF_GRGID_FILTER "(&(objectclass=group)(gidNumber=%llu))" +#define NSS_DEF_GRENT_FILTER "(objectclass=group)" -#define NSS_INITGR_FILTER "(&(objectclass=group)(gidNumber=*))" +#define NSS_DEF_INITGR_FILTER "(&(objectclass=group)(gidNumber=*))" -#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} +#define NSS_DEF_PW_NAME "uid" +#define NSS_DEF_PW_UIDNUM "uidNumber" +#define NSS_DEF_PW_GIDNUM "gidNumber" +#define NSS_DEF_PW_FULLNAME "fullName" +#define NSS_DEF_PW_HOMEDIR "HomeDirectory" +#define NSS_DEF_PW_SHELL "loginShell" + +#define NSS_DEF_GR_NAME "cn" +#define NSS_DEF_GR_GIDNUM "gidNumber" +#define NSS_DEF_GR_MEMBER "member" + +#define NSS_DEF_PW_ATTRS {NSS_DEF_PW_NAME, NSS_DEF_PW_UIDNUM, \ + NSS_DEF_PW_GIDNUM, NSS_DEF_PW_FULLNAME, \ + NSS_DEF_PW_HOMEDIR, NSS_DEF_PW_SHELL, \ + NULL} +#define NSS_DEF_GRNAM_ATTRS {NSS_DEF_GR_NAME, NSS_DEF_GR_GIDNUM, NULL} +#define NSS_DEF_GRPW_ATTRS {NSS_DEF_PW_NAME, NULL} + +#define NSS_DEF_INITGR_ATTR "memberof" +#define NSS_DEF_INITGR_ATTRS {NSS_DEF_GR_GIDNUM, NULL} -#define NSS_INITGR_SEARCH_ATTR "memberof" -#define NSS_INITGR_ATTRS {NSS_GR_GIDNUM, NULL} |