You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ma...@swisscom.com on 2003/06/10 14:08:23 UTC

Sitemap : use and get parameters

1. How is it possible to use parameters like :
<map:transform type="ldap>
	<map:parameter name="ldap:rootdn" value="guest"/>
	<map:parameter name="ldap:password" value="secret"/>
</map:transform>
and 
2. How is it possible to get parameters from a previous file (in our
case from the login form):
<map:generate src="ldap.xml"/>  
<map:transform type="ldap>
	<map:parameter name="ldap:rootdn" value=user/>
	<map:parameter name="ldap:password" value=passwd/> <!-- user &
passwd from login form -->
</map:transform>

The purpose of this is :
Use the username & password from the login form to connect to the LDAP
server (ldap:rootdn and ldap:password). 
	if the connection succeed get the user information. 
	else authentification fails

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