cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Maxime.Ghey...@swisscom.com>
Subject RE: Re: XSP & LDAP
Date Wed, 04 Jun 2003 08:30:11 GMT
Ok. But what am I suppose to do with the *.patch? And where do I
"declare" the LDAP Transformer? I saw on a sample that I had to add this
line into the sitemap -> map:transformers 

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

But it returns me an error : 
Original exception : java.lang.ClassNotFoundException:
com.wika.cocoon.transformation.LDAPTransformer

All I want to do is a login page from a portal (wich use an XML file for
identification). I want to change the method from XML authentification
to LDAP (active directory) authentification.



-----Original Message-----
From: Yury Mikhienko [mailto:Yury.Mikhienko@mobicomk.ru] 
Sent: Wednesday, June 04, 2003 9:52 AM
To: cocoon-users@xml.apache.org
Subject: Fw: Re: XSP & LDAP


> Hello,
> I would like to get some information about how to use the LDAP
> transformer (first of all, in wich library the classes are), and how
to
> make a simple XSP page with an authentification (from Windows Active
> Directory)
> Thanks for any help!
> 

Try use new LDAPTransformer 
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20033
or my latest version (add attribute future addided) in attachment

some using samples:
<!--
     <ldap:execute-replace>
 
<ldap:initializer>com.sun.jndi.ldap.LdapCtxFactory</ldap:initializer>
      <ldap:serverurl>ldap://ldap.host</ldap:serverurl>
      <ldap:port>389</ldap:port>
      <ldap:scope>OBJECTS_SCOPE</ldap:scope>
      <ldap:rootdn>cn=Directory Manager</ldap:rootdn>
      <ldap:password>xyz</ldap:password>
      <ldap:searchbase>ou=people,o=company</ldap:searchbase>
      <ldap:attribute name="urls">/:omc/rz</ldap:attribute>
      <ldap:filter>(&amp;(uid=test))</ldap:filter>
     </ldap:execute-replace>
-->
<!--
     <ldap:execute-add>
 
<ldap:initializer>com.sun.jndi.ldap.LdapCtxFactory</ldap:initializer>
      <ldap:serverurl>ldap://ldap.host</ldap:serverurl>
      <ldap:port>389</ldap:port>
      <ldap:scope>OBJECTS_SCOPE</ldap:scope>
      <ldap:rootdn>cn=Directory Manager</ldap:rootdn>
      <ldap:password>xyz</ldap:password>
      <ldap:searchbase>ou=people,o=company</ldap:searchbase>
      <ldap:attribute name="trace">TRUE</ldap:attribute>
      <ldap:attribute name="sleep">28000</ldap:attribute>
      <ldap:attribute name="urls">/</ldap:attribute>
      <ldap:attribute name="admin">TRUE</ldap:attribute>
      <ldap:attribute name="zone">2</ldap:attribute>
      <ldap:attribute name="userPassword">123</ldap:attribute>
      <ldap:filter>(&amp;(uid=test))</ldap:filter>
     </ldap:execute-add>
-->

     <ldap:execute-query>
 
<ldap:initializer>com.sun.jndi.ldap.LdapCtxFactory</ldap:initializer>
      <ldap:serverurl>ldap://ldap.host</ldap:serverurl>
      <ldap:port>389</ldap:port>
      <ldap:scope>OBJECTS_SCOPE</ldap:scope>
      <ldap:rootdn>cn=Directory Manager</ldap:rootdn>
      <ldap:password>xyz</ldap:password>
      <ldap:searchbase>ou=people,o=company</ldap:searchbase>
      <ldap:attribute>urls</ldap:attribute>
      <ldap:attribute>title</ldap:attribute>
      <ldap:attribute>mobile</ldap:attribute>
      <ldap:attribute>cn</ldap:attribute>
      <ldap:attribute>sn</ldap:attribute>
      <ldap:attribute>zone</ldap:attribute>
      <ldap:attribute>sleep</ldap:attribute>
      <ldap:attribute>trace</ldap:attribute>
      <ldap:attribute>admin</ldap:attribute>
      <ldap:show-attribute>true</ldap:show-attribute>
      <ldap:filter>(&amp;(uid=test))</ldap:filter>
     </ldap:execute-query>

-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

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