[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
newbie building LDAP database
Hi,
Looked at the archieves etc but still can't work out what I am doing
wrong!!! Can anyone help. I have successfully installed openLDAP and
have setup the database and the manager entry.
Now I am trying to add some user details for email etc, but only the
manager entry goes in as I get the following error when I try and use
the organisational unit class.
# ldapadd -x -D "cn=Manager,dc=in-addr,dc=zen,dc=co,dc=uk" -W -f
new-users.ldif.orig
Enter LDAP Password:
adding new entry "dc=in-addr,dc=zen,dc=co,dc=uk"
adding new entry "cn=Manager,dc=in-addr,dc=zen,dc=co,dc=uk"
adding new entry "ou=MemberGroupA,o=companyname"
ldapadd: update failed: ou=MemberGroupA,o=companyname
ldap_add: Server is unwilling to perform (53)
additional info: referral missing
Here is a sample of new-users.ldif.orig
dn: dc=in-addr,dc=zen,dc=co,dc=uk
objectClass: top
objectClass: dcObject
objectClass: organization
o: companyname
dc: in-addr
description: compnayname Ltd
dn: cn=Manager,dc=in-addr,dc=zen,dc=co,dc=uk
objectClass: top
objectClass: organizationalRole
cn: Manager
description: LDAP Directory Administrator
dn: ou=MemberGroupA,o=companyname
objectClass: top
objectClass: organizationalUnit
ou: MemberGroupA
description: Employees of companyname ltd
dn: cn=Employee1,ou=MemberGroupA,o=compnayname
ou: MemberGroupA
o: companyname
cn: Employee1
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
mail: employee1@companyname.co.uk
Containers in sldap.conf file
include /usr/local/etc/openldap/schema/core.schema
include /usr/local/etc/openldap/schema/cosine.schema
include /usr/local/etc/openldap/schema/inetorgperson.schema
database bdb
suffix "dc=in-addr,dc=zen,dc=co,dc=uk"
directory /usr/local/var/openldap-companyname
rootdn "cn=Manager,dc=in-addr,dc=zen,dc=co,dc=uk"
rootpw {SSHA}that's a secret!!!
index objectClass,uid eq
index mail,givenname eq,subinitial
index cn,sn,st pres,eq,sub
ldapsearch command following failure of ldapadd
# ldapsearch -x -b 'dc=in-addr,dc=zen,dc=co,dc=uk' '(objectclass=*)'
# extended LDIF
#
# LDAPv3
# base <dc=in-addr,dc=zen,dc=co,dc=uk> with scope sub
# filter: (objectclass=*)
# requesting: ALL
#
# in-addr.zen.co.uk
dn: dc=in-addr,dc=zen,dc=co,dc=uk
objectClass: top
objectClass: dcObject
objectClass: organization
o: compnayname
dc: in-addr
description: companyname Ltd
# Manager, in-addr.zen.co.uk
dn: cn=Manager,dc=in-addr,dc=zen,dc=co,dc=uk
objectClass: top
objectClass: organizationalRole
cn: Manager
description: LDAP Directory Administrator
# search result
search: 2
result: 0 Success
# numResponses: 3
# numEntries: 2
# ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts
# extended LDIF
#
# LDAPv3
# base <> with scope base
# filter: (objectclass=*)
# requesting: namingContexts
#
dn:
namingContexts: dc=in-addr,dc=zen,dc=co,dc=uk
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
Is there something obvious I have missed!!! eventually I will add
directory storage stuff to the databse, but just want to get user
details in first!!!
cheers if you can help out or point me to further documentation/web
sites I can read
Greg
--
Support Engineer