ldap installation Server guide implies for default settings that do not happen.

Bug #1239914 reported by Eliezer Croitoru
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Server Guide
Fix Released
Undecided
Andreas Hasenack

Bug Description

There is a failure in step 3 of the post-install inspection.
I changed the hosts file to match the pattern that the Guide states and then I run:
ldapsearch -x -LLL -H ldap:/// -b dc=example,dc=com dn

with the domain I choose.
I then get a message "No such object (32)"
Which states that the installation doesn't create the directory as it stated in the guide.

Tags: ldap

Related branches

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

I think changing /etc/hosts just to get the right top-level DIT entry is bad.

In any case, what was missing is to actually change the hostname of the machine after changing /etc/hosts and before installing slapd. In other words:

1. change /etc/hosts (for example, 127.0.1.1 slapd.example.com slapd)
2. change hostname: sudo hostname slapd <-- same short name as above
3. test that "hostname -f" returns the long entry in /etc/hosts: slapd.example.com
4. install slapd: sudo apt install slapd
5. revert (1) and (2)

What I will propose in the docs is to use dpkg-reconfigure to change the DIT right after installation, or just accept whatever is your default domain.

Changed in serverguide:
assignee: nobody → Andreas Hasenack (ahasenack)
status: New → In Progress
Changed in serverguide:
status: In Progress → Fix Committed
Changed in serverguide:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.