cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Maxime.Ghey...@swisscom.com>
Subject what's WRONG?
Date Thu, 12 Jun 2003 13:25:01 GMT
What is wrong? I don't know why it doesn't work!!! Everything seems
right?!

SITEMAP.XMAP
=============
<map:generate src="ldap.xml"/>
<map:transform type="ldap"> 
  <map:parameter name="serverurl"
value="ldap://{request-param:serverurl}.NET"/>   
  <map:parameter name="rootdn"
value="{request-param:serverurl}\{request-param:name}"/> 
  <map:parameter name="password"  value="{request-param:password}"/> 
  <map:parameter name="filter"
value="(&amp;(objectclass=User)(cn={request-param:name}))"/>
</map:transform>  

LDAP.XML
=============
<?xml version="1.0" encoding="ISO-8859-1"?>
<authentication xmlns:ldap="http://apache.org/cocoon/LDAP/1.0">
  <ldap:execute-query>
 
<ldap:initializer>com.sun.jndi.ldap.LdapCtxFactory</ldap:initializer>
    <ldap:version>3</ldap:version>
    <ldap:port>389</ldap:port>       
    <ldap:scope>SUBTREE_SCOPE</ldap:scope>
    <ldap:searchbase>DC=corproot,DC=net</ldap:searchbase>
    <ldap:deref-link>TRUE</ldap:deref-link>
    <ldap:count-limit>0</ldap:count-limit>
    <ldap:time-limit>0</ldap:time-limit>        
    <ldap:show-attribute>TRUE</ldap:show-attribute>
    <ldap:doc-element>users</ldap:doc-element>
    <ldap:row-element>user</ldap:row-element>
    <ldap:error-element>ELEMENT</ldap:error-element>  
    <ldap:attribute>employeeID</ldap:attribute>    
    <ldap:attribute>title</ldap:attribute>    
    <ldap:attribute>company</ldap:attribute>    
    <ldap:attribute>givenname</ldap:attribute>    
    <ldap:attribute>mail</ldap:attribute>     
    <ldap:attribute>mobile</ldap:attribute>   
  </ldap:execute-query> 
</authentication>

ERROR CAUSED
==============
[LDAPTransformer] Failed ldap-connection to directory service.

VERSIONS
===========
Cocoon v.2.1 Dev / Apache Tomcat 4.1.24 / W2K Adv Server

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