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

Re: Quick Start Guide - newbie question



On Thu, 2004-02-05 at 08:54, Jonathan Baker-Bates wrote:
> Hi - this is a pretty ridiculous question, but in Section 3 of the Quick
> Start Guide ("See if it Works") it describes running the command:
> 
> ldapsearch -x -b 'dc=example,dc=com' '(objectclass=*)'
> 
> and then says:
> 
> "This command will search for and retrieve every entry in the database...
> You are now ready to add more entries using ldapadd(1) or another LDAP
> client"
> 
> So, er, HOW do you tell if it's working then?
> 
> When I added my first entry with ldapadd -x -D
> "cn=Manager,dc=bakerbates,dc=com" -W -f new.ldif, I got:
> 
> Enter LDAP Password:
> adding new entry "dc=bakerbates,dc=com"
> 
> adding new entry "cn=Manager,dc=bakerbates,dc=com"
> 
> When I run the above search command, I get:
> 
> version: 2
> 
> #
> # filter: (objectclass=*)
> # requesting: ALL
> #
> 
> # search result
> search: 2
> result: 32 No such object
> 
> # numResponses: 1
> 
> So, does that mean it's working or not? To me it looks like it's not, but I
> could be wrong. It would be nice if the Guide gave me a clue!
> 
> Thanks for any help.
---
I think the author thought that it would be obvious...

ldapsearch -x -b 'dc=example,dc=com' '(objectclass=*)'

should be 

ldapsearch -x -b 'dc=bakerbates,dc=com' '(objectclass=*)'

and just to be on the safe side... I always toss in the hostspec

ldapsearch -x -h localhost -b 'dc=bakerbates,dc=com' '(objectclass=*)'

Craig