Koozali.org: home of the SME Server

Copy Horde preferences / profile to other users

Offline engdev

  • *
  • 71
  • +0/-0
Copy Horde preferences / profile to other users
« on: October 21, 2008, 03:28:51 PM »
Hi,

I would like to setup a number of Horde users with the same preferences. I have followed this guide http://wiki.horde.org/ApplyGlobal but it falls over at point 5 as there is no user 'horde' setup on the server.

Any ideas how to overcome this as would save having to setup preferences for individual users?

thanks

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Copy Horde preferences / profile to other users
« Reply #1 on: October 21, 2008, 03:49:33 PM »
hi

that script will fail also because use psql..

BTW, I think you should read the documentation.. everytime you create an use in SME you've got his profile created in horde.. and yes, every user has the same profile (i.e. identical setup) until he login and change manually something.

HTH
ciao
Stefano

Offline engdev

  • *
  • 71
  • +0/-0
Re: Copy Horde preferences / profile to other users
« Reply #2 on: October 21, 2008, 04:18:25 PM »
Hi,

Thanks for your reply. I'm aware that each SME user automatically has a Horde login created. What I would like to do is configure 1 user and then copy all the user configurable preferences over to other users, so that there is a consistent interface for all the users when they logon for the 1st time. Makes my job easier!


Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Copy Horde preferences / profile to other users
« Reply #3 on: October 21, 2008, 05:45:27 PM »
I think you can achieve this goal in a similar manner..

NOTE I have not tested this procedure, you do at your own risk, make a backup of your data first

a) the script could be almost the same.. but as I can see in horde_prefs table on SME, pref_uid in in the form of
username@localdomain, so you have to modify the script itself accordingly (and users.txt too)..
ah, remove also line
Quote
echo COMMIT;

b) on SME console do:
Code: [Select]
mysql
use horde;
source path_to_applypref.sql;
quit;

it should work

Ciao
Stefano

Offline lucho115

  • *****
  • 209
  • +0/-0
    • http://www.elac.com.ar
Re: Copy Horde preferences / profile to other users
« Reply #4 on: November 27, 2008, 06:38:54 PM »
so engdev, the modificated script had worked? or you doit with other method? i want to do something similar, so if you do it can you tell me how?
thkas
bye

Offline engdev

  • *
  • 71
  • +0/-0
Re: Copy Horde preferences / profile to other users
« Reply #5 on: November 27, 2008, 06:55:49 PM »
Hi luncho,

I'm afraid that I chickened out of trying it as the 'try at your own risk'....put me off. I'm a newbie to SME and don't want to break anything.......