Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

OpenLDAP help needed

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
beexo
Posts: 13
Joined: 2005-07-08 16:05

OpenLDAP help needed

#1 Post by beexo »

Hi,


I want to setup an ldap server, but are having difficulties. I configured slapd and started it, but something is wrong. When I do a ldapsearch I get the following response: "ldap_bind: Can't contact LDAP server (-1)"

I have done alot of searching but have not been able to find out what the problem is.

Any help is appreciated.

Thanks.

___________
Debian 3.1R0
PII-300
512 RAM
160GB

beexo
Posts: 13
Joined: 2005-07-08 16:05

#2 Post by beexo »

Ĩ decided to delete the database. Might have been corrupted. But I think something is still not right.
The dadabase is now empty. When I do
ldapsearch -x -b '' -s base '(objectclass=*)' namingContents

I get
# extended LDIF
#
# LDAPv3
# base <> with scope base
# filter: (objectclass=*)
# requesting: namingContents
#

#
dn:

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1


Shouldn't I have something after dn:?

Guest

#3 Post by Guest »

I definitely have a problem that I can't seem to overcome.

When I try to populate the dadabase with /usr/sbin/slapadd -l base.ldif , I get the following error: slapadd: dn="dc=test,dc=int" (line=5): (64) naming attribute 'dc' is not present in entry

This is my LDIF file

dn: dc=test,dc=int
objectClass: organization
o: test.int
description: My Organization

dn: cn=manager,dc=test,dc=int
objectClass: organizationalRole
objectClass: simpleSecurityObject
cn: admin
description: LDAP administrator
userPassword: {SSHA}8bbwpJGHEjrT0jPayc1r0xwtbINdv2oB

dn: cn=nss, dc=test,dc=int
objectClass: organizationalRole
objectClass: simpleSecurityObject
cn: nss
description: LDAP NSS user for user-lookups
userPassword: {SSHA}LMLXBKJ0uInXQNpxXsHU5+sIPjH2lo+K

dn: ou=People, dc=test,dc=int
objectClass: organizationalUnit
ou: People

dn: ou=Group, dc=test,dc=int
objectClass: top
objectClass: organizationalUnit
ou: Group


What am I missing?

Post Reply