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/providers | |
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/providers')
-rw-r--r-- | src/providers/ldap/ldap_opts.h | 2 | ||||
-rw-r--r-- | src/providers/ldap/sdap_sudo.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/providers/ldap/ldap_opts.h b/src/providers/ldap/ldap_opts.h index 4e876bdcc..2868bb4a6 100644 --- a/src/providers/ldap/ldap_opts.h +++ b/src/providers/ldap/ldap_opts.h @@ -303,7 +303,7 @@ struct sdap_attr_map netgroup_map[] = { }; struct sdap_attr_map native_sudorule_map[] = { - { "ldap_sudorule_object_class", "sudoRole", SYSDB_SUDO_CACHE_AT_OC, NULL }, + { "ldap_sudorule_object_class", "sudoRole", SYSDB_SUDO_CACHE_OC, NULL }, { "ldap_sudorule_name", "cn", SYSDB_SUDO_CACHE_AT_CN, NULL }, { "ldap_sudorule_command", "sudoCommand", SYSDB_SUDO_CACHE_AT_COMMAND, NULL }, { "ldap_sudorule_host", "sudoHost", SYSDB_SUDO_CACHE_AT_HOST, NULL }, diff --git a/src/providers/ldap/sdap_sudo.c b/src/providers/ldap/sdap_sudo.c index ca41fca9e..bfab32a0f 100644 --- a/src/providers/ldap/sdap_sudo.c +++ b/src/providers/ldap/sdap_sudo.c @@ -552,7 +552,7 @@ static struct tevent_req *sdap_sudo_full_refresh_send(TALLOC_CTX *mem_ctx, /* Remove all rules from cache */ sysdb_filter = talloc_asprintf(state, "(%s=%s)", - SYSDB_OBJECTCLASS, SYSDB_SUDO_CACHE_AT_OC); + SYSDB_OBJECTCLASS, SYSDB_SUDO_CACHE_OC); if (sysdb_filter == NULL) { ret = ENOMEM; goto immediately; @@ -724,7 +724,7 @@ static struct tevent_req *sdap_sudo_rules_refresh_send(TALLOC_CTX *mem_ctx, } sysdb_filter = talloc_asprintf(tmp_ctx, "(&(%s=%s)(|%s))", - SYSDB_OBJECTCLASS, SYSDB_SUDO_CACHE_AT_OC, + SYSDB_OBJECTCLASS, SYSDB_SUDO_CACHE_OC, sysdb_filter); if (sysdb_filter == NULL) { ret = ENOMEM; |