LDAP issues. no available LDAP server found. failed to bind to LDAP server ldap://localhost/: Can't contact LDAP server: Transport endpoint is not connected

:uk:/:us:

Hello everyone.
I’m a litlle bit desperate tonight, because I’m facing a huge LDAP problem.

The problems:

  • I can’t login with any user on the web portal.
  • I can’t add any user.
  • I can’t change any user password
  • etc.

My current Yunohost config:

yunohost:
repo: stable
version: 3.6.5.3
yunohost-admin:
repo: stable
version: 3.6.5.1
moulinette:
repo: stable
version: 3.6.4.1
ssowat:
repo: stable
version: 3.6.4`

My hardware config (it is a VM running on proxmox):

cpu:
load:
cpucore: 2
min1: 0.0
min15: 0.0
min5: 0.0
usage:
cpucore: 2
ctx_switches: 790614
guest: 0.0
guest_nice: 0.0
idle: 99.2
interrupts: 515029
iowait: 0.2
irq: 0.0
nice: 0.0
soft_interrupts: 692837
softirq: 0.0
steal: 0.0
syscalls: 0
system: 0.1
time_since_update: 2539.38071918
total: 0.6
user: 0.4
infos:
hostname: maison.domain.tld
hr_name: debian 9.11 64bit
linux_distro: debian 9.11
os_name: Linux
os_version: 4.9.0-11-amd64
platform: 64bit
memory:
ram:
active: 1498697728
available: 5331099648
buffers: 264994816
cached: 5177032704
free: 5331099648
inactive: 4052160512
percent: 14.9
shared: 80486400
total: 6261870592
used: 930770944
swap:
free: 6442192896
percent: 0.0
sin: 49152
sout: 266240
total: 6442446848
used: 253952
process:
running: 1
sleeping: 136
thread: 200
total: 137
uptime: 9 days, 7:03:49

Some lines on /var/log/daemon.log:

Dec 29 16:28:07 maison nslcd[1375]: [1493c2] <passwd=“ldap”> ldap_result() failed: Can’t contact LDAP server
Dec 29 16:28:07 maison nslcd[1375]: [1493c2] <passwd=“ldap”> ldap_abandon() failed to abandon search: Can’t contact LDAP server: Transport endpoint is not connected
Dec 29 16:28:07 maison nslcd[1375]: [1493c2] <passwd=“ldap”> failed to bind to LDAP server ldap://localhost/: Can’t contact LDAP server: Transport endpoint is not connected
Dec 29 16:28:07 maison nslcd[1375]: [1493c2] <passwd=“ldap”> no available LDAP server found, sleeping 1 seconds
Dec 29 16:28:08 maison nslcd[1375]: [1c4250] <passwd=“ldap”> failed to bind to LDAP server ldap://localhost/: Can’t contact LDAP server: Transport endpoint is not connected
Dec 29 16:28:08 maison nslcd[1375]: [1c4250] <passwd=“ldap”> no available LDAP server found, sleeping 1 seconds
Dec 29 16:28:08 maison nslcd[1375]: [1493c2] <passwd=“ldap”> failed to bind to LDAP server ldap://localhost/: Can’t contact LDAP server: Transport endpoint is not connected
Dec 29 16:28:08 maison nslcd[1375]: [1493c2] <passwd=“ldap”> no available LDAP server found, sleeping 1 seconds
Dec 29 16:28:09 maison nslcd[1375]: [1c4250] <passwd=“ldap”> failed to bind to LDAP server ldap://localhost/: Can’t contact LDAP server: Transport endpoint is not connected
Dec 29 16:28:09 maison nslcd[1375]: [1c4250] <passwd=“ldap”> no available LDAP server found, sleeping 1 seconds
Dec 29 16:28:09 maison nslcd[1375]: [1493c2] <passwd=“ldap”> failed to bind to LDAP server ldap://localhost/: Can’t contact LDAP server: Transport endpoint is not connected
Dec 29 16:28:09 maison nslcd[1375]: [1493c2] <passwd=“ldap”> no available LDAP server found, sleeping 1 seconds
Dec 29 16:28:10 maison nslcd[1375]: [1c4250] <passwd=“ldap”> failed to bind to LDAP server ldap://localhost/: Can’t contact LDAP server: Transport endpoint is not connected
Dec 29 16:28:10 maison nslcd[1375]: [1c4250] <passwd=“ldap”> no available LDAP server found, sleeping 1 seconds
Dec 29 16:28:10 maison nslcd[1375]: [1493c2] <passwd=“ldap”> failed to bind to LDAP server ldap://localhost/: Can’t contact LDAP server: Transport endpoint is not connected
Dec 29 16:28:10 maison nslcd[1375]: [1493c2] <passwd=“ldap”> no available LDAP server found, sleeping 1 seconds
Dec 29 16:28:11 maison nslcd[1375]: [1c4250] <passwd=“ldap”> failed to bind to LDAP server ldap://localhost/: Can’t contact LDAP server: Transport endpoint is not connected
Dec 29 16:28:11 maison nslcd[1375]: [1c4250] <passwd=“ldap”> no available LDAP server found: Can’t contact LDAP server: Transport endpoint is not connected
Dec 29 16:28:11 maison nslcd[1375]: [1493c2] <passwd=“ldap”> failed to bind to LDAP server ldap://localhost/: Can’t contact LDAP server: Transport endpoint is not connected
Dec 29 16:28:11 maison nslcd[1375]: [1493c2] <passwd=“ldap”> no available LDAP server found, sleeping 1 seconds
Dec 29 16:28:12 maison nslcd[1375]: [1493c2] <passwd=“ldap”> failed to bind to LDAP server ldap://localhost/: Can’t contact LDAP server: Transport endpoint is not connected
Dec 29 16:28:12 maison nslcd[1375]: [1493c2] <passwd=“ldap”> no available LDAP server found, sleeping 1 seconds
Dec 29 16:28:13 maison nslcd[1375]: [1493c2] <passwd=“ldap”> failed to bind to LDAP server ldap://localhost/: Can’t contact LDAP server: Transport endpoint is not connected
Dec 29 16:28:13 maison nslcd[1375]: [1493c2] <passwd=“ldap”> no available LDAP server found, sleeping 1 seconds
Dec 29 16:28:14 maison nslcd[1375]: [1493c2] <passwd=“ldap”> failed to bind to LDAP server ldap://localhost/: Can’t contact LDAP server: Transport endpoint is not connected
Dec 29 16:28:14 maison nslcd[1375]: [1493c2] <passwd=“ldap”> no available LDAP server found, sleeping 1 seconds
Dec 29 16:28:15 maison nslcd[1375]: [1493c2] <passwd=“ldap”> failed to bind to LDAP server ldap://localhost/: Can’t contact LDAP server: Transport endpoint is not connected
Dec 29 16:28:15 maison nslcd[1375]: [1493c2] <passwd=“ldap”> no available LDAP server found, sleeping 1 seconds
Dec 29 16:28:16 maison nslcd[1375]: [1493c2] <passwd=“ldap”> failed to bind to LDAP server ldap://localhost/: Can’t contact LDAP server: Transport endpoint is not connected
Dec 29 16:28:16 maison nslcd[1375]: [1493c2] <passwd=“ldap”> no available LDAP server found: Can’t contact LDAP server: Transport endpoint is not connected
Dec 29 16:29:30 maison systemd[1]: Starting LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol)…
Dec 29 16:29:30 maison slapd[3579]: Starting OpenLDAP: slapd.
Dec 29 16:29:30 maison systemd[1]: Started LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol).
Dec 29 16:34:21 maison nslcd[1375]: [802f5d] <passwd=““> request denied by validnames option
Dec 29 16:35:43 maison systemd[1]: Stopping LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol)…
Dec 29 16:35:43 maison slapd[3685]: Stopping OpenLDAP: slapd.
Dec 29 16:35:43 maison systemd[1]: Stopped LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol).
Dec 29 16:39:05 maison systemd[1]: Starting Clean php session files…
Dec 29 16:39:05 maison systemd[1]: Started Clean php session files.
Dec 29 16:39:44 maison nslcd[1375]: [74a209] <passwd=”
”> request denied by validnames option
Dec 29 16:40:36 maison nslcd[1375]: [85655a] <passwd=““> request denied by validnames option
Dec 29 16:45:15 maison systemd[1]: Starting LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol)…
Dec 29 16:45:15 maison slapd[3854]: Starting OpenLDAP: slapd.
Dec 29 16:45:15 maison systemd[1]: Started LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol).
Dec 29 16:54:50 maison nslcd[1375]: [b2172a] <passwd=”
”> request denied by validnames option
Dec 29 17:09:05 maison systemd[1]: Starting Clean php session files…
Dec 29 17:09:05 maison systemd[1]: Started Clean php session files.

root@maison:/var/log# systemctl status slapd

slapd.service - LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol)
Loaded: loaded (/etc/init.d/slapd; generated; vendor preset: enabled)
Active: active (running) since Sun 2019-12-29 16:45:15 CET; 59min ago
Docs: man:systemd-sysv-generator(8)
Process: 3685 ExecStop=/etc/init.d/slapd stop (code=exited, status=0/SUCCESS)
Process: 3854 ExecStart=/etc/init.d/slapd start (code=exited, status=0/SUCCESS)
Tasks: 4 (limit: 4915)
CGroup: /system.slice/slapd.service
└─3861 /usr/sbin/slapd -h ldap://127.0.0.1:389/ ldaps:/// ldapi:/// -g openldap -u openldap -F /etc/ldap/slapd.d
Dec 29 17:30:02 maison.lescorpsdereve.space slapd[3861]: <= mdb_equality_candidates: (gidNumber) not indexed
Dec 29 17:30:02 maison.lescorpsdereve.space slapd[3861]: <= mdb_equality_candidates: (uniqueMember) not indexed
Dec 29 17:30:02 maison.lescorpsdereve.space slapd[3861]: <= mdb_equality_candidates: (gidNumber) not indexed
Dec 29 17:30:02 maison.lescorpsdereve.space slapd[3861]: <= mdb_equality_candidates: (uniqueMember) not indexed
Dec 29 17:30:02 maison.lescorpsdereve.space slapd[3861]: <= mdb_equality_candidates: (gidNumber) not indexed
Dec 29 17:30:02 maison.lescorpsdereve.space slapd[3861]: <= mdb_equality_candidates: (gidNumber) not indexed
Dec 29 17:35:57 maison.lescorpsdereve.space slapd[3861]: <= mdb_equality_candidates: (gidNumber) not indexed
Dec 29 17:35:57 maison.lescorpsdereve.space slapd[3861]: <= mdb_equality_candidates: (uniqueMember) not indexed
Dec 29 17:37:22 maison.lescorpsdereve.space slapd[3861]: <= mdb_equality_candidates: (gidNumber) not indexed
Dec 29 17:37:22 maison.lescorpsdereve.space slapd[3861]: <= mdb_equality_candidates: (uniqueMember) not indexed

My questions:

What other information should I provide ?
What can I try to start fixing the issue ?

Thank you for your help.

Bonsoir,
Est-ce que la fonction
yunohost service regen-conf slapd --dry-run
renvoie quelque chose d’utilisable ?

Thank you for your reply.

root@maison:/var/log# yunohost service regen-conf slapd --dry-run
Warning: ‘yunohost service regen-conf’ is deprecated! Please use ‘yunohost tools regen-conf’ instead.
Warning: The configuration file ‘/etc/ldap/slapd.conf’ has been manually modified and will not be updated
slapd:
applied:
pending:
/etc/ldap/slapd.conf:
status: modified

And then, I forgot the ‘–dry-run’ switch:

root@maison:/var/log# yunohost tools regen-conf
Warning: The configuration file ‘/etc/nginx/conf.d/maison.lescorpsdereve.space.conf’ has been manually modified and will not be updated
Success! The configuration has been updated for category ‘dnsmasq’
Warning: The configuration file ‘/etc/ldap/slapd.conf’ has been manually modified and will not be updated
dnsmasq:
applied:
/etc/resolv.dnsmasq.conf:
status: updated
pending:
nginx:
applied:
pending:
/etc/nginx/conf.d/maison.lescorpsdereve.space.conf:
status: modified
slapd:
applied:
pending:
/etc/ldap/slapd.conf:
status: modified

It improved the situation. Indeed, I was able to connect on the web interface with my account.
However, I still can’t change a user password:

yunohost user update gooduser -p BigPassword

Info: The operation ‘Update information of ‘gooduser’ user’ has failed! To get help, please share the full log of this operation using the command ‘yunohost log display 20191229-194617-user_update-gooduser --share’
Error: An error occurred during LDAP operation

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.