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:31:04 +0100
commitd993dc0a566dbf79f808d0ec35c8e61806f34e40 (patch)
treec29cf46da64f61d9e035bf9b6c9f88fa80e52007 /src/db/sysdb.c
parent6ee65c5580ef25c72b29fb73ea4d9ace6b7e85c5 (diff)
downloadsssd-d993dc0a566dbf79f808d0ec35c8e61806f34e40.tar.gz
sssd-d993dc0a566dbf79f808d0ec35c8e61806f34e40.tar.xz
sssd-d993dc0a566dbf79f808d0ec35c8e61806f34e40.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