Commit Graph

102 Commits

Author SHA1 Message Date
Ralf Becker
2cd4742695 "removing unnecessary instancations" 2008-03-25 17:00:56 +00:00
Lars Kneschke
844936d19b added singelton pattern to the accounts class and added function to set accountId without needing to call the construtor 2008-02-08 11:16:09 +00:00
Ralf Becker
2aa096915c reworked the accounts class, to be able to instanciate both backends (ldap&sql), as well as specify the config (account_repository, ldap_*) 2007-12-13 02:32:44 +00:00
Ralf Becker
9b476e0687 fixed problem caused by non existing session-object in setup, reported und the user list 2007-07-27 09:36:00 +00:00
Ralf Becker
d899beeb55 "fixed problem reported on the german list: memberships get not set if a new user gets creted in ldap
It turned out to be a caching problem, as the cache of the accounts-class still contained a failed id2name resolution for the new account.
This was caused by the session-restore with stored the cache in the global accounts object ($GLOBALS[egw]->accounts) too.
Now the global cache is in the global account-object and all other account objects use just a reference to that cache. It get stored from common::egw_final by calling $GLOBALS[egw]->accounts->save_session_cache() in the session."
2007-07-27 07:46:55 +00:00
Ralf Becker
80419ee783 "removed some \"dead\" code" 2007-05-20 15:16:15 +00:00
Ralf Becker
9035eafef4 "- fixed docu of search method: order and sort were exchanged
- added missing 'sort' parameter for depricated get_list method"
2007-01-08 08:57:33 +00:00
Ralf Becker
66abd0c259 re-added the account-search-types lost in the rewrite of the accounts-class 2006-10-28 09:32:56 +00:00
Ralf Becker
052c0e964c fixed depricated get_list methode, to return an array indexed 0, 1, 2, ... as the old one 2006-09-24 08:06:16 +00:00
Ralf Becker
1f5580c528 hardcoded the use of accounts_backend::search for ldap, as method_exists behavior seems to have more to do with php's version-numbers then with the existens of the method ;-) 2006-09-20 06:03:06 +00:00
Ralf Becker
058e175669 fix necessary for session-type php_restore 2006-09-15 16:36:09 +00:00
Ralf Becker
fb62796694 big performance improvment (developed and tested on an install with > 2000 users) 2006-09-15 16:19:39 +00:00
Ralf Becker
f53f475e53 fixed bug reported on the list by Pierre Rigal: Admin >> Manage users shows only first N groups and not all (was caused by default param of '' instead of null in the depricated accounts::get_list() method used by admin) 2006-09-06 08:13:56 +00:00
Ralf Becker
8072930632 write only for contact-repository sql-ldap, but not for sql and account in ldap 2006-07-08 21:41:42 +00:00
Ralf Becker
ad7972870c moved saving of account contact-data to accounts class 2006-07-08 00:20:27 +00:00
Ralf Becker
4e2ed78789 prevent invinit recursion if read_repository() is called without $this->account_id set 2006-06-18 04:58:02 +00:00
Ralf Becker
e57d634c33 enabling the session cache for sql too 2006-06-17 18:40:07 +00:00
Ralf Becker
5a84e151b2 need to invalidate the cache, before new users can be assigned any memberships 2006-06-07 17:55:57 +00:00
Ralf Becker
3234d5723e - fixed a view error in working together with setup
- quitent (hopefully) all debug messages
2006-06-07 05:16:56 +00:00
Ralf Becker
98d8b30761 rewrite of the accounts classes:
- new cleaner AND documented interfaces
- old interfaces are still availible, but depricated
- LDAP backend stores now membership information in LDAP too, and does NO longer require the phpgwAccount schema
- LDAP backend deals now well with LDAP schema in which posixGroup is no structural object (eg. newer SuSE distros)
- password from users are done now binded as that user, so if you dont need/use our admin to manage accounts, you can give a root-dn which only allows to search&read accounts
2006-06-06 23:42:36 +00:00
Ralf Becker
e52c09e0a6 allow to search for fullname 2006-04-23 14:48:19 +00:00
Ralf Becker
b5197ce79d fixed bug in creation of new groups under ldap, they get always the same id 2005-12-14 23:33:07 +00:00
Ralf Becker
43ae18fb7a finding the db-object from setup too 2005-11-24 20:48:31 +00:00
Ralf Becker
9606f6ea25 eGW uses now negative id's for groups, this allows to better support ldap (you can have users and groups with identical id's) 2005-11-24 19:48:21 +00:00
Ralf Becker
2dbaf992fa fix for bug [ 1357995 ] LDAP account import errors 2005-11-20 08:03:06 +00:00
Ralf Becker
335cef9104 display_fullname and get_account_name replace now an empty firstname with the lid and an empty lastname with group or user 2005-11-02 20:43:04 +00:00
Ralf Becker
c85d34c0fe changed the following table-names:
- phpgw_accounts --> egw_accounts
- phpgw_acl --> egw_acl
- phpgw_log(_msg) --> egw_log(_msg)
- phpgw_config --> egw_config
- phpgw_applications --> egw_applications
This requires code-changes in many apps. Quite often I was able to replace the db access, with calls to the appropreate classes.
2005-11-02 11:45:52 +00:00
Ralf Becker
c395f26dc6 added function to invalidate the session-cache if:
- global config (egw_info[server]) changes
- user prefs change
- acl of the current user changes
2005-07-22 09:20:31 +00:00
Ralf Becker
b97d8b5eeb big documentation update 2005-04-25 10:09:10 +00:00
Ralf Becker
4e2bce12e6 modernized code and fixed problem reported on the list: new installs cant create admin-account due to not longer existing phpgw class in the api 2005-03-24 13:15:12 +00:00
Lars Kneschke
23046ac0b5 fix for bug [ 1007816 ] error message 2004-08-25 20:04:27 +00:00
Lars Kneschke
cd30d6d0ab call the right function name 2004-08-13 16:27:50 +00:00
Ralf Becker
6b8f6a3d87 removing all it's acl-rights if an account gets deleted, admin only removed the run-rights, but not the grants or other rights 2004-08-07 12:46:58 +00:00
Ralf Becker
4a5d497a6e killed debug message 2004-07-07 09:43:01 +00:00
Ralf Becker
691d107ca6 fixed bug in acccounts::search: first accounts got overwritten by groups, eg. they were not selectable in the calendar on editing/adding an event 2004-07-07 09:41:00 +00:00
Ralf Becker
c4326776b2 fixed error in caching of sub-queries 2004-07-04 18:34:18 +00:00
Ralf Becker
8bfb6cfb07 added email-address to the accounts-data (ldap untested so far!) 2004-07-04 17:27:42 +00:00
Ralf Becker
a1921aed2e - moved the whole selection code from uiaccountsel::popup to accounts::select
- extended syntax for uiaccountsel::selection to specify what you need (no longer hardcode of certain apps)
2004-06-16 00:31:48 +00:00
Ralf Becker
1bc44b879d removed old accounts-popup 2004-06-15 10:19:02 +00:00
Ralf Becker
ab9ec83bc4 implemented different search-types:
- all fields
- firstname, lastname, account-lid
- start with
- exact
for the new account-selection popup
2004-06-13 20:11:31 +00:00
Lars Kneschke
0e953fdeeb fix for BUG [ 969767 ] Projects: Administrator list and
BUG [ 969759 ] Edit manager list - Duplicate Names
2004-06-10 15:07:40 +00:00
Ralf Becker
728b1de2dd moved accounts & accounts_shared into one file accounts:
saves opening and existens of one more file
2004-05-29 16:11:35 +00:00
Miles Lott
121e9072fc GLOBALS... 2001-09-23 19:08:44 +00:00
Miles Lott
397e532e6e format class.accounts.inc.php, update class.accounts_contacts.inc.php to almost
working status
2001-06-26 23:16:18 +00:00
Miles Lott
90d97f0881 Formatting 2001-05-02 12:08:11 +00:00
jengo
5f0c2433db Returned cvs to how it was last night (with including the class.accounts.inc.php) file first 2001-02-06 20:13:06 +00:00
jengo
e0b8a07f9c Fixed not being able to login and clean up a ton of code. It was a mess in there, things flow a little but better now. I still have some cleaning up to do 2001-02-06 13:18:51 +00:00
seek3r
00b23411ef moved to define() for path vars. Also starting to hack sessions to be phpgw_info manager 2001-02-06 09:19:38 +00:00
seek3r
cfb29e83dd switching to new definition as documented in phpgwapi/doc/class.acounts
I for accounts_sql we still need to add a few functions.
2001-02-05 20:40:30 +00:00
jengo
f6adca46c7 Changed the accounts class to use the new smaller version of the phpgw_accounts table 2001-02-05 14:58:03 +00:00
seek3r
431f841cba switching to the new Object factory method 2001-01-11 10:04:28 +00:00
seek3r
e97ef24062 switching to the new Object factory method 2001-01-11 09:52:33 +00:00