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

Re: Help with the basics



I had a similar problem.  Try either setting your searchbase in
ldap.conf or specify it when you do a search:

ldapsearch -h localhost "o=OneNet ICI,c=US" 'objectclass=*'

That worked for me.

--willem

Wes Brown wrote:
> 
> I am working with OpenLDAP 1.2.0 with the newest Sleepycat Berkeley DB
> 2.7.3.  I have followed examples from many places but things still do
> not work in every way that I want.
> 
> I am able to get information from the slapd server using Netscape's URL
> form of ldap://localhost/cn=Elmer Weston Brown,o=OneNet ICI,c=US
> 
> My entry, however, contains multiple "cn" entries.
> Netscape tells me "Not found" if I enter a URL
> ldap://localhost/cn=Wes Brown,o=OneNet ICI,c=US
> 
> My entries are very few.  They came from this ldif information
> dn: o=OneNet ICI, c=US
> o: OneNet ICI
> objectclass: organization
> 
> dn: cn=Elmer Weston Brown, o=OneNet ICI, c=US
> cn: Wes Brown
> cn: E. Weston Brown
> cn: Elmer W. Brown
> cn: Elmer Brown
> sn: Brown
> title: Manager of Systems and Support
> postaladdress: 23230 Chargrin Blvd. $ Beachwood, OH  44122
> uid: ewb
> userpassword: foobar
> mail: ewb@OneNet-ICI.com
> onvacation: FALSE
> drink: water
> homephone: +1 216 371 5294
> pager: +1 216 648 2473
> facsimiletelephonenumber: +1 216 765 1758
> telephonenumber: +1 216 765 1390
> objectclass: person
> 
> When I tried 'ldapsearch -h localhost objectclass=*' I received an error
> of "ldap_seach: No such object"
> 
> I know that I am likely not doing something correctly, but I do not know
> enough about this to know what.
> 
> I would like to get this LDAP server working as a company wide address
> book for Netscape Communicator, Eudora Pro, et. al.
> 
> I keep getting weird results from the Netscape Directory search stuff.
> I will get errors like "Failed to bind to 'OneNet ICI' due to LDAP error
> 'Unknown error' (0xFFFFFFFF)"
> 
> I can provide more information and questions as needed.  Thank you for
> your assistance.  The mailing list archive has been very helpful to this
> point, but I have not been able to find anything the even looks like the
> problems I am having.
> 
> Wes

-- 
-----------------------------------------------------------------
Bill Hirsch			phone:  415.721.3213 
Systems Administrator		email:  willem@lucasdigital.com
Industrial Light + Magic
-----------------------------------------------------------------