This may not answer your question directly, but if you look at the 
FakeSessionManager.java code, you can interface with your database there. Look 
at the FakeSessionManager.getAuthenticationSession(String username,String 
password); return null if the username/password lookup fails so that 
JAASLoginModule.java (the calling code; i.e. JAASLoginModule.login()) will 
return false. 
 
 

        -----Original Message----- 
        From: Gabriel Bermudez [mailto:[EMAIL PROTECTED] 
        Sent: Mon 12/5/2005 10:50 AM 
        To: [email protected] 
        Cc: 
        Subject: Authentication with a DB
        
        

        Hi,
        
        Maybe someone can help me solving this problem.
        I've seen that Slide does its authentication through JAAS
        
        $CATALINA/conf/server.xml
        
                <Context path="/slide" debug="0" privileged="true" 
useNaming="true">
        
                  <Realm className="org.apache.catalina.realm.JAASRealm"
        
                    appName="slide_login"
        
                    userClassNames="org.apache.slide.jaas.spi.SlidePrincipal"
        
                    roleClassNames="org.apache.slide.jaas.spi.SlideRole"
        
                    name="Slide DAV Server"
        
                    useContextClassLoader="false" />
                </Context>
        
        There is anyway to configure the the SlidePrincipal, and SlideRole
        classes so they use a database to authenticate the users (and if there
        is can you give me an example)?
        How this can affect the authorization part?
        
        Regards
        
        ---------------------------------------------------------------------
        To unsubscribe, e-mail: [EMAIL PROTECTED]
        For additional commands, e-mail: [EMAIL PROTECTED]
        
        

Reply via email to