diff options
author | Sumit Bose <sbose@redhat.com> | 2014-09-22 12:45:49 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-10-16 17:56:05 +0200 |
commit | ca49ae1eee321751681e99f3ebe2547211db3bf6 (patch) | |
tree | 43bb197bc1f4eb2f33ac7e93b2b5e051592826b9 /src/db/sysdb.h | |
parent | 0f3df54840ec9a050cc0b1b68269c3f28c859e64 (diff) | |
download | sssd-ca49ae1eee321751681e99f3ebe2547211db3bf6.tar.gz sssd-ca49ae1eee321751681e99f3ebe2547211db3bf6.tar.xz sssd-ca49ae1eee321751681e99f3ebe2547211db3bf6.zip |
sysdb: add sysdb_store_override
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/db/sysdb.h')
-rw-r--r-- | src/db/sysdb.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/db/sysdb.h b/src/db/sysdb.h index c2de00892..b039a673a 100644 --- a/src/db/sysdb.h +++ b/src/db/sysdb.h @@ -154,6 +154,8 @@ #define SYSDB_OVERRIDE_ANCHOR_UUID "overrideAnchorUUID" #define SYSDB_OVERRIDE_USER_CLASS "userOverride" #define SYSDB_OVERRIDE_GROUP_CLASS "groupOverride" +#define SYSDB_OVERRIDE_DN "overrideDN" +#define SYSDB_OVERRIDE_OBJECT_DN "overrideObjectDN" #define SYSDB_NEXTID_FILTER "("SYSDB_NEXTID"=*)" @@ -224,6 +226,7 @@ #define SYSDB_TMPL_CUSTOM_SUBTREE "cn=%s,"SYSDB_TMPL_CUSTOM_BASE #define SYSDB_TMPL_CUSTOM SYSDB_NAME"=%s,cn=%s,"SYSDB_TMPL_CUSTOM_BASE #define SYSDB_TMPL_RANGE SYSDB_NAME"=%s,"SYSDB_TMPL_RANGE_BASE +#define SYSDB_TMPL_OVERRIDE SYSDB_OVERRIDE_ANCHOR_UUID"=%s,cn=%s,"SYSDB_TMPL_VIEW_BASE #define SYSDB_MOD_ADD LDB_FLAG_MOD_ADD #define SYSDB_MOD_DEL LDB_FLAG_MOD_DELETE @@ -732,6 +735,11 @@ errno_t sysdb_update_members_dn(struct sss_domain_info *member_domain, const char *const *add_groups, const char *const *del_groups); +errno_t sysdb_store_override(struct sss_domain_info *domain, + const char *view_name, + enum sysdb_member_type type, + struct sysdb_attrs *attrs, struct ldb_dn *obj_dn); + /* Password caching function. * If you are in a transaction ignore sysdb and pass in the handle. * If you are not in a transaction pass NULL in handle and provide sysdb, |