james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Intelekia" <inte...@intelekia.com>
Subject RE: Linux account integration
Date Fri, 30 Apr 2004 08:05:26 GMT
Hi Serge,

The best option is JAAS (Java Authentication and Authorization Service),
introduced as an optional package in J2SE 1.3 and integrated into J2SE 1.4.
It implements a Java Pluggable Authentication Module (PAM) framework to
provide single authentication against Unix, Windows, Kerberos, etc.

Please check the enclosed very simplified demo code. 

>From the command line:

java -Djava.security.auth.login.config=./demoJAAS.config DemoJAAS

If you replace com.sun.security.auth.module.UnixLoginModule by
com.sun.security.auth.module.NTLoginModule in demoJAAS.config will allow you
tu run the sample on Windows platforms (2k, XP, etc...).

Normally there should be a -Djava.security.manager loaded as well to limit
the permissions of the application, but that would do for a demo.

I will be happy to work with you on implementing this extension to James;
let's work out the requirements.

Best regards,


-----Original Message-----
From: Serge Knystautas [mailto:sergek@lokitech.com] 
Sent: jueves, 29 de abril de 2004 16:52
To: server-dev@james.apache.org
Subject: Linux account integration

Does anyone know a decent way for a Java program to test a username and 
password against the local Linux accounts?

I'm thinking of creating another user implementation that extends the 
current file one, but when it does the authentication, it will check 
against the Linux account.

This is so I don't have to setup an LDAP server but otherwise can let 
people use their same passwords.  Also, it might be nice for ultimately 
splitting the authentication mechanism from the James mailbox/account 

Serge Knystautas
Lokitech >> software . strategy . design >> http://www.lokitech.com
p. 301.656.5501
e. sergek@lokitech.com

To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org

View raw message