diff options
author | Pavel Březina <pbrezina@redhat.com> | 2012-08-07 13:32:44 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-08-07 18:37:40 +0200 |
commit | fb4e4c4eb6a6dc732370584f70d23dd4a2c5c7b6 (patch) | |
tree | 3891eeb210e552b70fc5e2482a80c2010d42c8a0 /src/db | |
parent | 97b0dd25b0b62e57fdb7750b398181f953b2fd37 (diff) | |
download | sssd-fb4e4c4eb6a6dc732370584f70d23dd4a2c5c7b6.tar.gz sssd-fb4e4c4eb6a6dc732370584f70d23dd4a2c5c7b6.tar.xz sssd-fb4e4c4eb6a6dc732370584f70d23dd4a2c5c7b6.zip |
Rename SYSDB_SUDO_CACHE_AT_OC to SYSDB_SUDO_CACHE_OC
It does not contain name of the object class attribute but the value
itself. I renamed it to avoid confusion.
Diffstat (limited to 'src/db')
-rw-r--r-- | src/db/sysdb_sudo.c | 6 | ||||
-rw-r--r-- | src/db/sysdb_sudo.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/db/sysdb_sudo.c b/src/db/sysdb_sudo.c index be101d8b3..e10d18be8 100644 --- a/src/db/sysdb_sudo.c +++ b/src/db/sysdb_sudo.c @@ -257,7 +257,7 @@ sysdb_get_sudo_filter(TALLOC_CTX *mem_ctx, const char *username, /* build global filter */ filter = talloc_asprintf(tmp_ctx, "(&(%s=%s)", - SYSDB_OBJECTCLASS, SYSDB_SUDO_CACHE_AT_OC); + SYSDB_OBJECTCLASS, SYSDB_SUDO_CACHE_OC); NULL_CHECK(filter, ret, done); if (specific_filter[0] != '\0') { @@ -367,7 +367,7 @@ sysdb_save_sudorule(struct sysdb_ctx *sysdb_ctx, DEBUG(SSSDBG_TRACE_FUNC, ("Adding sudo rule %s\n", rule_name)); ret = sysdb_attrs_add_string(attrs, SYSDB_OBJECTCLASS, - SYSDB_SUDO_CACHE_AT_OC); + SYSDB_SUDO_CACHE_OC); if (ret != EOK) { DEBUG(SSSDBG_OP_FAILURE, ("Could not set rule object class [%d]: %s\n", ret, strerror(ret))); @@ -581,7 +581,7 @@ errno_t sysdb_sudo_purge_byfilter(struct sysdb_ctx *sysdb, bool in_transaction = false; const char *attrs[] = { SYSDB_OBJECTCLASS, SYSDB_NAME, - SYSDB_SUDO_CACHE_AT_OC, + SYSDB_SUDO_CACHE_OC, SYSDB_SUDO_CACHE_AT_CN, NULL }; diff --git a/src/db/sysdb_sudo.h b/src/db/sysdb_sudo.h index 0d11b110e..35b350c63 100644 --- a/src/db/sysdb_sudo.h +++ b/src/db/sysdb_sudo.h @@ -33,7 +33,7 @@ #define SYSDB_SUDO_AT_LAST_FULL_REFRESH "sudoLastFullRefreshTime" /* sysdb attributes */ -#define SYSDB_SUDO_CACHE_AT_OC "sudoRule" +#define SYSDB_SUDO_CACHE_OC "sudoRule" #define SYSDB_SUDO_CACHE_AT_CN "cn" #define SYSDB_SUDO_CACHE_AT_USER "sudoUser" #define SYSDB_SUDO_CACHE_AT_HOST "sudoHost" |