Commit Graph

226 Commits

Author SHA1 Message Date
Ralf Becker
5f41dd5512 fixed now working contact-data-edit of accounts via admin for accounts in ldap 2006-06-21 23:14:18 +00:00
Ralf Becker
93c8753b73 improved emulation of old contact class 2006-06-18 05:07:10 +00:00
Ralf Becker
346164483e using ldap::quote() to gard against LDAP query injection 2006-06-13 04:23:36 +00:00
Ralf Becker
287726dead bugfix: set_memberships removed the not longer set memberships from $this->account_id and not the given one (which caused the admin to loose the membership) 2006-06-11 14:27:14 +00:00
Ralf Becker
767c42b43f accounts_ldap::_get_nextid was not returning a negative number for groups, which lead to accounts_ldap::save to return a positive account_id for groups, which messed up some stuff in setup ... 2006-06-08 22:04:44 +00:00
Ralf Becker
076711adbf fallback for posixGroup no structural object was missing 2006-06-08 03:29:07 +00:00
Ralf Becker
a59c49c2e2 also fetch the password, eg. for migration 2006-06-07 23:21:30 +00:00
Ralf Becker
c6b0c63725 - correctly set and empty some additional attributes like first name and email
- validation group-members before setting them (false return from id2name, gives ldap-error otherwise)
2006-06-07 17:58:20 +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
b4f3452ffc Fixed problem that on newer SuSE (and maybe other distros too) none of our required objectclasses for groups are an structural object, which caused the adding of new groups to fail. Now I add the 'namedObject' objectclass, if the first adding fails. 2006-06-03 19:44:44 +00:00
Cornelius Weiß
8c0945b4d0 fix: count returns 1 if variable dosn't exists! 2006-05-16 09:22:29 +00:00
Lars Kneschke
cfc4ad5006 $accountID is a string not a int 2006-03-10 08:09:42 +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
Cornelius Weiß
b55f6deb14 fix: deleting of accounts resulted in deleting of group 2006-01-04 21:01:33 +00:00
Lars Kneschke
ca2e74f153 added objectclass for rfc2307bis.schema 2005-12-16 07:12:36 +00:00
Ralf Becker
36138f346e setting group-context from (user-)context, if not set 2005-12-14 23:31:51 +00:00
Ralf Becker
0cfdea3f97 fixed error in user-creation under ldap: account_id of group was send negative to the ldap-server 2005-11-27 22:33:08 +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
65c41b525e fixed bug report by Dros on the german list: using account in ldap, nextmatch (eg. in setting group ACL's) is not working 2005-11-04 06:57:22 +00:00
Ralf Becker
3960fcc0ae implemented the same default, as for the sql class: everything which is not 'accounts' or 'groups' gives a list of both 2005-11-02 20:40:44 +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
a9e8ee4e1c some fixes:
- using string 'not set' for a not set lastname, as LDAP allows no accounts without lastname.
- addaccount hook was not called if account was auto-created at login-time (as the apps array is not yet read). Atm. app-names with hooks need to be listed here. I just added felamimail, which need to create mailboxes for new users
2005-05-13 16:02:37 +00:00
Ralf Becker
a828ba73f3 added missing charset-translation of the cn (common name), thanks to Martin Dalum <martin-AT-cabo.dk> 2005-04-12 09:54:07 +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
ak703
0719a89986 fixed bug #1097058 ldap, adding user to groups changes phpgwaccounttype to u 2005-01-09 17:12:50 +00:00
mgalgoci
a089746e47 fix the fix 2004-08-31 15:18:25 +00:00
mgalgoci
606c1064be - re-write of the phpgwapi::accounts_ldap::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.
- remove some crap and make function readable
2004-08-30 15:16:40 +00:00
Ralf Becker
b3b3420674 allow sorting after multiple criteria as in sql 2004-08-28 14:44:05 +00:00
Ralf Becker
788440b69d fixed get_list, which was only returning groups if 'both' were requested, which caused eg. in calender only groups to be selectable 2004-07-25 15:51:54 +00:00
Ralf Becker
eba1ec911f fixed name2id for groups (was still the old variable-name) and limited id2name & name2id for groups on certain fields only 2004-07-12 21:25:51 +00:00
Ralf Becker
0a5573a0fe 1) using hint-values of auth class about name, group, email, primary-group in $GLOBALS['auto_create_acct'], as the sql-class already does
2) using default group as specified in Setup >> Configuration for the primary group too, if none is given, this should fix also bug [ 958418 ] Registration problem with LDAP accounts
2004-07-10 08:25:02 +00:00
Ralf Becker
13bcfd8318 fixed wrong ldap attribut-names 2004-07-04 18:32:29 +00:00
Ralf Becker
8bfb6cfb07 added email-address to the accounts-data (ldap untested so far!) 2004-07-04 17:27:42 +00:00
Carsten Wolff
892123655f fixed another typo 2004-06-30 20:19:28 +00:00
Ralf Becker
8ec4604d2a fixed not working group-update with caching enabled 2004-06-23 12:09:00 +00:00
Ralf Becker
89870fd195 fixed not working group-update with caching enabled 2004-06-23 11:37:07 +00:00
Carsten Wolff
6881070b41 fixed syntax error 2004-06-19 21:57:06 +00:00
Carsten Wolff
3c919bba50 make users mailaddress available for use in applications, if it is found in ldap 2004-06-18 09:29:11 +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
reinerj
48f840d7de move from old projct to new one 2004-05-05 12:06:13 +00:00
Miles Lott
39deb72a77 Similar to fix done for sql to fix acl access in some apps again 2004-02-07 21:25:05 +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
bgigon
a4b6f98f04 Modify Accounts Modify function (otherwise crash) 2004-01-27 13:33:38 +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
0039d2a51c Cleanup badfilter on empty values; cleanup formatting 2004-01-25 00:04:40 +00:00
Miles Lott
9cd1308d2f update authors ;) 2004-01-02 02:54:29 +00:00
Miles Lott
20b851da6f intval -> (int), replace gettype() and ereg functions where possible 2003-12-14 17:18:41 +00:00
Lars Kneschke
2eebcbee3a phpgroupware -> egroupware
Fix for BUG [ 844428 ] X-Mailer text should be changed
2003-11-18 21:42:16 +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
d73cfd3122 fixed get_account_name to convert the values 2003-10-10 12:45:07 +00:00
Ralf Becker
71c2acae50 fix for not set system_charset 2003-10-10 12:06:40 +00:00
Lars Kneschke
cb65e22c87 typo 2003-10-10 04:42:08 +00:00
Lars Kneschke
a7318559fe converted to convert for correct utf-8 support 2003-10-10 00:55:43 +00:00
Lars Kneschke
2a4b75c483 ldap fixes 2003-09-21 19:02:12 +00:00
Lars Kneschke
bfb56ec1de ldap fixes 2003-09-14 14:35:36 +00:00
Lars Kneschke
78c74e5726 ldap fixes again 2003-09-14 08:29:29 +00:00
Lars Kneschke
c579775999 again some ldap fixes
and

