ldap installation Server guide implies for default settings that do not happen.
Bug #1239914 reported by
Eliezer Croitoru
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.
Related branches
lp:~ahasenack/serverguide/no-etc-hosts-tricks-for-dit-suffix-1239914
- Doug Smythies: Approve
-
Diff: 43 lines (+14/-12)1 file modifiedserverguide/C/network-auth.xml (+14/-12)
Changed in serverguide: | |
status: | In Progress → Fix Committed |
Changed in serverguide: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
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.