Re[2]: JCA Connector/authentication

2005-01-27 Thread Andrew Tibets
Hello!

Thank you for reply. 
I understood where I was wrong. I configured 
org.apache.slide.jaas.spi.SlideLoginModule
for whole my .ear, and Slide Login module was used for authentication access 
enterprise bean.
Then I configured oracle.security.jazn.realm.RealmLoginModule for my .ear,
and authentication went normally, bean used connector to slide, and then slide 
created file,
all worked correctly.
But with this configuration I lost authentication through browser, e.g.
I need to configure both oracle.security.jazn.realm.RealmLoginModule for access 
bean,
and org.apache.slide.jaas.spi.SlideLoginModule for access Slide.

This is oc4j configuration issue. 

Thank.

-- 
Best regards,
 Andrewmailto:[EMAIL PROTECTED]



RR> I use a custom JAAS module for jboss, because the slide jaas module stores a
RR> SlidePrincipal and SlideGroups on the JAAS subject.

RR> In order for jboss to authenticate a webapp or ejb with a user coming from
RR> JAAS, the JAAS module must use
RR> org.jboss.security.SimplePrincipal and 
RR> org.jboss.security.SimpleGroup.

RR> This is just a hunch, but OC4J might also require an oracle specific
RR> princial.  A quick search gave me these two classes.

RR> oracle.j2ee.connector.InitiatingPrincipal
RR> oracle.j2ee.connector.InitiatingGroup

RR> hope this helps.

RR> -Ryan Rhodes


>>From: Andrew Tibets <[EMAIL PROTECTED]>
>>Reply-To: Andrew Tibets <[EMAIL PROTECTED]>
>>To: Slide Users Mailing List 
>>Subject: JCA Connector/authentication
>>Date: Mon, 24 Jan 2005 12:31:12 +0200
>>
>>Hello,
>>
>>I use Slide with jaas on OC4J. I packaged slide.war with ejb module to ear
>>file.
>>When I access Slide through browser the login window appears,
>>I enter username: root password: root, Slide authentication goes as "root".
>>But when I access through WebDAV JCA Connector or DAVExplorer
>>Slide authentication goes as "unauthenticated" and I cannot access 
>>/slide/files.
>>
>>ejb-jar.xml:
>> 
>> jca/WebDAV-Connector
>> 
>>org.apache.webdav.connector.WebDAVConnectionFactory
>> Application
>> 
>>ejb class:
>> url = (String) findEnvEntryValue(SERVER_URI);
>> userName = (String) findEnvEntryValue(SERVER_USER_NAME);
>> password = (String) findEnvEntryValue(SERVER_PASSWORD);
>> timeout = (Integer)
>> findEnvEntryValue(SERVER_TRANSACTION_TIMEOUT);
>>
>> WebDAVConnectionSpec spec = new WebDAVConnectionSpec(url, 
>>userName, password, timeout.intValue());
>> return (WebDAVConnection) factory.getConnection(spec);
>>
>>url = http://pc268/slide/files
>>username = root
>>password = root
>>timeout = 50
>>
>>log: through browser
>>05/01/24 11:09:28 JAAS-OC4J: Membership check for group: user failed for
>>user: jazn.com/anonymous
>>05/01/24 11:09:28 JAAS-OC4J: Membership check for group: root failed for
>>user: jazn.com/anonymous
>>05/01/24 11:09:28 JAAS-OC4J: Membership check for group: guest failed for
>>user: jazn.com/anonymous
>>05/01/24 11:09:33 AJPRequestHandler-ApplicationServerThread-5, 24-Jan-2005
>>11:09:33, root, GET, 200 "OK", 31 ms, /
>>
>>
>>log: through DAVExplorer
>>05/01/24 11:10:52 AJPRequestHandler-ApplicationServerThread-5, 24-Jan-2005
>> 11:10:52, unauthenticated, OPTIONS, 200 "OK", 16 ms, /
>>05/01/24 11:10:52 AJPRequestHandler-ApplicationServerThread-5, 24-Jan-2005
>> 11:10:52, unauthenticated, PROPFIND, 207 "Multi-Status", 109 ms, /
>>
>>
>>log: through  WebDAV JCA Connector
>>05/01/24 11:12:14 24 Jan 2005 11:12:14 - org.apache.slide.common.Domain
>> - ERROR - [SlideLoginModule] - Failure during login()
>> - Access denied on /users by user unauthenticated for action
>>/actions/read
>>05/01/24 11:12:14 24 Jan 2005 11:12:14 - org.apache.slide.common.Domain
>> - ERROR - org.apache.slide.security.AccessDeniedException:
>> Access denied on /users by user unauthenticated for action 
>>/actions/read
>>05/01/24 11:12:14 org.apache.slide.security.AccessDeniedException:
>> Access denied on /users by user unauthenticated for action 
>>/actions/read
>>05/01/24 11:12:14   at 
>>org.apache.slide.security.SecurityImpl.checkCredentials(SecurityImpl.java:409)
>>05/01/24 11:12:14   at 
>>org.apache.slide.structure.StructureImpl.retrieve(StructureImpl.java:179)
>>05/01/24 11:12:14   at 
>>org.apache.slide.content.ContentImpl.retri

