On Saturday 25 February 2012 11:31:12 Daniel Pocock wrote: > On 24/02/12 23:34, Paul Boddie wrote: > > On Friday 24 February 2012 21:22:37 Daniel Pocock wrote: > >> Could ACLs and everything else in Moin use the email address in place of > >> the name value? Or could the email address be safely used in the name > >> field? > > > > On one Moin deployment, I use each user's e-mail address as their > > username. If this doesn't work with ACLs for some reason, I'd be > > interested in making a patch that makes it work. > > Did you have to make any hacks or patches to support that?
I haven't used ACLs on that deployment until now, but setting an ACL with an e-mail address as username doesn't cause an error, at least. > The email address shows up on screen, e.g. where it shows the user who > last changed a particular page? Yes. > And the email address is valid in the name of the user's own page, e.g.: > > http://moin-wiki.example.org/wiki/u...@example.org > > or is anything likely to choke on the @ symbol? I don't see why it would on a page name, and it seems to work - I can create a page and access it - but for things like ACLs I suppose it would depend on the parser, which also seems to work. [...] > So maybe the solution for my own Moin deployment would involve: > - user logs in with email address > - user chooses a display name on the first login or it looks up the name > on subsequent logins (the system would not be able to translate > email->display name with a regex) > - the display name appears on any pages they edit, etc I notice that the alias name (see the user settings/preferences) doesn't seem to appear in place of the username generally when testing under MoinMoin 1.8.8 and 1.9.3. You can get the username to be replaced by an alias under certain circumstances, but not on pages like RecentChanges, so it is possible that the mapping doesn't occur generally. (The code would need to use request.user.aliasname instead of request.user.name throughout, at least where it doesn't affect the functionality in some way.) That said, I know that an explicit mapping exists for OpenID-authenticated users: you don't see their login URLs all over the place because they choose a username when visiting for the first time. Maybe a solution might involve a similar identity mapping exercise using REMOTE_USER as the starting point, but it would arguably be a lot cleaner to make aliases ubiquitous in Moin where user details are displayed instead. Paul ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Moin-user mailing list Moin-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/moin-user