[dokuwiki] Re: User Management
- From: Andreas Gohr <andi@xxxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Wed, 24 Aug 2005 22:21:22 +0200
On Wed, 24 Aug 2005 21:36:10 +0200
Christian Marg <christian.marg@xxxxxxxxxxxxxxx> wrote:
> Hello...
>
> I'm trying to implement a User management for Bug#244 (and for my own
> use).
Great :-)
> At first I'll use "auth_getuserinfo($user)" to get users information
> and show only one to edit, but for managing all users I'd need a
> "auth_get_all_userinfo"...
Hmm yes but I think an optional filter parameter would make sense, eg.
auth_get_users($filter='')
If filter would be set only users starting with the given string would be
returned. This could be used to paginate the list of users (eg having A,B,C...Z
tabs or simply a user search (like in PHPBB)
> Or should I just implement it like "Please
> enter a username to edit"?
See above I guess some search is the way to go... So make that "enter a partial
username" then list all matching usernames - this should scale best for big
user lists
> PS: I'm doing this by hacking the source. If thats not advisable,
> because maybe it should be implemented as a plugin, please tell me
> soon ;)
No I think this should go into the core source - However I'd love to see the
whole auth system redone using OO programming. I'm thinking of a basic auth
system using text files (like current auth plain) and having other auth classes
(ldap, mysql, ...) inheriting from it. This should it make possible to eg.
override just parts of the system (eg to auth against a mailserver) but keep
other parts in plaintext (eg. userinfos). I think there is an apropriate
feature request in the bugtracker as well...
Andi
- References:
- [dokuwiki] User Management
- From: Christian Marg
Other related posts:
- » [dokuwiki] User Management
- » [dokuwiki] Re: User Management
- [dokuwiki] User Management
- From: Christian Marg