RE: JCA Connector/authentication

2005-01-25 Thread Ryan Rhodes
I use a custom JAAS module for jboss, because the slide jaas module stores a 
SlidePrincipal and SlideGroups on the JAAS subject.

In order for jboss to authenticate a webapp or ejb with a user coming from 
JAAS, the JAAS module must use org.jboss.security.SimplePrincipal and 
org.jboss.security.SimpleGroup.

This is just a hunch, but OC4J might also require an oracle specific 
princial.  A quick search gave me these two classes.

oracle.j2ee.connector.InitiatingPrincipal
oracle.j2ee.connector.InitiatingGroup
hope this helps.
-Ryan Rhodes

From: Andrew Tibets <[EMAIL PROTECTED]>
Reply-To: Andrew Tibets <[EMAIL PROTECTED]>
To: Slide Users Mailing List 
Subject: JCA Connector/authentication
Date: Mon, 24 Jan 2005 12:31:12 +0200
Hello,
I use Slide with jaas on OC4J. I packaged slide.war with ejb module to ear 
file.
When I access Slide through browser the login window appears,
I enter username: root password: root, Slide authentication goes as "root".
But when I access through WebDAV JCA Connector or DAVExplorer
Slide authentication goes as "unauthenticated" and I cannot access 
/slide/files.

ejb-jar.xml:

jca/WebDAV-Connector

org.apache.webdav.connector.WebDAVConnectionFactory
Application

ejb class:
url = (String) findEnvEntryValue(SERVER_URI);
userName = (String) findEnvEntryValue(SERVER_USER_NAME);
password = (String) findEnvEntryValue(SERVER_PASSWORD);
timeout = (Integer) findEnvEntryValue(SERVER_TRANSACTION_TIMEOUT);

WebDAVConnectionSpec spec = new WebDAVConnectionSpec(url, 
userName, password, timeout.intValue());
return (WebDAVConnection) factory.getConnection(spec);

url = http://pc268/slide/files
username = root
password = root
timeout = 50
log: through browser
05/01/24 11:09:28 JAAS-OC4J: Membership check for group: user failed for 
user: jazn.com/anonymous
05/01/24 11:09:28 JAAS-OC4J: Membership check for group: root failed for 
user: jazn.com/anonymous
05/01/24 11:09:28 JAAS-OC4J: Membership check for group: guest failed for 
user: jazn.com/anonymous
05/01/24 11:09:33 AJPRequestHandler-ApplicationServerThread-5, 24-Jan-2005 
11:09:33, root, GET, 200 "OK", 31 ms, /

