Re: Ldap authentication

2002-11-05 Thread Markdelanoy
Too be honest I started using cocoon three months ago and am following a very 
iterative process to eventually start talking to the db, e.g. do the look and feel, 
validation, security, etc. were done first.

I had initially tried to get it running but even the sample authentication seemed 
busted.  I'm on an old cocoon dev build from maybe a month a go so maybe it's fixed.

So I've stubbed out what would actually occur (e.g. the db IO) in the authentication 
resource.  So I'm not much help there other than I haven't seen your sitemap which has 
to some pass through variables e.g. password username and whatever else you want to 
pass through.  so send the sitemap.

I'll be hopefully talking to the db later this week or next week so stuff like this 
stubbed out code will go away...

later, md

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Ldap authentication

2002-11-05 Thread Markdelanoy
Look @ the cocoon documentation, e.g. Developer Documentation/ Developing 
Webapps/Authentication

e.g. cocoon's authentication framework.  and then for doing customized authentication 
(using LDAP, SQL, etc.) look at the authentication resource for where you put your 
code.

MD

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: Ldap authentication

2002-11-05 Thread Ray Martin
Dear Friend,

I read your post with enthusiasm - like a thirsty man receiving a bottle of
water!!!

What did it say?  "... look at the authenticate resource."; "...anything
else..."; "...you can..."; "...can be.."; "...you could..." - WOW!!!  The
water bottle was empty.

What do i know from the post - well, i know that you do great things -
marvelous.  What have i learned?  i am still the thirsty boy - still
struggling to understand.  i admire those of you that walk through the
heavens doing great things.  But, how does that help us mortals trying to
understand the principles involved?

parched

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:Markdelanoy@;aol.com]
> Sent: Monday, November 04, 2002 12:40 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: Ldap authentication
>
>
> If you want to use the authentication framework look at the
> authenticate resource.  You'll get passed in a password/username
> and really anything else you had in your login page.  Then within
> the authenticate resource you can call LDAP.  the resource can be
> a cocoon pipeline or some external resource.
>
> I use XSP in my authenticate resource calling to the database but
> you could call LDAP.
>
> MD
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>



-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

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




RE: Ldap authentication

2002-11-05 Thread Senhaji
Mark,

I try to configure out the authenticate resource using XSP calling to the
database (see the code bellow). The  within the select statement seems not work correctly. The
following exception is thrown :

C2.1 Exception :

java.lang.NullPointerException
at
org.apache.xerces.dom.ParentNode.internalInsertBefore(ParentNode.java:333)
at org.apache.xerces.dom.ParentNode.insertBefore(ParentNode.java:320)
at org.apache.xerces.dom.NodeImpl.appendChild(NodeImpl.java:267)
at
org.apache.cocoon.webapps.authentication.components.AuthenticationManager.au
thenticate(AuthenticationManager.java:460)
at
org.apache.cocoon.webapps.authentication.acting.LoginAction.act(LoginAction.
java:130)
at
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTyp
eNode.java:133)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:85)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:166)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:109)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:153)
...

XSP code :
==
http://apache.org/xsp";
xmlns:esql="http://apache.org/cocoon/SQL/v2";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";>

  

   


  portal
  

   
SELECT id,password,color from PORTALUSER_TABLE where id =
''
   

   
 
   







 
   

 


   

  



Any help. I'll appreciate if you can send me your XSP code that access to
the datastore

Thanks in advance

Senhaji

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:Markdelanoy@;aol.com]
Envoyé : lundi 4 novembre 2002 18:40
À : [EMAIL PROTECTED]; [EMAIL PROTECTED]
Objet : Re: Ldap authentication


If you want to use the authentication framework look at the authenticate
resource.  You'll get passed in a password/username and really anything else
you had in your login page.  Then within the authenticate resource you can
call LDAP.  the resource can be a cocoon pipeline or some external resource.

I use XSP in my authenticate resource calling to the database but you could
call LDAP.

MD


-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

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


-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

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




Re: Ldap authentication

2002-11-04 Thread Markdelanoy
If you want to use the authentication framework look at the authenticate resource.  
You'll get passed in a password/username and really anything else you had in your 
login page.  Then within the authenticate resource you can call LDAP.  the resource 
can be a cocoon pipeline or some external resource.

I use XSP in my authenticate resource calling to the database but you could call LDAP.

MD


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Ldap authentication

2002-11-04 Thread Markdelanoy
If you want to use the authentication framework look at the authenticate resource.  
You'll get passed in a password/username and really anything else you had in your 
login page.  Then within the authenticate resource you can call LDAP.  the resource 
can be a cocoon pipeline or some external resource.

I use XSP in my authenticate resource calling to the database but you could call LDAP.

MD


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Ldap authentication

2002-11-04 Thread Olivier GUCKERT
Hello all

Do someone know how to make an authentication with LdapTransformer.

The client enter DN and passwd : how can i do the LDAP authentication
with these informations ?

Thanks

-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

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