[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
--userregextrans :-)
|
From |
Peer Heinlein <p dot heinlein at heinlein-support dot de> |
|
Subject |
--userregextrans :-) |
|
Date |
Tue, 19 Jan 2010 03:05:02 +0100 |
Very often it's necessary to change usernames during the migration from
one server to another.
Sure, it's easy to write a little script to use different usernames on
host1 and host2.
But consequently it would be necessary to migratione usernamens in ACL-
rules too. Otherweise the whole ACL-setup is broken.
That's nothing we can do with just some parameters, because each
imapsync migration process has to know *all* pairs of old/new usernames.
-A single account will have several ACL-rules for different users.
Migrating ACLs would be easy if imapsync would understand a parameter
like --user-translation-file:
olduser1 newuser1
olduser2 newuser2
olduser3 newuser3
And sometimes it's possible to describe all changes by a simple regular
expressions. A parameter like "--userregextrans" would be nice to (for
stuff like s/(.+)@(.+)/\2_\1/).
imapsync should migrate all usernames during the --syncacl-process.
Having that kind of translation-file the parameter "--user2" could be
optional:
If no "--user2" is given, then "--user1" is used (same for --
password2/--password1).
If furthermore --user-translation-file or --userregextrans exists, then
imapsync should migrate the username used for the login (and for ACLs)
automatically from old to new.
Peer
--
Heinlein Professional Linux Support GmbH
Linux: Akademie - Support - Hosting
http://www.heinlein-support.de
Tel: 030 / 40 50 51 - 0
Fax: 030 / 40 50 51 - 19
Zwangsangaben lt. §35a GmbHG:
HRB 93818 B / Amtsgericht Berlin-Charlottenburg,
Geschäftsführer: Peer Heinlein -- Sitz: Berlin