FW: LDAP Transformer with XSP page?

2003-07-02 Thread Maxime.Gheysen
The only thing that doesn't work are the 

If I replace a value with a variable like :
...

 String MyTest = "(cn=tfrgh*)";

...
MyTest  
...

I get a "java.lang.NullPointerException" error :

java.lang.NullPointerException
at
org.apache.cocoon.webapps.authentication.components.Authenticator.authen
ticate(Authenticator.java:288)
at
org.apache.cocoon.webapps.authentication.components.DefaultAuthenticatio
nManager.login(DefaultAuthenticationManager.java:218)
at
org.apache.cocoon.webapps.authentication.acting.LoginAction.act(LoginAct
ion.java:118)
at
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(Ac
tTypeNode.java:133)

-Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 02, 2003 7:23 AM
To: [EMAIL PROTECTED]
Subject: Re: LDAP Transformer with XSP page?


On Tue, 1 Jul 2003 16:20:59 +0200
<[EMAIL PROTECTED]> wrote:

> Is it possible to create the ldap.xml, with the ldap queries in a xsp
> page?
> 
Yes, for example:

http://apache.org/xsp"; 
xmlns:ldap="http://apache.org/cocoon/LDAP/1.0";>

  
  
  String cn = request.getParameter("cn");
  if(cn == null) cn = "*";
 
  
 
com.sun.jndi.ldap.LdapCtxFactory
  ldap://ldaphost
  389
  OBJECTS_SCOPE
  cn=Directory Manager
  password
  ou=people,o=company
  cn
  sn
  givenName
  initials
  mobile
  mail
  ou
  uid
  title
  true
 
(&(uid=cn)(mobile=*))
 
  




-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

-
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: LDAP Transformer with XSP page?

2003-07-01 Thread Yury Mikhienko
On Tue, 1 Jul 2003 16:20:59 +0200
<[EMAIL PROTECTED]> wrote:

> Is it possible to create the ldap.xml, with the ldap queries in a xsp
> page?
> 
Yes, for example:

http://apache.org/xsp"; 
xmlns:ldap="http://apache.org/cocoon/LDAP/1.0";>

  
  
  String cn = request.getParameter("cn");
  if(cn == null) cn = "*";
 
      
  com.sun.jndi.ldap.LdapCtxFactory
  ldap://ldaphost
  389
  OBJECTS_SCOPE
  cn=Directory Manager
  password
  ou=people,o=company
  cn
  sn
  givenName
  initials
  mobile
  mail
  ou
  uid
  title
  true
  (&(uid=cn)(mobile=*))
 
  




-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

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



Antw: RE: LDAP Transformer with XSP page?

2003-07-01 Thread Martin Geissler
Hello Maxime,

it is possible.
the xsp page has to generate the correct xml syntax for the 
LDAP transformer. (example at wiki)

Martin


>>> [EMAIL PROTECTED] Dienstag, 1. Juli 2003 16:20:59 >>>
Is it possible to create the ldap.xml, with the ldap queries in a xsp
page?

-Original Message-
From:
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] .org] 
Sent: Tuesday, July 01, 2003 4:10 PM
To: [EMAIL PROTECTED] 
Subject: RE: LDAP Transformer


I think there must be a way other than set the parameter in the sitemap
like :

from the ldap.xml write something like that :
(&(cn=))

Is that possible?

-Original Message-
From:
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] .org] 
Sent: Tuesday, July 01, 2003 3:59 PM
To: [EMAIL PROTECTED] 
Subject: RE: LDAP Transformer


it doesn't work. As I said the filter cannot be definied as parameter in
the sitemap. It returns the error 
[LDAPTransformer] Error in LDAP-Query:
javax.naming.directory.InvalidSearchFilterException: Empty filter;

It must be a bug or so...
But refering to the original may, with the other way to search why is it
so slow ?

>
>hello,
>I have integrated ldap into my portal as identhification system.
>My problem is that I have to put a filter to search all users from
these
>seven groups :
>DG_IT-CLI-DAR_A_00 to DG_IT-CLI-DAR_A_06
>I have to ways, the first would be to set into my filter a parameter in
>the sitemap, like 
> 
>But it seems that the ldap transformer has a lot of bugs. The parameter
>rootdn works, password works, but both filter and serverurl doesn't
>work!!!
>
>So the only way to filter it is to search by the attribute "memberOf"
in
>every user data. But this attribute is a DN (means not substring or
>wildcards search). With a shareware I've found (LDAP Browser) I can
>search all these data, but with the ldap transformer I get the error :
>[LDAPTransformer] Error in LDAP-Query:
>javax.naming.TimeLimitExceededException: [LDAP: error code 3 -
Timelimit
>Exceeded]; remaining name 'DC=corproot,DC=net'
>Is it a bug of the ldap transformer? Is the filter to long/complex?
>
>Here is the filter ()
>
>(|(memberOf=CN=DG_IT-CLI-DAR_A_00,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res
,
>OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR_A_01,OU=IT_CLI-DAR,
O
>U=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-
D
>AR_A_03,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)
(
>memberOf=CN=DG_IT-CLI-DAR_A_04,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU
=
>IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR_A_05,OU=IT_CLI-DAR,OU=
I
>T_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR
_
>A_06,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net))
>
>Thanks
>

-Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 01, 2003 3:44 PM
To: [EMAIL PROTECTED] 
Subject: Re: LDAP Transformer


On Tue, 1 Jul 2003 14:55:52 +0200
<[EMAIL PROTECTED]> wrote:

> hello,
> I have integrated ldap into my portal as identhification system.
> My problem is that I have to put a filter to search all users from
these
> seven groups :
> DG_IT-CLI-DAR_A_00 to DG_IT-CLI-DAR_A_06
> I have to ways, the first would be to set into my filter a parameter
in
> the sitemap, like 
>  
> But it seems that the ldap transformer has a lot of bugs. The
parameter
> rootdn works, password works, but both filter and serverurl doesn't
> work!!!
> 
try the following filter syntax: (&(uid={request-param:name}))





-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

-
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] 


-
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] 


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



RE: LDAP Transformer with XSP page?

2003-07-01 Thread Maxime.Gheysen
Is it possible to create the ldap.xml, with the ldap queries in a xsp
page?

-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
.org] 
Sent: Tuesday, July 01, 2003 4:10 PM
To: [EMAIL PROTECTED]
Subject: RE: LDAP Transformer


I think there must be a way other than set the parameter in the sitemap
like :

from the ldap.xml write something like that :
(&(cn=))

Is that possible?

-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
.org] 
Sent: Tuesday, July 01, 2003 3:59 PM
To: [EMAIL PROTECTED]
Subject: RE: LDAP Transformer


it doesn't work. As I said the filter cannot be definied as parameter in
the sitemap. It returns the error 
[LDAPTransformer] Error in LDAP-Query:
javax.naming.directory.InvalidSearchFilterException: Empty filter;

It must be a bug or so...
But refering to the original may, with the other way to search why is it
so slow ?

>
>hello,
>I have integrated ldap into my portal as identhification system.
>My problem is that I have to put a filter to search all users from
these
>seven groups :
>DG_IT-CLI-DAR_A_00 to DG_IT-CLI-DAR_A_06
>I have to ways, the first would be to set into my filter a parameter in
>the sitemap, like 
> 
>But it seems that the ldap transformer has a lot of bugs. The parameter
>rootdn works, password works, but both filter and serverurl doesn't
>work!!!
>
>So the only way to filter it is to search by the attribute "memberOf"
in
>every user data. But this attribute is a DN (means not substring or
>wildcards search). With a shareware I've found (LDAP Browser) I can
>search all these data, but with the ldap transformer I get the error :
>[LDAPTransformer] Error in LDAP-Query:
>javax.naming.TimeLimitExceededException: [LDAP: error code 3 -
Timelimit
>Exceeded]; remaining name 'DC=corproot,DC=net'
>Is it a bug of the ldap transformer? Is the filter to long/complex?
>
>Here is the filter ()
>
>(|(memberOf=CN=DG_IT-CLI-DAR_A_00,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res
,
>OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR_A_01,OU=IT_CLI-DAR,
O
>U=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-
D
>AR_A_03,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)
(
>memberOf=CN=DG_IT-CLI-DAR_A_04,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU
=
>IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR_A_05,OU=IT_CLI-DAR,OU=
I
>T_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR
_
>A_06,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net))
>
>Thanks
>

-----Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 01, 2003 3:44 PM
To: [EMAIL PROTECTED]
Subject: Re: LDAP Transformer


On Tue, 1 Jul 2003 14:55:52 +0200
<[EMAIL PROTECTED]> wrote:

> hello,
> I have integrated ldap into my portal as identhification system.
> My problem is that I have to put a filter to search all users from
these
> seven groups :
> DG_IT-CLI-DAR_A_00 to DG_IT-CLI-DAR_A_06
> I have to ways, the first would be to set into my filter a parameter
in
> the sitemap, like 
>  
> But it seems that the ldap transformer has a lot of bugs. The
parameter
> rootdn works, password works, but both filter and serverurl doesn't
> work!!!
> 
try the following filter syntax: (&(uid={request-param:name}))





-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

-
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]


-
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: LDAP Transformer

2003-07-01 Thread Maxime.Gheysen
I think there must be a way other than set the parameter in the sitemap
like :

from the ldap.xml write something like that :
(&(cn=))

Is that possible?

-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
.org] 
Sent: Tuesday, July 01, 2003 3:59 PM
To: [EMAIL PROTECTED]
Subject: RE: LDAP Transformer


it doesn't work. As I said the filter cannot be definied as parameter in
the sitemap. It returns the error 
[LDAPTransformer] Error in LDAP-Query:
javax.naming.directory.InvalidSearchFilterException: Empty filter;

It must be a bug or so...
But refering to the original may, with the other way to search why is it
so slow ?

>
>hello,
>I have integrated ldap into my portal as identhification system.
>My problem is that I have to put a filter to search all users from
these
>seven groups :
>DG_IT-CLI-DAR_A_00 to DG_IT-CLI-DAR_A_06
>I have to ways, the first would be to set into my filter a parameter in
>the sitemap, like 
> 
>But it seems that the ldap transformer has a lot of bugs. The parameter
>rootdn works, password works, but both filter and serverurl doesn't
>work!!!
>
>So the only way to filter it is to search by the attribute "memberOf"
in
>every user data. But this attribute is a DN (means not substring or
>wildcards search). With a shareware I've found (LDAP Browser) I can
>search all these data, but with the ldap transformer I get the error :
>[LDAPTransformer] Error in LDAP-Query:
>javax.naming.TimeLimitExceededException: [LDAP: error code 3 -
Timelimit
>Exceeded]; remaining name 'DC=corproot,DC=net'
>Is it a bug of the ldap transformer? Is the filter to long/complex?
>
>Here is the filter ()
>
>(|(memberOf=CN=DG_IT-CLI-DAR_A_00,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res
,
>OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR_A_01,OU=IT_CLI-DAR,
O
>U=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-
D
>AR_A_03,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)
(
>memberOf=CN=DG_IT-CLI-DAR_A_04,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU
=
>IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR_A_05,OU=IT_CLI-DAR,OU=
I
>T_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR
_
>A_06,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net))
>
>Thanks
>

-----Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 01, 2003 3:44 PM
To: [EMAIL PROTECTED]
Subject: Re: LDAP Transformer


On Tue, 1 Jul 2003 14:55:52 +0200
<[EMAIL PROTECTED]> wrote:

> hello,
> I have integrated ldap into my portal as identhification system.
> My problem is that I have to put a filter to search all users from
these
> seven groups :
> DG_IT-CLI-DAR_A_00 to DG_IT-CLI-DAR_A_06
> I have to ways, the first would be to set into my filter a parameter
in
> the sitemap, like 
>  
> But it seems that the ldap transformer has a lot of bugs. The
parameter
> rootdn works, password works, but both filter and serverurl doesn't
> work!!!
> 
try the following filter syntax: (&(uid={request-param:name}))





-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

-
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]


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



RE: LDAP Transformer

2003-07-01 Thread Maxime.Gheysen
it doesn't work. As I said the filter cannot be definied as parameter in
the sitemap. It returns the error 
[LDAPTransformer] Error in LDAP-Query:
javax.naming.directory.InvalidSearchFilterException: Empty filter;

It must be a bug or so...
But refering to the original may, with the other way to search why is it
so slow ?

>
>hello,
>I have integrated ldap into my portal as identhification system.
>My problem is that I have to put a filter to search all users from
these
>seven groups :
>DG_IT-CLI-DAR_A_00 to DG_IT-CLI-DAR_A_06
>I have to ways, the first would be to set into my filter a parameter in
>the sitemap, like 
> 
>But it seems that the ldap transformer has a lot of bugs. The parameter
>rootdn works, password works, but both filter and serverurl doesn't
>work!!!
>
>So the only way to filter it is to search by the attribute "memberOf"
in
>every user data. But this attribute is a DN (means not substring or
>wildcards search). With a shareware I've found (LDAP Browser) I can
>search all these data, but with the ldap transformer I get the error :
>[LDAPTransformer] Error in LDAP-Query:
>javax.naming.TimeLimitExceededException: [LDAP: error code 3 -
Timelimit
>Exceeded]; remaining name 'DC=corproot,DC=net'
>Is it a bug of the ldap transformer? Is the filter to long/complex?
>
>Here is the filter ()
>
>(|(memberOf=CN=DG_IT-CLI-DAR_A_00,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res
,
>OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR_A_01,OU=IT_CLI-DAR,
O
>U=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-
D
>AR_A_03,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)
(
>memberOf=CN=DG_IT-CLI-DAR_A_04,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU
=
>IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR_A_05,OU=IT_CLI-DAR,OU=
I
>T_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR
_
>A_06,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net))
>
>Thanks
>

-Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 01, 2003 3:44 PM
To: [EMAIL PROTECTED]
Subject: Re: LDAP Transformer


On Tue, 1 Jul 2003 14:55:52 +0200
<[EMAIL PROTECTED]> wrote:

> hello,
> I have integrated ldap into my portal as identhification system.
> My problem is that I have to put a filter to search all users from
these
> seven groups :
> DG_IT-CLI-DAR_A_00 to DG_IT-CLI-DAR_A_06
> I have to ways, the first would be to set into my filter a parameter
in
> the sitemap, like 
>  
> But it seems that the ldap transformer has a lot of bugs. The
parameter
> rootdn works, password works, but both filter and serverurl doesn't
> work!!!
> 
try the following filter syntax: (&(uid={request-param:name}))





-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

-
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: LDAP Transformer

2003-07-01 Thread Yury Mikhienko
On Tue, 1 Jul 2003 14:55:52 +0200
<[EMAIL PROTECTED]> wrote:

> hello,
> I have integrated ldap into my portal as identhification system.
> My problem is that I have to put a filter to search all users from these
> seven groups :
> DG_IT-CLI-DAR_A_00 to DG_IT-CLI-DAR_A_06
> I have to ways, the first would be to set into my filter a parameter in
> the sitemap, like 
>  
> But it seems that the ldap transformer has a lot of bugs. The parameter
> rootdn works, password works, but both filter and serverurl doesn't
> work!!!
> 
try the following filter syntax: (&(uid={request-param:name}))





-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

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



LDAP Transformer

2003-07-01 Thread Maxime.Gheysen
hello,
I have integrated ldap into my portal as identhification system.
My problem is that I have to put a filter to search all users from these
seven groups :
DG_IT-CLI-DAR_A_00 to DG_IT-CLI-DAR_A_06
I have to ways, the first would be to set into my filter a parameter in
the sitemap, like 
 
But it seems that the ldap transformer has a lot of bugs. The parameter
rootdn works, password works, but both filter and serverurl doesn't
work!!!

