Hoi Rob,

De eerste optie had ik ook wel bedacht, maar is inderdaad erg lelijk. Ik
denk dat het daar wel op uitdraait... Ik ben bezig met een offerte voor de
Erasmus Universiteit waar ze MMBase willen gebruiken en willen kunnen zien
wie een publicatie heeft gemaakt. Daarvoor moet ik de gebruiker wel kunnen
achterhalen. 
In ieder geval bedankt voor de suggestie!

groeten,

Rudie.

-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Verzonden: woensdag 17 juli 2002 12:38
Aan: [EMAIL PROTECTED]
Onderwerp: Re: Security question related to a user identification and an
Oracle question


> I'm using the context security of mmbase, which works fine. I would
> like to know if it's possible to deduce which logged in user created
> which node. As far as I can see only the security context is stored in
> the database in the owner field, but not the username.
> Any suggestions?

Depending on your specific needs:

1) The obvious solution: Create a context for every single user, and
specify this as the context for objects created by the user.The disadvantage
of this approach is off course that you may need to
create a lot of contexts is you have many users.
2) If you don't need the information to be stored inside the system, you
can have the information written to a logfile. Every creation of a node is
logged, including information about the user. You just need the right
logging configuration to have this written to a file.I don't know which
logger category is used for this, but you can easily
find out by setting the logging priority to "debug" for all categories and
inspect the results.
Rob van Maris
Developer

Finalist IT Group
Java Specialists
-------------------------------------------------------------
Amsterdam, The Netherlands
Office: +31 20 5962321 (Direct)
Mobile: +31 651444006
Fax: +31 20 5962331
-------------------------------------------------------------




Reply via email to