JAAS querying active directory?
Can JAAS query active directory on WindowsXP to get a mapping with the username and password of the Windows OS to the username and password of my web app, which could be used for single sign on?
You can query Active Directory as a (kind of) LDAP server with JNDI and the LDAP implementation.
Just to be sure it's clear, Active Directory doesn't run on WinXP...it runs on the server, as the backbone of the Windows domain. If you're working completely within the context of a Windows domain, it's actually much easier to just use AD as the primary user database, rather than trying to map credentials between AD and a private database. To auth against AD, just try to open an LDAP connection to your Domain Controller using whatever credentials the user put into your login form. The DC will only allow the connection if the credentials were valid.
Fog Creek Home