Hello
everyone,
I'm have some
problems with the database server login module with jboss
2.2.1
i'm coding some
classes to administrates users and roles "live", some simple operations like add
a principal id, add a role, remove a principal id, etc..
it seems to behave
like jboss doesn't care about the modifications i do in the table until i
restart jboss (like we should expect from the simple login module). i coded the
examples from the html documentation (the one with the echo and java roles)
i do these
steps:
i run it with
"scott" and "echo".
everything works
fine (i see the [JAASSecurity] user 'scott' authenticated line in my
log)
i delete his row
from the database, i run it again with "scott" and "echo" and it still works
fine! and i don't see the JAASSecurity line anymore..
but if i stop jboss
and restart it, then it fails like expected since the "scott" row is
deleted..
i tried to find some
javadoc about the LoginContext class but i haven't found anything, so i used the
reflection and i discover that it has a logout method, i added that call to the
sample but it doesn't change anything..
restarting jboss
everytime i add a user is not a solution, i have to code a web page where users
can create an account themselves..
any
hint?
thanks
(and congratulations
to every one working on jboss, it's a wonderful product, especially compared to
that websphere crap i'm forced to use at job)
�ric
sp�rano
mod�sys
informatique
montr�al
