On Fri, Aug 28, 2009 at 7:28 AM, simer anand<[email protected]> wrote: > I have this SampleAcn.java file which > instantiate the LoginContext(LC) and then while instantiating the LC a > parameter is passed called "sample" and that is the entry for jaas > configuration file and that contains path to my LoginModule implementing > class . > > Now when i execute this SampleAcn file that instantiate the LC > independently(without connected with repository) then its totally fine. And > ask for username and passwor.
Do you mean you have a test case that tests the login module without any usage of Jackrabbit, and that one works? How does it ask for username and password then? I guess you don't mean the webdav login here. > Now when i used to connect with repository then i used to make this changes > in security portion of the repository.xml . > <security><LoginModule=sample.SampleAcn> > </LoginModule></security> I guess this is just a typo in the mail... it should be <LoginModule class="sample.SampleAcn">. > and sample is kept in %CATALINA_HOME's/lib directory Did you put it into a JAR file? (Not sure if tomcat allows for loading class files from lib, but I would think so, especially as the last error you gave did not indicate that the class wasn't found). > 3. > http://jackrabbit.apache.org/jackrabbit-configuration.html#JackrabbitConfiguration-Securityconfiguration > The above link is not feeding up to the mark. What are you missing? I was pointing to that link merely for the links to the API/interface to be implemented. Regards, Alex -- Alexander Klimetschek [email protected]
