I'm new to slide but have been evaluating it for use on an internal project.
I'm using weblogic 8.1 as the servlet container and have successfully set up
slide 2.0rc1.

Looking through the mailing list archive it looks like someone has already
had the same problem i'm currently facing:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg05472.html

I would like to be able to authenticate users using weblogic and have them
setup in slide automatically. In my web.xml i have added the following
security-role-refs:

    <servlet>
        <servlet-name>webdav</servlet-name> 
        <display-name>Slide DAV Server</display-name>
        <servlet-class>org.apache.slide.webdav.WebdavServlet</servlet-class>
        ...
        <security-role-ref>
            <role-name>root</role-name>
            <role-link>GFIConfig</role-link>
        </security-role-ref>
        <security-role-ref>
            <role-name>user</role-name>
            <role-link>GFIConfig</role-link>
        </security-role-ref>
        <security-role-ref>
            <role-name>guest</role-name>
            <role-link>GFIConfig</role-link>
        </security-role-ref>
    </servlet>

I'm assuming this should correctly map roles for users to the GFIConfig
weblogic role?

I have added:

            <auto-create-users>true</auto-create-users>
            <auto-create-users-role>true</auto-create-users-role>

to the Domain.xml.

If i comment out the user in the users in the user object node i get the
same exception described in the previous post when using the web front end:

21 Apr 2004 16:28:42 - WARNING - WARNING: No active transaction
21 Apr 2004 16:28:42 -
org.apache.slide.store.txfile.AbstractTxFileStoreService - WARNING - Thread
Thread[ExecuteThread: '14' for queue: 'weblogic.kernel.Default',5,Thread
Group for Queue: 'weblogic.kernel.Default'] marked transaction branch null
for rollback. Cause: Not inside tx
ExecuteThread: '14' for queue: 'weblogic.kernel.Default', 21-Apr-2004
16:28:42, jm16685, GET, 500 "Internal Server Error", 30 ms, /

The suggestion from the previous post was to use curl to perform a put that
should create the user in a transaction. This appears to get rid of the
previous exception but I'm guessing the user does not get added to any roles
so slide is still forbidden:

ExecuteThread: '14' for queue: 'weblogic.kernel.Default', 22-Apr-2004
15:41:23, jm16685, GET, 403 "Forbidden", 26 ms, /

In conclusion:

Am I doing something wrong?
Do the auto-create-users and auto-create-users-role features work?
If not is there any timeline for them working in a future release?
If not are there any known issues with writing a new
org.apache.slide.security.Security class that uses the servlet container for
authentication?

Thanks,

Jamie.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to