473,387 Members | 1,597 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to fix LDAP search ERROR using perl ?

147 100+
Hi,

Please help me out. I have successfully binded to my ADSI server(windows 2003 machine) from my windows XP machine?

#LDAP SEARCHING
Expand|Select|Wrap|Line Numbers
  1. my $ldapSearch = $ldap->search(base => $ldapbase,
  2.                 filter => "uid=$login");
  3.  
  4.  
  5. die "There was an error during search:\n\t" .ldap_error_name($ldapSearch->code)."   ". ldap_error_text($ldapSearch->code) 
  6.     if $ldapSearch->code;
  7.  
  8. print "No results returned\n" and exit 
  9.     if( (!$ldapSearch) || ($ldapSearch->count == 0) );
  10.  
  11. my $ldif = Net::LDAP::LDIF->new(\*STDOUT, "a");
  12. while(my $ldapEntry = $ldapSearch->pop_entry() )
  13. {
  14.     $ldif->write_entry($ldapEntry);
  15. }

ERROR in LOG FILE:
[Tue Mar 15 16:40:43 2011] [error] [client 127.0.0.1] There was an error during search:
[Tue Mar 15 16:40:43 2011] [error] [client 127.0.0.1] LDAP_OPERATIONS_ERROR Server encountered an internal error


How to solve this error? I am not getting any idea. I think so, i am going in correct path. Please help me out.
Mar 15 '11 #1
0 1276

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: James | last post by:
Why does my LDAP query from a C# console app limit its results to 1000? When I run the same query from a vb script I get over 6000 results. I have tried to set the SearchRequest.SizeLimit to a...
1
by: Serge | last post by:
Good Day Folks, I'm trying to do LDAP searches, on a Novell eDirectory I have an LDAP class defined as follows ' Contents of LDAPAuthentication.vb <script language="VB" runat="server">
1
by: Serge | last post by:
Good Day Folks, I'm trying to do LDAP searches, on a Novell eDirectory. I made the change someone suggested, but now I'm getting a differenct error. I have an LDAP class defined as follows ...
8
by: VinayKumarParakoti | last post by:
Hi all, I am new to this site and this is my first post. But this issue is of high priority. I am trying to print pdf file in browser using perl script. Onclick on hyperlink a child window...
8
by: rameshramesh | last post by:
how to search for a number of files in a directory using perl.
3
by: hakiran | last post by:
Hello all, I have been using Perl DBI the last 6months or so. I use it extensively with MySQL. But recently i tried to access Oracle DB with it and was having trouble. Any help would be...
3
by: Max58kl | last post by:
Trying to access data and print it to the screen using Perl Builders I/O Window -------------------------------------------------------------------------------- Hi I am using a program called...
17
by: pranavb85 | last post by:
Hi, I have searched around for the solution to this problem, but I am trying to call a perl script from php, and get a fatal error:Class perl not found I am using php 5.1.6 and apache 2.0 , php...
3
by: zaxxon25 | last post by:
I am having an issue with attaching 2 attachments one xip and other excel file with email and sending using perl sendmail. I tried to look on various forums and everywhere i get advice using MIME ::...
1
by: animeshnandanwar | last post by:
How to search data in attachment of a email using PERL? I am building a tool in which i require to search some keywords in the attachment of a mail. I thought of building a query engine for this...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.