The preferred way of changing the password is to use the RoleManager.
Example (change bob's password to cheese):
-----
RoleManager roleManager =
(RoleManager)context.lookup("java:comp/RoleManager");
User user = (User)roleManager.getPrincipal("bob");
user.setPassword("cheese");
roleManager.store();
-----
See http://www.orionserver.com/docs/api/ for docs on RoleManager. Briefly,
it's job is to provide an interface to the current UserManager for the
developer to work with.
-Joe Walnes
At 10:47 27/10/2000, you wrote:
>Hello,
>
>I use the DataSourceUserManager to check usernames and passwords on my
>site. I have a jsp page on my site that allows the users to change their
>password in the database. The problem is this: it seems that Orion
>caches the table, so when a user changes his password the old one stays
>active until I restart the orion server.
>
>Is there a way to do one of the following:
>- disable the caching
>- set an expiration date on the cache
>- make the DataSourceUserManager do an extra lookup if the given
>password seems to be wrong.
>
>Thanks
>
>--
>Jurgen Schepers
>Bricsnet
>Koning Albertlaan 165
>B-9000 Gent