cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yury Mikhienko <Yury.Mikhie...@mobicomk.ru>
Subject Fw: Re: XSP & LDAP
Date Wed, 04 Jun 2003 07:52:12 GMT
> 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"

Mime
View raw message