You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ka...@mn.man.de on 2002/03/19 11:29:07 UTC

Problems with the LDAP-Transformer on Cocoon 2.0.1

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:

 <map:match pattern="ldapTest.xml">
       <map:generate src="ldapTest.xml"/>
       <map:transform type="ldap"/>
       <map:serialize/>
  </map:match>


ldapTest.xml - file:

<?xml version="1.0" encoding="ISO-8859-1"?>

<page>
      <execute-query>
            <serverurl>ldap://servername:389</serverurl>
            <searchbase>l=Test,c=de,o=Werk,o=AG,cn=Konzern</searchbase>
            <filter>
(&amp;(ou=mvd*)(objectClass=organizationalUnit))</filter>
      </execute-query>
</page>


The result is:

<page>
      <execute-query>
            <serverurl>ldap://servername:389</serverurl>
            <searchbase>l=Test,c=de,o=Werk,o=AG,cn=Konzern</searchbase>
            <filter>
(&amp;(ou=mvd*)(objectClass=organizationalUnit))</filter>
      </execute-query>
</page>


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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: Problems with the LDAP-Transformer on Cocoon 2.0.1

Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Katrin_Seiffert@mn.man.de [mailto:Katrin_Seiffert@mn.man.de]
> 
> 
> 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:
> 
>  <map:match pattern="ldapTest.xml">
>        <map:generate src="ldapTest.xml"/>
>        <map:transform type="ldap"/>
>        <map:serialize/>
>   </map:match>
> 
> 
> ldapTest.xml - file:
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> 
> <page>
>       <execute-query>
>             <serverurl>ldap://servername:389</serverurl>
>
<searchbase>l=Test,c=de,o=Werk,o=AG,cn=Konzern</searchbase>
>             <filter>
> (&amp;(ou=mvd*)(objectClass=organizationalUnit))</filter>
>       </execute-query>
> </page>
> 
> 
> The result is:
> 
> <page>
>       <execute-query>
>             <serverurl>ldap://servername:389</serverurl>
>
<searchbase>l=Test,c=de,o=Werk,o=AG,cn=Konzern</searchbase>
>             <filter>
> (&amp;(ou=mvd*)(objectClass=organizationalUnit))</filter>
>       </execute-query>
> </page>
> 
> 
> 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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>