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/06 09:37:48 UTC
is this working?
I have tested LDAP, and after two days I have come to a result... I
don't have any errors i my page, but I get following :
<?xml version="1.0" encoding="Windows-1252" ?>
<LDAPUSER xmlns:ldap="http://apache.org/cocoon/LDAP/1.0">
<LDAP xmlns="http://apache.org/cocoon/LDAP/1.0" />
</LDAPUSER>
My pipeline is like this :
<map:pipeline>
<map:match pattern="ldaptest">
<map:generate src="workflowmanager/documents/ldaptest.xml"
/>
<map:transform type="ldap" />
<map:serialize type="xml" />
</map:match>
</map:pipeline>
Now, I think (and hope) my page is correct, but how can I display some
results? My xml file is detailled here :
<?xml version="1.0" encoding="ISO-8859-1"?>
<LDAPUSER xmlns:ldap="http://apache.org/cocoon/LDAP/1.0">
<ldap:execute-query>
<ldap:initializer>com.sun.jndi.ldap.LdapCtxFactory</ldap:initializer>
<ldap:serverurl>ldap://10.68.85.40</ldap:serverurl>
<ldap:port>389</ldap:port>
<ldap:scope>OBJECTS_SCOPE</ldap:scope>
<ldap:filter>(&(objectClass=group)(name=G-TU-NTWS-ADM))</ldap:filter
>
<ldap:rootdn>cn=corproot,cn=net</ldap:rootdn>
<ldap:searchbase>DC=corproot,DC=net</ldap:searchbase>
<ldap:debug>FALSE</ldap:debug>
<ldap:deref-link>TRUE</ldap:deref-link>
<ldap:count-limit>100</ldap:count-limit>
<ldap:time-limit>0</ldap:time-limit>
<ldap:show-attribute>TRUE</ldap:show-attribute>
<ldap:doc-element>LDAP</ldap:doc-element>
<ldap:row-element>LDAPSET</ldap:row-element>
<ldap:error-element>ELEMENT</ldap:error-element>
<ldap:attribute>member</ldap:attribute>
</ldap:execute-query>
</LDAPUSER>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: is this working?
Posted by Yury Mikhienko <Yu...@mobicomk.ru>.
On Fri, 6 Jun 2003 09:37:48 +0200
<Ma...@swisscom.com> wrote:
> I have tested LDAP, and after two days I have come to a result... I
> don't have any errors i my page, but I get following :
> <?xml version="1.0" encoding="Windows-1252" ?>
> <LDAPUSER xmlns:ldap="http://apache.org/cocoon/LDAP/1.0">
> <LDAP xmlns="http://apache.org/cocoon/LDAP/1.0" />
> </LDAPUSER>
>
> My pipeline is like this :
> <map:pipeline>
> <map:match pattern="ldaptest">
> <map:generate src="workflowmanager/documents/ldaptest.xml"
> />
> <map:transform type="ldap" />
> <map:serialize type="xml" />
> </map:match>
> </map:pipeline>
>
> Now, I think (and hope) my page is correct, but how can I display some
> results? My xml file is detailled here :
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <LDAPUSER xmlns:ldap="http://apache.org/cocoon/LDAP/1.0">
> <ldap:execute-query>
>
> <ldap:initializer>com.sun.jndi.ldap.LdapCtxFactory</ldap:initializer>
> <ldap:serverurl>ldap://10.68.85.40</ldap:serverurl>
> <ldap:port>389</ldap:port>
> <ldap:scope>OBJECTS_SCOPE</ldap:scope>
>
> <ldap:rootdn>cn=corproot,cn=net</ldap:rootdn>
<ldap:password>???</ldap:password>
<!-- password to dn (if exist) -->
> <ldap:searchbase>DC=corproot,DC=net</ldap:searchbase>
> <ldap:debug>FALSE</ldap:debug>
> <ldap:deref-link>TRUE</ldap:deref-link>
> <ldap:count-limit>100</ldap:count-limit>
> <ldap:time-limit>0</ldap:time-limit>
> <ldap:doc-element>LDAP</ldap:doc-element>
> <ldap:row-element>LDAPSET</ldap:row-element>
> <ldap:error-element>ELEMENT</ldap:error-element>
> <ldap:attribute>member</ldap:attribute>
<ldap:show-attribute>TRUE</ldap:show-attribute>
<ldap:filter>(&(objectClass=group)(name=G-TU-NTWS-ADM))</ldap:filter>
> </ldap:execute-query>
> </LDAPUSER>
>
--
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