cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Geissler" <M.Geiss...@wika.de>
Subject Antw: LDAPTransformer
Date Tue, 15 Apr 2003 13:42:50 GMT
Hello, as far as i know is the LDAP Tranformer not included in Cocoon
2.0.3/4
Perhaps use the sources at the Code Repository.
(I have rewritten this one from the sources for my needs)
Perhaps there are also some build options to include the
LDAPTransformer in the cocoon.jar file ?
Sitemap konfiguration of the transformer:

      <map:transformers>
         <map:transformer name="ldap"
src="com.wika.cocoon.transformation.LDAPTransformer"/>
      </map:transformers>

Use the transformer in the pipeline:
         <map:match pattern="doldapqry">
            <map:generate src="LdapQry.xml" />
            <map:transform type="ldap" />
            <map:serialize type="xml" /> 
         </map:match>

the Query File:
<?xml version="1.0" encoding="ISO-8859-1"?>
<LDAPUSER xmlns:ldap="http://apache.org/cocoon/LDAP/1.0">
      <ldap:execute-query>
        
<ldap:initializer>com.sun.jndi.ldap.LdapCtxFactory</ldap:initializer>

         <ldap:authentication>simple</ldap:authentication>

         <ldap:version>3</ldap:version>

         <ldap:serverurl>ldap://host.com</ldap:serverurl>

         <ldap:port>389</ldap:port>

         <ldap:scope>SUBTREE_SCOPE</ldap:scope>

	 <!--<ldap:scope>ONELEVEL_SCOPE</ldap:scope>-->
         <ldap:searchbase>o=tree</ldap:searchbase>

         <ldap:rootdn>cn=admin,ou=ou,ou=test,o=tree</ldap:rootdn>

         <ldap:password>secretpw</ldap:password>

         <ldap:debug>FALSE</ldap:debug>

         <ldap:deref-link>TRUE</ldap:deref-link>

         <ldap:count-limit>0</ldap:count-limit>

         <ldap:time-limit>0</ldap:time-limit>

        
<ldap:filter>(&amp;(telephoneNumber=*)(objectClass=person))</ldap:filter>

         <ldap:show-attribute>TRUE</ldap:show-attribute>

         <ldap:doc-element>LDAP</ldap:doc-element>

         <ldap:row-element>LDAPSET</ldap:row-element>

         <ldap:error-element>ELEMENT</ldap:error-element>

         <ldap:attribute>ou</ldap:attribute>
         
         <ldap:attribute>givenName</ldap:attribute>
         <ldap:attribute>sn</ldap:attribute>
         <ldap:attribute>fullName</ldap:attribute>         
         <ldap:attribute>l</ldap:attribute>
         <ldap:attribute>telephoneNumber</ldap:attribute>
      </ldap:execute-query>
</LDAPUSER>

from cocoon this is similar to the sql transformer

Regards Martin


>>> nb@nbinfo.dk Dienstag, 15. April 2003 15:05:44 >>>
Please help!

I have used several days trying to use LDAPTransformer and searching
for samples on the web and Newsgroups :-(

Can anyone help with samples of sitemap etc.

Thanks,

Niels Bjerre



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org 
For additional commands, e-mail: cocoon-users-help@xml.apache.org 


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message