[sr-dev] domain attributes

Juha Heinanen jh at tutpro.com
Thu Jul 2 13:33:24 CEST 2009


i'm thinking of extending domain module to support domain attributes.
the idea is that domain_reload would also load domain's attributes to
memory, where they can be accessed fast without db operations.  when
is_domain_local(domain) is called, attributes of the domain would get
automatically loaded into avps.

if people consider this worth implementing, the next question is, where
in the db domain attributes would be stored.  it might be possible to
use avpops usr_preferences table, but it contains fields uuid and
username that are not relevant for domain attributes.  perhaps a special
uuid and/or username value could be used to denote that the record
defines a domain attribute?  if not, a new table would need to be
created, which might be cleaner anyway.

any comments or better ideas on this?

-- juha



More information about the sr-dev mailing list