Ralf Becker
51270655f9
cast accounts->members(hips) to array, to cope without PHP warnings for not (longer) existing accounts
2012-08-09 08:56:28 +00:00
Ralf Becker
110ad12bb6
delete user categories, when user get deleted and admin command to delete already orphaned categories: admin/admin-cli.php --admin-cmd-check-cats admin,password
2012-08-08 16:25:03 +00:00
Ralf Becker
92a97ea4d9
accounts::id2name() needs to return false, not throw an exception for not found accounts
2012-08-07 16:09:54 +00:00
Ralf Becker
c2105fcf31
* API/accounts: instance-wide cache for account-data incl. members and memberships, so change take imediate effect (compared to previous session based cache)
2012-08-06 10:06:59 +00:00
Ralf Becker
493bf3bcd0
fixed 5.4 PHP Warning: Illegal offset type
2012-07-17 13:59:37 +00:00
Klaus Leithoff
45fe6d9fea
for new (autocreated) accounts, set ->can change password<- appropriately, move section before processing of hooks
2012-06-29 13:54:13 +00:00
Klaus Leithoff
fa90c1066c
* API: for new (autocreated) accounts, set ->can change password<- flag only if admin requires his users to change their passwords regularily (admin->site configuration->set recurrent forced password change)
2012-06-29 11:38:58 +00:00
Nathan Gray
41cf864a73
Respect group filter, if passed
2012-05-29 22:24:15 +00:00
Ralf Becker
15c9fd0d32
* CalDAV/CardDAV: log failed requests with ### like exceptions to ease diagnose problems, log if clients requests accounts not visible because of account-selection preference, skip proxys if not visible
2012-04-12 10:44:00 +00:00
Ralf Becker
a1ffcd08e4
* Admin/Addressbook: fixed wrong timezone in created and modified times for contacts and accounts
...
- fixed typo / wrong direction of conversation when storing contacts
- fixed accounts_sql, which uses addressbook_bo::search() to convert created and modified timestamps to servertime as
- (documented that) accounts class (SQL and LDAP) operate completly in server-time
2012-03-14 15:22:51 +00:00
Ralf Becker
b1b1ab820a
no need for db schema on the client
2011-09-09 14:56:34 +00:00
Ralf Becker
008f009d80
- implemented new egw.link_app_list(_must_support) and egw.link_get_registry(_app, _name) methodes
...
- using egw.link_app_list('query') in link widget (no need to transfer it additonally)
- added some more docu to egw object
2011-09-08 12:24:53 +00:00
Ralf Becker
b950c5b811
fixed typo causing search for group-members to fail for accounts in sql
2011-09-08 09:57:32 +00:00
Ralf Becker
f5c5df3299
respect restrictive account-selection "groupmembers" and "none" when linking with accounts and sort search for accounts alphabetically
2011-09-07 16:44:00 +00:00
Ralf Becker
b633044a46
* API/Calendar: allow to link to accounts and allow to select accounts as participants by searching them like contacts
2011-09-07 14:47:51 +00:00
Ralf Becker
046c0919cc
make basic data of current user available via egw.user(_field)
2011-08-31 12:17:34 +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
b470f52e99
"fixed not working $type=='owngroups' for ldap, eg. used in calendar pref 'Preselected group for entering the planner'"
2010-04-23 10:55:09 +00:00
Ralf Becker
80d89dc590
"allow to specify more then one group for an auto-created user
...
(first is primary, further are just memberships)"
2010-03-29 07:39:09 +00:00
Ralf Becker
ac75c349b8
"calling split_accounts with 'merge' it type is NOT either 'accounts' or 'groups'"
2010-03-25 08:48:58 +00:00
Klaus Leithoff
3aec3b7e5a
accounts_search with app param: for split_accounts we want the result merged all the time, as we use it for checking ids only
2010-03-24 13:53:28 +00:00
Ralf Becker
90a3a946f6
restructured accounts::search() code, to handle $param[app] for ldap too, fixed ldap backend to also index array by account_id
2010-03-20 13:24:01 +00:00
Ralf Becker
b40f14a95e
new setup config denying (default) or allowing user names identical to system users (ldap only)
2010-03-16 16:33:28 +00:00
Ralf Becker
6aa95316ba
using a static var as cache, which is a reference to the session:
...
a) automatic shared between all instances of accounts class
b) no need to have a shutdown function storing it to the session
--> cleaner code
2009-12-07 17:56:31 +00:00
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