[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how too fill the directory


have  you seen quick start guide on

http://www.openldap.org/doc/admin22/quickstart.html

it will help you so much about  slapd.conf (acctualy about suffix)

regard
aw
Adam Zaleski wrote:

Hi

Maybe I'm lame but i don't know what to do :)
I have successfully build my qmail + ldap patch
and now I want to fill  my ldap directory with some
accounts. I'm trying to do this like it's show
on http://lifewithqmail.org/ldap/

There is no sample slapd.conf file show there.
So, my slapd.file looks like:

database ldbm
suffix "dc=bryndzel,dc=org"
rootdn "cn=Manager,dc=bryndzel,dc=org"
rootpw secret
directory /var/lib/openldap-data

My ldap version is:

[root@samuel qmail-lfif-lifewithqmail]# rpm -qa |grep ldap
openldap-libs-2.2.15-1
openldap-2.2.15-1
openldap-servers-2.2.15-1
openldap-devel-2.2.15-1
openldap-backend-ldbm-2.2.15-1
openldap-backend-bdb-2.2.15-1
[root@samuel qmail-lfif-lifewithqmail]#

I have included qmail.schema from ldap
patch and also core.schema cosine.schema
inetorgperson.schema nis.schema
and local.schema.

My ldif file (based on lifewithqmail.org/ldap/) looks like:

[root@samuel qmail-ldif-lifewithqmail]# cat my.ldif
suffix  "ou=company, c=CC"

dn: o=company, c=CC
objectclass: top
objectclass: organisation
o: company

dn: ou=accounts, o=company, c=CC
objectclass: top
objectclass: organizationalUnit
ou: accounts

dn: uid=elvis, ou=accounts, o=company, c=CC
cn: Elvis Presley
sn: Presley
objectClass: top
objectClass: person
objectClass: inetOrgPerson
objectClass: qmailUser
mail: elvis@xxxxxxxxxxxxx
mailAlternateAddress: elvis.presley@xxxxxxxxxxxxx
mailAlternateAddress: the-king@xxxxxxxxxxxxx
mailAlternateAddress: theking@xxxxxxxxxxx
mailHost: mailhost1.graceland.com
mailMessageStore: /var/qmail/maildirs/elvis
uid: elvis
userPassword: {MD5}X03MO1qnZdYdgyfeuILPmQ==


[root@samuel qmail-ldif-lifewithqmail]#

Next, I've typed:

ldapadd -xacrv -h localhost -D "cn=Manager,dc=bryndzel,dc=org" -w secret -f my.ldif

And i sow:

ldap_initialize( ldap://localhost )
ldapadd: invalid format (line 1) entry: ""
add objectclass:
       top
       organisation
add o:
       company
adding new entry "o=company, c=CC"
modify complete
ldap_add: Server is unwilling to perform (53)
       additional info: no global superior knowledge

add objectclass:
       top
       organizationalUnit
add ou:
       accounts
adding new entry "ou=accounts, o=company, c=CC"
modify complete
ldap_add: Server is unwilling to perform (53)
       additional info: no global superior knowledge

add cn:
       Elvis Presley
add sn:
       Presley
add objectClass:
       top
       person
       inetOrgPerson
       qmailUser
add mail:
       elvis@xxxxxxxxxxxxx
add mailAlternateAddress:
       elvis.presley@xxxxxxxxxxxxx
       the-king@xxxxxxxxxxxxx
       theking@xxxxxxxxxxx
add mailHost:
       mailhost1.graceland.com
add mailMessageStore:
       /var/qmail/maildirs/elvis
add uid:
       elvis
add userPassword:
       {MD5}X03MO1qnZdYdgyfeuILPmQ==
adding new entry "uid=elvis, ou=accounts, o=company, c=CC"
modify complete
ldap_add: Server is unwilling to perform (53)
       additional info: no global superior knowledge

[root@samuel qmail-ldif-lifewithqmail]#




What's wrong???? What should I change on my.ldif or on my
slapd.conf to add sample account?? Please help :)


p.s sorry for my english


best regards
Adam








This mailing list archive is a service of Copilot Consulting.