log: through DAVExplorer
05/01/24 11:10:52 AJPRequestHandler-ApplicationServerThread-5, 24-Jan-2005
11:10:52, unauthenticated, OPTIONS, 200 "OK", 16 ms, /
05/01/24 11:10:52 AJPRequestHandler-ApplicationServerThread-5, 24-Jan-2005
11:10:52, unauthenticated, PROPFIND, 207 "Multi-Status", 109 ms, /
log: through  WebDAV JCA Connector
05/01/24 11:12:14 24 Jan 2005 11:12:14 - org.apache.slide.common.Domain
- ERROR - [SlideLoginModule] - Failure during login()
- Access denied on /users by user unauthenticated for action 
/actions/read
05/01/24 11:12:14 24 Jan 2005 11:12:14 - org.apache.slide.common.Domain
- ERROR - org.apache.slide.security.AccessDeniedException:
Access denied on /users by user unauthenticated for action 
/actions/read
05/01/24 11:12:14 org.apache.slide.security.AccessDeniedException:
Access denied on /users by user unauthenticated for action 
/actions/read
05/01/24 11:12:14   at 
org.apache.slide.security.SecurityImpl.checkCredentials(SecurityImpl.java:409)
05/01/24 11:12:14   at 
org.apache.slide.structure.StructureImpl.retrieve(StructureImpl.java:179)
05/01/24 11:12:14   at 
org.apache.slide.content.ContentImpl.retrieve(ContentImpl.java:155)
...
05/01/24 11:12:14 Authentication Failed
05/01/24 11:12:14 Authentication: FAILED.
05/01/24 11:12:14 JAAS-OC4J: Authentication failure for user:


Why access through DAVExplorer/Connector is authenticated as 
"unauthenticated"?

   Thanks.
