Commit Graph

434 Commits

Author SHA1 Message Date
Ralf Becker
3996f8a936 * MySQL: got mysqli extension working and make it default for EGroupware, as mysql is now officially deprecated, existing installs need to be switched manually in header.inc.php or Setup >> Manage header 2013-05-26 09:32:41 +00:00
Ralf Becker
eaf3e6e1a5 offer to delete all existing accounts from SQL tables, before migration to it 2013-05-23 14:33:14 +00:00
Ralf Becker
4037993dc5 * API: full support of active directory as account storage, tested so far with Samba4 2013-05-22 17:22:20 +00:00
Ralf Becker
93710e09e1 * Setup/API: improved diagnostics about db connection problem and not installed EGroupware
- removed deprecated egw_db->Halt_On_Error handling in favor of just exceptions
- added a couple of exceptions extending egw_exception_db to be able to detect different problem areas
- fixed setup to use / catch exceptions
- new egw_exception_db_setup displays link to setup below exception message, to cope with no longer allowed html in exception messages
2013-03-05 10:50:43 +00:00
Nathan Gray
6cae734945 Fix historylog, links & categories sticking around if app is deleted 2013-01-14 20:25:37 +00:00
Ralf Becker
2fed3637be migrate mailbox name (mailMessageStore) when migrating mail accounts, otherwise default get created, which might differ 2012-11-23 09:17:32 +00:00
Ralf Becker
7cd9685d71 mail account and addressbook migration in all directions and for dbmailuser schema too 2012-11-20 09:13:16 +00:00
Ralf Becker
67f71992ee first take on migrating mail accounts from LDAP to SQL (only qmailUser schema) 2012-11-19 09:59:00 +00:00
Ralf Becker
ec2ce0f943 * Setup: when migrating accounts from SQL to LDAP or back, also migrate addressbook data 2012-11-19 08:23:09 +00:00
Ralf Becker
a709f6104f * Setup/API: translations are no longer installed in database, but loaded directly from lang-files into tree-level cache 2012-11-05 12:18:22 +00:00
Ralf Becker
3625cfb855 setup too: new function "Clear cache and register hooks", also called automatic when restoring a backup 2012-10-31 17:17:28 +00:00
Ralf Becker
a81d7126aa setting and checking required PHP version of 5.3 2012-10-26 08:50:07 +00:00
Ralf Becker
1093103856 fixed not working account migration: need to invalidate cache: otherwise no migration takes place, if cached results says account already exists 2012-10-12 12:55:19 +00:00
Ralf Becker
86a8ce1839 disable PHP 5.4 E_STRICT warnings in setup, as already done inside EGroupware 2012-09-14 16:38:17 +00:00
Ralf Becker
e64013f413 a little more sophisticated test if we have a functioning database, before trying to store a setup_cmd object, otherwise it stalls the update 2012-08-13 12:14:37 +00:00
Ralf Becker
e23996a45b using new syntax 2012-06-19 17:43:37 +00:00
Ralf Becker
5e76d4197e * EMailAdmin/Setup: fixed wrong created default profile, user profiles and signatures were ot allowed, due to changed default parameter -1 --> false 2012-04-24 17:45:19 +00:00
Ralf Becker
a3ada52adf * Admin/ImportExport: fixed import of already hashed passwords 2012-03-29 18:33:33 +00:00
Ralf Becker
43092fea2e setting recommended php version to 5.3, not sure why we havnt done that already 2012-03-11 09:37:38 +00:00
Ralf Becker
163ca468f8 quieten message that "jdots" is not installed 2012-01-09 10:25:56 +00:00
Klaus Leithoff
d2f4d36355 more work regarding the implementation of the new feature that allows to specify smtp auth credentials for alarms/notifications only (otherwise credentials of corrent user are used) 2011-10-06 09:13:48 +00:00
Ralf Becker
2ed73047df fixed serveral issues around cached config:
- changing config in setup did not update or unset the cache --> instance was NOT using it
- new installs failed, because cache was not configured
- cache command to not configured cache gave fatal error, now they throw a (catchable) exception
2011-09-13 09:25:25 +00:00
Ralf Becker
54bf7a3d2d - fixed image map was empty created when not loged in (now directories are used and not $GLOBALS['egw_info']['apps'])
- fixed not working vfs-image-dir
- deleteing image-maps when:
  + apps get installed, updated or removed
  + admin >> register hooks
  + admin >> site configuration: vfs-image-dir get changed
