Commit Graph

86 Commits

Author SHA1 Message Date
Ralf Becker
6e6835ca8f disable "account_lid" input, if backend (eg. AD) does not allow changing it 2013-07-13 08:34:04 +00:00
Ralf Becker
025c6a4c22 need to report expired accounts as NOT active and add ability to copy shadowExpire attribute from LDAP to AD (not done by samba-tool classicupgrade!) 2013-06-20 09:54:08 +00:00
Ralf Becker
b9102b010c * Sambaadmin: create new users/groups in LDAP with uidNumber/gidNumber matching relative id (last part of SID) to ease migration to AD or Samba4 2013-05-25 11:07:38 +00:00
Ralf Becker
8c6fd8d936 changes to create users and set passwords on win2008r2 2013-05-24 17:08:15 +00:00
Klaus Leithoff
a7944a3b76 fix problem regarding the ability to save a groups emailaddress 2013-05-23 13:48:51 +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
2841317b08 * all apps: exclude expired or deactivated accounts from all lists and selections (beside admin app to be able to activate them again) 2013-01-25 13:21:31 +00:00
Ralf Becker
12fa75f978 fix typo in comment 2012-11-19 08:24:47 +00:00
Nathan Gray
a86a3d72c6 Fix fatal error deleting user (LDAP) 2012-09-21 14:36:02 +00:00
Ralf Becker
1d743830c9 need to allow account_lid string as parameter for accounts::id2name(), it is used in many places 2012-08-13 14:26:00 +00:00
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