users@glassfish.java.net

Re: AppClient & JAAS -- LoginModule JDBC!?

From: <glassfish_at_javadesktop.org>
Date: Tue, 16 Oct 2007 05:51:41 PDT

hi
the functionality can be an absolut minimum - it would be enough to see a class Main.java which does something like

LoginContext lc = new LoginContext("sa_lotto_JDBC_realm", new DialogCallbackHandler());
lc.login();
...
lc.logout();

where "sa_lotto_JDBC_realm" could be named different - according to the rest of the configuration and the sense of this parameter.
This two lines above I've found infos about - with login() the loginprocess will be started and a DialogCallbackHandler shows a graphical dialog to collect username and password and after submit validates them against a database via a jdbcrealm.
My database:
USERS(BENUTZER, PASSWORT)
GROUPS(BENUTZER, GRUPPE)
where users.benutzer is primary key (username), groups.benutzer+groups.gruppe (group/rolename) is primary key and groups.benutzer is foreign-key on users.benutzer.

If that would work - without an error on building or running, then I think I can go on on my own... Important to know are all configuration in xml-descriptors, login.conf etc - if important for working of the login...

I hope I've put all infos in, which you need - if not please ask...

Thanks
[Message sent by forum member 'blackfox86' (blackfox86)]

http://forums.java.net/jive/thread.jspa?messageID=240398