Books on LDAP? Or Newbie question?

Craig Mason (cmas@gwl.com)
Thu, 5 Sep 1996 13:56:48 -0600

Hi

I'm a total novice at LDAP, and I'm simply trying to get my LDAP
database populated...I've created a large file of my
companies' phone database.

are there any books yet on LDAP? Or a "how-to" guide?
Reading the white papers is of no help, man pages are even worse.
I want a how-to guide, step by step, hold my hand.

The slapd admin guide is pretty good, but again its not exactly step-by-step.
Any advice appreciated...

if you want to hear the problem - here it is:

I have a "stock" config of ldap running under solaris. here is slapd.conf

is-volcano% cat slapd.conf
referral ldap://ldap.itd.umich.edu
database ldbm
suffix "o=Great-West Life, c=US"
rootdn "cn=Jim Traeber, 0=Great-West Life, c=US"
rootpw ****** (I deleted this for security in this email)

ok no big deal....here is ldif.1

is-volcano% cat ldif.1
dn: o=Great-West Life, c=US
o: Great-West Life
objectclass: organization

dn: cn=Jim Traeber, o=Great-West Life, c=US
cn: Jim
sn: Traeber
mail: jtra@gwl.com
objectclass: person

when I do a search, no prob:
is-volcano% ../bin/ldapsearch -h 127.0.0.1 'objectclass=*'
o=Great-West Life, c=US
o=Great-West Life
objectclass=organization

cn=Jim Traeber, o=Great-West Life, c=US
cn=Jim
sn=Traeber
mail=jtra@gwl.com
objectclass=person

Now, try to populate with this small database ( the real one is bigger)

dn: cn=:"401admin, Email-Alias",o=Great-West Life, c=US
cn: 401admin, Email-Alias
cn: 401admin
cn: Email-Alias 401admin
objectclass: alias
sn: 401admin

dn: cn=:"401cash, Email-Alias",o=Great-West Life, c=US
cn: 401cash, Email-Alias
cn: 401cash
cn: Email-Alias 401cash
objectclass: alias
sn: 401cash

dn: cn=:"Mason, Mr. Craig",o=Great-West Life, c=US
cn: Mason, Mr. Craig
cn: cmas
cn: Craig Mason
objectclass: person
sn: Mason

use the command

sudo ../etc/ldif2ldbm -i ./testfile.cmas -f ./slapd.conf
is-volcano%

comes back, no problems....yet when I do the search again...

../bin/ldapsearch -h 127.0.0.1 'objectclass=*'
o=Great-West Life, c=US
o=Great-West Life
objectclass=organization

cn=Jim Traeber, o=Great-West Life, c=US
cn=Jim
sn=Traeber
mail=jtra@gwl.com
objectclass=person
is-volcano%

nothing! what gives? Any help appreciated...is it because root is not
in the rootdn?

...Craig

Craig Mason
Associate Manager, Distributed Systems Services
Great-West Life Assurance Co.
5800 DTC Pkwy 1NB
Englewood, CO 80111
Voice (303)689-3583 Fax(303)689-3022
Email: cmas@gwl.com