support for ldap version 3
2003-09-14 06:02:25 +00:00
Lars Kneschke
ac487777b7 added support for primary group 2003-09-13 17:14:30 +00:00
Lars Kneschke
e3dde66e08 change needed for integration of emailadmin
ldap bugfixing
2003-08-31 22:09:12 +00:00
Ralf Becker
b8557e49d9 make the phpgw Version-0_9_16-branch HEAD 2003-08-28 14:31:11 +00:00
ceb
6494d641da update 2003-05-21 23:02:25 +00:00
ceb
06a871dd7c update accounts_ldap 2002-12-18 00:20:46 +00:00
Zone
71ec2f0197 Updates needed for phpwebhosting -> filemanager name change 2002-09-21 05:15:32 +00:00
skeeter
720df8a650 Minor cleanups. 2002-09-17 02:33:03 +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
7bb5e67739 this should be a fix for the account_type setting in get_list, but it is hard to believe it was actually this broken 2002-05-05 02:51:26 +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
ceb
a1aa3788b9 added function to fetch some accountsdata 2002-03-14 02:26:21 +00:00
Miles Lott
ddfa5d9d4b use in_array() instead of class function; formatting 2002-03-08 04:08:12 +00:00
Miles Lott
7ccf86785b add lastpasswdchange as zero in create() 2002-02-27 03:48:52 +00:00
skeeter
d369ae674a Added the var to the class variables. 2002-02-15 18:55:11 +00:00
skeeter
1a1018cea4 Clears up a few warnings when logging warnings/errors to a log file. 2002-01-06 06:06:30 +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
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
skeeter
58a42faff7 Cleanups for a few warnings. 2001-12-29 02:37:22 +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
Miles Lott
b673d7c52c rename members() to member() to avoid potential php3 conflict with LDAP accounts and class var, $members 2001-10-22 13:05:07 +00:00
Lars Kneschke
3985fe231d modified the ldap class, to know the type of account(u or g) 2001-09-18 17:55:36 +00:00
Miles Lott
944e0e6047 Fix unsetting of status 2001-09-08 06:19:06 +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
dba3fc60f0 Changed around get_type() to grab the user account first, then the group accout. 2001-09-05 13:43:27 +00:00
skeeter
dcbcdd88ce Made a few changes to the accounts LDAP storage processing. 2001-09-04 03:12:23 +00:00
skeeter
81dfa789c0 Small changes. Added the caching back into id2name and did a little more checking for use of caching. 2001-09-03 09:47:47 +00:00
Miles Lott
e3c937326d Fix (?) gettype and name2id/id2name - group/user confusion still possible... 2001-09-03 03:21:50 +00:00
Miles Lott
35781b842a MAJOR: changing to new ldap accounts class, _old is the old file 2001-09-03 02:17:10 +00:00
skeeter
09f6cdab74 Changed get_list() to use query_limit() instead of limit(). 2001-09-02 07:19:46 +00:00
skeeter
d2a5441ed8 Now using GLOBALS. 2001-09-01 23:42:16 +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
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
zone
e6203dda83 Added file space option, file_space column to phpgw_accounts 2001-07-01 22:30:07 +00:00