On Thursday 04 June 2015 12:50:04 Robert Hafner wrote: > We just migrated from FreeIPA to OpenDirectory. Most of our > applications had no problem with this, as they used the UID as the > unique identifier. However, unique amongst all applications in our > organization it seems OwnCloud uses the UUID, which has changed with the > new directory. > > This has resulted in people logging in with the same username as they > used to use ([email protected]) and getting a brand new account with > none of their data. > > Does anyone have advice on migrating the data over?
As it is documented, the UUID is used for both the internal username as well as an identifier to, when i doubt, look up a user in LDAP (e.g. when a DN has changed). You would have needed to switch the settings to "uid" in the expert area *before* going productive. This won't help you know of course. Now, migrating it is a tricky thing. I assume you want to switch fully to uid. User references in the database are done using the ownCloud username. You will need to replace the old UUIDs with the corresponding UID. You can look up the database table ldap_user_mappings to see with UUID was mapped to which DN. User home folders follow the username by default as well. If you have not changed "User Home Folder Naming Rule" in LDAP Advanced settings, you will need to rename them to the correspondid UID as well. Also in the storages database tables you will need to change the entries in the id colum containing the UUID (e.g. home::0a5b8752-423c-1033-82be-ad5f418ee02e) to home:: $CORRESPONDINGUSERNAME. Finally, in the LDAP Expert settings switch Internal Username Attribute to UID as well as the UUID detection for users. Subsequently, clear the Username-LDAP User Mapping on the same page, too. This might need to be done for groups as well. I think you should be settled now, please note i did not do such a migration, i could have missed a thing. As usual, have a backup and try on a test instance first. Cheers Arthur > > Rob > _______________________________________________ > User mailing list > [email protected] > http://mailman.owncloud.org/mailman/listinfo/user -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? XMPP: [email protected] www.owncloud.com - Your Data, Your Cloud, Your Way! ownCloud GmbH, GF: Markus Rex, Holger Dyroff, Frank Karlitschek Schloßäckerstrasse 26a, 90443 Nürnberg, HRB 28050 (AG Nürnberg)
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ User mailing list [email protected] http://mailman.owncloud.org/mailman/listinfo/user
