Skip Menu |

This queue is for tickets about the DBD-LDAP CPAN distribution.

Report information
The Basics
Id: 35045
Status: resolved
Priority: 0/
Queue: DBD-LDAP

People
Owner: Nobody in particular
Requestors: djdulong [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.09
Fixed in: (no value)



Subject: No Such Table Bug
There seems to be a bug when just trying to query a table. My setup is: OS: Windows Visa Home Premium This is perl, v5.10.0 built for MSWin32-x86-multi-thread (with 3 registered patches, see perl -V for more detail) Copyright 1987-2007, Larry Wall Binary build 1002 [283697] provided by ActiveState http://www.ActiveState.com Built Jan 10 2008 11:00:53 Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. ====================== LDAP Server is Novell eDirectory 8.8 on openSuSE 10 (2.6 kernel). ==================== when I run the attached .PL script, here's the output (including my debug): 3 Folks top Test DBD::LDAP::db prepare warning: at ldap.pl line 24, <DBFILE> line 4. Oops! The following error occurred when processing your request: No such table. () Here's some more information to help you: file: folks None DBD::LDAP::st execute failed: -524:No such table. at ldap.pl line 26, <DBFILE> l ine 4. Cannot execute: -524:No such table. at ldap.pl line 26, <DBFILE> line 4. I am reasonably sure my ldb file is correct based on the documentation. What other info can I provide you? Regards, Dave
Subject: ldap2.pl
use strict; use DBI; my ($dbh, $sth, @results, $cnt); $dbh = DBI->connect("DBI:LDAP:ldapdb",'admin','<somepassword>') #USER LOGIN. or die "Cannot connect as user: " . $DBI::errstr; my(@list) = $dbh->func('tables'); print @list."\n"; print @list[0]."\n".@list[1]."\n".@list[2]."\n"; $sth = $dbh->prepare("select * from ".@list[0]." where (cn like 'Smith%')") or die "Cannot prepare: " . $dbh->errstr(); $sth->execute() or die "Cannot execute: " . $sth->errstr(); while ((@results) = $sth->fetchrow_array) { print "--------------------------------------------------------\n"; ++$cnt; while (@results) { print "------>".join('|',split(/\0/, shift(@results)))."\n"; } } $sth->finish(); $dbh->disconnect();
Subject: ldapdb.ldb
10.0.1.50;389:o=home:cn=*,<ROOT> top:::o Test:ou=Users:(objectclass=*):cn:cn,sn,ou,title,telephonenumber,description,objectclass,dn:objectclass=top|person|organizationalPerson: ldap_scope => "sub" Folks:ou=Users:(objectclass=inetOrgPerson):cn:cn,sn,ou,title,telephonenumber,description,objectclass,dn:objectclass=top|person|organizationalPerson: ldap_scope => "sub"
Subject: Re: [rt.cpan.org #35045] No Such Table Bug
Date: Thu, 17 Apr 2008 20:38:55 -0700 (PDT)
To: bug-DBD-LDAP [...] rt.cpan.org
From: Jim Turner <turnerjw784 [...] yahoo.com>
Hi, Thanks for using DBD::LDAP. I don't currently have access to a working LDAP server to test your configuration on, but looking at what you've got, try this: 1) Does your "top" table work? If so, try adding a "ldap_CaseTableNames => 1" to your ->connect() function - ie. DBI->connect("DBI:LDAP:ldapdb",'admin','<somepassword>', {ldap_CaseTableNames => 1})... 2) I'm now sure if my mail pgm wrapped your configuration file or not, but if not, you need to make sure that each "table" is defined on a single line. 3) I just looked at the old configuration file I used to use (where I used to work) and it looked like you should change your table line to look like this: Folks:ou=Users, :objectclass=inetOrgPerson:cn:cn,sn,ou,title,telephonenumber,description,objectclass,dn:objectclass=top|person|organizationalPerson:ldap_scope=>'sub' You might add this table line and try it as well: root:::cn See if any of these suggestions works for you. Jim Turner David Dulong via RT <bug-DBD-LDAP@rt.cpan.org> wrote: Mon Apr 14 21:59:23 2008: Request 35045 was acted upon. Transaction: Ticket created by djdulong Queue: DBD-LDAP Subject: No Such Table Bug Broken in: 0.09 Severity: Important Owner: Nobody Requestors: djdulong@gmail.com Status: new Ticket There seems to be a bug when just trying to query a table. My setup is: OS: Windows Visa Home Premium This is perl, v5.10.0 built for MSWin32-x86-multi-thread (with 3 registered patches, see perl -V for more detail) Copyright 1987-2007, Larry Wall Binary build 1002 [283697] provided by ActiveState http://www.ActiveState.com Built Jan 10 2008 11:00:53 Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. ====================== LDAP Server is Novell eDirectory 8.8 on openSuSE 10 (2.6 kernel). ==================== when I run the attached .PL script, here's the output (including my debug): 3 Folks top Test DBD::LDAP::db prepare warning: at ldap.pl line 24, line 4. Oops! The following error occurred when processing your request: No such table. () Here's some more information to help you: file: folks None DBD::LDAP::st execute failed: -524:No such table. at ldap.pl line 26, l ine 4. Cannot execute: -524:No such table. at ldap.pl line 26, line 4. I am reasonably sure my ldb file is correct based on the documentation. What other info can I provide you? Regards, Dave 10.0.1.50;389:o=home:cn=*, top:::o Test:ou=Users:(objectclass=*):cn:cn,sn,ou,title,telephonenumber,description,objectclass,dn:objectclass=top|person|organizationalPerson: ldap_scope => "sub" Folks:ou=Users:(objectclass=inetOrgPerson):cn:cn,sn,ou,title,telephonenumber,description,objectclass,dn:objectclass=top|person|organizationalPerson: ldap_scope => "sub" --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
Subject: Re: [rt.cpan.org #35045] No Such Table Bug
Date: Fri, 18 Apr 2008 08:34:47 -0400
To: bug-DBD-LDAP [...] rt.cpan.org
From: "David Dulong" <djdulong [...] gmail.com>
Turns out it was the {ldap_CaseTableNames} that did the trick. I'm kinda a newbie to LDAP - is that LDAP specific or is that a function of your extension to the DBI? Thanks for your support! Regards, Dave On Thu, Apr 17, 2008 at 11:39 PM, Jim Turner via RT < bug-DBD-LDAP@rt.cpan.org> wrote: Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=35045 > > > Hi, Thanks for using DBD::LDAP. I don't currently have access to a > working LDAP server to test your configuration on, but looking at what > you've got, try this: > > 1) Does your "top" table work? If so, try adding a "ldap_CaseTableNames > => 1" to your ->connect() function - ie. > DBI->connect("DBI:LDAP:ldapdb",'admin','<somepassword>', > {ldap_CaseTableNames => 1})... > > 2) I'm now sure if my mail pgm wrapped your configuration file or not, > but if not, you need to make sure that each "table" is defined on a single > line. > > 3) I just looked at the old configuration file I used to use (where I > used to work) and it looked like you should change your table line to look > like this: > > Folks:ou=Users, > :objectclass=inetOrgPerson:cn:cn,sn,ou,title,telephonenumber,description,objectclass,dn:objectclass=top|person|organizationalPerson:ldap_scope=>'sub' > > You might add this table line and try it as well: > > root:::cn > > See if any of these suggestions works for you. > > Jim Turner > > David Dulong via RT <bug-DBD-LDAP@rt.cpan.org> wrote: > Mon Apr 14 21:59:23 2008: Request 35045 was acted upon. > Transaction: Ticket created by djdulong > Queue: DBD-LDAP > Subject: No Such Table Bug > Broken in: 0.09 > Severity: Important > Owner: Nobody > Requestors: djdulong@gmail.com > Status: new > Ticket > > > There seems to be a bug when just trying to query a table. > > My setup is: > > OS: Windows Visa Home Premium > > This is perl, v5.10.0 built for MSWin32-x86-multi-thread > (with 3 registered patches, see perl -V for more detail) > > Copyright 1987-2007, Larry Wall > > Binary build 1002 [283697] provided by ActiveState > http://www.ActiveState.com <http://www.activestate.com/> > Built Jan 10 2008 11:00:53 > > Perl may be copied only under the terms of either the Artistic License > or the > GNU General Public License, which may be found in the Perl 5 source kit. > > Complete documentation for Perl, including FAQ lists, should be found on > this system using "man perl" or "perldoc perl". If you have access to > the > Internet, point your browser at http://www.perl.org/, the Perl Home > Page. > ====================== > > LDAP Server is Novell eDirectory 8.8 on openSuSE 10 (2.6 kernel). > > ==================== > > when I run the attached .PL script, here's the output (including my > debug): > > 3 > Folks > top > Test > DBD::LDAP::db prepare warning: at ldap.pl line 24, line 4. > > Oops! The following error occurred when processing your request: > > No such table. () > > Here's some more information to help you: > > file: folks > None > > DBD::LDAP::st execute failed: -524:No such table. at ldap.pl line 26, > l > ine 4. > Cannot execute: -524:No such table. at ldap.pl line 26, line 4. > > I am reasonably sure my ldb file is correct based on the > documentation. What other info can I provide you? > > Regards, > Dave > > 10.0.1.50;389:o=home:cn=*, > top:::o > Test:ou=Users:(objectclass=*):cn:cn,sn,ou,title,telephonenumber,description,objectclass,dn:objectclass=top|person|organizationalPerson: > ldap_scope => "sub" > Folks:ou=Users:(objectclass=inetOrgPerson):cn:cn,sn,ou,title,telephonenumber,description,objectclass,dn:objectclass=top|person|organizationalPerson: > ldap_scope => "sub" > > > > --------------------------------- > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it > now. > > Hi, Thanks for using DBD::LDAP. I don't currently have access to a > working LDAP server to test your configuration on, but looking at what > you've got, try this: > > 1) Does your "top" table work? If so, try adding a "ldap_CaseTableNames > => 1" to your ->connect() function - ie. > DBI->connect("DBI:LDAP:ldapdb",'admin','<somepassword>', > {ldap_CaseTableNames => 1})... > > 2) I'm now sure if my mail pgm wrapped your configuration file or not, > but if not, you need to make sure that each "table" is defined on a single > line. > > 3) I just looked at the old configuration file I used to use (where I > used to work) and it looked like you should change your table line to look > like this: > > Folks:ou=Users, > :objectclass=inetOrgPerson:cn:cn,sn,ou,title,telephonenumber,description,objectclass,dn:objectclass=top|person|organizationalPerson:ldap_scope=>'sub' > > You might add this table line and try it as well: > > root:::cn > > See if any of these suggestions works for you. > > Jim Turner > > *David Dulong via RT <bug-DBD-LDAP@rt.cpan.org>* wrote: > > > Mon Apr 14 21:59:23 2008: Request 35045 was acted upon. > Transaction: Ticket created by djdulong > Queue: DBD-LDAP > Subject: No Such Table Bug > Broken in: 0.09 > Severity: Important > Owner: Nobody > Requestors: djdulong@gmail.com > Status: new > Ticket > > > There seems to be a bug when just trying to query a table. > > My setup is: > > OS: Windows Visa Home Premium > > This is perl, v5.10.0 built for MSWin32-x86-multi-thread > (with 3 registered patches, see perl -V for more detail) > > Copyright 1987-2007, Larry Wall > > Binary build 1002 [283697] provided by ActiveState > http://www.ActiveState.com <http://www.activestate.com/> > Built Jan 10 2008 11:00:53 > > Perl may be copied only under the terms of either the Artistic License > or the > GNU General Public License, which may be found in the Perl 5 source kit. > > Complete documentation for Perl, including FAQ lists, should be found on > this system using "man perl" or "perldoc perl". If you have access to > the > Internet, point your browser at http://www.perl.org/, the Perl Home > Page. > ====================== > > LDAP Server is Novell eDirectory 8.8 on openSuSE 10 (2.6 kernel). > > ==================== > > when I run the attached .PL script, here's the output (including my > debug): > > 3 > Folks > top > Test > DBD::LDAP::db prepare warning: at ldap.pl line 24, line 4. > > Oops! The following error occurred when processing your request: > > No such table. () > > Here's some more information to help you: > > file: folks > None > > DBD::LDAP::st execute failed: -524:No such table. at ldap.pl line 26, > l > ine 4. > Cannot execute: -524:No such table. at ldap.pl line 26, line 4. > > I am reasonably sure my ldb file is correct based on the > documentation. What other info can I provide you? > > Regards, > Dave > > 10.0.1.50;389:o=home:cn=*, > top:::o > Test:ou=Users:(objectclass=*):cn:cn,sn,ou,title,telephonenumber,description,objectclass,dn:objectclass=top|person|organizationalPerson: > ldap_scope => "sub" > Folks:ou=Users:(objectclass=inetOrgPerson):cn:cn,sn,ou,title,telephonenumber,description,objectclass,dn:objectclass=top|person|organizationalPerson: > ldap_scope => "sub" > > > ------------------------------ > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it > now.<http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ> > > >
Subject: Re: [rt.cpan.org #35045] No Such Table Bug
Date: Fri, 18 Apr 2008 18:11:01 -0700 (PDT)
To: bug-DBD-LDAP [...] rt.cpan.org
From: Jim Turner <turnerjw784 [...] yahoo.com>

Message body is not shown because it is too large.

Message body is not shown because it is too large.

I believe this is resolved and I forgot to close the ticket. There's a new release (v0.10), plz upgrade and report any issues in a new ticket. Thanks, Jim Turner