So the only way to filter it is to search by the attribute "memberOf" in
every user data. But this attribute is a DN (means not substring or
wildcards search). With a shareware I've found (LDAP Browser) I can
search all these data, but with the ldap transformer I get the error :
[LDAPTransformer] Error in LDAP-Query:
javax.naming.TimeLimitExceededException: [LDAP: error code 3 - Timelimit
Exceeded]; remaining name 'DC=corproot,DC=net'
Is it a bug of the ldap transformer? Is the filter to long/complex?

Here is the filter ()

(|(memberOf=CN=DG_IT-CLI-DAR_A_00,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,
OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR_A_01,OU=IT_CLI-DAR,O
U=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-D
AR_A_03,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)(
memberOf=CN=DG_IT-CLI-DAR_A_04,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU=
IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR_A_05,OU=IT_CLI-DAR,OU=I
T_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR_
A_06,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net))

Thanks

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



LDAP on WIki

2003-06-13 Thread Maxime.Gheysen
I wrote this page about how to change the authentification method. Hope
it is helpfull for someone...

I saw that there is a little problem with the carriage returns...

http://wiki.cocoondev.org/Wiki.jsp?page=LDAPPortalAuthentification+and+R
equestUserInfoFromXSP

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



Re: [SUMMARY] : Authentification with requests and ldap HELP!

2003-06-11 Thread Emmanuil Batsis (Manos)


[EMAIL PROTECTED] wrote:

By the way, if anyone needs to adapt his portal from XML-file
authentification to LDAP I can help him...
Sounds ideal for the cocoon wiki if something similar is not already 
available.

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


[SUMMARY] : Authentification with requests and ldap HELP!

2003-06-11 Thread Maxime.Gheysen
no, in fact now it works, but the problem is that for ldap I need the
user name with the domain who is "corproot". that means the "rootdn"
must be like "corproot\user1" and the username is only "user1". That
refers to my other question "combine values and variables for parameters
in the sitemap"
By the way, if anyone needs to adapt his portal from XML-file
authentification to LDAP I can help him...

thanks anyway

-Original Message-
From: Lionel Crine [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 11, 2003 1:54 PM
To: [EMAIL PROTECTED]
Subject: RE: Authentification with requests and ldap HELP!


And it's not working the way you wrote it ?

You have an error ? variable ar empty ?
Did you look at the core.log or the localhost_log file ?

Maybe you're losing the variable from one pipeline to another.

lionel

At 11:33 11/06/2003 +0200, you wrote:
>In an easier phrase all I still need to do is :
>
>Set the ldap:rootdn and ldap:password values from the login form!
>
>   
> 
> 
>   
>
>it's maybe cleaner this way?
>
>Thanks
>
>
>
>
>-Original Message-
>From:
>[EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]
e
>.org]
>Sent: Wednesday, June 11, 2003 11:21 AM
>To: [EMAIL PROTECTED]
>Subject: Authentification with requests and ldap HELP!
>
>
>I have a portal, on my login page I have the field "name" and
>"password".
>When I submit the form : (  action="configDBWOCfree-auth?resource=configDBWOC-portal">  ) I want to
>execute the authentification pipeline. To authentificate I want to
>execute an ldap query, but with ldap:rootdn (ldap user) and
>ldap:password (ldap password) as my two text fields from my login page.
>Then, if the query suceeds, get the user information from ldap and go
to
>the next page.
>
>sitemap.xmap
>
>
>  
>   
>   
>   
>   
> 
> 
>   
>   
> 
>   
>
>   
> 
>   
>   
>
>
>ldap.xml
>
>...
>
>...
>
>ldap.xsl
>
>
>...
> 
>
>
>
>sunrise-user.xsl
>
>
>
>...
>
>...
>
>-
>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]


-
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: Authentification with requests and ldap HELP!

2003-06-11 Thread Lionel Crine
And it's not working the way you wrote it ?

You have an error ? variable ar empty ?
Did you look at the core.log or the localhost_log file ?
Maybe you're losing the variable from one pipeline to another.

lionel

At 11:33 11/06/2003 +0200, you wrote:
In an easier phrase all I still need to do is :

Set the ldap:rootdn and ldap:password values from the login form!

  


  
it's maybe cleaner this way?

Thanks



-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
.org]
Sent: Wednesday, June 11, 2003 11:21 AM
To: [EMAIL PROTECTED]
Subject: Authentification with requests and ldap HELP!
I have a portal, on my login page I have the field "name" and
"password".
When I submit the form : () I want to
execute the authentification pipeline. To authentificate I want to
execute an ldap query, but with ldap:rootdn (ldap user) and
ldap:password (ldap password) as my two text fields from my login page.
Then, if the query suceeds, get the user information from ldap and go to
the next page.
sitemap.xmap


 
  
  
  
  


  
  

  
  

  
  

ldap.xml

...

...
ldap.xsl


...
 

sunrise-user.xsl



...

...
-
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]


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


RE: Authentification with requests and ldap HELP!

2003-06-11 Thread Maxime.Gheysen
In an easier phrase all I still need to do is :

Set the ldap:rootdn and ldap:password values from the login form!

  

 


it's maybe cleaner this way?

Thanks




-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
.org] 
Sent: Wednesday, June 11, 2003 11:21 AM
To: [EMAIL PROTECTED]
Subject: Authentification with requests and ldap HELP!


I have a portal, on my login page I have the field "name" and
"password".
When I submit the form : () I want to
execute the authentification pipeline. To authentificate I want to
execute an ldap query, but with ldap:rootdn (ldap user) and
ldap:password (ldap password) as my two text fields from my login page.
Then, if the query suceeds, get the user information from ldap and go to
the next page.

sitemap.xmap


 
  
  
  
  

 

  

  

  


 


ldap.xml

...

...

ldap.xsl


...
 



sunrise-user.xsl



...

...

-
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]



Authentification with requests and ldap HELP!

2003-06-11 Thread Maxime.Gheysen
I have a portal, on my login page I have the field "name" and
"password".
When I submit the form : () I want to
execute the authentification pipeline. To authentificate I want to
execute an ldap query, but with ldap:rootdn (ldap user) and
ldap:password (ldap password) as my two text fields from my login page.
Then, if the query suceeds, get the user information from ldap and go to
the next page.

sitemap.xmap


 
  
  
  
  

 

  

  

  


 


ldap.xml

...

...

ldap.xsl


...
 



sunrise-user.xsl



...

...

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



Portal LDAP Authentification

2003-06-10 Thread Maxime.Gheysen
Hello,
My portal used a simple XML file for identification. Now I generate an
xml file from a ldap query. But the problem is that I can't get the
password (from the ldap server), I can only get user informations! 
How is it possible to integrate the user/password system from my ldap
server into my portal?


Thanks



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



Portal LDAP Authentification

2003-06-09 Thread Maxime.Gheysen
Hello,
My portal actually use a simple XML file for identification. Is there an
easy way to change it to an Ldap method (I know how to generate an xml
file with all the users using ldap)?


Thanks

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



Ldap authentification

2003-06-09 Thread Maxime.Gheysen
Hello,
My LDAP server needs a user & password identification. In the Ldap
documentation I only saw the  tag, but not the user! And
what are the other options for  (other than
simple)?
Thanks


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



ldap authentification

2003-06-06 Thread Maxime.Gheysen
Where do I have to put my username to make a connection to an LDAP
server ? Because I need an authentification with username&password.
Thanks


http://apache.org/cocoon/LDAP/1.0";>
  
 
com.sun.jndi.ldap.LdapCtxFactory
simple
    mypass
ldap://10.50.40.41
389
3
dc=corproot,dc=net
OBJECTS_SCOPE
dc=corproot,dc=net
TRUE
1000
0
name
TRUE
(objectClass=*)
  


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



find the ldap configuration

2003-06-06 Thread Maxime.Gheysen
Where is it possible to find the information about the ldap parameters?
I have the serverurl, port, filter, 
but neither the "searchbase" neither the "rootdn". What and where are
they? 
thanks

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



make a ldap connection