- fixed not displayed validation errors (thought there were no validation) in admin >> site config
--> you need to register hooks, in order to get the admin >> site configuration validation hook ;-)
2011-08-31 10:16:12 +00:00
Ralf Becker
e2b385ed9c new setup command (object) to register all hooks and adding it to setup-cli.php 2011-06-29 08:40:24 +00:00
Klaus Leithoff
d32809bb90 * emailadmin: restored capability of storing setup mail server settings to first default emailadmin profile (no app, no group, no user) 2011-06-20 09:56:39 +00:00
Ralf Becker
17ce63390c setup-cli / post_install command to install/update a single (non-default) app 2011-06-18 10:44:56 +00:00
Ralf Becker
c2feef73de using preferences class to set preferences 2011-06-11 11:53:43 +00:00
Ralf Becker
c0cf0788e2 fixed not working new trunk installs 2011-06-07 08:02:06 +00:00
Ralf Becker
fae1d29e68 - implemented more secure password hashing types: sha512_crypt, sha256_crypt and blowfish_crypt (later was only just broken)
- DB schema update for account_pwd to varchar(128) to accomodate sha512_crypt hashes
- enable automatic migration to sha512_crypt, if on SQL or LDAP (but only on Linux, as OpenLDAP has not native support for it)
2011-06-05 23:22:51 +00:00
Ralf Becker
99910cd62e historically crypt is called des in ldap 2011-05-04 20:19:59 +00:00
Ralf Becker
e0614a8a6a keeping the old defaults to not break existing installs 2011-05-04 17:57:12 +00:00
Ralf Becker
ceb9cf34f6 fixed broken password hashes hook (default label was in option value) 2011-05-04 16:30:19 +00:00
Ralf Becker
86be53f4a3 showing ssha as default and sorting it as top option 2011-05-04 13:47:44 +00:00
Klaus Leithoff
f0aa9131d1 fix bug on failed install of new instances 2011-05-04 13:45:01 +00:00
Ralf Becker
57fc9c63fc - fixed with ssha not working migration from sql <--> ldap
- using 16 char salt for ssha and smd5 as eclipse ldap admin does
- remove auth::hash_sql2ldap() method, as it is now in setup/inc/class.setup_cmd_ldap.inc.php
- added ability to create uid dn in setup_cmd_ldap subcommand create_ldap
2011-05-04 09:42:50 +00:00
Ralf Becker
457e79454d * Setup: making SSHA (salted sha1) hashes the default password hash for SQL and LDAP
- fixing not working ssha hashes if mb_string.func_overload > 0 set
2011-05-04 07:52:45 +00:00
Ralf Becker
5ea2945538 allow to return passwords hashes as array 2011-04-01 14:00:25 +00:00
Ralf Becker
4c9b620657 missing auth_type_activesync hook 2011-03-28 17:29:07 +00:00
Nathan Gray
374b65e0b8 Add link to find and register all application hooks 2011-03-23 16:19:32 +00:00
Klaus Leithoff
e33aa2978c * API/Authentication: add fallback to sql for mail authentication. 2011-03-23 13:19:48 +00:00
Ralf Becker
ea989a2af8 dont show vfs_storage_mode "custom", if not custom 2011-03-07 14:15:44 +00:00
Ralf Becker
d5a4b78bae * fixed "undefined function lang_select" issue, if no cookies are allowed, also showing again language selection for new installs 2011-02-03 02:01:48 +00:00
Nathan Gray
792e0af077 Remove configuration when removing an app 2011-02-02 15:53:45 +00:00
Nathan Gray
18882c57c7 Remove an app's categories when removing the app 2011-02-02 00:45:54 +00:00
Ralf Becker
6154863394 remove hooks of apps, when deleting them (event if sources are no longer there) 2010-09-15 20:09:57 +00:00
Ralf Becker
699ce1b1a9 facilitate downgrade, if supported by "update" scripts: run downgrades automatic 2010-09-15 19:10:00 +00:00
Ralf Becker
871e5718af using one list of auth-types (in order of importance) and detecting additional ones in the filesystem 2010-09-10 09:26:17 +00:00
Ralf Becker
7706645423 check if app is either installed or supports the used database (before installed, but not supported apps where not updated) 2010-09-08 12:24:05 +00:00
Ralf Becker
26ed58af98 need to setup ldap data in setup_cmd_ldap, before calling the hook 2010-09-02 08:50:48 +00:00
Ralf Becker
20912e702d upps, fixed wrong parameter order 2010-08-31 10:26:43 +00:00
Ralf Becker
bfc3b262b3 rest to implement support for different mailbox names types / mail_login_types 2010-08-31 10:13:28 +00:00
Ralf Becker
2ebd10efba new command to set mailbox attribute 2010-08-31 09:33:29 +00:00
Ralf Becker
d6822d9564 - fixed not working accounts::cache_invalidate(): cache is now in regular egw_cache on session level
- calling static methods static: accounts::cache_invalidate() or egw::invalidate_session_cache()
- fixed wrong number of deleted items in setup_cmd_ldap sub-comand=delete_ldap
- only use create, if we have an ldap_admin_pw set
- call an add_account hook for each created account, if specified (not by default)
2010-08-29 08:16:27 +00:00
Ralf Becker
7be62b431f moved logic of account-migration to setup_cmd_ldap and using setup_cmd_ldap for account_migration.php, that way we can also create the ldap-structur during the migration 2010-08-26 20:22:02 +00:00
Ralf Becker
6c885b31fb - setting set_defaults also with values containing (now replaced) replacements like $domain
- shorten db-name/-user to self::MAX_DB_NAME_LEN chars
2010-08-25 12:24:11 +00:00
Ralf Becker
442bdbe564 - new admin-cli command --add-user like --edit-user, but runs addaccount hook for existing accounts too
- using --add-user instead of --edit-user in setup_cmd_admin
2010-08-20 20:28:59 +00:00
Ralf Becker
9df4f2e93b setup_cmd_admin execs "admin/admin-cli.php --edit-user" to run all hooks, which can NOT run in setup 2010-08-20 19:28:08 +00:00
Ralf Becker
aee5936945 some fixes for base deletion and counting of active users 2010-08-20 14:18:21 +00:00
Ralf Becker
c71ffc8646 new sub-command to delete ldap tree 2010-08-20 13:27:37 +00:00
Ralf Becker
19a25d392d some more adapting to current emailadmin: sieve host is not yet used, but defaulting to NULL is what emailadmin does too 2010-08-20 11:15:59 +00:00
Ralf Becker
ebc83beb06 updated mail config to match current emailadmin 2010-08-20 10:18:29 +00:00
Ralf Becker
5af87bf976 using organizationalRole instead of namedObject which seems to be suse specific 2010-08-18 09:14:30 +00:00
Ralf Becker
5d6e6cdc9c new parameter $make_db_name_unique to append a decrementing numeric postfix to db_name and db_user, if db already exists 2010-07-31 09:23:41 +00:00
Ralf Becker
d02badfed5 using functions moved to setup_translation class and modernising setup_html 2010-07-29 08:29:54 +00:00
Ralf Becker
b71035b529 marking all static methods static and moving method to query supported languages into setup_translation class 2010-07-29 08:14:15 +00:00
Ralf Becker
77982bb646 fixed typo 2010-07-29 07:49:38 +00:00
Ralf Becker
58993cfb7b - using EGW_*_ROOT instead of .., to allow running from different directories
- allow running setup_cmd_admin directly via the command line with regular syntax (was already possible under special syntax)
- limiting database names to 16 chars, which is the limit in mysql
2010-07-26 08:20:14 +00:00
Ralf Becker
ab9e549d38 always enable history logging for calendar, addressbook and infolog 2010-06-16 08:57:40 +00:00
Ralf Becker
9c837c57f9 always enable spellchecker, ckeditor now uses spell-as-you-type via a public webservice 2010-06-10 05:55:15 +00:00
Klaus Leithoff
963b99ea5b removing the defaultvalue for the imap_server, as we do not require imap_server for setup anymore 2010-05-28 13:19:23 +00:00
Klaus Leithoff
f7e70b5feb remove pop3/pop3s from setup_cmd_config, as it is not supported anymore 2010-05-20 12:59:49 +00:00
Ralf Becker
5973d330fd setup->setup_account_object() need to load config to $GLOBALS[egw_info][server] too, as eg. auth::encyrpt_password needs the encryption type 2010-05-15 07:56:58 +00:00
Ralf Becker
e91b0f0cb5 using since php<=5.0 available raw_output=true parameter for md5 and sha1 instead of deprecated and in newer distros no longer available mhash extension 2010-05-13 10:39:48 +00:00
Ralf Becker
7489a9cfb4 "do NOT mark untranslated phrases with an asterisk (as EGw does it by default since some versions)" 2010-03-16 16:18:41 +00:00
Ralf Becker
7f3651e3f2 Do NOT store "System/Localtime" as server_timezone, as it is no valid timezone 2010-03-15 07:51:38 +00:00
Ralf Becker
0affaddfb2 fix for Debian Bug#569677: egroupware-core: base configuration fails with php error if egroupware-emailadmin is not installed 2010-02-15 02:58:58 +00:00
Ralf Becker
872fa0b72b fixed stupid windows path: moved aspell_path config to setup, vor obvious reasons 2010-02-14 06:11:28 +00:00
Ralf Becker
1555115be7 moved aspell_path config to setup, vor obvious reasons 2010-02-14 05:51:51 +00:00
Ralf Becker
7d1ac84b67 fixed typo in previous commit: problem pointed out by Nahuel Grisolia <ngrisolia@cybsec.com> 2010-02-13 04:55:34 +00:00
Ralf Becker
8b92fc4998 fixed typo in previous commit: problem pointed out by Nahuel Grisolia <ngrisolia@cybsec.com> 2010-02-13 04:47:01 +00:00
Ralf Becker
aca8b220df fixed problem pointed out by Nahuel Grisolia <ngrisolia@cybsec.com> 2010-02-13 02:57:22 +00:00
Hans-Jürgen Tappe
9c5fd08d90 Fix backup->restore() as discussed on the devel list:
- Internationalization of error messages.
- Typos
- Add missing code documentation
- Respect return code of db->transaction_commit()
- Add missing filename arguments in restore() calls.
2010-01-22 21:39:19 +00:00
Ralf Becker
a3a3faab22 "using isset($GLOBALS['egw']->accounts) instead of is_object, as egw object always instanciates accounts object (with wrong config) if is_object() is used" 2009-12-07 17:47:57 +00:00
Ralf Becker
61c48fb5c0 allow setup-cli to install ldap based right away 2009-12-05 17:42:18 +00:00
Ralf Becker
fd0bfe97ea querying date_default_timezone_get() only once and storing it as
$GLOBALS[egw_info][server][server_timezone], as it fills the log with
warnings under php5.3
2009-11-28 10:18:21 +00:00
Ralf Becker
9a755daa24 Client to submit monthly statistical data 2009-11-17 09:24:10 +00:00
Ralf Becker
28a778955c "setting standard IMAP and SMTP as default" 2009-10-28 21:59:49 +00:00
Ralf Becker
ed5a1234c6 "do not count \"deleted\" apps (apps without sources) as to upgrade" 2009-10-28 21:08:23 +00:00
Ralf Becker
5408924afb All EGroupware apps can now set default and forced preferences on
installation time --> nice user experience and cleaner look (by hiding
exotic prefs by focing them to a usual value):
- settings returned from settings hook can contain values for keys
  'default' or 'forced'
