On Wed, 4 Jun 2003 10:30:11 +0200 <[EMAIL PROTECTED]> wrote: > 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"/> >
The right declaration is: <map:transformer name="ldap" src="org.apache.cocoon.transformation.LDAPTransformer"/> > > > 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>(&(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>(&(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>(&(uid=test))</ldap:filter> > </ldap:execute-query> > -- Best regards, Yury Mikhienko. IT engineer, ZAO "Mobicom-Kavkaz" --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]