[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: RESULT err=9



Ian,

Also, the search filter should be "(objectclass=*)".  I think
"o=*" would just search for "organizations", but that doesn't
explain why the search is hanging.  I'd expect the search
to produce "ldap_search: No such object" errors rather
than hang.   The err=9 in your syslog means "partial results".
Do you have any referrals in your slapd.conf?  Perhaps
your server is referring ldapsearch to another ldap server
that it can't get reach.  Try starting the server with debugging
enabled (with "-d 1" for starters) and using ldapsearch -v to
see if you can get more info about what the server and client
are doing.

-- 
Tim Peterman - Unix & Web Server Administration
Lockheed Martin GES/EIS, Moorestown, NJ
mailto:timothy.p.peterman@lmco.com

"Schutz, John" wrote:
> 
> It looks like SRCH base="" needs yer base...
> 
> -----Original Message-----
> From: Ian Eure [mailto:ieure@crosssound.narrows.com]
> Sent: Tuesday, May 25, 1999 10:18 AM
> To: openldap-general@OpenLDAP.org
> Subject: RESULT err=9
> 
> I'm having a difficult time getting the OpenLDAP slapd working properly.
> After I get things set up and working (unsure here, more later), I do a
> "ldapsearch 'o=*'" - as I understand it, this should return all objects.
> The ldapsearch just sits there, and in my logs, I see:
> 
> ----
> May 25 09:12:18 jade slapd[30332]: daemon: conn=3 fd=10 connection from
> localhost (127.0.0.1) accepted.
> May 25 09:12:18 jade slapd[15489]: conn=3 op=0 BIND dn="" method=128
> May 25 09:12:18 jade slapd[15489]: conn=3 op=0 RESULT err=0 tag=97
> nentries=0
> May 25 09:12:18 jade slapd[15490]: conn=3 op=1 SRCH base="" scope=2
> filter="(o=*)"
> May 25 09:12:18 jade slapd[15490]: conn=3 op=1 RESULT err=9 tag=101
> nentries=0
> ----
> The ldapsearch process never exits, even after waiting >30 minutes. A
> strace after ~45 seconds shows:
> 
> ----
> select(1024, [3], [], NULL, NULL)       = ? ERESTARTNOHAND (To be
> restarted)
> --- SIGINT (Interrupt) ---
> ----
> the SIGINT is from my control-c.
> 
> The same thing happens no matter what I feed to ldapsearch; perhaps I'm
> just complerely lost on how to use it, but I have read all the docs I
> can find, and still can't get the thing working.
> 
> About the configuration part of slapd; I use Debian Linux, and the
> openldapd package has a configure script which runs when it is
> installed. It sets up the administrator account and adds a few objects.
> 
> Any help is appriciated.
> 
> --
> +-------------------------------------------------------------------------+
> | Ian Eure
> <ieure@crosssound.narrows.com>                                 |
> | Network Administrator, Cross Sound Appraisal
> Company                    |
> |
> |
> | "Believe it or not, there's more to being a sysadmin than
> rabid         |
> | technophilia."         --Annalee Newitz, "Invisible
> Heroes"             |
> +-------------------------------------------------------------------------+