--
Best regards,
 Andrew  mailto:[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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


Re: JCA Connector/authentication

2005-01-24 Thread Oliver Zeigermann
No real idea. Have you tried it with the Slide command line client?
Does it work?

Oliver


On Mon, 24 Jan 2005 12:31:12 +0200, Andrew Tibets
<[EMAIL PROTECTED]> wrote:
> Hello,
> 
> I use Slide with jaas on OC4J. I packaged slide.war with ejb module to ear 
> file.
> When I access Slide through browser the login window appears,
> I enter username: root password: root, Slide authentication goes as "root".
> But when I access through WebDAV JCA Connector or DAVExplorer
> Slide authentication goes as "unauthenticated" and I cannot access 
> /slide/files.
> 
> ejb-jar.xml:
> 
> jca/WebDAV-Connector
> 
> org.apache.webdav.connector.WebDAVConnectionFactory
> Application
> 
> ejb class:
> url = (String) findEnvEntryValue(SERVER_URI);
> userName = (String) findEnvEntryValue(SERVER_USER_NAME);
> password = (String) findEnvEntryValue(SERVER_PASSWORD);
> timeout = (Integer) findEnvEntryValue(SERVER_TRANSACTION_TIMEOUT);
> 
> WebDAVConnectionSpec spec = new WebDAVConnectionSpec(url, userName, 
> password, timeout.intValue());
> return (WebDAVConnection) factory.getConnection(spec);
> 
> url = http://pc268/slide/files
> username = root
> password = root
> timeout = 50
> 
> log: through browser
> 05/01/24 11:09:28 JAAS-OC4J: Membership check for group: user failed for 
> user: jazn.com/anonymous
> 05/01/24 11:09:28 JAAS-OC4J: Membership check for group: root failed for 
> user: jazn.com/anonymous
> 05/01/24 11:09:28 JAAS-OC4J: Membership check for group: guest failed for 
> user: jazn.com/anonymous
> 05/01/24 11:09:33 AJPRequestHandler-ApplicationServerThread-5, 24-Jan-2005 
> 11:09:33, root, GET, 200 "OK", 31 ms, /
> 
> log: through DAVExplorer
> 05/01/24 11:10:52 AJPRequestHandler-ApplicationServerThread-5, 24-Jan-2005
> 11:10:52, unauthenticated, OPTIONS, 200 "OK", 16 ms, /
> 05/01/24 11:10:52 AJPRequestHandler-ApplicationServerThread-5, 24-Jan-2005
> 11:10:52, unauthenticated, PROPFIND, 207 "Multi-Status", 109 ms, /
> 
> log: through  WebDAV JCA Connector
> 05/01/24 11:12:14 24 Jan 2005 11:12:14 - org.apache.slide.common.Domain
> - ERROR - [SlideLoginModule] - Failure during login()
> - Access denied on /users by user unauthenticated for action 
> /actions/read
> 05/01/24 11:12:14 24 Jan 2005 11:12:14 - org.apache.slide.common.Domain
> - ERROR - org.apache.slide.security.AccessDeniedException:
> Access denied on /users by user unauthenticated for action 
> /actions/read
> 05/01/24 11:12:14 org.apache.slide.security.AccessDeniedException:
> Access denied on /users by user unauthenticated for action 
> /actions/read
> 05/01/24 11:12:14   at 
> org.apache.slide.security.SecurityImpl.checkCredentials(SecurityImpl.java:409)
> 05/01/24 11:12:14   at 
> org.apache.slide.structure.StructureImpl.retrieve(StructureImpl.java:179)
> 05/01/24 11:12:14   at 
> org.apache.slide.content.ContentImpl.retrieve(ContentImpl.java:155)
> ...
> 05/01/24 11:12:14 Authentication Failed
> 05/01/24 11:12:14 Authentication: FAILED.
> 05/01/24 11:12:14 JAAS-OC4J: Authentication failure for user:
> 
> Why access through DAVExplorer/Connector is authenticated as 
> "unauthenticated"?
> 
>Thanks.
> --
> Best regards,
>  Andrew  mailto:[EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



JCA Connector/authentication

2005-01-24 Thread Andrew Tibets
Hello,

I use Slide with jaas on OC4J. I packaged slide.war with ejb module to ear file.
When I access Slide through browser the login window appears,
I enter username: root password: root, Slide authentication goes as "root".
But when I access through WebDAV JCA Connector or DAVExplorer
Slide authentication goes as "unauthenticated" and I cannot access /slide/files.

ejb-jar.xml:

jca/WebDAV-Connector

org.apache.webdav.connector.WebDAVConnectionFactory
Application

ejb class:
url = (String) findEnvEntryValue(SERVER_URI);
userName = (String) findEnvEntryValue(SERVER_USER_NAME);
password = (String) findEnvEntryValue(SERVER_PASSWORD);
timeout = (Integer) findEnvEntryValue(SERVER_TRANSACTION_TIMEOUT);

WebDAVConnectionSpec spec = new WebDAVConnectionSpec(url, userName, 
password, timeout.intValue());
return (WebDAVConnection) factory.getConnection(spec);

url = http://pc268/slide/files
username = root
password = root
timeout = 50

log: through browser
05/01/24 11:09:28 JAAS-OC4J: Membership check for group: user failed for user: 
jazn.com/anonymous
05/01/24 11:09:28 JAAS-OC4J: Membership check for group: root failed for user: 
jazn.com/anonymous
05/01/24 11:09:28 JAAS-OC4J: Membership check for group: guest failed for user: 
jazn.com/anonymous
05/01/24 11:09:33 AJPRequestHandler-ApplicationServerThread-5, 24-Jan-2005 
11:09:33, root, GET, 200 "OK", 31 ms, /


log: through DAVExplorer
05/01/24 11:10:52 AJPRequestHandler-ApplicationServerThread-5, 24-Jan-2005 
11:10:52, unauthenticated, OPTIONS, 200 "OK", 16 ms, /
05/01/24 11:10:52 AJPRequestHandler-ApplicationServerThread-5, 24-Jan-2005 
11:10:52, unauthenticated, PROPFIND, 207 "Multi-Status", 109 ms, /


log: through  WebDAV JCA Connector
05/01/24 11:12:14 24 Jan 2005 11:12:14 - org.apache.slide.common.Domain 
- ERROR - [SlideLoginModule] - Failure during login() 
- Access denied on /users by user unauthenticated for action 
/actions/read
05/01/24 11:12:14 24 Jan 2005 11:12:14 - org.apache.slide.common.Domain 
- ERROR - org.apache.slide.security.AccessDeniedException: 
Access denied on /users by user unauthenticated for action /actions/read
05/01/24 11:12:14 org.apache.slide.security.AccessDeniedException: 
Access denied on /users by user unauthenticated for action /actions/read
05/01/24 11:12:14   at 
org.apache.slide.security.SecurityImpl.checkCredentials(SecurityImpl.java:409)
05/01/24 11:12:14   at 
org.apache.slide.structure.StructureImpl.retrieve(StructureImpl.java:179)
05/01/24 11:12:14   at 
org.apache.slide.content.ContentImpl.retrieve(ContentImpl.java:155)
...
05/01/24 11:12:14 Authentication Failed
05/01/24 11:12:14 Authentication: FAILED.
05/01/24 11:12:14 JAAS-OC4J: Authentication failure for user: 



Why access through DAVExplorer/Connector is authenticated as "unauthenticated"?

   Thanks.
-- 
Best regards,
 Andrew  mailto:[EMAIL PROTECTED]


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