summaryrefslogtreecommitdiffstats
path: root/src/db/sysdb.c
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2012-11-16 20:25:44 +0000
committerJakub Hrozek <jhrozek@redhat.com>2012-11-19 15:11:12 +0100
commitd096233fe7610186ee12f41f97ca9602a3768405 (patch)
tree2b2c914e0afc7ce621c8c8c8d99b518203ec16f8 /src/db/sysdb.c
parent94a66f84bd3c28fcabffeb84c682dccf89d89c2b (diff)
downloadsssd-d096233fe7610186ee12f41f97ca9602a3768405.tar.gz
sssd-d096233fe7610186ee12f41f97ca9602a3768405.tar.xz
sssd-d096233fe7610186ee12f41f97ca9602a3768405.zip
Handle conversion to fully qualified usernames
In subdomains we have to use fully qualified usernames. Unfortunately we have no other good option than simply removing caches for users of subdomains. This is because the memberof plugin does not support the rename operation.
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 dda288f76..e82c18495 100644
--- a/src/db/sysdb.c
+++ b/src/db/sysdb.c
@@ -1146,6 +1146,13 @@ int sysdb_domain_init_internal(TALLOC_CTX *mem_ctx,
}
}
+ if (strcmp(version, SYSDB_VERSION_0_13) == 0) {
+ ret = sysdb_upgrade_13(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