Commit Graph

186 Commits

Author SHA1 Message Date
Ralf Becker
ad7972870c moved saving of account contact-data to accounts class 2006-07-08 00:20:27 +00:00
Ralf Becker
5d30855ed1 - fixed not working add of new accounts (due to addressbook acl, which allows not to add accounts via the addressbook)
- invalidate the cache of the accounts-class if contact-data of an account get changed
2006-06-21 23:13:37 +00:00
Ralf Becker
61b6d0b993 moved contact-data (firstname, lastname and email) from the account-table to the contact table:
- all (sql) accounts have now allways a contact associated with them (account_id is added as new column to the contacts table)
- contacts queries are simplefied a lot now, as no more join with the accouns-table, union and case when statesments are necessary
- lot of the special handling for accounts in the contacts class is no longer needed
- new contact-repository mode "sql-ldap" which additional writes all changes to the ldap repository, to allow to use it read-only from eg. thunderbird and still have the full sql speed and features within eGW (not yet fully working!)
==> requites update of API and addressbook to work (setup!)
2006-06-17 18:47:02 +00:00
Ralf Becker
5581a73df7 allways setting account_pwd and account_status (for groups too) as they are NOT NULL, thanks to olo <aleksander.adamowski-AT-gmail.com> 2006-06-08 21:18:46 +00:00
Ralf Becker
7c203162fa fix to allow migration of accounts from LDAP to SQL (account_id already set) 2006-06-08 00:25: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
c71c53851f fixed critical bug:
a too long account-lid caused the complete lost of run-rigths from all user and groups
2006-04-30 12:18:47 +00:00
Ralf Becker
c54ebc6323 accounts_sql::save_repository(): overwrite person_id only if set in data 2006-04-25 12:44:40 +00:00
Ralf Becker
e52c09e0a6 allow to search for fullname 2006-04-23 14:48:19 +00:00
Ralf Becker
dc48662fc8 fix for bug:
- [ 1442406 ] patch: Account hooks don't see installed applications
- [ 1232664 ] new ldap users not activating hook
2006-03-08 17:21:52 +00:00
Ralf Becker
68828494ab fix for negative group-ids, which are not allowed by all dbms in auto-columns:
- egw_accounts.account_id is now again positiv for groups too
- mapping to negative group-id is done in the accounts-class now
2005-12-14 23:35:09 +00:00
Ralf Becker
332b6fabd5 fix for mssql problem reported, without SET identity_update <table> ON, mssql refuses to change the identity column (create negative group id). I cant test it, as I have no MsSQL at the moment. 2005-12-01 21:01:06 +00:00
Ralf Becker
b68c7922c0 fixed prob reported on the lists: new created account are not working 2005-11-25 19:58:05 +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
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
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
Ralf Becker
ce279014bc merged Lars patch, which was only applied to 1.0 2004-09-22 13:46:24 +00:00
mgalgoci
a089746e47 fix the fix 2004-08-31 15:18:25 +00:00
mgalgoci
99ffa6ebc1 - re-write of the phpgwapi::accounts_sql::auto_add function
- set a default account email address as well as a user preference email
address in the users' preferences
- actually check if the account creation succeeds before we commit the transaction to the database.
- set default name to New User if we have no other data
- remove some crap and make function readable
2004-08-30 15:15:59 +00:00
Ralf Becker
be01760302 removed manual acl-settings for auto-created accounts, as suggested by Matthew Galgoci 2004-07-31 09:28:28 +00:00
Ralf Becker
ee82c376f6 using default group as specified in Setup >> Configuration for the primary group too, if none is given 2004-07-10 08:22:07 +00:00
Ralf Becker
0ce4cbad1a and the status 2004-07-08 17:30:37 +00:00
Ralf Becker
36eea9746e fixed unencrypted password on creation of new users 2004-07-08 17:25:53 +00:00
Ralf Becker
c0c8206f2a fixed bug in user-creation reported by Chris Kretas (was introduced in the last commit / after RC6) 2004-07-06 12:42:56 +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
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
Ralf Becker
eed94133c3 fixed and extended auto_create_accounts: the following information from ldap are now automaticaly stored in the sql-account:
- name & firstname
- primary group (if a group with that numerical id exists in eGW, its added as primary group to the account and acl)
- numerical account-id (if availible, no new one gets created, but the one from ldap is used)
- email (as preference for the email-app)
2004-05-22 11:00:18 +00:00
reinerj
48f840d7de move from old projct to new one 2004-05-05 12:06:13 +00:00
Ralf Becker
fe8be115fb as talked with lars ;-) 2004-04-04 23:01:58 +00:00
Lars Kneschke
9f8740113a fix get_account_name to make acls working correctly again 2004-02-07 20:52:42 +00:00
Ralf Becker
b58f7c344d moved the existing caching-code into the shared class and implemented caching for get_list 2004-02-05 21:20:41 +00:00
Miles Lott
d26eacbeea move check for auth object 2004-01-26 03:22:15 +00:00
Lars Kneschke
61c768f8d3 add a first and last name for auto created accounts too 2004-01-25 22:38:26 +00:00
Lars Kneschke
893c085f78 added addaccount-hook for auto created accounts 2004-01-25 22:27:31 +00:00
Miles Lott
77fd8f4882 Move password functions to auth class; Add support for new encryption types in setup
and implement password checking and creation for these new types
2004-01-18 21:12:53 +00:00
Miles Lott
20b851da6f intval -> (int), replace gettype() and ereg functions where possible 2003-12-14 17:18:41 +00:00
Ralf Becker
df93243fbc fix for id not an integer 2003-11-14 21:09:37 +00:00
Ralf Becker
692767bcf0 fixed problem with not set system-charset and non-ascii chars in user-name with accounts in ldap:
Username did not get translated, as at the time when the accounts-class get instanciated the user preferences, which determine the language, which determine the charset (if no system-charset), are not loaded. I use iso-8859-1 as default then, which gives us the same behavior then before all the changes.
2003-10-15 12:24:38 +00:00
Ralf Becker
30a4f77153 fix for delete with empty account_id 2003-10-01 14:50:34 +00:00
Ralf Becker
36b40204e3 update to version 0.9.99.002:
- new columns for accounts-table: contact_id and primary group
- fixed error from 0.9.10 update with groups and permissions columns only half deleted
- update function for phpGW 0.9.14.508/9 and 0.9.15.013/4
2003-09-13 18:19:03 +00:00
Ralf Becker
b8557e49d9 make the phpgw Version-0_9_16-branch HEAD 2003-08-28 14:31:11 +00:00
ceb
64aa244e2e update 2003-06-24 11:54:22 +00:00
ceb
6494d641da update 2003-05-21 23:02:25 +00:00
ceb
a8b4146b4e added missing ')' to search string in list function 2002-10-11 00:35:11 +00:00
Zone
71ec2f0197 Updates needed for phpwebhosting -> filemanager name change 2002-09-21 05:15:32 +00:00
skeeter
40df324cf5 GNU Bug #800. 2002-09-02 02:32:10 +00:00
Miles Lott
cdc2926ff3 formatting 2002-05-26 21:16:25 +00:00
Miles Lott
08d18591cd cancel quotes in search string 2002-05-07 12:54:12 +00:00
skeeter
53344baf01 GNU Patch #246. 2002-04-21 17:42:40 +00:00
skeeter
27d6f340bf GNU Patch #127 - create_defaults being called twice. 2002-04-07 14:28:43 +00:00
skeeter
e54b0278c7 Applied GNU Patch #205. 2002-04-02 14:15:24 +00:00
ceb
5471e1fda9 added function to fetch some accountsdata 2002-03-14 01:42:15 +00:00
skeeter
d369ae674a Added the var to the class variables. 2002-02-15 18:55:11 +00:00
ceb
340bc3c184 added type to function read_repository 2002-01-31 02:44:52 +00:00
skeeter
38684d2cf6 Added the ability to change the account_lid in SQL. LDAP already had that ability. 2002-01-13 03:53:43 +00:00
Miles Lott
836099d5b4 Remove old accounts file, fix typo in last commit 2002-01-05 21:00:19 +00:00
Miles Lott
985fc8292c Move peer server config; add option to set default expiration for auto-created accounts 2002-01-05 20:40:44 +00:00
Miles Lott
3279692e7a Check that preferences is an object (for use from setup) 2002-01-03 22:02:13 +00:00
Miles Lott
530b0ee678 Fix a typo 2002-01-03 19:10:32 +00:00
Miles Lott
d61dadfa72 Add default prefs creation for a new user in create() - will need to do this either
here or in admin.
2002-01-03 18:02:10 +00:00
seek3r
25f80219c0 updated some inline comments for me to better test the inilinedocparser 2001-12-24 22:48:40 +00:00
jengo
2b1bf39cd3 Accounts that are created from auto_add() will now be able to change there passwords 2001-12-09 20:32:17 +00:00
bettina
b65f4bcb29 added to the call to limit_query because this worked ;) 2001-11-30 02:49:04 +00:00
bettina
0517dbdc98 removed from call to limit_query because this didnt work 2001-11-30 02:38:24 +00:00
skeeter
8d24e53c65 Fix for bug #482239. 2001-11-17 03:02:30 +00:00
skeeter
1e377b3007 Made the LDAP storage aware of the query for get_list. Also, in the sql, set the total to the total records meeting the condition in get_list(). 2001-11-16 04:11:38 +00:00
jengo
ae36eeb708 Added error checking for name2id() and id2name(), return False when the account_id or account_lid is missing 2001-10-06 03:37:58 +00:00
jengo
68ae85eb5f Default preferences are now being added into the db durring account creation 2001-10-05 03:15:45 +00:00
skeeter
c5a54adbaf Fix for the sql get_account_name(). 2001-09-19 23:08:44 +00:00
skeeter
a91131a7be Fix for an error on line 333. 2001-09-07 04:27:48 +00:00
Miles Lott
97d808fb74 Move ldap connect to shared class, cutting down somewhat on ldap connects
per page load - more to come
2001-09-06 00:17:23 +00:00
skeeter
56ef840422 Fix for grab_owner_name() in comon. now calls account storage specific functions. 2001-09-05 22:46:47 +00:00
skeeter
e5b4517469 More checking for caching. 2001-09-03 09:48:32 +00:00
Miles Lott
f637bdc11f Add denied groups and users 2001-09-03 02:05:03 +00:00
Miles Lott
45f2ca1616 Adjust auto_add() - sql now uses a default group config in setup, or does
not configure a group at all - old behavior was to add them to account_id 1.
Some more register_globals tweaks.
2001-08-31 22:50:30 +00:00
skeeter
bce5113662 Small cleanups of possible warning messages. 2001-08-24 01:53:52 +00:00
skeeter
050cd9acd2 Applied a patch provided by the mailing list. 2001-08-18 19:09:56 +00:00
skeeter
6da089837d Various optimizations to the API. This also does a little internal caching of some of the account data, but, only for a single page session. 2001-08-15 02:14:18 +00:00
skeeter
076bb37660 Simple caching of name2id and id2name values. 2001-08-11 14:45:56 +00:00
Miles Lott
1fe026c4c0 Rolling back file_space addition 2001-07-27 10:04:54 +00:00
jengo
3b28be028f Removed the array from limit_query() 2001-07-08 04:17:28 +00:00
seek3r
2d97b29cfa patched up php3 compatibility (again) 2001-07-06 06:46:10 +00:00
jengo
8b9ff102bc Moved to use the new limit_query() function 2001-07-02 19:49:50 +00:00
zone
e6203dda83 Added file space option, file_space column to phpgw_accounts 2001-07-01 22:30:07 +00:00
Miles Lott
829250b0c0 Just some formatting cleanup, but preping to mod ldap to be all ldap 2001-06-26 09:51:16 +00:00
jengo
38e1b201d7 Some changes needed for the reg app 2001-06-21 08:36:08 +00:00
Miles Lott
a6bbcbb5f9 Add expires field to auto_add (30 day default) - how else to handle this? 2001-06-04 20:29:37 +00:00
jengo
0e768f7268 Added some transactions 2001-06-04 01:17:40 +00:00
Miles Lott
8060a2efee change create to use account_XXX, made newgroup use newer create 2001-05-10 09:34:47 +00:00
Miles Lott
e54d4c4f1a Fix passwd field in create 2001-05-06 13:04:04 +00:00
jengo
b1f61c2fff create account now takes an array and made expiring accounts work 2001-05-06 11:20:53 +00:00
jengo
99ff1cb575 Added account expires feature 2001-05-02 09:06:14 +00:00
skeeter
278bd972c1 Delete now locks the accounts table. 2001-03-30 04:21:10 +00:00
Miles Lott
0b15657e4c Add account_id for future use 2001-03-29 04:20:12 +00:00
Miles Lott
c7b682d525 Add homedirectory and loginshell to ldap 2001-03-29 03:40:14 +00:00
Miles Lott
501f75b630 Add optional use of $offset to limit the list 2001-03-26 20:44:49 +00:00
skeeter
f22e071fbd minor touches for cosmetics 2001-03-24 02:33:44 +00:00
skeeter
c9af8bfe46 Created new delete() for sql. 2001-03-23 03:10:28 +00:00