Re: perm and user.auth_datasource

Jean-Christophe Michel <jc.michel-/aRvmaKoZxNWk0Htik3J/[email protected]> Wed, 02 Mar 2005 21:44:19 +0100
Newsgroups gmane.comp.lib.binarycloud.devel
Message-ID <[email protected]>
Manuel Holtgrewe wrote:
> Jean-Christophe Michel schrieb:
> 
>> Hi Manuel,
>>
>> I still have a question.
>> Is it necessary that Perm retrieves the user.auth_datasource from user 
>> table?
>> Because in simple access restriction case like mine, the 
>> auth_datasource is always the same
>> (there's only one) and it's the same as perm_ds.
>> So i thought of dropping this field from the user table.

> 
> Users are uniquely identified by their name and auth_datasource. In 
> order to simplify relations to them, a surrogate key "id" is added. The 
> auth_datasource is simply required to identify them - a user name is not 
> enough.
> 
> How does the existance of the field annoy you?

Since auth_datasource is a constant, and in one site I think i'll have 
hundreds of users, I thought of removing this useless field.
-- 
Jean-Christophe Michel
_______________________________________________
dev mailing list
dev-PnctHDZWAvB/Cz2I37pSEPZ4XP/[email protected]
http://lists.binarycloud.com/mailman/listinfo/dev