Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7898143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:21:14+00:00 2026-06-03T08:21:14+00:00

I have been trying to set up my first real openLDAP instance for a

  • 0

I have been trying to set up my first real openLDAP instance for a login page and I have run into a large problem getting it to start intially. Every time I start LDAP and do an initial search I get a response that indicates that I have no domain set up:

# extended LDIF
#
# LDAPv3
# base <> with scope baseObject
# filter: (objectclass=*)
# requesting: namingContexts 
#

#
dn:
namingContexts: dc=nodomain

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1

However, my understanding is that if I edit /etc/ldap/slapd.conf to change the suffix I can get the server to start with a domain of my choosing. To that end I have the following slapd.conf:

# slapd.conf - configuration
include /etc/ldap/schema/core.schema
include /etc/ldap/schema/cosine.schema
include /etc/ldap/schema/inetorgperson.schema
pidfile /var/run/slapd/slapd.pid
argsfile /var/run/slapd/slapd.args
loglevel any
modulepath /usr/lib/ldap
# modelpath /usr/local/libexc/openldap
moduleload back_hdb
######################
# DB configuration   #
#####################
database hdb
suffix "dc=test,dc=com"
rootdn "cn=root,dc=test,dc=com"
rootpw secret
directory /var/lib/ldap
# directory /usr/local/var/openldap-data
index objectClass,cn eq
########    
# ACLs #
########
access to attrs=userPassword
       by anonymous auth
       by self write
       by * none
access to *
       by self write
       by * none

When I run slapd with debugging switched to config I get some output that I think indicates that my config file is not being loaded; but I am not entirely sure what to look at or look for at this point, and none of the tutorials I have found online have worked around this issue. If it helps anyone, I have done all of my installs and re-installs using apt-get slapd on a ubuntu-11.10 box. This is probably just a dumb mistake caused by my own ignorance, but I am at a loss to find it at this point.

Also I am attaching the startup debug output below just in case someone finds it useful.

@(#) $OpenLDAP: slapd 2.4.25 (Nov 14 2011 21:34:11) $
    buildd@yellow:/build/buildd/openldap-2.4.25/debian/build/servers/slapd
loaded module back_hdb
module back_hdb: null module registered
index objectClass 0x0004
slapd starting
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T08:21:15+00:00Added an answer on June 3, 2026 at 8:21 am

    You should be using the -H switch with ldapsearch to specify what server to search.

    The listeners are set up via the HOST_LIST parameter in /opt/symas/etc/openldap/symas-openldap.conf You can check this file to examine your current setup. The default is to listen on the loopback address.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For while I have been trying to set the Page Scaling of Excel page
I have been trying to set the value of a hidden input by using
for around 5 consecutive days i have been trying to set up my computer
I have been trying out the MoreLikeThis Bundle to bring back a set of
I have been trying real hard understanding regular expression, Is there any way I
I have been trying to set up a program that sends a push notification
I have been trying to set the TTL on ICMP packets using the boost::asio::ip::unicast::hops
I have been trying to write a set of htaccess rules that will do
I have been trying to set up an EDE project for C++ (emacs24 +
First question so be gentle. I have been trying some projects involving the webbrowser

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.