The ldapi:/// worked just fine, as did ldap:// with an IP or a name. And I don't have an entry in /etc/hosts for the ldap server, I'm really using DNS. Reboot works just fine, login prompt, and I can login at the console (and via ssh) with an ldap user.
I'm sorry but I will need the files I requested in comment #16.
Here are mine:
ubuntu@04-57:~$ cat /etc/ldap.conf | grep -vE "^(#|$)"
base dc=example,dc=com
uri ldap://xenial-slapd-server.lxd
ldap_version 3
pam_password exop
ubuntu@04-57:~$ cat /etc/ldap/ldap.conf | grep -vE "^(#|$)"
URI ldap://xenial-slapd.server.lxd
BASE dc=example,dc=com
TLS_CACERT /etc/ssl/certs/ca-certificates.crt
I used these ldif files to minimally populate the ldap server:
ubuntu@04-57:~$ cat base.ldif usergroup.ldif
dn: ou=People,dc=example,dc=com
ou: People
objectClass: organizationalUnit
The ldapi:/// worked just fine, as did ldap:// with an IP or a name. And I don't have an entry in /etc/hosts for the ldap server, I'm really using DNS. Reboot works just fine, login prompt, and I can login at the console (and via ssh) with an ldap user.
I'm sorry but I will need the files I requested in comment #16.
Here are mine:
ubuntu@04-57:~$ cat /etc/ldap.conf | grep -vE "^(#|$)" xenial- slapd-server. lxd
base dc=example,dc=com
uri ldap://
ldap_version 3
pam_password exop
ubuntu@04-57:~$ cat /etc/ldap/ldap.conf | grep -vE "^(#|$)" xenial- slapd.server. lxd certs/ca- certificates. crt
URI ldap://
BASE dc=example,dc=com
TLS_CACERT /etc/ssl/
I used these ldif files to minimally populate the ldap server:
ubuntu@04-57:~$ cat base.ldif usergroup.ldif dc=example, dc=com
dn: ou=People,
ou: People
objectClass: organizationalUnit
dn: ou=Group, dc=example, dc=com ou=People, dc=example, dc=com
ou: Group
objectClass: organizationalUnit
dn: uid=testuser1,
uid: testuser1
objectClass: inetOrgPerson
objectClass: posixAccount
cn: testuser1
sn: testuser1
givenName: testuser1
mail: <email address hidden>
userPassword: testuser1secret
uidNumber: 10001
gidNumber: 10001
loginShell: /bin/bash
homeDirectory: /home/testuser1
dn: cn=testuser1, ou=Group, dc=example, dc=com
cn: testuser1
objectClass: posixGroup
gidNumber: 10001
memberUid: testuser1
dn: cn=ldapusers, ou=Group, dc=example, dc=com
cn: ldapusers
objectClass: posixGroup
gidNumber: 10100
memberUid: testuser1