diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-01-24 22:17:46 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-01-31 20:30:25 -0500 |
commit | 25a9a1768d2e3587cc68b76a0a5df1e42a2c89ab (patch) | |
tree | 1669f78b2e2e64dd078dfb1a183f62e178a78c4c /src/db/sysdb.c | |
parent | 85d8b2567730b236578a1aaeb0139c38dda23304 (diff) | |
download | sssd-25a9a1768d2e3587cc68b76a0a5df1e42a2c89ab.tar.gz sssd-25a9a1768d2e3587cc68b76a0a5df1e42a2c89ab.tar.xz sssd-25a9a1768d2e3587cc68b76a0a5df1e42a2c89ab.zip |
SYSDB: index sudoUser
Most of the the searches in the Sudo responder include the sudoUser
attribute. Indexing it will make the responder faster.
Diffstat (limited to 'src/db/sysdb.c')
-rw-r--r-- | src/db/sysdb.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/db/sysdb.c b/src/db/sysdb.c index 6bd787f7e..a7f65a332 100644 --- a/src/db/sysdb.c +++ b/src/db/sysdb.c @@ -962,6 +962,13 @@ int sysdb_domain_init_internal(TALLOC_CTX *mem_ctx, } } + if (strcmp(version, SYSDB_VERSION_0_9) == 0) { + ret = sysdb_upgrade_09(sysdb, &version); + if (ret != EOK) { + goto done; + } + } + /* The version should now match SYSDB_VERSION. * If not, it means we didn't match any of the * known older versions. The DB might be |