Le Vendredi 22 Novembre 2013 21:00 CET, Yuri D'Elia <wav...@thregr.org> a écrit:
> On 11/21/2013 12:16 PM, Daniel Berteaud wrote:
> > Not sure if everyone like this, but for my use, I find it useful. When
> > you use external auth, grant admin privileges regardless of what is in
> > the DB if the user login is 'admin'. This way, you don't have to
> > manually alter (or add in advance) the user. With external auth, it's
> > quite usual to have a super user called admin.
>
> The easiest way to do this is to create a default "admin" entry in the
> sqlite/mysql script, without password, as it will mark it as an admin by
> default.
You're right, in my case it would probably have been easier. I'll probably
inject a user with an SQL statement in my installation script and drop this
patch.
Thanks
>
> I always wondered if I should create a default user though.
> With the
> amount of setup that you need to do anyway, I'd rather not encounter the
> default "oracle" user madness I saw everywhere ;).
>
>
>
--
Daniel Berteaud
FIREWALL-SERVICES SARL.
Société de Services en Logiciels Libres
Technopôle Montesquieu
33650 MARTILLAC
Tel : 05 56 64 15 32
Fax : 05 56 64 15 32
Web : http://www.firewall-services.com