- if settings hook require part of api or application, which are not
  available during installation time: use a method hook (instead of
  an old $app/inc/hook_settings.inc.php file), and check if
  $hook_param['setup'] is true
- default prefs created so far in setup/admin_account.php got removed
- common prefs in preferences_hooks::settings() got reworked to set
  default and forced prefs
- calendar prefs in calendar_hooks::settings() got reworked to set
  default and forced prefs
--> I will rework prefs of all our (default) applications according to a
best practice list of Stylite consultants
2009-10-18 12:57:30 +00:00
Ralf Becker
a83a79e167 - setting required php version to 5.2
- removing tz_offset default pref and config
- adding tz default pref (defaults to server timezone)
2009-10-12 07:39:47 +00:00
Klaus Leithoff
58890aaf9c added email as mail Login Type 2009-09-10 12:16:29 +00:00
Klaus Leithoff
44a53ee05b backup housekeeping feature from H.J.Tappe together with a feature to backup egroupware the files - tree from Christian Fueller; The File-backup feature is testet against relatively small eGroupware Instances; It requires ZipArchive (If you dont have that, the backup should run, but without backup of files); AND if you enable it backup takes a) more time to run and restore b) way more space, so you should enable housekeeping 2009-08-27 12:46:12 +00:00
Klaus Leithoff
b0ba5cbf50 log invalid IP Loginattempts to the webservers error_log 2009-08-27 12:35:27 +00:00
Ralf Becker
1c94011502 "only delete header, if it does exist and is NOT writable (otherwise the header is owned by the user running the script)" 2009-06-21 12:34:02 +00:00
Ralf Becker
66451aa99d "dont unlink header.inc.php for root user, as it get created again with owner root" 2009-06-18 21:21:20 +00:00
Ralf Becker
232252475f patch fixing many depricated functions (eg. posix regular expressions) and features, which fill up the error_log under php5.3 (and will no longer be available under php6).
Patch is mostly created by script in egroupware/doc/fix_depricated.php in separate commit.
I do NOT advice to apply this patch to a production system (it's commited to trunk!), as the automatic modified regular expressions have a good change to break something ...
2009-06-08 16:21:14 +00:00
Ralf Becker
bf7e7889cf if header is a symlink --> work on it's target 2009-05-31 09:51:57 +00:00
Ralf Becker
8a66799414 get exit codes for setup-cli working again (was broken in 1.6) 2009-05-31 08:15:11 +00:00
Ralf Becker
3ec3c205ee created a rpm post script to automatic install or update EGroupware:
- cleaned up exceptions in cli code (no need to log, as it goes direct to the user)
- regarding small rpm redirect header (< 200 bytes) as no header
- fixed wrong detected vars for cli install (eg. webserver_url)
- fixed egw_cache to not stall if system_charset is not yet in db
2009-05-30 20:15:31 +00:00
Ralf Becker
6503d6d0cc - updated documentation
- add feature to allow apps to choose to be automatic installed on
  updated: $setup_info[$app]['autoinstall'] = {true|'1.x.xxx'};
- run default_records.inc.php (if exists) also for apps without tables,
  as they might need to initialise some stuff
2009-05-28 11:33:30 +00:00