summaryrefslogtreecommitdiffstats
path: root/src/db/sysdb.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2015-06-25 17:33:47 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-08-19 18:00:58 +0200
commite61b0e41cb44004d2b260ad9d05802995f7bcb2e (patch)
tree348574072d8386cda667e253f90e4f65e59fe24c /src/db/sysdb.c
parent06987186fb528271d6c208d2abf326049c0e168b (diff)
downloadsssd-e61b0e41cb44004d2b260ad9d05802995f7bcb2e.tar.gz
sssd-e61b0e41cb44004d2b260ad9d05802995f7bcb2e.tar.xz
sssd-e61b0e41cb44004d2b260ad9d05802995f7bcb2e.zip
SYSDB: Index the objectSIDString attribute
Reviewed-by: Michal Židek <mzidek@redhat.com>
Diffstat (limited to 'src/db/sysdb.c')
-rw-r--r--src/db/sysdb.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/db/sysdb.c b/src/db/sysdb.c
index 9da655759..07a83a8a8 100644
--- a/src/db/sysdb.c
+++ b/src/db/sysdb.c
@@ -1265,6 +1265,13 @@ int sysdb_domain_init_internal(TALLOC_CTX *mem_ctx,
}
}
+ if (strcmp(version, SYSDB_VERSION_0_16) == 0) {
+ ret = sysdb_upgrade_16(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