2003-06-05 Thread Maxime.Gheysen
I tryied some of the LDAP public servers
(http://www.emailman.com/ldap/public.html)
But I always get this connection error :

http://apache.org/cocoon/LDAP/1.0";>[LDAPTransformer]
Failed ldap-connection to directory service. 

Is it because of my configuration or from the server? Here is my xml
page :


http://apache.org/cocoon/LDAP/1.0";>


com.sun.jndi.ldap.LdapCtxFactory
simple
3
LDAP://noc2.irt.drexel.edu
o=drexel,c=us
389

 100

 TRUE

 Mail
 





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



Re: LDAP Help? Where is there any complete help/tutorial? Mail archive doesn't work

2003-06-05 Thread Bertrand Delacretaz
Le Jeudi, 5 juin 2003, à 11:22 Europe/Zurich, 
<[EMAIL PROTECTED]> a écrit :

...I also tried the mail archives, but there are all "dead
links" (eg.
http://www.mail-archive.com/[EMAIL PROTECTED]/msg28095.html).
don't know about mail-archive but most people here use the MARC 
archives, which work:

http://marc.theaimsgroup.com/?l=xml-cocoon-dev&w=2&r=1&s=ldap&q=b

http://marc.theaimsgroup.com/?l=xml-cocoon-users&w=2&r=1&s=ldap&q=b

There are some docs at the wiki as well (search for LDAP at 
http://wiki.cocoondev.org/Wiki.jsp).

...Is there somewhere somebody who knows how LDAP works (more precisely
with Active Directory) from A to Z?
If there's no one you might have to investigate yourself (using the 
logs and possibly a debugger), or hire someone to do it for you.
Just talked about this earlier today at 
http://codeconsult.ch/bertrand/archives/72.html

-Bertrand

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


LDAP Help? Where is there any complete help/tutorial? Mail archive doesn't work

2003-06-05 Thread Maxime.Gheysen
Hello.
I'm trying to get LDAP working since 2days, but I can't get any
helpfully help! I also tried the mail archives, but there are all "dead
links" (eg.
http://www.mail-archive.com/[EMAIL PROTECTED]/msg28095.html).
Is there somewhere somebody who knows how LDAP works (more precisely
with Active Directory) from A to Z? 

Thank you for any help!

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



RE: XSP & LDAP -> The tags aren't interpreted

2003-06-05 Thread Maxime.Gheysen
Here is my problem more clearly :
We are two developpers, we both develop an application with cocoon. I
use XSP and the other use XML-Forms. He builded a portal. I created an
application that has to be integrated into this portal. To help him in
his work, I have to change his authentification source (actually he use
an XML file to authentificate) to our Active Directory server. So I have
to add it into the portal and into my XSP pages (because I need to get
the user name/role/group).
I don't know anything about how XML forms work, but I know XSP.

Now, is there an easy way, to change the authentification source from an
XML file to Active Directory, and is there an easy way to get the
username in a XSP page.

At this time I have the LDAPTransformer well configured in my sitemap,
but nothing more.

Thank you for you help!


-Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 5:03 PM
To: [EMAIL PROTECTED]
Subject: Re: XSP & LDAP -> The tags aren't interpreted




> I use cocoon 2.0
> the output on the explorer is :
>
ldap://ldap.innosoft.com(&(objectclass=pet)(cn=B*))ou=Pets,dc=Innosoft,d
> c=comonetrue10owner,givenname,descriptionfalse
> 

In all  versions of cocoon (2.0,2.0.3,4 ) in LDAPTransformer the
following DTD is used.

* The following DTD is valid:
 * <!ELEMENT execute-query (attribute+ | show-attribute? | scope? |
initializer? | authentication? | error-element? | sax-error?
doc-element? | row-element? | version? | serverurl? | rootdn? |
password? | deref-link? | count-limit? | searchbase, filter)>
 * <!ELEMENT execute-increment (attribute | show-attribute? | scope?
| initializer? | authentication? | error-element? | sax-error? |
doc-element? | row-element? | version? | serverurl? | rootdn? |
password? | deref-link? | count-limit? | searchbase, filter)>
 * increments (+1) an integer attribute on a directory-server (ldap)
 * 
 * <!ELEMENT initializer (#PCDATA)>+ (default:
"com.sun.jndi.ldap.LdapCtxFactory")
 * <!ELEMENT authentication (#PCDATA)>+ (default: "simple")
 * <!ELEMENT version (#PCDATA)>+ (default: "2")
 * <!ELEMENT serverurl (#PCDATA)>+
 * <!ELEMENT port (#PCDATA)>+ (default: 389)
 * <!ELEMENT rootdn (#PCDATA)>+
 * <!ELEMENT password (#PCDATA)>+
 * <!ELEMENT scope (ONELEVEL_SCOPE | SUBTREE_SCOPE |
OBJECT_SCOPE)>+ (default: ONELEVEL_SCOPE)
 * <!ELEMENT searchbase (#PCDATA)>+
 * <!ELEMENT doc-element (#PCDATA)>+ (default: "doc-element")
 * <!ELEMENT row-element (#PCDATA)>+ (default: "row-element")
 * <!ELEMENT error-element (#PCDATA)>+ (default: "ldap-error") (in
case of error returned error tag)
 * <!ELEMENT sax_error (TRUE  | FALSE)>+; (default: FALSE) (throws
SAX-Exception instead of error tag)
 * <!ELEMENT attribute (#PCDATA)>
 * <!ELEMENT show-attribute (TRUE | FALSE)> (default: TRUE)
 * <!ELEMENT filter (#PCDATA | execute-query)>
 * <!ELEMENT deref-link (TRUE | FALSE)> (default: FALSE)
 * <!ELEMENT count-limit (#PCDATA)> (integer default: 0 -> no
limit)
 * <!ELEMENT time-limit (#PCDATA)> (integer default: 0 ->
infinite)
 * <!ELEMENT debug (TRUE  | FALSE)>+; (default: FALSE)
 * 
 * + can also be defined as parameter in the sitemap.
 * 
 * 
 *
 * @author Felix Knecht
 * @version CVS $Id: LDAPTransformer.java,v 1.6 2002/02/22 07:03:56
cziegeler Exp $
 */


and the following namespace: http://apache.org/cocoon/LDAP/1.0

But what are you using?
simple real example:

 
 
com.sun.jndi.ldap.LdapCtxFactory
  ldap://ldap.my.host
  389
  OBJECTS_SCOPE
  cn=DN
  password
  ou=people,o=company
  urls
  title
  mobile
  cn
  sn
  zone
  sleep
  trace
  admin
  true
  (&(uid=testuser))
 


> 
> No.
> Can you send me the output of work?
> And what the version of cocoon you use?
> 
> > doesn't work. Is there anything to add in the cocoon.xconf maybe?
> > 
> > 
> > Try the following:
> > 
> >  >   language="java"
> >   xmlns:xsp="http://apache.org/xsp";
> >   xmlns:ldap="http://apache.org/cocoon/LDAP/1.0";>
> > 
> > instead of
> >  >   xmlns:ldap="http://www.apache.org/2000/LDAP";
> >   xmlns:xsp="http://apache.org/xsp";
> >   xmlns:session="http://apache.org/xsp/session/2.0"; 
> >   xmlns:esql="http://apache.org/cocoon/SQL/v2"; 
> >   xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> > 
> > 
> > > Yes, that works. now, how can I use it? When I use it like :
> > > 
> > >   
> > >  > > src="workflowmanager/documents

RE: XSP & LDAP -> The tags aren't interpreted

2003-06-05 Thread Maxime.Gheysen
And where must I write this DTD, and what is his name and extension?  I
have never used any DTD
And then, in the sitemap must I write :
...

...


-Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 5:03 PM
To: [EMAIL PROTECTED]
Subject: Re: XSP & LDAP -> The tags aren't interpreted




> I use cocoon 2.0
> the output on the explorer is :
>
ldap://ldap.innosoft.com(&(objectclass=pet)(cn=B*))ou=Pets,dc=Innosoft,d
> c=comonetrue10owner,givenname,descriptionfalse
> 

In all  versions of cocoon (2.0,2.0.3,4 ) in LDAPTransformer the
following DTD is used.

* The following DTD is valid:
 * <!ELEMENT execute-query (attribute+ | show-attribute? | scope? |
initializer? | authentication? | error-element? | sax-error?
doc-element? | row-element? | version? | serverurl? | rootdn? |
password? | deref-link? | count-limit? | searchbase, filter)>
 * <!ELEMENT execute-increment (attribute | show-attribute? | scope?
| initializer? | authentication? | error-element? | sax-error? |
doc-element? | row-element? | version? | serverurl? | rootdn? |
password? | deref-link? | count-limit? | searchbase, filter)>
 * increments (+1) an integer attribute on a directory-server (ldap)
 * 
 * <!ELEMENT initializer (#PCDATA)>+ (default:
"com.sun.jndi.ldap.LdapCtxFactory")
 * <!ELEMENT authentication (#PCDATA)>+ (default: "simple")
 * <!ELEMENT version (#PCDATA)>+ (default: "2")
 * <!ELEMENT serverurl (#PCDATA)>+
 * <!ELEMENT port (#PCDATA)>+ (default: 389)
 * <!ELEMENT rootdn (#PCDATA)>+
 * <!ELEMENT password (#PCDATA)>+
 * <!ELEMENT scope (ONELEVEL_SCOPE | SUBTREE_SCOPE |
OBJECT_SCOPE)>+ (default: ONELEVEL_SCOPE)
 * <!ELEMENT searchbase (#PCDATA)>+
 * <!ELEMENT doc-element (#PCDATA)>+ (default: "doc-element")
 * <!ELEMENT row-element (#PCDATA)>+ (default: "row-element")
 * <!ELEMENT error-element (#PCDATA)>+ (default: "ldap-error") (in
case of error returned error tag)
 * <!ELEMENT sax_error (TRUE  | FALSE)>+; (default: FALSE) (throws
SAX-Exception instead of error tag)
 * <!ELEMENT attribute (#PCDATA)>
 * <!ELEMENT show-attribute (TRUE | FALSE)> (default: TRUE)
 * <!ELEMENT filter (#PCDATA | execute-query)>
 * <!ELEMENT deref-link (TRUE | FALSE)> (default: FALSE)
 * <!ELEMENT count-limit (#PCDATA)> (integer default: 0 -> no
limit)
 * <!ELEMENT time-limit (#PCDATA)> (integer default: 0 ->
infinite)
 * <!ELEMENT debug (TRUE  | FALSE)>+; (default: FALSE)
 * 
 * + can also be defined as parameter in the sitemap.
 * 
 * 
 *
 * @author Felix Knecht
 * @version CVS $Id: LDAPTransformer.java,v 1.6 2002/02/22 07:03:56
cziegeler Exp $
 */


and the following namespace: http://apache.org/cocoon/LDAP/1.0

But what are you using?
simple real example:

 
 
com.sun.jndi.ldap.LdapCtxFactory
  ldap://ldap.my.host
  389
  OBJECTS_SCOPE
  cn=DN
  password
  ou=people,o=company
  urls
  title
  mobile
  cn
  sn
  zone
  sleep
  trace
  admin
  true
  (&(uid=testuser))
 


> 
> No.
> Can you send me the output of work?
> And what the version of cocoon you use?
> 
> > doesn't work. Is there anything to add in the cocoon.xconf maybe?
> > 
> > 
> > Try the following:
> > 
> >  >   language="java"
> >   xmlns:xsp="http://apache.org/xsp";
> >   xmlns:ldap="http://apache.org/cocoon/LDAP/1.0";>
> > 
> > instead of
> >  >   xmlns:ldap="http://www.apache.org/2000/LDAP";
> >   xmlns:xsp="http://apache.org/xsp";
> >   xmlns:session="http://apache.org/xsp/session/2.0"; 
> >   xmlns:esql="http://apache.org/cocoon/SQL/v2"; 
> >   xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> > 
> > 
> > > Yes, that works. now, how can I use it? When I use it like :
> > > 
> > >   
> > >  > > src="workflowmanager/documents/{1}.xsp"/>
> > > 
> > >     
> > >   
> > >  
> > > and in the xsp page I write this sample page (from the apache
site).
> > And
> > > then I just get text as result. The tags aren't interpreted.
> > > 
> > >  > >  xmlns:ldap="http://www.apache.org/2000/LDAP";
> > >  xmlns:xsp="http://apache.org/xsp";
> > >  xmlns:session="http://apache.org/xsp/session/2.0"; 
> > >  xmlns:esql="http://apache.org/cocoon/SQL/v2"; 
> > >  xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> > > >
> > > 
> > > 
> 

Re: XSP & LDAP -> The tags aren't interpreted

2003-06-05 Thread Yury Mikhienko


> I use cocoon 2.0
> the output on the explorer is :
> ldap://ldap.innosoft.com(&(objectclass=pet)(cn=B*))ou=Pets,dc=Innosoft,d
> c=comonetrue10owner,givenname,descriptionfalse
> 

In all  versions of cocoon (2.0,2.0.3,4 ) in LDAPTransformer the following DTD is used.

* The following DTD is valid:
 * <!ELEMENT execute-query (attribute+ | show-attribute? | scope? | initializer? | 
authentication? | error-element? | sax-error?  doc-element? | row-element? | version? 
| serverurl? | rootdn? | password? | deref-link? | count-limit? | searchbase, 
filter)>
 * <!ELEMENT execute-increment (attribute | show-attribute? | scope? | initializer? 
| authentication? | error-element? | sax-error? | doc-element? | row-element? | 
version? | serverurl? | rootdn? | password? | deref-link? | count-limit? | searchbase, 
filter)>
 * increments (+1) an integer attribute on a directory-server (ldap)
 * 
 * <!ELEMENT initializer (#PCDATA)>+ (default: 
"com.sun.jndi.ldap.LdapCtxFactory")
 * <!ELEMENT authentication (#PCDATA)>+ (default: "simple")
 * <!ELEMENT version (#PCDATA)>+ (default: "2")
 * <!ELEMENT serverurl (#PCDATA)>+
 * <!ELEMENT port (#PCDATA)>+ (default: 389)
 * <!ELEMENT rootdn (#PCDATA)>+
 * <!ELEMENT password (#PCDATA)>+
 * <!ELEMENT scope (ONELEVEL_SCOPE | SUBTREE_SCOPE | OBJECT_SCOPE)>+ (default: 
ONELEVEL_SCOPE)
 * <!ELEMENT searchbase (#PCDATA)>+
 * <!ELEMENT doc-element (#PCDATA)>+ (default: "doc-element")
 * <!ELEMENT row-element (#PCDATA)>+ (default: "row-element")
 * <!ELEMENT error-element (#PCDATA)>+ (default: "ldap-error") (in case of error 
returned error tag)
 * <!ELEMENT sax_error (TRUE  | FALSE)>+; (default: FALSE) (throws SAX-Exception 
instead of error tag)
 * <!ELEMENT attribute (#PCDATA)>
 * <!ELEMENT show-attribute (TRUE | FALSE)> (default: TRUE)
 * <!ELEMENT filter (#PCDATA | execute-query)>
 * <!ELEMENT deref-link (TRUE | FALSE)> (default: FALSE)
 * <!ELEMENT count-limit (#PCDATA)> (integer default: 0 -> no limit)
 * <!ELEMENT time-limit (#PCDATA)> (integer default: 0 -> infinite)
 * <!ELEMENT debug (TRUE  | FALSE)>+; (default: FALSE)
 * 
 * + can also be defined as parameter in the sitemap.
 * 
 * 
 *
 * @author Felix Knecht
 * @version CVS $Id: LDAPTransformer.java,v 1.6 2002/02/22 07:03:56 cziegeler Exp $
 */


and the following namespace: http://apache.org/cocoon/LDAP/1.0

But what are you using?
simple real example:

 
  com.sun.jndi.ldap.LdapCtxFactory
  ldap://ldap.my.host
  389
  OBJECTS_SCOPE
  cn=DN
  password
  ou=people,o=company
  urls
  title
  mobile
  cn
  sn
  zone
  sleep
  trace
  admin
  true
  (&(uid=testuser))
 


> 
> No.
> Can you send me the output of work?
> And what the version of cocoon you use?
> 
> > doesn't work. Is there anything to add in the cocoon.xconf maybe?
> > 
> > 
> > Try the following:
> > 
> >  >   language="java"
> >   xmlns:xsp="http://apache.org/xsp";
> >   xmlns:ldap="http://apache.org/cocoon/LDAP/1.0";>
> > 
> > instead of
> >  >   xmlns:ldap="http://www.apache.org/2000/LDAP";
> >   xmlns:xsp="http://apache.org/xsp";
> >   xmlns:session="http://apache.org/xsp/session/2.0"; 
> >   xmlns:esql="http://apache.org/cocoon/SQL/v2"; 
> >   xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> > 
> > 
> > > Yes, that works. now, how can I use it? When I use it like :
> > > 
> > >   
> > >  > > src="workflowmanager/documents/{1}.xsp"/>
> > > 
> > > 
> > >   
> > >  
> > > and in the xsp page I write this sample page (from the apache site).
> > And
> > > then I just get text as result. The tags aren't interpreted.
> > > 
> > >  > >  xmlns:ldap="http://www.apache.org/2000/LDAP";
> > >  xmlns:xsp="http://apache.org/xsp";
> > >  xmlns:session="http://apache.org/xsp/session/2.0"; 
> > >  xmlns:esql="http://apache.org/cocoon/SQL/v2"; 
> > >  xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> > > >
> > > 
> > > 
> > > 
> > >   
> > > ldap://ldap.innosoft.com
> > > (&(objectclass=pet)(cn=B*))
> > > ou=Pets,dc=Innosoft,dc=com
> > > 
> > > one
> > > true
> > > 10
> > > owner,givenname,description
> > > false
> > > 

Re: XSP & LDAP

2003-06-05 Thread Martin Holz
<[EMAIL PROTECTED]> writes:

> When I declare the transformer 
>  src="org.apache.cocoon.transformation.LDAPTransformer"/>
> in the sitemap I get the error "class not found".
> Do I need some special libs? I have tomcat 4.1.24 & cocoon 2.0
...
> Martin Holz wrote:
>> In cocoon-naming-block.jar. 

Forget cocoon-naming-block.jar in cocoon 2.0.
Blocks exist only in the 2.1 branch.

If I remember correctly, the LDAPTransformer was
not included in the binary distribution and
only compiled by ant, when the javax.naming 
classes where in the classpath at compile time.

--
Martin Holz <[EMAIL PROTECTED]>

Softwareentwicklung / Vernetztes Studium - Chemie
FIZ CHEMIE Berlin
Franklinstrasse 11
D-10587 Berlin  




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



RE: XSP & LDAP -> The tags aren't interpreted

2003-06-05 Thread Maxime.Gheysen
I use cocoon 2.0
the output on the explorer is :
ldap://ldap.innosoft.com(&(objectclass=pet)(cn=B*))ou=Pets,dc=Innosoft,d
c=comonetrue10owner,givenname,descriptionfalse

The JAVA output is attached


-Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 4:36 PM
To: [EMAIL PROTECTED]
Subject: Re: XSP & LDAP -> The tags aren't interpreted


No.
Can you send me the output of work?
And what the version of cocoon you use?

> doesn't work. Is there anything to add in the cocoon.xconf maybe?
> 
> 
> Try the following:
> 
>language="java"
>   xmlns:xsp="http://apache.org/xsp";
>   xmlns:ldap="http://apache.org/cocoon/LDAP/1.0";>
> 
> instead of
>xmlns:ldap="http://www.apache.org/2000/LDAP";
>   xmlns:xsp="http://apache.org/xsp";
>   xmlns:session="http://apache.org/xsp/session/2.0"; 
>   xmlns:esql="http://apache.org/cocoon/SQL/v2"; 
>   xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> 
> 
> > Yes, that works. now, how can I use it? When I use it like :
> > 
> >   
> >  > src="workflowmanager/documents/{1}.xsp"/>
> > 
> > 
> >   
> >  
> > and in the xsp page I write this sample page (from the apache site).
> And
> > then I just get text as result. The tags aren't interpreted.
> > 
> >  >  xmlns:ldap="http://www.apache.org/2000/LDAP";
> >  xmlns:xsp="http://apache.org/xsp";
> >  xmlns:session="http://apache.org/xsp/session/2.0"; 
> >  xmlns:esql="http://apache.org/cocoon/SQL/v2"; 
> >  xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> > >
> > 
> > 
> > 
> >   
> > ldap://ldap.innosoft.com
> > (&(objectclass=pet)(cn=B*))
> > ou=Pets,dc=Innosoft,dc=com
> > 
> > one
> > true
> > 10
> > owner,givenname,description
> >     false
> >   
> > 
> > 
> > 
> > 
> > 
> > -Original Message-
> > From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, June 04, 2003 2:39 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: XSP & LDAP
> > 
> > 
> > Put the jndi.jar into the $COCOON_SRC_DIR/lib/optional
> > Check the $COCOON_SRC_DIR/lib/jars.xml
> > for following lines:
> >  
> >   jndi LDAP API
> >   Java API for LDAP works
> >   LDAP Transformer
> >   optional/jndi.jar
> >   http://java.sun.com/products/jndi
> >  
> > 
> > and rebuild the cocoon.
> > 
> > After rebuilding, in the
> >
$COCOON_SRC_DIR/build/cocoon/classes/org/apache/cocoon/transformation
> > you find the LDAPTransformer.class and
LDAPTransformer$LDAPQuery.class
> > 
> > > there aren't in the cocoon.jar (org/apache/cocoon/transformation)
> > > Should I add them? Where can I find them?
> > > 
> > > Check the :
> > > LDAPTransformer.class
> > > LDAPTransformer$LDAPQuery.class
> > > in the your cocoon.jar (org/apache/cocoon/transformation)
> > > 
> > > > I have them, into the cocoon/web-inf/lib I have these libs :
> > > > jndi.jar
> > > > jaas.jar
> > > > ldap.jar
> > > > ldapbp.jar
> > > > ldapsec.jar
> > > > providerutil.jar
> > > > 
> > > > but I doesn't work. Still have the "class not found" error
> > > > 
> > > > > When I declare the transformer 
> > > > >  > > > > src="org.apache.cocoon.transformation.LDAPTransformer"/>
> > > > > in the sitemap I get the error "class not found".
> > > > > Do I need some special libs? 
> > > > 



-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

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



login7_xsp.zip
Description: login7_xsp.zip
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: XSP & LDAP -> The tags aren't interpreted

2003-06-05 Thread Yury Mikhienko
No.
Can you send me the output of work?
And what the version of cocoon you use?

> doesn't work. Is there anything to add in the cocoon.xconf maybe?
> 
> 
> Try the following:
> 
>language="java"
>   xmlns:xsp="http://apache.org/xsp";
>   xmlns:ldap="http://apache.org/cocoon/LDAP/1.0";>
> 
> instead of
>xmlns:ldap="http://www.apache.org/2000/LDAP";
>   xmlns:xsp="http://apache.org/xsp";
>   xmlns:session="http://apache.org/xsp/session/2.0"; 
>   xmlns:esql="http://apache.org/cocoon/SQL/v2"; 
>   xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> 
> 
> > Yes, that works. now, how can I use it? When I use it like :
> > 
> >   
> >  > src="workflowmanager/documents/{1}.xsp"/>
> > 
> > 
> >   
> >  
> > and in the xsp page I write this sample page (from the apache site).
> And
> > then I just get text as result. The tags aren't interpreted.
> > 
> >  >  xmlns:ldap="http://www.apache.org/2000/LDAP";
> >  xmlns:xsp="http://apache.org/xsp";
> >  xmlns:session="http://apache.org/xsp/session/2.0"; 
> >  xmlns:esql="http://apache.org/cocoon/SQL/v2"; 
> >  xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> > >
> > 
> > 
> > 
> >   
> > ldap://ldap.innosoft.com
> > (&(objectclass=pet)(cn=B*))
> > ou=Pets,dc=Innosoft,dc=com
> > 
> > one
> > true
> > 10
> > owner,givenname,description
> >     false
> >   
> > 
> > 
> > 
> > 
> > 
> > -Original Message-
> > From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, June 04, 2003 2:39 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: XSP & LDAP
> > 
> > 
> > Put the jndi.jar into the $COCOON_SRC_DIR/lib/optional
> > Check the $COCOON_SRC_DIR/lib/jars.xml
> > for following lines:
> >  
> >   jndi LDAP API
> >   Java API for LDAP works
> >   LDAP Transformer
> >   optional/jndi.jar
> >   http://java.sun.com/products/jndi
> >  
> > 
> > and rebuild the cocoon.
> > 
> > After rebuilding, in the
> > $COCOON_SRC_DIR/build/cocoon/classes/org/apache/cocoon/transformation
> > you find the LDAPTransformer.class and LDAPTransformer$LDAPQuery.class
> > 
> > > there aren't in the cocoon.jar (org/apache/cocoon/transformation)
> > > Should I add them? Where can I find them?
> > > 
> > > Check the :
> > > LDAPTransformer.class
> > > LDAPTransformer$LDAPQuery.class
> > > in the your cocoon.jar (org/apache/cocoon/transformation)
> > > 
> > > > I have them, into the cocoon/web-inf/lib I have these libs :
> > > > jndi.jar
> > > > jaas.jar
> > > > ldap.jar
> > > > ldapbp.jar
> > > > ldapsec.jar
> > > > providerutil.jar
> > > > 
> > > > but I doesn't work. Still have the "class not found" error
> > > > 
> > > > > When I declare the transformer 
> > > > >  > > > > src="org.apache.cocoon.transformation.LDAPTransformer"/>
> > > > > in the sitemap I get the error "class not found".
> > > > > Do I need some special libs? 
> > > > 



-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

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



RE: XSP & LDAP -> The tags aren't interpreted

2003-06-05 Thread Maxime.Gheysen
doesn't work. Is there anything to add in the cocoon.xconf maybe?

-Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 4:23 PM
To: [EMAIL PROTECTED]
Subject: Re: XSP & LDAP -> The tags aren't interpreted


Try the following:

http://apache.org/xsp";
  xmlns:ldap="http://apache.org/cocoon/LDAP/1.0";>

instead of
http://www.apache.org/2000/LDAP";
  xmlns:xsp="http://apache.org/xsp";
  xmlns:session="http://apache.org/xsp/session/2.0"; 
  xmlns:esql="http://apache.org/cocoon/SQL/v2"; 
  xmlns:xsp-request="http://apache.org/xsp/request/2.0";


> Yes, that works. now, how can I use it? When I use it like :
> 
>   
>  src="workflowmanager/documents/{1}.xsp"/>
> 
> 
>   
>  
> and in the xsp page I write this sample page (from the apache site).
And
> then I just get text as result. The tags aren't interpreted.
> 
>   xmlns:ldap="http://www.apache.org/2000/LDAP";
>  xmlns:xsp="http://apache.org/xsp";
>  xmlns:session="http://apache.org/xsp/session/2.0"; 
>  xmlns:esql="http://apache.org/cocoon/SQL/v2"; 
>  xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> >
> 
> 
> 
>   
> ldap://ldap.innosoft.com
> (&(objectclass=pet)(cn=B*))
> ou=Pets,dc=Innosoft,dc=com
> 
> one
> true
> 10
> owner,givenname,description
> false
>   
> 
> 
> 
> 
> 
> -Original Message-
> From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, June 04, 2003 2:39 PM
> To: [EMAIL PROTECTED]
> Subject: Re: XSP & LDAP
> 
> 
> Put the jndi.jar into the $COCOON_SRC_DIR/lib/optional
> Check the $COCOON_SRC_DIR/lib/jars.xml
> for following lines:
>  
>   jndi LDAP API
>   Java API for LDAP works
>   LDAP Transformer
>   optional/jndi.jar
>   http://java.sun.com/products/jndi
>  
> 
> and rebuild the cocoon.
> 
> After rebuilding, in the
> $COCOON_SRC_DIR/build/cocoon/classes/org/apache/cocoon/transformation
> you find the LDAPTransformer.class and LDAPTransformer$LDAPQuery.class
> 
> > there aren't in the cocoon.jar (org/apache/cocoon/transformation)
> > Should I add them? Where can I find them?
> > 
> > Check the :
> > LDAPTransformer.class
> > LDAPTransformer$LDAPQuery.class
> > in the your cocoon.jar (org/apache/cocoon/transformation)
> > 
> > > I have them, into the cocoon/web-inf/lib I have these libs :
> > > jndi.jar
> > > jaas.jar
> > > ldap.jar
> > > ldapbp.jar
> > > ldapsec.jar
> > > providerutil.jar
> > > 
> > > but I doesn't work. Still have the "class not found" error
> > > 
> > > > When I declare the transformer 
> > > >  > > > src="org.apache.cocoon.transformation.LDAPTransformer"/>
> > > > in the sitemap I get the error "class not found".
> > > > Do I need some special libs? 
> > > 
> > > You must have the jndi.jar or use the J2SDK 1.4.1 family
> > > 
> > > >I have tomcat 4.1.24 & cocoon 2.0
> > > > 
> > > > Thanks
> > > > 
> > > > -Original Message-
> > > > From: Martin Holz [mailto:[EMAIL PROTECTED] 
> > > > Sent: Wednesday, June 04, 2003 11:15 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: XSP & LDAP
> > > > 
> > > > 
> > > > <[EMAIL PROTECTED]> writes:
> > > > 
> > > > > Hello,
> > > > > I would like to get some information about how to use the LDAP
> > > > > transformer (first of all, in wich library the classes are),
> > > > 
> > > > In cocoon-naming-block.jar. 
> > > > 
> > > 
> > 
> > -- 
> >  
> > Best regards,
> > Yury Mikhienko.
> > IT engineer, ZAO "Mobicom-Kavkaz"
> > 
> >
-
> > 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]
> 
> 
> -- 
>  
> Best regards,
> Yury Mikhienko.
> IT engineer, ZAO "Mobicom-Kavkaz"
> 
> -
> 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]


-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

-
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: XSP & LDAP -> The tags aren't interpreted

2003-06-05 Thread Yury Mikhienko
Try the following:

http://apache.org/xsp";
  xmlns:ldap="http://apache.org/cocoon/LDAP/1.0";>

instead of
http://www.apache.org/2000/LDAP";
  xmlns:xsp="http://apache.org/xsp";
  xmlns:session="http://apache.org/xsp/session/2.0"; 
  xmlns:esql="http://apache.org/cocoon/SQL/v2"; 
  xmlns:xsp-request="http://apache.org/xsp/request/2.0";


> Yes, that works. now, how can I use it? When I use it like :
> 
>   
>  src="workflowmanager/documents/{1}.xsp"/>
> 
> 
>   
>  
> and in the xsp page I write this sample page (from the apache site). And
> then I just get text as result. The tags aren't interpreted.
> 
>   xmlns:ldap="http://www.apache.org/2000/LDAP";
>  xmlns:xsp="http://apache.org/xsp";
>  xmlns:session="http://apache.org/xsp/session/2.0"; 
>  xmlns:esql="http://apache.org/cocoon/SQL/v2"; 
>  xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> >
> 
> 
> 
>   
> ldap://ldap.innosoft.com
> (&(objectclass=pet)(cn=B*))
> ou=Pets,dc=Innosoft,dc=com
> 
> one
> true
> 10
> owner,givenname,description
> false
>   
> 
> 
> 
> 
> 
> -Original Message-
> From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, June 04, 2003 2:39 PM
> To: [EMAIL PROTECTED]
> Subject: Re: XSP & LDAP
> 
> 
> Put the jndi.jar into the $COCOON_SRC_DIR/lib/optional
> Check the $COCOON_SRC_DIR/lib/jars.xml
> for following lines:
>  
>   jndi LDAP API
>   Java API for LDAP works
>   LDAP Transformer
>   optional/jndi.jar
>   http://java.sun.com/products/jndi
>  
> 
> and rebuild the cocoon.
> 
> After rebuilding, in the
> $COCOON_SRC_DIR/build/cocoon/classes/org/apache/cocoon/transformation
> you find the LDAPTransformer.class and LDAPTransformer$LDAPQuery.class
> 
> > there aren't in the cocoon.jar (org/apache/cocoon/transformation)
> > Should I add them? Where can I find them?
> > 
> > Check the :
> > LDAPTransformer.class
> > LDAPTransformer$LDAPQuery.class
> > in the your cocoon.jar (org/apache/cocoon/transformation)
> > 
> > > I have them, into the cocoon/web-inf/lib I have these libs :
> > > jndi.jar
> > > jaas.jar
> > > ldap.jar
> > > ldapbp.jar
> > > ldapsec.jar
> > > providerutil.jar
> > > 
> > > but I doesn't work. Still have the "class not found" error
> > > 
> > > > When I declare the transformer 
> > > >  > > > src="org.apache.cocoon.transformation.LDAPTransformer"/>
> > > > in the sitemap I get the error "class not found".
> > > > Do I need some special libs? 
> > > 
> > > You must have the jndi.jar or use the J2SDK 1.4.1 family
> > > 
> > > >I have tomcat 4.1.24 & cocoon 2.0
> > > > 
> > > > Thanks
> > > > 
> > > > -Original Message-
> > > > From: Martin Holz [mailto:[EMAIL PROTECTED] 
> > > > Sent: Wednesday, June 04, 2003 11:15 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: XSP & LDAP
> > > > 
> > > > 
> > > > <[EMAIL PROTECTED]> writes:
> > > > 
> > > > > Hello,
> > > > > I would like to get some information about how to use the LDAP
> > > > > transformer (first of all, in wich library the classes are),
> > > > 
> > > > In cocoon-naming-block.jar. 
> > > > 
> > > 
> > 
> > -- 
> >  
> > Best regards,
> > Yury Mikhienko.
> > IT engineer, ZAO "Mobicom-Kavkaz"
> > 
> > -
> > 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]
> 
> 
> -- 
>  
> Best regards,
> Yury Mikhienko.
> IT engineer, ZAO "Mobicom-Kavkaz"
> 
> -
> 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]


-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

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



RE: XSP & LDAP -> The tags aren't interpreted

2003-06-05 Thread Maxime.Gheysen
Yes, that works. now, how can I use it? When I use it like :

  



  
 
and in the xsp page I write this sample page (from the apache site). And
then I just get text as result. The tags aren't interpreted.

http://www.apache.org/2000/LDAP";
 xmlns:xsp="http://apache.org/xsp";
 xmlns:session="http://apache.org/xsp/session/2.0"; 
 xmlns:esql="http://apache.org/cocoon/SQL/v2"; 
 xmlns:xsp-request="http://apache.org/xsp/request/2.0";
>



  
ldap://ldap.innosoft.com
(&(objectclass=pet)(cn=B*))
ou=Pets,dc=Innosoft,dc=com

one
true
10
owner,givenname,description
false
  





-Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 2:39 PM
To: [EMAIL PROTECTED]
Subject: Re: XSP & LDAP


Put the jndi.jar into the $COCOON_SRC_DIR/lib/optional
Check the $COCOON_SRC_DIR/lib/jars.xml
for following lines:
 
  jndi LDAP API
  Java API for LDAP works
  LDAP Transformer
  optional/jndi.jar
  http://java.sun.com/products/jndi
 

and rebuild the cocoon.

After rebuilding, in the
$COCOON_SRC_DIR/build/cocoon/classes/org/apache/cocoon/transformation
you find the LDAPTransformer.class and LDAPTransformer$LDAPQuery.class

> there aren't in the cocoon.jar (org/apache/cocoon/transformation)
> Should I add them? Where can I find them?
> 
> Check the :
> LDAPTransformer.class
> LDAPTransformer$LDAPQuery.class
> in the your cocoon.jar (org/apache/cocoon/transformation)
> 
> > I have them, into the cocoon/web-inf/lib I have these libs :
> > jndi.jar
> > jaas.jar
> > ldap.jar
> > ldapbp.jar
> > ldapsec.jar
> > providerutil.jar
> > 
> > but I doesn't work. Still have the "class not found" error
> > 
> > > When I declare the transformer 
> > >  > > src="org.apache.cocoon.transformation.LDAPTransformer"/>
> > > in the sitemap I get the error "class not found".
> > > Do I need some special libs? 
> > 
> > You must have the jndi.jar or use the J2SDK 1.4.1 family
> > 
> > >I have tomcat 4.1.24 & cocoon 2.0
> > > 
> > > Thanks
> > > 
> > > -Original Message-
> > > From: Martin Holz [mailto:[EMAIL PROTECTED] 
> > > Sent: Wednesday, June 04, 2003 11:15 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: XSP & LDAP
> > > 
> > > 
> > > <[EMAIL PROTECTED]> writes:
> > > 
> > > > Hello,
> > > > I would like to get some information about how to use the LDAP
> > > > transformer (first of all, in wich library the classes are),
> > > 
> > > In cocoon-naming-block.jar. 
> > > 
> > 
> 
> -- 
>  
> Best regards,
> Yury Mikhienko.
> IT engineer, ZAO "Mobicom-Kavkaz"
> 
> -
> 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]


-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

-
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: XSP & LDAP

2003-06-04 Thread Yury Mikhienko
Put the jndi.jar into the $COCOON_SRC_DIR/lib/optional
Check the $COCOON_SRC_DIR/lib/jars.xml
for following lines:
 
  jndi LDAP API
  Java API for LDAP works
  LDAP Transformer
  optional/jndi.jar
  http://java.sun.com/products/jndi
 

and rebuild the cocoon.

After rebuilding, in the 
$COCOON_SRC_DIR/build/cocoon/classes/org/apache/cocoon/transformation
you find the LDAPTransformer.class and LDAPTransformer$LDAPQuery.class

> there aren't in the cocoon.jar (org/apache/cocoon/transformation)
> Should I add them? Where can I find them?
> 
> Check the :
> LDAPTransformer.class
> LDAPTransformer$LDAPQuery.class
> in the your cocoon.jar (org/apache/cocoon/transformation)
> 
> > I have them, into the cocoon/web-inf/lib I have these libs :
> > jndi.jar
> > jaas.jar
> > ldap.jar
> > ldapbp.jar
> > ldapsec.jar
> > providerutil.jar
> > 
> > but I doesn't work. Still have the "class not found" error
> > 
> > > When I declare the transformer 
> > >  > > src="org.apache.cocoon.transformation.LDAPTransformer"/>
> > > in the sitemap I get the error "class not found".
> > > Do I need some special libs? 
> > 
> > You must have the jndi.jar or use the J2SDK 1.4.1 family
> > 
> > >I have tomcat 4.1.24 & cocoon 2.0
> > > 
> > > Thanks
> > > 
> > > -Original Message-
> > > From: Martin Holz [mailto:[EMAIL PROTECTED] 
> > > Sent: Wednesday, June 04, 2003 11:15 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: XSP & LDAP
> > > 
> > > 
> > > <[EMAIL PROTECTED]> writes:
> > > 
> > > > Hello,
> > > > I would like to get some information about how to use the LDAP
> > > > transformer (first of all, in wich library the classes are),
> > > 
> > > In cocoon-naming-block.jar. 
> > > 
> > 
> 
> -- 
>  
> Best regards,
> Yury Mikhienko.
> IT engineer, ZAO "Mobicom-Kavkaz"
> 
> -
> 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]


-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

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



RE: XSP & LDAP

2003-06-04 Thread Maxime.Gheysen
there aren't in the cocoon.jar (org/apache/cocoon/transformation)
Should I add them? Where can I find them?

Thanks!

-Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 2:21 PM
To: [EMAIL PROTECTED]
Subject: Re: XSP & LDAP


Check the :
LDAPTransformer.class
LDAPTransformer$LDAPQuery.class
in the your cocoon.jar (org/apache/cocoon/transformation)

> I have them, into the cocoon/web-inf/lib I have these libs :
> jndi.jar
> jaas.jar
> ldap.jar
> ldapbp.jar
> ldapsec.jar
> providerutil.jar
> 
> but I doesn't work. Still have the "class not found" error
> 
> > When I declare the transformer 
> >  > src="org.apache.cocoon.transformation.LDAPTransformer"/>
> > in the sitemap I get the error "class not found".
> > Do I need some special libs? 
> 
> You must have the jndi.jar or use the J2SDK 1.4.1 family
> 
> >I have tomcat 4.1.24 & cocoon 2.0
> > 
> > Thanks
> > 
> > -Original Message-
> > From: Martin Holz [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, June 04, 2003 11:15 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: XSP & LDAP
> > 
> > 
> > <[EMAIL PROTECTED]> writes:
> > 
> > > Hello,
> > > I would like to get some information about how to use the LDAP
> > > transformer (first of all, in wich library the classes are),
> > 
> > In cocoon-naming-block.jar. 
> > 
> 

-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

-
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: XSP & LDAP

2003-06-04 Thread Yury Mikhienko
Check the :
LDAPTransformer.class
LDAPTransformer$LDAPQuery.class
in the your cocoon.jar (org/apache/cocoon/transformation)

> I have them, into the cocoon/web-inf/lib I have these libs :
> jndi.jar
> jaas.jar
> ldap.jar
> ldapbp.jar
> ldapsec.jar
> providerutil.jar
> 
> but I doesn't work. Still have the "class not found" error
> 
> > When I declare the transformer 
> >  > src="org.apache.cocoon.transformation.LDAPTransformer"/>
> > in the sitemap I get the error "class not found".
> > Do I need some special libs? 
> 
> You must have the jndi.jar or use the J2SDK 1.4.1 family
> 
> >I have tomcat 4.1.24 & cocoon 2.0
> > 
> > Thanks
> > 
> > -Original Message-
> > From: Martin Holz [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, June 04, 2003 11:15 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: XSP & LDAP
> > 
> > 
> > <[EMAIL PROTECTED]> writes:
> > 
> > > Hello,
> > > I would like to get some information about how to use the LDAP
> > > transformer (first of all, in wich library the classes are),
> > 
> > In cocoon-naming-block.jar. 
> > 
> 

-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

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



RE: XSP & LDAP

2003-06-04 Thread Maxime.Gheysen
I have them, into the cocoon/web-inf/lib I have these libs :
jndi.jar
jaas.jar
ldap.jar
ldapbp.jar
ldapsec.jar
providerutil.jar

but I doesn't work. Still have the "class not found" error

-Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 2:13 PM
To: [EMAIL PROTECTED]
Subject: Re: XSP & LDAP


On Wed, 4 Jun 2003 13:47:23 +0200
<[EMAIL PROTECTED]> wrote:

> When I declare the transformer 
>  src="org.apache.cocoon.transformation.LDAPTransformer"/>
> in the sitemap I get the error "class not found".
> Do I need some special libs? 

You must have the jndi.jar or use the J2SDK 1.4.1 family

>I have tomcat 4.1.24 & cocoon 2.0
> 
> Thanks
> 
> -Original Message-
> From: Martin Holz [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, June 04, 2003 11:15 AM
> To: [EMAIL PROTECTED]
> Subject: Re: XSP & LDAP
> 
> 
> <[EMAIL PROTECTED]> writes:
> 
> > Hello,
> > I would like to get some information about how to use the LDAP
> > transformer (first of all, in wich library the classes are),
> 
> In cocoon-naming-block.jar. 
> 

-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

-
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: XSP & LDAP

2003-06-04 Thread Yury Mikhienko
On Wed, 4 Jun 2003 13:47:23 +0200
<[EMAIL PROTECTED]> wrote:

> When I declare the transformer 
>  src="org.apache.cocoon.transformation.LDAPTransformer"/>
> in the sitemap I get the error "class not found".
> Do I need some special libs? 

You must have the jndi.jar or use the J2SDK 1.4.1 family

>I have tomcat 4.1.24 & cocoon 2.0
> 
> Thanks
> 
> -Original Message-
> From: Martin Holz [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, June 04, 2003 11:15 AM
> To: [EMAIL PROTECTED]
> Subject: Re: XSP & LDAP
> 
> 
> <[EMAIL PROTECTED]> writes:
> 
> > Hello,
> > I would like to get some information about how to use the LDAP
> > transformer (first of all, in wich library the classes are),
> 
> In cocoon-naming-block.jar. 
> 

-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

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



RE: XSP & LDAP

2003-06-04 Thread Maxime.Gheysen
When I declare the transformer 

in the sitemap I get the error "class not found".
Do I need some special libs? I have tomcat 4.1.24 & cocoon 2.0

Thanks

-Original Message-
From: Martin Holz [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 11:15 AM
To: [EMAIL PROTECTED]
Subject: Re: XSP & LDAP


<[EMAIL PROTECTED]> writes:

> Hello,
> I would like to get some information about how to use the LDAP
> transformer (first of all, in wich library the classes are),

In cocoon-naming-block.jar. 


-
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: XSP & LDAP

2003-06-04 Thread Martin Holz
<[EMAIL PROTECTED]> writes:

> Hello,
> I would like to get some information about how to use the LDAP
> transformer (first of all, in wich library the classes are),

In cocoon-naming-block.jar. 


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



Re: XSP & LDAP

2003-06-04 Thread Yury Mikhienko
On Wed, 4 Jun 2003 10:30:11 +0200
<[EMAIL PROTECTED]> wrote:

> Ok. But what am I suppose to do with the *.patch? And where do I
> "declare" the LDAP Transformer? I saw on a sample that I had to add this
> line into the sitemap -> map:transformers 
> 
>  src="com.wika.cocoon.transformation.LDAPTransformer"/>
> 

The right declaration is:


> 
> > Hello,
> > I would like to get some information about how to use the LDAP
> > transformer (first of all, in wich library the classes are), and how
> to
> > make a simple XSP page with an authentification (from Windows Active
> > Directory)
> > Thanks for any help!
> > 
> 
> Try use new LDAPTransformer 
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20033
> or my latest version (add attribute future addided) in attachment
> 
> some using samples:
> 
> 
> 
>  
>  
> com.sun.jndi.ldap.LdapCtxFactory
>   ldap://ldap.host
>   389
>   OBJECTS_SCOPE
>   cn=Directory Manager
>   xyz
>   ou=people,o=company
>   urls
>   title
>   mobile
>   cn
>   sn
>   zone
>   sleep
>   trace
>   admin
>   true
>   (&(uid=test))
>  
> 


-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

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



RE: Re: XSP & LDAP

2003-06-04 Thread Maxime.Gheysen
Ok. But what am I suppose to do with the *.patch? And where do I
"declare" the LDAP Transformer? I saw on a sample that I had to add this
line into the sitemap -> map:transformers 



But it returns me an error : 
Original exception : java.lang.ClassNotFoundException:
com.wika.cocoon.transformation.LDAPTransformer

All I want to do is a login page from a portal (wich use an XML file for
identification). I want to change the method from XML authentification
to LDAP (active directory) authentification.



-Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 9:52 AM
To: [EMAIL PROTECTED]
Subject: Fw: Re: XSP & LDAP


> Hello,
> I would like to get some information about how to use the LDAP
> transformer (first of all, in wich library the classes are), and how
to
> make a simple XSP page with an authentification (from Windows Active
> Directory)
> Thanks for any help!
> 

Try use new LDAPTransformer 
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20033
or my latest version (add attribute future addided) in attachment

some using samples:



 
 
com.sun.jndi.ldap.LdapCtxFactory
  ldap://ldap.host
  389
  OBJECTS_SCOPE
  cn=Directory Manager
  xyz
  ou=people,o=company
  urls
  title
  mobile
  cn
  sn
  zone
  sleep
  trace
  admin
  true
  (&(uid=test))
 

-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

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



Fw: Re: XSP & LDAP

2003-06-04 Thread Yury Mikhienko
> Hello,
> I would like to get some information about how to use the LDAP
> transformer (first of all, in wich library the classes are), and how to
> make a simple XSP page with an authentification (from Windows Active
> Directory)
> Thanks for any help!
> 

Try use new LDAPTransformer 
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20033
or my latest version (add attribute future addided) in attachment

some using samples:



 
  com.sun.jndi.ldap.LdapCtxFactory
  ldap://ldap.host
  389
  OBJECTS_SCOPE
  cn=Directory Manager
  xyz
  ou=people,o=company
  urls
  title
  mobile
  cn
  sn
  zone
  sleep
  trace
  admin
  true
  (&(uid=test))
 

-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"


LDAPTransformer.patch
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

XSP & LDAP

2003-06-04 Thread Maxime.Gheysen
Hello,
I would like to get some information about how to use the LDAP
transformer (first of all, in wich library the classes are), and how to
make a simple XSP page with an authentification (from Windows Active
Directory)
Thanks for any help!

Maxime

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



Authentication Framework using LDAP (thru xsp)

2003-03-03 Thread Rajasekhar Atchutuni
Hi,

I am trying to use the sunrise actions for my authentication but unable to 
pass parameters to my xsp.
My problems:
1. My authentication fails even though I supply the correct username and 
password.  The fail.xsp is being generated.
2. The reason is the parameters.getParameter is not fetching any values - I 
believe they are getting lost. If I print the parameters the values are 
null.
3. I have read in the list that even though you can't pass sitemap 
parameters to a file generator (xsp) you can use request-parameters.
4. I was wondering if I moved the authentication resource to the subsitemap, 
would the parameters get preserved?  But I don't know how to refer to a 
subsitemap pipeline from the main sitemap.
 - what should this be?

This is my cocoon sitemap:

   

   http://apache.org/cocoon/sitemap/1.0"; 
xmlns:sunshine="http://sunshine.sundn.de/sunshine/1.0";>
   
   
   
 

*





 
---
This is my app sitemap (subsitemap):
  
 
   
   
   
   
 
 
 
 
 
--
login.xsp




   
  
  user
  
  
  
  

... resource specific data for the user

  
   

---



Any help really appreciated.
Thanks
Raj
_
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


RE: ldap transformer with add, delete, update

2003-02-13 Thread Matthew Langham
Ingolf

> does anybody know if there is an ldap transformer which is able to add,
> delete, and update the ldap directory?
>
We have one as part of some commercial Cocoon add-on stuff we have. Contact
me if you would be interested in more details.

Matthew

--
Open Source Group   Cocoon { Consulting, Training, Projects }
=
Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
-
Cocoon book:
  http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20
Weblogs:
  http://radio.weblogs.com/0103021/
  http://www.oreillynet.com/weblogs/author/1014
=



-
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]>




ldap transformer with add, delete, update

2003-02-13 Thread Ingolf Koch
Hi,

does anybody know if there is an ldap transformer which is able to add,
delete, and update the ldap directory?

Thanks,

Ingolf

-
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

2002-12-06 Thread Christian Joelly
Hi Brett!

then you are on the lucky side ;-) I have a LDAP directory and can't
switch to a database without migrating the whole infrastructure. Its a
pain to change the cocoon version every few months when you realize that
things are not working properly, so im thinking of using another
framework for our project. (which is far away from a simple hello world
website... =;-))

Chris

On Fri, Dec 06, 2002 at 12:17:47AM -0800, Brett McCormick wrote:
> I haven't gotten LDAPTransformer to work, and I haven't found any good
> docs on it.  I decided to use an SQL db for now, and switch to LDAP
> later.

-- 
KNAPP Logistics Automation  http://www.knapp.com
Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394
Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz

-- Support your government, give Echelon/Carnivore something to parse --
AMTAS ATMD ATSC Abdullah Allah  communist CIA DD2-N DISA DoD GRU Gregori
Irak  Iran KGB  Kurdish LSD  NATO NSTD  Natasha  ORD RTEM  Russia  STRAP
Saddam Hussein  TSP  Yugoslavia   attack  bank  bomb  classfield  cocain
compromise defense  democracy  destroy  destruct  detonator  directorate
elections enforce extasy force  foreign embassy government grass hashish
heroin   illegal  information   international  military systems  missile
million dollars   nuclear  policital   pot  power   presidental  project
restricted data  revolution  rule the world sensitive  smuggle spy steal
system  takeover  terrorist  top-secret  warmod  warrior-T  weapon  weed





msg21496/pgp0.pgp
Description: PGP signature


Re: ldap

2002-12-06 Thread Brett McCormick

I haven't gotten LDAPTransformer to work, and I haven't found any good
docs on it.  I decided to use an SQL db for now, and switch to LDAP
later.

On Friday, 6 December 2002, at 09:16:09, Christian Joelly wrote:

> 
> Hi Tim!
> 
> thanks for your response. I'll switch to LDAPTransformer.
> 
> Chris
> 
> On Fri, Dec 06, 2002 at 09:27:13AM +1100, Bentley, Tim wrote:
> > 
> > Unfortunately I am no longer using Cocoon, so I haven't tested eldap with
> > the latest versions and am not in a position to provide much help :-(
> > However, there is no reason that I'm aware of why it shouldn't work.  At a
> > guess from the logs you've posted there's something more fundamental wrong
> > with your XSP page - 'illegal start of expression' sounds like a problem
> > with the XML syntax.  
> 
> -- 
> KNAPP Logistics Automation  http://www.knapp.com
> Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394
> Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz
> 
> -- Support your government, give Echelon/Carnivore something to parse --
> AMTAS ATMD ATSC Abdullah Allah  communist CIA DD2-N DISA DoD GRU Gregori
> Irak  Iran KGB  Kurdish LSD  NATO NSTD  Natasha  ORD RTEM  Russia  STRAP
> Saddam Hussein  TSP  Yugoslavia   attack  bank  bomb  classfield  cocain
> compromise defense  democracy  destroy  destruct  detonator  directorate
> elections enforce extasy force  foreign embassy government grass hashish
> heroin   illegal  information   international  military systems  missile
> million dollars   nuclear  policital   pot  power   presidental  project
> restricted data  revolution  rule the world sensitive  smuggle spy steal
> system  takeover  terrorist  top-secret  warmod  warrior-T  weapon  weed
> 
> 

-
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

2002-12-06 Thread Christian Joelly
Hi Tim!

thanks for your response. I'll switch to LDAPTransformer.

Chris

On Fri, Dec 06, 2002 at 09:27:13AM +1100, Bentley, Tim wrote:
> 
> Unfortunately I am no longer using Cocoon, so I haven't tested eldap with
> the latest versions and am not in a position to provide much help :-(
> However, there is no reason that I'm aware of why it shouldn't work.  At a
> guess from the logs you've posted there's something more fundamental wrong
> with your XSP page - 'illegal start of expression' sounds like a problem
> with the XML syntax.  

-- 
KNAPP Logistics Automation  http://www.knapp.com
Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394
Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz

-- Support your government, give Echelon/Carnivore something to parse --
AMTAS ATMD ATSC Abdullah Allah  communist CIA DD2-N DISA DoD GRU Gregori
Irak  Iran KGB  Kurdish LSD  NATO NSTD  Natasha  ORD RTEM  Russia  STRAP
Saddam Hussein  TSP  Yugoslavia   attack  bank  bomb  classfield  cocain
compromise defense  democracy  destroy  destruct  detonator  directorate
elections enforce extasy force  foreign embassy government grass hashish
heroin   illegal  information   international  military systems  missile
million dollars   nuclear  policital   pot  power   presidental  project
restricted data  revolution  rule the world sensitive  smuggle spy steal
system  takeover  terrorist  top-secret  warmod  warrior-T  weapon  weed





msg21494/pgp0.pgp
Description: PGP signature


RE: ldap

2002-12-05 Thread Bentley, Tim
Christian -

Unfortunately I am no longer using Cocoon, so I haven't tested eldap with
the latest versions and am not in a position to provide much help :-(
However, there is no reason that I'm aware of why it shouldn't work.  At a
guess from the logs you've posted there's something more fundamental wrong
with your XSP page - 'illegal start of expression' sounds like a problem
with the XML syntax.  

Your best bet is probably to seek help on cocoon-users.  Sorry I can't be of
more help!


Regards,


Tim Bentley

> -Original Message-
> From: Christian Joelly [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, 6 December 2002 5:04 AM
> To: [EMAIL PROTECTED]
> Cc: Bentley, Tim
> Subject: Re: ldap
> 
> 
> Hello Tim!
> 
> i want to use your eldap logicsheet with cocoon 2.0.3 but get 
> some errors which doesnt occur with cocoon 2.0.1:
> 
> org.apache.cocoon.ProcessingException: Language Exception: 
> org.apache.cocoon.components.language.LanguageException: 
> Error compiling logincheck_xsp: Line 995, column 73:  illegal 
> start of expression Line 1001, column 62:  illegal start of 
> expression Line 1003, column 77:  illegal start of expression 
> Line 1004, column 80:  illegal start of expression Line 1005, 
> column 75:  illegal start of expression Line 1007, column 71: 
>  illegal start of expression Line 1058, column 113:  illegal 
> start of expression Line 1074, column 148:  illegal start of 
> expression Line 995, column 56:  method _eldap_getString() 
> not found in class org.apache.cocoon.www.login.xsp.logincheck_xsp
> Line 1003, column 61:  method _eldap_getScope() not found in 
> class org.apache.cocoon.www.login.xsp.logincheck_xsp
> Line 1004, column 62:  method _eldap_getBoolean() not found 
> in class org.apache.cocoon.www.login.xsp.logincheck_xsp
> Line 1005, column 60:  method _eldap_getLong() not found in 
> class org.apache.cocoon.www.login.xsp.logincheck_xsp
> Line 1006, column 66:  method _eldap_getAttrs() not found in 
> class org.apache.cocoon.www.login.xsp.logincheck_xsp
> Line 1007, column 57:  method _eldap_getInt() not found in 
> class org.apache.cocoon.www.login.xsp.logincheck_xsp
> Line 1072, column 130:  method _eldap_GetNameFromDN() not 
> found in class org.apache.cocoon.www.login.xsp.logincheck_xsp
> Line 1074, column 130:  method _eldap_getBoolean() not found 
> in class org.apache.cocoon.www.login.xsp.logincheck_xsp
> Line 0, column 0: 
> 16 errors
> 
>   at 
> org.apache.cocoon.components.language.generator.ProgramGenerat
> orImpl.createResource(ProgramGeneratorImpl.java:340)
>   at 
> org.apache.cocoon.components.language.generator.ProgramGenerat
> orImpl.load(ProgramGeneratorImpl.java:292)
>   at 
> org.apache.cocoon.generation.ServerPagesGenerator.setup(Server
> PagesGenerator.java:198)
>   at 
> org.apache.cocoon.components.pipeline.AbstractEventPipeline.se
> tupPipeline(AbstractEventPipeline.java:202)
>   at 
> org.apache.cocoon.components.pipeline.CachingEventPipeline.set
> up(CachingEventPipeline.java:278)
>   at 
> org.apache.cocoon.components.pipeline.CachingEventPipeline.gen
> erateKey(CachingEventPipeline.java:141)
>   at 
> org.apache.cocoon.components.pipeline.CachingStreamPipeline.pr
> ocess(CachingStreamPipeline.java:317)
>   at 
> org.apache.cocoon.www.login.sitemap_xmap.matchN1002D(/usr/loca
> l/JBoss-2.4.4_Tomcat-3.2.3/tomcat/work/localhost_8080%2Fknapp/
> cocoon-files/org/apache/cocoon/www/login/sitemap_xmap.java:507)
>   at 
> org.apache.cocoon.www.login.sitemap_xmap.process(/usr/local/JB
> oss-2.4.4_Tomcat-3.2.3/tomcat/work/localhost_8080%2Fknapp/coco
> on-files/org/apache/cocoon/www/login/sitemap_xmap.java:382)
>   at 
> org.apache.cocoon.www.login.sitemap_xmap.process(/usr/local/JB
> oss-2.4.4_Tomcat-3.2.3/tomcat/work/localhost_8080%2Fknapp/coco
> on-files/org/apache/cocoon/www/login/sitemap_xmap.java:321)
>   at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
>   at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
>   at 
> org.apache.cocoon.www.sitemap_xmap.matchN1030F(/usr/local/JBos
> s-2.4.4_Tomcat-3.2.3/tomcat/work/localhost_8080%2Fknapp/cocoon
> -files/org/apache/cocoon/www/sitemap_xmap.java:2369)
>   at 
> org.apache.cocoon.www.sitemap_xmap.process(/usr/local/JBoss-2.
> 4.4_Tomcat-3.2.3/tomcat/work/localhost_8080%2Fknapp/cocoon-fil
es/org/apache/cocoon/www/sitemap_xmap.java:2076)
>   at 
> org.apache.cocoon.www.sitemap_xmap.process(/usr/local/JBoss-2.
> 4.4_Tomcat-3.2.3/tomcat/work/localhost_8080%2Fknapp/cocoon-fil
es/org/apache/cocoon/www/sitemap_xmap.java:1994)
>   at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
>   at org.ap

Re: ldap

2002-12-05 Thread Christian Joelly
Hello Tim!

i want to use your eldap logicsheet with cocoon 2.0.3 but get some
errors which doesnt occur with cocoon 2.0.1:

org.apache.cocoon.ProcessingException: Language Exception: 
org.apache.cocoon.components.language.LanguageException: Error compiling 
logincheck_xsp:
Line 995, column 73:  illegal start of expression
Line 1001, column 62:  illegal start of expression
Line 1003, column 77:  illegal start of expression
Line 1004, column 80:  illegal start of expression
Line 1005, column 75:  illegal start of expression
Line 1007, column 71:  illegal start of expression
Line 1058, column 113:  illegal start of expression
Line 1074, column 148:  illegal start of expression
Line 995, column 56:  method _eldap_getString() not found in class 
org.apache.cocoon.www.login.xsp.logincheck_xsp
Line 1003, column 61:  method _eldap_getScope() not found in class 
org.apache.cocoon.www.login.xsp.logincheck_xsp
Line 1004, column 62:  method _eldap_getBoolean() not found in class 
org.apache.cocoon.www.login.xsp.logincheck_xsp
Line 1005, column 60:  method _eldap_getLong() not found in class 
org.apache.cocoon.www.login.xsp.logincheck_xsp
Line 1006, column 66:  method _eldap_getAttrs() not found in class 
org.apache.cocoon.www.login.xsp.logincheck_xsp
Line 1007, column 57:  method _eldap_getInt() not found in class 
org.apache.cocoon.www.login.xsp.logincheck_xsp
Line 1072, column 130:  method _eldap_GetNameFromDN() not found in class 
org.apache.cocoon.www.login.xsp.logincheck_xsp
Line 1074, column 130:  method _eldap_getBoolean() not found in class 
org.apache.cocoon.www.login.xsp.logincheck_xsp
Line 0, column 0: 
16 errors

at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:340)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:292)
at 
org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:198)
at 
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:202)
at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:278)
at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:141)
at 
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:317)
at 
org.apache.cocoon.www.login.sitemap_xmap.matchN1002D(/usr/local/JBoss-2.4.4_Tomcat-3.2.3/tomcat/work/localhost_8080%2Fknapp/cocoon-files/org/apache/cocoon/www/login/sitemap_xmap.java:507)
at 
org.apache.cocoon.www.login.sitemap_xmap.process(/usr/local/JBoss-2.4.4_Tomcat-3.2.3/tomcat/work/localhost_8080%2Fknapp/cocoon-files/org/apache/cocoon/www/login/sitemap_xmap.java:382)
at 
org.apache.cocoon.www.login.sitemap_xmap.process(/usr/local/JBoss-2.4.4_Tomcat-3.2.3/tomcat/work/localhost_8080%2Fknapp/cocoon-files/org/apache/cocoon/www/login/sitemap_xmap.java:321)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
at 
org.apache.cocoon.www.sitemap_xmap.matchN1030F(/usr/local/JBoss-2.4.4_Tomcat-3.2.3/tomcat/work/localhost_8080%2Fknapp/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:2369)
at 
org.apache.cocoon.www.sitemap_xmap.process(/usr/local/JBoss-2.4.4_Tomcat-3.2.3/tomcat/work/localhost_8080%2Fknapp/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:2076)
at 
org.apache.cocoon.www.sitemap_xmap.process(/usr/local/JBoss-2.4.4_Tomcat-3.2.3/tomcat/work/localhost_8080%2Fknapp/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:1994)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at 
org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection(Ajp13ConnectionHandler.java:160)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
org.apache.cocoon.components.language.LanguageException: Error compiling loginc

LDAP, JMS, SOAP

2002-11-28 Thread Rano, Didier


Hello,

I'm a new cocoon user, and I'm not sure that cocoon could be solve my problem.

* A user sends a request in using SOAP. With a web services, Cocoon executes a
pipeline. At the end of the pipeline, the user receives a SOAP response

* In the pipeline, I need to get data from a LDAP server

* In the pipeline, I need to send data with JMS, and wait response from JMS

* In the pipeline, I need to execute several sub-pipeline in parallel, and wait
response from all sub-pipelines.

Thank you for your answer

Didier Rano
Serv'N Data

-
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]>




LDAP Transformer

2002-11-25 Thread Olivier GUCKERT
Hello here

I want to use the LDAP Transformer to make an authentification by
sending ID an passwd to an LDAP.

Which tags should i use and how ?



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]>




RE: LDAP

2002-11-18 Thread Martin Geissler
Hello, as far as i know is the LDAP Tranformer not included in Cocoon
2.0.3
Perhaps use the sources at the Code Repository.

Regards Martin


>>> [EMAIL PROTECTED] Freitag, 15. November 2002 14:52:53
>>>
Hi!.

Can anyone give me any example of use LDAP Transformer on Cocoon
2.0.3,
because I can't find it in documentation.

Witek



-
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]>




LDAP

2002-11-15 Thread Witold Treliński
Hi!.

Can anyone give me any example of use LDAP Transformer on Cocoon 2.0.3,
because I can't find it in documentation.

Witek



-
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 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. <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 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. <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. <http://xml.apache.org/cocoon/faq/index.html>

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]>




[C2] LDAP Taglib?

2002-10-30 Thread Christian Joelly
Hello!

im searching on how to use LDAP queries with Cocoon 2 and found several
informations in the docs and the net.
Is anybody using the following taglib with Cocoon 2?
http://opensource.socialchange.net.au/ldaptaglib/docs/
For me it seems that it only can used with Cocoon 1.8.

Are there any other possibilities to use LDAP Queries within XSP Pages?

thx, Chris

-- 
KNAPP Logistics Automation  http://www.knapp.com
Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394
Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz

-- Support your government, give Echelon/Carnivore something to parse --
AMTAS ATMD ATSC Abdullah Allah  communist CIA DD2-N DISA DoD GRU Gregori
Irak  Iran KGB  Kurdish LSD  NATO NSTD  Natasha  ORD RTEM  Russia  STRAP
Saddam Hussein  TSP  Yugoslavia   attack  bank  bomb  classfield  cocain
compromise defense  democracy  destroy  destruct  detonator  directorate
elections enforce extasy force  foreign embassy government grass hashish
heroin   illegal  information   international  military systems  missile
million dollars   nuclear  policital   pot  power   presidental  project
restricted data  revolution  rule the world sensitive  smuggle spy steal
system  takeover  terrorist  top-secret  warmod  warrior-T  weapon  weed





msg19889/pgp0.pgp
Description: PGP signature


Re: User authentication with LDAP

2002-07-08 Thread William Moore

I looked at this some more, and then went to have a beer. There was an 
error in the sequence of by  tags, but the error message did not 
say that.

Next time I'll check that the error message is telling the whole truth.

William


On Monday, July 8, 2002, at 03:00  pm, William Moore wrote:

> Here's what I have in the Cocoon web-xml file (inside the  
> element):
>
>> 
>>   
>> Infibail Application
>> /infibail/*
>>   
>>   
>> Administrator
>>   
>> 
>>
>> 
>>   FORM
>>   Infibail
>>   
>> /login.html
>> /error.html
>>   
>> 
>
> and here is what Tomcat says:
>
>> PARSE error at line 256 column 28
>> org.xml.sax.SAXParseException: The content of element type 
>> "web-resource-collection" must match "(web-resource-
>> name,description?,url-pattern*,http-method*)".
>
> If I put the same thing inside the Tomcat examples web.xml file, it works 
> fine. Do you have any idea what I should change to make it work? Perhaps 
> you could send me some samples of how you have implemented this so I can 
> discover where I am going wrong.
>
> Thanks
>
> William
>
> On Monday, July 8, 2002, at 02:09  pm, Nicola Ken Barozzi wrote:
>
>>
>> William Moore wrote:
>>> Last year I used Cocoon on a project for a client. User authentication 
>>> was achieved using the tools demonstrated in the http://localhost:8080/
>>> cocoon/
>>> protected/ sample.
>>> Now the client has decided he wants to use an LDAP Directory for 
>>> authentication. I tried using Tomcat's Realm implementation with Cocoon,
>>>  but I could not get that to work (if I put a  in 
>>> Cocoon's web.xml, Tomcat says it's incorrectly formed).
>>
>> It works here.
>> Maybe you didn't use the correct order as per web.xml DTD spec.
>>
>>> Please can someone suggest an effective/efficient way to achieve to 
>>> user-authentication with LDAP in Cocoon.
>>
>> -- Nicola Ken Barozzi   [EMAIL PROTECTED]
>> - verba volant, scripta manent -
>>(discussions get forgotten, just code remains)
>> -
>>
>>
>> -
>> 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]>
>


-
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: User authentication with LDAP

2002-07-08 Thread William Moore

Here's what I have in the Cocoon web-xml file (inside the  
element):

> 
>   
> Infibail Application
> /infibail/*
>   
>   
> Administrator
>   
> 
>
> 
>   FORM
>   Infibail
>   
> /login.html
> /error.html
>   
> 

and here is what Tomcat says:

> PARSE error at line 256 column 28
> org.xml.sax.SAXParseException: The content of element type 
> "web-resource-collection" must match "(web-resource-
> name,description?,url-pattern*,http-method*)".

If I put the same thing inside the Tomcat examples web.xml file, it works 
fine. Do you have any idea what I should change to make it work? Perhaps 
you could send me some samples of how you have implemented this so I can 
discover where I am going wrong.

Thanks

William

On Monday, July 8, 2002, at 02:09  pm, Nicola Ken Barozzi wrote:

>
> William Moore wrote:
>> Last year I used Cocoon on a project for a client. User authentication 
>> was achieved using the tools demonstrated in the 
>> http://localhost:8080/cocoon/
>> protected/ sample.
>> Now the client has decided he wants to use an LDAP Directory for 
>> authentication. I tried using Tomcat's Realm implementation with Cocoon,
>>  but I could not get that to work (if I put a  in 
>> Cocoon's web.xml, Tomcat says it's incorrectly formed).
>
> It works here.
> Maybe you didn't use the correct order as per web.xml DTD spec.
>
>> Please can someone suggest an effective/efficient way to achieve to 
>> user-authentication with LDAP in Cocoon.
>
> -- Nicola Ken Barozzi   [EMAIL PROTECTED]
> - verba volant, scripta manent -
>(discussions get forgotten, just code remains)
> -
>
>
> -
> 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: User authentication with LDAP

2002-07-08 Thread Nicola Ken Barozzi


William Moore wrote:
> Last year I used Cocoon on a project for a client. User authentication 
> was achieved using the tools demonstrated in the 
> http://localhost:8080/cocoon/
> protected/ sample.
> 
> Now the client has decided he wants to use an LDAP Directory for 
> authentication. I tried using Tomcat's Realm implementation with Cocoon, 
> but I could not get that to work (if I put a  in 
> Cocoon's web.xml, Tomcat says it's incorrectly formed).

It works here.
Maybe you didn't use the correct order as per web.xml DTD spec.

> Please can someone suggest an effective/efficient way to achieve to 
> user-authentication with LDAP in Cocoon.

-- 
Nicola Ken Barozzi   [EMAIL PROTECTED]
 - verba volant, scripta manent -
(discussions get forgotten, just code remains)
-


-
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]>




User authentication with LDAP

2002-07-08 Thread William Moore

Last year I used Cocoon on a project for a client. User authentication was 
achieved using the tools demonstrated in the http://localhost:8080/cocoon/
protected/ sample.

Now the client has decided he wants to use an LDAP Directory for 
authentication. I tried using Tomcat's Realm implementation with Cocoon, 
but I could not get that to work (if I put a  in 
Cocoon's web.xml, Tomcat says it's incorrectly formed).

Please can someone suggest an effective/efficient way to achieve to 
user-authentication with LDAP in Cocoon.

Thanks

William


-
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]>




LDAP transformer after XSLT transformer -PLEASE HELP

2002-06-06 Thread Paul Terray

Hi,

I am trying to add a parameter to a LDAP request, by transforming it with a 
XSLT stylesheet just before.

However, even if my XSLT stylesheet just copy the request without changing 
it, there is an error in the LDAP transformer :
"Could not read resource file:/C:/Program Files/Apache Tomcat 
4.0/webapps/cocoon-dev/ldap/requete_ldap.xml"

The XML after transformation looks great (if I suppress the LDAP transform).

My sitemap contains the rules :
-

 
 
 
 
 
 
 



and the "transforms/param-ldap.xsl" is :
--
http://www.w3.org/1999/xsl/transform";>

 

 
 
 
 
 
 

 
  
 


----

To be complete, the ldap-requete.xml is :
--

http://apache.org/cocoon/LDAP/1.0";>

mail
displayName
ldap://4d-leader

  o=4Dconcept,c=FR
  cn=**


-


--
Paul TERRAY - Ingénieur Systèmes Documentaires
4Dconcept
Centre d'affaires - 22, rue Etienne de Jouy
78353 Jouy en Josas CEDEX
Tel. 01 34 58 70 70 - Fax. 01 39 46 06 90
email : [EMAIL PROTECTED] 


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

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




LDAP transformer and utf8 encoding

2002-06-05 Thread Paul Terray

Hello,

A message already passed on that subject on the list, but there was no 
answer, so I try again:
It seems that the LDAP transformer give back utf8 encoding (which is 
normal: this is the standard encoding for LDAP), but the subsequent 
transformers and serializers take it as iso-8859-1.

Is there any way that the transformer could "mark" the output as "utf-8" ?

Thanks

--
Paul TERRAY - Documents Management Systems Engineer
email : [EMAIL PROTECTED] 


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

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




Re: Problem with special german characters and LDAP -Transformer

2002-04-23 Thread Berin Loritsch

[EMAIL PROTECTED] wrote:
> Hello,
> 
> I have still Problems with the special german characters and the
> LDAP-Transformer.
> When I write
>  ="org.apache.cocoon.serialization.HTMLSerializer">
> -//W3C//DTD HTML 4.01 Transitional//EN
> ISO-8859-1
> yes
> 
> nothing happens.
> 
> When I make in the xsp-page  between  a ldap-query, the
> characters return fine. Why return the LDAP-Transformer false characters?
> 
> Thank you in advance
> 
> Katrin Seiffert
> 
> 

:/

Unfortunately I can't hope to tell you.  I looked at the LDAPTransformer
code, and it is a royal mess.  It is difficult to figure out what is
going on, and where the real pulling of the information is done.


-- 

"They that give up essential liberty to obtain a little temporary safety
  deserve neither liberty nor safety."
 - Benjamin Franklin


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

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




Re: Problem with special german characters and LDAP -Transformer

2002-04-23 Thread Katrin_Seiffert


Hello,

I have still Problems with the special german characters and the
LDAP-Transformer.
When I write

-//W3C//DTD HTML 4.01 Transitional//EN
ISO-8859-1
yes

nothing happens.

When I make in the xsp-page  between  a ldap-query, the
characters return fine. Why return the LDAP-Transformer false characters?

Thank you in advance

Katrin Seiffert




|-+>
| |   Berin Loritsch   |
| |   |
| ||
| |   23.04.02 14:43   |
| |   Bitte antworten  |
| |   an cocoon-users  |
| ||
|-+>
  
>--|
  |
  |
  |   An:   [EMAIL PROTECTED]
  |
  |   Kopie:   
  |
  |   Thema:Re: Antwort: Problem with special german characters and LDAP  
-Transformer   |
  
>--|




[EMAIL PROTECTED] wrote:
> Hi,
>
>
>>I use the LDAP-Transformer. It's works fine. But I have a Problem with
>>special german characters. I must use the character set "ISO-8859-1".
>>The Problem occurs only on LDAP-Transformer-Datas. On the normal
conversion
>>from xml to html using xslt occurs no Problems with special german
>>characters.
>>What can I do?
>
>
> We had a similar problem with our Oracle database when we used html
forms.
> Everything worked fine, when we typed data in the form and sent it to the
xsp
> page for processing.
> But when we read data from the database and used it to initialize the
form data,
> it got "encrypted".
> Our solution - which, in my opinion, is not really good - is to tell the
html
> serializer to generate output in the "ISO-8859-1" character set instead
of the
> normal "UTF-8" character set. Then all the data, which is serialized to
html
> stays in the "ISO-8859-1" character set, which has been read from the
database.
>

This is an issue with your database vendor not supporting other encoding
standards.  Bear in mind that old Netscape 4.x browsers do not handle
UTF-8 encodings well at all.  The newer browsers all do support it.

That said, Readers are supposed to make the conversions for you...


--

"They that give up essential liberty to obtain a little temporary safety
  deserve neither liberty nor safety."
 - Benjamin Franklin


-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.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/faqs.html>

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




Re: Antwort: Problem with special german characters and LDAP -Transformer

2002-04-23 Thread Berin Loritsch

[EMAIL PROTECTED] wrote:
> Hi,
> 
> 
>>I use the LDAP-Transformer. It's works fine. But I have a Problem with
>>special german characters. I must use the character set "ISO-8859-1".
>>The Problem occurs only on LDAP-Transformer-Datas. On the normal conversion
>>from xml to html using xslt occurs no Problems with special german
>>characters.
>>What can I do?
> 
> 
> We had a similar problem with our Oracle database when we used html forms.
> Everything worked fine, when we typed data in the form and sent it to the xsp
> page for processing.
> But when we read data from the database and used it to initialize the form data,
> it got "encrypted".
> Our solution - which, in my opinion, is not really good - is to tell the html
> serializer to generate output in the "ISO-8859-1" character set instead of the
> normal "UTF-8" character set. Then all the data, which is serialized to html
> stays in the "ISO-8859-1" character set, which has been read from the database.
> 

This is an issue with your database vendor not supporting other encoding
standards.  Bear in mind that old Netscape 4.x browsers do not handle
UTF-8 encodings well at all.  The newer browsers all do support it.

That said, Readers are supposed to make the conversions for you...


-- 

"They that give up essential liberty to obtain a little temporary safety
  deserve neither liberty nor safety."
 - Benjamin Franklin


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

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




Antwort: Problem with special german characters and LDAP-Transformer

2002-04-23 Thread Christoph . Oberle

Hi,

> I use the LDAP-Transformer. It's works fine. But I have a Problem with
> special german characters. I must use the character set "ISO-8859-1".
> The Problem occurs only on LDAP-Transformer-Datas. On the normal conversion
> from xml to html using xslt occurs no Problems with special german
> characters.
> What can I do?

We had a similar problem with our Oracle database when we used html forms.
Everything worked fine, when we typed data in the form and sent it to the xsp
page for processing.
But when we read data from the database and used it to initialize the form data,
it got "encrypted".
Our solution - which, in my opinion, is not really good - is to tell the html
serializer to generate output in the "ISO-8859-1" character set instead of the
normal "UTF-8" character set. Then all the data, which is serialized to html
stays in the "ISO-8859-1" character set, which has been read from the database.

You can achieve this by including the following definition for the html
serializer in the  section of your sitemap:

   
-//W3C//DTD HTML 4.01 Transitional//EN
ISO-8859-1
yes
   

We did not put this into the main sitemap. We use it only in some sub-sitemaps,
where we need it.

Greetings | Viele Grüße
Christoph



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

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




Problem with special german characters and LDAP-Transformer

2002-04-23 Thread Katrin_Seiffert


Hello,

I use the LDAP-Transformer. It's works fine. But I have a Problem with
special german characters. I must use the character set "ISO-8859-1".
The Problem occurs only on LDAP-Transformer-Datas. On the normal conversion
from xml to html using xslt occurs no Problems with special german
characters.
What can I do?

Thank you in advance

Katrin Seiffert







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

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




LDAP Transformer usage

2002-04-16 Thread Simeon Walker

Hi,
   has anyone manage to use the LDAP Transformer recently? I have
it compiled ok and configured in my sitemap, I just can't figure
out the format of the  elements.

Any suggestions appreciated.

Regards,
Simeon

-- 
Simeon Walker,  email: [EMAIL PROTECTED]
School of Biological Sciences,  phone: +44 (0)1248 383702
University of Wales, Bangor,fax: +44 (0)1248 382569
Gwynedd, LL57 2UW, UK.  www: http://biology.bangor.ac.uk/


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

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




RE: Problems with the LDAP-Transformer on Cocoon 2.0.1

2002-03-19 Thread Vadim Gritsenko

> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> 
> 
> Hello,
> 
> I have problems with the LDAP-Transformer on Cocoon 2.0.1 (also on
Cocoon
> 2.0).
> 
> I have download the jndi.jar - file and have then perform ".\build.bat
> -Dinclude.webapp.libs=yes webapp".  With the new cocoon.war - file I
have
> installed the cocoon on Tomcat 4.0.1. Cocoon run fine.
> I don't know, how can I use the LDAP-Transformer.
> 
> I have done the following:
> 
> Entry in the sitemap.xmap - file:
> 
>  
>
>
>
>   
> 
> 
> ldapTest.xml - file:
> 
> 
> 
> 
>   
> ldap://servername:389
>
l=Test,c=de,o=Werk,o=AG,cn=Konzern
>     
> (&(ou=mvd*)(objectClass=organizationalUnit))
>   
> 
> 
> 
> The result is:
> 
> 
>   
> ldap://servername:389
>
l=Test,c=de,o=Werk,o=AG,cn=Konzern
> 
> (&(ou=mvd*)(objectClass=organizationalUnit))
>   
> 
> 
> 
> I don't find an error message.
> Wath is wrong?

Nothing is wrong. It works as expected - it processes elements in the
its namespace. Unfortunately, you did not specify any of them.

>From the LDAPTransformer.java:

/** The LDAP namespace ("http://apache.org/cocoon/LDAP/1.0";)**/

Regards,
Vadim

> 
> Thanks in advanced.
> 
> Katrin Seiffert
> 


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

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




Problems with the LDAP-Transformer on Cocoon 2.0.1

2002-03-19 Thread Katrin_Seiffert


Hello,

I have problems with the LDAP-Transformer on Cocoon 2.0.1 (also on Cocoon
2.0).

I have download the jndi.jar - file and have then perform ".\build.bat
-Dinclude.webapp.libs=yes webapp".  With the new cocoon.war - file I have
installed the cocoon on Tomcat 4.0.1. Cocoon run fine.
I don't know, how can I use the LDAP-Transformer.

I have done the following:

Entry in the sitemap.xmap - file:

 
   
   
   
  


ldapTest.xml - file:




  
    ldap://servername:389
l=Test,c=de,o=Werk,o=AG,cn=Konzern

(&(ou=mvd*)(objectClass=organizationalUnit))
  



The result is:


  
ldap://servername:389
l=Test,c=de,o=Werk,o=AG,cn=Konzern

(&(ou=mvd*)(objectClass=organizationalUnit))
  



I don't find an error message.
Wath is wrong?

Thanks in advanced.

Katrin Seiffert





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

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




RE: Cocoon2 and LDAP

2002-02-13 Thread MarcB

I downloaded JNDI and created the cocoon war package as described in
http://xml.apache.org/cocoon/installing/index.html.  I do not have errors
related to LDAP when starting tomcat/cocoon.

My sitemap has:


I am using JNDI 1.2.2, Cocoon 2.0, Tomcat 3.2.1

Now if you want to ask me if I actually have any working LDAP functionality
in my cocoon implementation, well I'm still working on that. 

Marc

-Original Message-
From: Ruth, Thomas {PDBI~Basel} [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 8:49 AM
To: '[EMAIL PROTECTED]'
Subject: Cocoon2 and LDAP


Hi
we tried to install LDAP in our Cocoon 2.0 environment. 
I downloaded jndi1.2.2 and put the jar file in the lib directory.
In the sitemap.xmap we included the line 


After the restart we got the error message: 
ERROR   (2002-02-13) 07:36.19:802   [cocoon  ]
(/cocoon/pathfinder/index.xml) ExecuteThread: '10' for queue:
'default'/GeneratorSelector: Could not set up Component for hint:
org/apache/cocoon/www/sitemap_xmap
org.apache.avalon.framework.configuration.ConfigurationException: Error in
sitemap configuration : org.apache.cocoon.transformation.ldapTransformer
...
java.lang.ClassNotFoundException:
org.apache.cocoon.transformation.ldapTransformer
...

When we removed the line in the sitemap.xmap the error was still there, -->
the sitemap did not compile.
It only did work again when we deleted the
\cocoon\WEB-INF\_tmp_war_wld3server_wld3server_cocoon\cocoon-files\org\a
pache\cocoon\www\*.* class and java files.

So the question is still open: How to use Cocoon2 and LDAP?

Thnaks
Thomas

-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.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/faqs.html>

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




Cocoon2 and LDAP

2002-02-13 Thread Ruth, Thomas {PDBI~Basel}

Hi
we tried to install LDAP in our Cocoon 2.0 environment. 
I downloaded jndi1.2.2 and put the jar file in the lib directory.
In the sitemap.xmap we included the line 


After the restart we got the error message: 
ERROR   (2002-02-13) 07:36.19:802   [cocoon  ] (/cocoon/pathfinder/index.xml) 
ExecuteThread: '10' for queue: 'default'/GeneratorSelector: Could not set up Component 
for hint: org/apache/cocoon/www/sitemap_xmap
org.apache.avalon.framework.configuration.ConfigurationException: Error in sitemap 
configuration : org.apache.cocoon.transformation.ldapTransformer
...
java.lang.ClassNotFoundException: org.apache.cocoon.transformation.ldapTransformer
...

When we removed the line in the sitemap.xmap the error was still there, --> the 
sitemap did not compile.
It only did work again when we deleted the 
\cocoon\WEB-INF\_tmp_war_wld3server_wld3server_cocoon\cocoon-files\org\apache\cocoon\www\*.*
 class and java files.

So the question is still open: How to use Cocoon2 and LDAP?

Thnaks
Thomas

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

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




RE: LDAP and Cocoon 2.0

2002-02-12 Thread Vadim Gritsenko

> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> 
> Does anyone have an example of connecting to an LDAP with Cocoon 2.0?

I don't have.

> I am
> currently using Tomcat 3.2.1, and Cocoon 2.0.  I have seen an example
for
> posted for Cocoon 1.x, but I could not install it so that it would
work with
> Cocoon 2.0.

Have you seen LDAPTransformer.java? If you make it work with some public
LDAP server - send in an example, it then may go into Cocoon sample
webapp!

Vadim

> 
> Thank You,
> Marc Bahr


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

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




LDAP and Cocoon 2.0

2002-02-12 Thread MarcB

Does anyone have an example of connecting to an LDAP with Cocoon 2.0?  I am
currently using Tomcat 3.2.1, and Cocoon 2.0.  I have seen an example for
posted for Cocoon 1.x, but I could not install it so that it would work with
Cocoon 2.0.

Thank You,
Marc Bahr

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

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




RE: ldap

2001-08-23 Thread Bentley, Tim

Beat -

Here's the current version.

In addition to querying, you can do adds, removes and deletes.  The Add
syntax is as follows:
 

    ldap://yourmachine:porthere
cn=James
BROWN,ou=Administration,ou=Corporate,o=DemoCorp,c=au
error
top
inetorgperson
BROWN
James 
 BROWN
 
 
 The Modify is similar (just change type to "modify"), and the 
 'delete' is as you would expect.

I have also attached a couple of samples which show different ways of
organising the results of a search.


> -Original Message-
> From: De Martin, Beat [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 23 August 2001 12:00 AM
> To: Bentley, Tim
> Subject: ldap
> 
> 
> Hi
> I'm looking for a ldap taglib for Cocoon2. Is it already finished ?
> Cheers
> Beat De Martin
> Generali Group
> Zurich, Switzerland
> 


 eldapbasicsample.xml
 eldapdsmlsample.xml
 eldap.xsl

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

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


RE: LDAP/ELDAP Logicsheet

2001-07-26 Thread Bentley, Tim

Tibi -

No, you're right - I forgot to add the examples

Try these two attachments.  eldapbasics shows a 'simple' LDAP search.

eldapdsml shows how to do it so that your final page is in DSML.



Regards,



Tim



> -Original Message-
> From: Tibi DONDERA [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 26 July 2001 20:42
> To: [EMAIL PROTECTED]
> Subject: Re: LDAP/ELDAP Logicsheet
> 
> 
> Sorry about my previous message, I didn't took the time to 
> scroll down to
> the end of the message...
> 
> Tibi Dondera
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 


 eldapbasicsample.xml
 eldapdsmlsample.xml

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

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


Re: LDAP/ELDAP Logicsheet

2001-07-26 Thread Tibi DONDERA

Sorry about my previous message, I didn't took the time to scroll down to
the end of the message...

Tibi Dondera

-
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/ELDAP Logicsheet

2001-07-26 Thread Tibi DONDERA

Thank you Tim,

I don't suppose you have any examples of how to use it... :)
I will test the taglib, and make part of my discoveries and my comments.

Thanks again.


- Original Message -
From: "Bentley, Tim" <[EMAIL PROTECTED]>
To: "Tibi DONDERA" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, July 26, 2001 10:05 AM
Subject: re: LDAP/ELDAP Logicsheet


> Tibi -
>
> Yeah, sorry.  It is still 'almost finished'!  I do have a version which
> works with Cocoon2, but I haven't had a chance to combine the C1 & C2
> versions into one page
>
> Here's a forward of a mail I sent to a couple of other people on the list,
> with some examples and both versions.
>
>
> Regards,
>
>
> Tim Bentley
>
>
> -Original Message-
> From: Tim Bentley [mailto:[EMAIL PROTECTED]]On Behalf Of Bentley, Tim
> Sent: Friday, 29 June 2001 15:57
> To: 'Paul Paradise'; 'Janesh Vasudeva'
> Subject: RE: RE: Cocoon with LDAP
>
>
> Paul & Janesh -
>
> I just finished 'hacking' a version of eldap to work with Cocoon2.  This
is
> just a preliminary hack that probably won't work with C1!  I'll have a
> properly integrated version which will work with either soon.
>
>
> Regards,
>
>
> Tim Bentley
> Computer Associates
> Senior Software Engineer, eTrust Directory Development Lab.
> tel: +61 3 9727-8930
> fax: +61 3 9727 3491
> mailto:[EMAIL PROTECTED]
>
>
> > -Original Message-
> > From: Tim Bentley [mailto:[EMAIL PROTECTED]]On Behalf Of Bentley, Tim
> > Sent: Tuesday, 26 June 2001 16:54
> > To: 'Paul Paradise'; 'Janesh Vasudeva'
> > Subject: RE: Cocoon with LDAP
> >
> >
> > Paul & Janesh -
> >
> > Here is a copy of the eldap logicsheet, and a couple of
> > example pages to show you how it works.
> >
> > In addition to querying, you can do adds, removes and
> > deletes.  The Add syntax is as follows.  As you can see,
> > 'search-base' becomes the DN for the new entry:
> >
> > 
> >ldap://benti01n:19389
> >cn=James
> > BROWN,ou=Administration,ou=Corporate,o=DemoCorp,c=AU > arch-base>
> >error
> >
> > > name="objectClass">top
> > > name="objectClass">inetorgperson > ldap:attribute>
> > > name="sn">BROWN
> >James
> > BROWN
> > 
> >
> > The Modify is similar (just change type to "modify"), and the
> > 'delete' is as you would expect.
> >
> > NOTE:  I haven't tested this with C2.  You're welcome to try
> > it, but it may not work!
> >
> > Also, eldap isn't finished yet - I'm still not happy with the
> > flexibility, so the language may change a little.  I'll be
> > putting the logicsheet up on Jeff Turner's server shortly,
> > and from that point the latest version will always be
> > accessible via the '3rd party' page on the Cocoon site.
> >
> > Let me know if you have any questions/problems.
> >
> >
> > Regards,
> >
> >
> > Tim Bentley
> > Computer Associates
> > Senior Software Engineer, eTrust Directory Development Lab.
> > tel: +61 3 9727-8930
> > fax: +61 3 9727 3491
> > mailto:[EMAIL PROTECTED]
> >
> >
> >
>
>






> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.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/faqs.html>

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




LDAP/ELDAP Logicsheet

2001-07-25 Thread Tibi DONDERA

Hi,

There has been talk about a LDAP logicsheet a few months ago on the list.
However, I could not find any references or an URL to obtain it. Does
anybody knows anything about it's status, or can give me an URL where to
find, or can send it to me?
(Even iif it's in beta state, I'm willing to test it...)

Greetings,
Tibi Dondera

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

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




RE: Cocoon with Ldap

2001-06-24 Thread Bentley, Tim



Janesh 
-
 
You're 
probably better off using the LDAP or ELDAP logicsheets, which are maintained by 
Jeff Turner (are you out there Jeff?).  I'm not familiar with the syntax of 
whatever method you're currently using, so it's difficult to 
help!
 
The 
logicsheets mentioned above are fairly straight-forward and work well.  The 
original LDAP logicsheet only works with C1, but ELDAP should work with C2 
(although I haven't had time to test it yet).  
 
If you want 
copies of the logicsheets and some sample XML pages, let me know and I can email 
them to you.
 
 
Regards,
 
 
Tim 
Bentley
 
-Original Message-From: 
Janesh Vasudeva [mailto:[EMAIL PROTECTED]]Sent: Wednesday, 
13 June 2001 20:51To: [EMAIL PROTECTED]; 
[EMAIL PROTECTED]Subject: Fw: Cocoon with 
Ldap

   
  - Original Message - 
  From: Janesh Vasudeva 
   
  Sent: Wednesday, June 13, 2001 4:13 PM
  Subject: Cocoon with Ldap
  
  When i try to acces  Ldap Server , it gives 
  me this error
   
   
   
  Wed Jun 13 15:57:57 GMT+05:30 2001: 
   *.xml: initException: 
  javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such 
  Object]; remaining name 'o=ireason.com,uid=rdesantis,ou=people'using 
  renderer org.apache.fop.render.pdf.PDFRendererusing element mapping 
  org.apache.fop.fo.StandardElementMappingusing element mapping 
  org.apache.fop.svg.SVGElementMappingbuilding formatting object 
  treesetting up fontsformatting FOs into 
  areas [1]rendering areas to PDFwriting out PDF
   
  with this code
   
     com.sun.jndi.ldap.LdapCtxFactoryldap://reason2.ireason.com:389/ldap-serverurl>msisdnlist=*   
  
   
  what does this msisdnlist stands for 
  ?
   
  whereas this data i get when i run java program 
  to get ldap details
   
  uid=rdesantis, ou=people, 
  o=ireason.comfirstname = Robertlastname = DeSantisuid = 
  RDeSantislocation = san jose.california.us.northamericarole = 
  nulllanguage = ptemail = [EMAIL PROTECTED]mobile = 
  408.393.4341pager = 408.393.4341fax = 408.555.1212
   


RE: LDAP taglib: Able to retrieve metadata?

2001-06-21 Thread Bentley, Tim

Paul -

Hope this reply is still relevant to you - I've been off-line for a couple
of weeks.

> I know that I could use an LDAP query to retrieve a search result set,
> and then use XSP to grab the tag names instead of the values
> themselves, but it appears that the LDAP tablib will not return an
> empty tagset for optional attributes that are not defined.

This is actually LDAP server behaviour - nothing to do with the taglib.  The
LDAP spec requires that only attributes with content be returned from a
search.
 
> What is the best way to go about retrieving the schema from an LDAP
> server?

It really depends on how/if the server implements schema searching!  If it's
a V3 compliant server, you should be able to perform a search for the schema
in one of a couple of ways.  Have a look at RFC2251 and related documents
for details, or any good LDAP programming book!

I've got adding specific schema support on my list for the taglib, but the
priority isn't all that high at present.



Regards,


Tim Bentley
Computer Associates
Senior Software Engineer, eTrust Directory Development Lab.
tel: +61 3 9727-8930
fax: +61 3 9727 3491
mailto:[EMAIL PROTECTED]

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

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




LDAP taglib: Able to retrieve metadata?

2001-06-13 Thread Paul Paradise

Hi all,

I'm a new user of cocoon (1.8.2, although willing to move to 2.0 if
need be) and I've been looking through the examples and I'm stuck on
how to implement something. I need to retrieve the metadata from an
LDAP server, specifically the attributes for a given objectclass.

I know that I could use an LDAP query to retrieve a search result set,
and then use XSP to grab the tag names instead of the values
themselves, but it appears that the LDAP tablib will not return an
empty tagset for optional attributes that are not defined.

What is the best way to go about retrieving the schema from an LDAP
server?

Thanks!

-- 

--
 Paul ParadiseOffice: AE-209U
 Engineering Intern  Email: [EMAIL PROTECTED]
 Corporate IT R&D   Tel: 858.651.5883
 Qualcomm Incorporated
--

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

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




Fw: Cocoon with Ldap

2001-06-13 Thread Janesh Vasudeva



 
- Original Message - 
From: Janesh Vasudeva 
 
Sent: Wednesday, June 13, 2001 4:13 PM
Subject: Cocoon with Ldap

When i try to acces  Ldap Server , it gives me 
this error
 
 
 
Wed Jun 13 15:57:57 GMT+05:30 2001: 
 *.xml: initException: 
javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; 
remaining name 'o=ireason.com,uid=rdesantis,ou=people'using renderer 
org.apache.fop.render.pdf.PDFRendererusing element mapping 
org.apache.fop.fo.StandardElementMappingusing element mapping 
org.apache.fop.svg.SVGElementMappingbuilding formatting object 
treesetting up fontsformatting FOs into areas [1]rendering 
areas to PDFwriting out PDF
 
with this code
 
   com.sun.jndi.ldap.LdapCtxFactoryldap://reason2.ireason.com:389/ldap-serverurl>msisdnlist=*   

 
what does this msisdnlist stands for ?
 
whereas this data i get when i run java program to 
get ldap details
 
uid=rdesantis, ou=people, 
o=ireason.comfirstname = Robertlastname = DeSantisuid = 
RDeSantislocation = san jose.california.us.northamericarole = 
nulllanguage = ptemail = [EMAIL PROTECTED]mobile = 
408.393.4341pager = 408.393.4341fax = 408.555.1212
 


Cocoon with Ldap

2001-06-13 Thread Janesh Vasudeva



When i try to acces  Ldap Server , it gives me 
this error
 
 
 
Wed Jun 13 15:57:57 GMT+05:30 2001: 
 *.xml: initException: 
javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; 
remaining name 'o=ireason.com,uid=rdesantis,ou=people'using renderer 
org.apache.fop.render.pdf.PDFRendererusing element mapping 
org.apache.fop.fo.StandardElementMappingusing element mapping 
org.apache.fop.svg.SVGElementMappingbuilding formatting object 
treesetting up fontsformatting FOs into areas [1]rendering 
areas to PDFwriting out PDF
 
with this code
 
   com.sun.jndi.ldap.LdapCtxFactoryldap://reason2.ireason.com:389/ldap-serverurl>msisdnlist=*   

 
what does this msisdnlist stands for ?
 
whereas this data i get when i run java program to 
get ldap details
 
uid=rdesantis, ou=people, 
o=ireason.comfirstname = Robertlastname = DeSantisuid = 
RDeSantislocation = san jose.california.us.northamericarole = 
nulllanguage = ptemail = [EMAIL PROTECTED]mobile = 
408.393.4341pager = 408.393.4341fax = 408.555.1212
 


RE: ldap-query

2001-06-07 Thread Bentley, Tim

Niklas -

There are various examples in the release, and lots of stuff in the archives
about processing forms - this isn't really an LDAP-specific thing.  I don't
have an example to hand, but if you do some searching in the mailing list
archives you should be able to find some help.

I'd be interested to see your LDAP handling code.  There is an LDAP
logicsheet maintained by Jeff Turner which uses JNDI.  I've done a fair bit
of work on it to make it more flexible, and these days it more or less
mimics the esql logicsheet for SQL databases.  JNDI is not really the best
LDAP API, but it's the most readily available for Java.  I didn't realise
that there was an OpenLDAP release for Java, or are you accessing it using
JNI?


Regards,


Tim Bentley



> -Original Message-
> From: Niklas Grunditz [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 5 June 2001 12:18
> To: [EMAIL PROTECTED]
> Subject: ldap-query
> 
> 
> Hello cocoon-users
> 
> I am using c1.8.2, tomcat1.3.2 and Openldap release 2.0.11. I 
> am doing ldap
> queries and it works fine. I catch the ldap searchresults 
> with a template in
> my xsl-file. 
> 
> But.. i cant get it to work with my forms. I want to have the ldap
> searchresults in a html-form so that I can edit my 
> ldapsearchresults and then
> post them to another file.  I have the searchresults in the 
> same template but
> I just cant get them into my form.
> I am looking forward to a syntaxexample or some other help on this.
> 
> /Niklas
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.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/faqs.html>

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




ldap-query

2001-06-05 Thread Niklas Grunditz

Hello cocoon-users

I am using c1.8.2, tomcat1.3.2 and Openldap release 2.0.11. I am doing ldap
queries and it works fine. I catch the ldap searchresults with a template in
my xsl-file. 

But.. i cant get it to work with my forms. I want to have the ldap
searchresults in a html-form so that I can edit my ldapsearchresults and then
post them to another file.  I have the searchresults in the same template but
I just cant get them into my form.
I am looking forward to a syntaxexample or some other help on this.

/Niklas


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

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