You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Markus Spiekermann <Ma...@web.de> on 2000/07/30 13:41:26 UTC

LDAP Queries on localhost in combination with FP Taglib

Hi,

I want to combine LDAP queries with the FP-Taglib. My intention is to
query for "Experts" to setup a Project-Team using the FP Taglib, but I
encounter the following problems with LDAP. So  excuse me when I´m
asking some questions more related to linux than to cocoon...

Whenever I use the sample ldap.xml  I receive the following Error:

javax.naming.Communication.exeption: ldap.weber.edu:389 Root exeption is
java.net.UnknowHostExeption: ldap.weber.edu
....

So I got the following questions:
-Is the sample working somewhere or is this service at ldap.weber.edu no
longer available?
-If it is working, where can I find more information about setting up my
machine for ldap. (Redhat 6.1 kompatible with jdk1.2.2, Jserv1.1.2,
jndi1.2.1, Cocoon 1.8 dev,  with NON permanent access to the internet
but with working ISDN dialin network
-Can I use LDAP queries on my local machine and if Yes, how?

Thanks to all

Markus


Re: LDAP Queries on localhost in combination with FP Taglib

Posted by Markus Spiekermann <Ma...@web.de>.
Hi Kevin,

It works now. For all who are interested in setting up a own ldap-server, I can
recommend the article "Lighting up LDAP: A programmer's guide to directory
development, Part 1 " at http://www.sunworld.co
m.There are several problems in the sample, that are allready discussed in this
list:

* the wrong reference to ldap1.xsl,
* the attribute cellspacing="0" is used twice in line 31 of the style sheet

My problem was the undefined searchbase. I adopted a sample from Marian that he
included in an earlier mail - and IT WORKS!

Thank you for your help...

Markus

Kevin Sonney wrote:

> On Mon, 31 Jul 2000, Markus Spiekermann wrote:
> > I installed openldap 1.2.9-6 from Redhat. It works on the command line, but
> > the sample within Cocoon just shows an empty (black) table with. I tryed to
> > connect with my Netscape Browser to my Server and that does not work, too. Do
> > you got an suggestions?
>
> Uh, nope. I have been sucessfully querying against an OpenLDAP server, but
> it's not one I administer.
>
> > Maybe it is of interest to the list that the openldap 1.2.10 rpm contribution
> > file from the Redhat-Site doesn´t work (at least I could not get it working)
>
> I wish I could help. I know that the RPMs require a bit of configuration
> once installed. Good luck!
>
> --
> +-------------------------------------------+
> | Kevin Sonney        kevin@webslingerZ.com |
> | Systems Programmer    www.webslingerZ.com |
> +-------------------------------------------+
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: LDAP Queries on localhost in combination with FP Taglib

Posted by Kevin Sonney <ke...@webslingerz.com>.
On Mon, 31 Jul 2000, Markus Spiekermann wrote:
> I installed openldap 1.2.9-6 from Redhat. It works on the command line, but
> the sample within Cocoon just shows an empty (black) table with. I tryed to
> connect with my Netscape Browser to my Server and that does not work, too. Do
> you got an suggestions?

Uh, nope. I have been sucessfully querying against an OpenLDAP server, but
it's not one I administer. 

> Maybe it is of interest to the list that the openldap 1.2.10 rpm contribution
> file from the Redhat-Site doesn�t work (at least I could not get it working)

I wish I could help. I know that the RPMs require a bit of configuration
once installed. Good luck!

-- 
+-------------------------------------------+
| Kevin Sonney        kevin@webslingerZ.com |
| Systems Programmer    www.webslingerZ.com |
+-------------------------------------------+


Re: LDAP Queries on localhost in combination with FP Taglib

Posted by Markus Spiekermann <Ma...@web.de>.
Hi Kevin,

I installed openldap 1.2.9-6 from Redhat. It works on the command line, but
the sample within Cocoon just shows an empty (black) table with. I tryed to
connect with my Netscape Browser to my Server and that does not work, too. Do
you got an suggestions?

Maybe it is of interest to the list that the openldap 1.2.10 rpm contribution
file from the Redhat-Site doesn´t work (at least I could not get it working)

Kevin Sonney wrote:

> On Sun, 30 Jul 2000, Markus Spiekermann wrote:
> > -Is the sample working somewhere or is this service at ldap.weber.edu no
> > longer available?
>
> Well, there are *LOTS* of public LDAP servers available, you just ahve to
> choose one that sends back "good" data, as it were. For example, I think
> Bigfoot sent back weird data.
>
> I use the LDAP processor to do exactly what yuo're after, against a
> university server.
>
> > -If it is working, where can I find more information about setting up my
> > machine for ldap. (Redhat 6.1 kompatible with jdk1.2.2, Jserv1.1.2,
> > jndi1.2.1, Cocoon 1.8 dev,  with NON permanent access to the internet
> > but with working ISDN dialin network
>
> OpenLDAP is your friend. http://www.openladp.org
>
> OpenLDAP is an opensource,standards compatible, LDAP server. it works
> greeat, and ships as part of RedHat 6.2+
>
> > -Can I use LDAP queries on my local machine and if Yes, how?
>
> I do it all the time, so the answer is Yes. The easy way has been to
> modify the sample file until you get a query returned. For example, to get
> my information out fo the (purely non-existant) webslingerZ.com ldap
> server, I'd use the following :
>
> <!-- Begin LDAP snippit -->
>  <ldap-defs>
>   <ldap-server name="webslingerZ">
>    <initializer>com.sun.jndi.ldap.LdapCtxFactory</initializer>
>    <!-- NOTE! ldap.webslingerZ.com does not exist, AFAIK. -->
>    <ldap-serverurl>ldap://ldap.webslingerZ.com</ldap-serverurl>
>   </ldap-server>
>  </ldap-defs>
>
>  <ldap-query server="webslingerZ" ldap-searchbase="">
>         sn=Sonney*
>  </ldap-query>
> <!-- end ldap snippet -->
>
> When the archives come back up, search for my posts earlier this year on
> the subject of the LDAP processor.
>
> --
> +-------------------------------------------+
> | Kevin Sonney        kevin@webslingerZ.com |
> | Systems Programmer    www.webslingerZ.com |
> +-------------------------------------------+
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: LDAP Queries on localhost in combination with FP Taglib

Posted by Kevin Sonney <ke...@webslingerz.com>.
On Sun, 30 Jul 2000, Markus Spiekermann wrote:
> -Is the sample working somewhere or is this service at ldap.weber.edu no
> longer available?

Well, there are *LOTS* of public LDAP servers available, you just ahve to
choose one that sends back "good" data, as it were. For example, I think
Bigfoot sent back weird data.

I use the LDAP processor to do exactly what yuo're after, against a
university server. 

> -If it is working, where can I find more information about setting up my
> machine for ldap. (Redhat 6.1 kompatible with jdk1.2.2, Jserv1.1.2,
> jndi1.2.1, Cocoon 1.8 dev,  with NON permanent access to the internet
> but with working ISDN dialin network

OpenLDAP is your friend. http://www.openladp.org

OpenLDAP is an opensource,standards compatible, LDAP server. it works
greeat, and ships as part of RedHat 6.2+

> -Can I use LDAP queries on my local machine and if Yes, how?

I do it all the time, so the answer is Yes. The easy way has been to
modify the sample file until you get a query returned. For example, to get
my information out fo the (purely non-existant) webslingerZ.com ldap
server, I'd use the following :

<!-- Begin LDAP snippit -->
 <ldap-defs>
  <ldap-server name="webslingerZ">
   <initializer>com.sun.jndi.ldap.LdapCtxFactory</initializer>
   <!-- NOTE! ldap.webslingerZ.com does not exist, AFAIK. -->
   <ldap-serverurl>ldap://ldap.webslingerZ.com</ldap-serverurl>
  </ldap-server>
 </ldap-defs>

 <ldap-query server="webslingerZ" ldap-searchbase="">
	sn=Sonney*
 </ldap-query>
<!-- end ldap snippet -->

When the archives come back up, search for my posts earlier this year on
the subject of the LDAP processor.

-- 
+-------------------------------------------+
| Kevin Sonney        kevin@webslingerZ.com |
| Systems Programmer    www.webslingerZ.com |
+-------------------------------------------+