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!
map:transform type=ldap
map:parameter name=rootdn value={request-param:name}/
map:parameter name=password value={request-param:password}/
/map:transform
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 : ( form method=post target=_top
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
map:pipeline internal-only=true
map:match pattern=sunrise-*
!-- authentication --
map:match pattern=sunrise-authuser
map:generate src=ldap.xml/
map:transform type=ldap
map:parameter name=rootdn value={request-param:name}/
map:parameter name=password value={request-param:password}/
/map:transform
map:transform type=xslt src=ldap.xsl
map:parameter name=use-request-parameters value=true/
/map:transform
map:transform src=styles/sunrise-user.xsl
map:parameter name=use-request-parameters value=true/
/map:transform
map:serialize type=xml/
/map:match
ldap.xml
...
!-- without ldap:rootdn and ldap:password because they are
parameters in the sitemap--
...
ldap.xsl
xsl:param name=password/
...
namexsl:value-of select=userName//name !-- userName is an ldap
attribute--
passwordxsl:value-of select=normalize-space($password)/password
sunrise-user.xsl
xsl:param name=password/
xsl:param name=name/
...
xsl:if test=normalize-space(name) = $name and
normalize-space(password) = $password
...
-
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]