<div dir="ltr">I just realized that the slapd package seemed to be marked for removal or was already removed... how is that possible actually? Output:<div><br></div><div><div>root@momafreedom:/etc# dpkg --list slapd</div><div>Desired=Unknown/Install/Remove/Purge/Hold</div><div>| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend</div><div>|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)</div><div>||/ Name                                                                                       Version                                            Architecture                                       Description</div><div>+++-==========================================================================================-==================================================-==================================================-======================</div><div>rc  slapd                                                                                      2.4.42+dfsg-2                                      armel                                              OpenLDAP server (slapd</div></div><div><br></div><div>Anyway, I just installed the package slapd again and restarted the service, seems fine now actually. everything works again... the diagnosis gives me passed everywhere too... huh? Strange!<br></div><div><br></div><div><div>root@momafreedom:/etc# apt-get install slapd</div><div>Reading package lists... Done</div><div>Building dependency tree</div><div>Reading state information... Done</div><div>Suggested packages:</div><div>  libsasl2-modules-gssapi-mit | libsasl2-modules-gssapi-heimdal</div><div>The following NEW packages will be installed:</div><div>  slapd</div><div>0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.</div><div>Need to get 1,273 kB of archives.</div><div>After this operation, 14.7 MB of additional disk space will be used.</div><div>Get:1 <a href="http://mirror.0x.sg/debian">http://mirror.0x.sg/debian</a> sid/main armel slapd armel 2.4.42+dfsg-2+b1 [1,273 kB]</div><div>Fetched 1,273 kB in 1s (708 kB/s)</div><div>Preconfiguring packages ...</div><div>Selecting previously unselected package slapd.</div><div>(Reading database ... 75843 files and directories currently installed.)</div><div>Preparing to unpack .../slapd_2.4.42+dfsg-2+b1_armel.deb ...</div><div>Unpacking slapd (2.4.42+dfsg-2+b1) ...</div><div>Processing triggers for libc-bin (2.21-6) ...</div><div>Processing triggers for systemd (228-4) ...</div><div>Setting up slapd (2.4.42+dfsg-2+b1) ...</div><div>  Backing up /etc/ldap/slapd.d in /var/backups/slapd-2.4.42+dfsg-2... done.</div><div>Processing triggers for libc-bin (2.21-6) ...</div><div>======  How can you help?  (doc: <a href="https://wiki.debian.org/how-can-i-help">https://wiki.debian.org/how-can-i-help</a> ) ======</div><div><br></div><div>-----  Show old opportunities as well as new ones: how-can-i-help --old  -----</div></div><div><div>root@momafreedom:/etc# /etc/init.d/slapd restart</div><div>[ ok ] Restarting slapd (via systemctl): slapd.service.</div></div><div><br></div><div><br></div><div><br></div><div><div>Diagnostic Results</div><div>Module: users</div><div>Test<span class="" style="white-space:pre">        </span>Result</div><div>Listening on tcp4 port 389<span class="" style="white-space:pre">   </span>passed</div><div>Listening on tcp6 port 389<span class="" style="white-space:pre">   </span>passed</div><div>Check LDAP entry "dc=thisbox"<span class="" style="white-space:pre">      </span>passed</div><div>Check LDAP entry "ou=people"<span class="" style="white-space:pre">       </span>passed</div><div>Check LDAP entry "ou=groups"<span class="" style="white-space:pre">       </span>passed</div></div><div><br></div><div><br></div><div>How is it possible that the package was removed, I have never touched the apt by hand, I only had auto update enabled...</div><div><br></div><div>Best regards</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 21 January 2016 at 12:37, Tim Mohrbach <span dir="ltr"><<a href="mailto:preexo@googlemail.com" target="_blank">preexo@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks a lot for your help!<div>I tried changing the password by your suggested method but didn't have so much success with that. In the end I just enabled the root login in the sshd config (bad I know, will change it back again later).</div><div>I can access it now via SSH and the user root. The LDAP server seems to run:</div><div><div><br></div><div>root@momafreedom:~# systemctl status slapd</div><div>● slapd.service - LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol)</div><div>   Loaded: loaded (/etc/init.d/slapd; bad; vendor preset: enabled)</div><div>   Active: active (exited) since Thu 1970-01-01 08:00:13 HKT; 46 years 0 months ago</div><div>     Docs: man:systemd-sysv-generator(8)</div><div>  Process: 438 ExecStart=/etc/init.d/slapd start (code=exited, status=0/SUCCESS)</div><div><br></div><div>Jan 01 08:00:12 momafreedom systemd[1]: Starting LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol)...</div><div>Jan 01 08:00:13 momafreedom systemd[1]: Started LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol).</div><div><br></div><div>But the journalctl -xe command contains some worrysome lines about the LDAP not being able to bind to the server. Unfortunately I don't know anything about LDAP. Maybe you already have an idea for me how to fix this?</div><div><br></div><div>root@momafreedom:~# journalctl -xe<br></div><div><div>Jan 21 12:27:45 momafreedom ntpd[484]: Soliciting pool server 59.149.185.193</div><div>Jan 21 12:27:46 momafreedom ntpd[484]: Soliciting pool server 2403:5000:171:11::2</div><div>Jan 21 12:27:47 momafreedom nslcd[545]: [d062c2] <group/member="www-data"> failed to bind to LDAP server ldapi:///: Can't contact LDAP server: No such file or directory</div><div>Jan 21 12:27:47 momafreedom nslcd[545]: [d062c2] <group/member="www-data"> no available LDAP server found: Can't contact LDAP server: No such file or directory</div><div>Jan 21 12:27:47 momafreedom nslcd[545]: [d062c2] <group/member="www-data"> no available LDAP server found: Server is unavailable: No such file or directory</div><div>Jan 21 12:27:47 momafreedom nslcd[545]: [200854] <group/member="www-data"> no available LDAP server found: Server is unavailable: No such file or directory</div><div>Jan 21 12:27:47 momafreedom nslcd[545]: [200854] <group/member="www-data"> no available LDAP server found: Server is unavailable: No such file or directory</div><div>Jan 21 12:27:47 momafreedom nslcd[545]: [b127f8] <group/member="www-data"> no available LDAP server found: Server is unavailable: No such file or directory</div><div>Jan 21 12:27:47 momafreedom nslcd[545]: [b127f8] <group/member="www-data"> no available LDAP server found: Server is unavailable: No such file or directory</div><div>Jan 21 12:27:47 momafreedom nslcd[545]: [16231b] <group/member="www-data"> no available LDAP server found: Server is unavailable: No such file or directory</div><div>Jan 21 12:27:47 momafreedom nslcd[545]: [16231b] <group/member="www-data"> no available LDAP server found: Server is unavailable: No such file or directory</div><div>Jan 21 12:27:47 momafreedom nslcd[545]: [16e9e8] <group/member="www-data"> no available LDAP server found: Server is unavailable: No such file or directory</div><div>Jan 21 12:27:47 momafreedom nslcd[545]: [16e9e8] <group/member="www-data"> no available LDAP server found: Server is unavailable: No such file or directory</div><div>Jan 21 12:27:47 momafreedom nslcd[545]: [90cde7] <group/member="nslcd"> no available LDAP server found: Server is unavailable: No such file or directory</div><div>Jan 21 12:27:47 momafreedom nslcd[545]: [90cde7] <group/member="nslcd"> no available LDAP server found: Server is unavailable: No such file or directory</div><div>Jan 21 12:27:47 momafreedom nslcd[545]: [ef438d] <group/member="nobody"> no available LDAP server found: Server is unavailable: No such file or directory</div><div>Jan 21 12:27:47 momafreedom nslcd[545]: [ef438d] <group/member="nobody"> no available LDAP server found: Server is unavailable: No such file or directory</div><div>Jan 21 12:27:47 momafreedom nslcd[545]: [0e0f76] <group/member="root"> no available LDAP server found: Server is unavailable: No such file or directory</div><div>Jan 21 12:27:47 momafreedom nslcd[545]: [0e0f76] <group/member="root"> no available LDAP server found: Server is unavailable: No such file or directory</div><div>Jan 21 12:27:47 momafreedom nslcd[545]: [52255a] <group/member="postgres"> no available LDAP server found: Server is unavailable: No such file or directory</div><div>Jan 21 12:27:47 momafreedom nslcd[545]: [52255a] <group/member="postgres"> no available LDAP server found: Server is unavailable: No such file or directory</div><div>Jan 21 12:27:47 momafreedom nslcd[545]: [9cf92e] <group/member="ntp"> no available LDAP server found: Server is unavailable: No such file or directory</div><div>Jan 21 12:27:47 momafreedom nslcd[545]: [9cf92e] <group/member="ntp"> no available LDAP server found: Server is unavailable: No such file or directory</div><div>Jan 21 12:27:47 momafreedom nslcd[545]: [ed7263] <group/member="debian-deluged"> no available LDAP server found: Server is unavailable: Resource temporarily unavailable</div><div>Jan 21 12:27:47 momafreedom nslcd[545]: [ed7263] <group/member="debian-deluged"> no available LDAP server found: Server is unavailable: Resource temporarily unavailable</div><div>Jan 21 12:28:40 momafreedom systemd[1]: tor@default.service: Start operation timed out. Terminating.</div><div>Jan 21 12:28:50 momafreedom NetworkManager[416]: <info>  Activation (enxb827ebc73b2b) Beginning DHCPv6 transaction (timeout in 45 seconds)</div><div>Jan 21 12:28:50 momafreedom NetworkManager[416]: <info>  dhclient started with pid 1492</div><div>Jan 21 12:28:50 momafreedom dhclient[1492]: XMT: Info-Request on enxb827ebc73b2b, interval 960ms.</div><div>Jan 21 12:28:51 momafreedom dhclient[1492]: XMT: Info-Request on enxb827ebc73b2b, interval 2000ms.</div><div>Jan 21 12:28:51 momafreedom ntpd[484]: Soliciting pool server 2401:1800:7800:101:be76:4eff:fe1c:28a1</div><div>Jan 21 12:28:53 momafreedom dhclient[1492]: XMT: Info-Request on enxb827ebc73b2b, interval 4040ms.</div></div><div><br></div><div>Thanks, I appreciate any help so much! I really hope this might be fixable...?</div><div>Best regards</div><div>Preexo</div><div><div class="h5"><div><br></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 16 January 2016 at 01:38, Sunil Mohan Adapa <span dir="ltr"><<a href="mailto:sunil@medhas.org" target="_blank">sunil@medhas.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span>On Friday 15 January 2016 10:02 PM, Tim Mohrbach wrote:<br>
> Hi,<br>
><br>
> I noticed that I don’t get inside my box anymore via SSH.<br>
> When running the user module diagnostics in plinth, it fails with all tests:<br>
><br>
> Diagnostic Results<br>
> Module: users<br>
> Test  Result<br>
> Listening on tcp4 port 389    failed<br>
> Listening on tcp6 port 389    failed<br>
> Check LDAP entry "dc=thisbox" failed<br>
> Check LDAP entry "ou=people"  failed<br>
> Check LDAP entry "ou=groups"  failed<br>
><br>
> When saving the user again as admin in plinth again, it said that it failed adding the user as admin: “Failed to add user to group."<br>
> Changing the password via plinth works, but still no access via SSH.<br>
><br>
> Any idea what happened? How I can gain access via SSH again?<br>
<br>
</span>It looks bad.  I believe slapd (the LDAP server) is not running for some<br>
reason.  (Could be a DB corruption)<br>
<br>
To gain access: you can shutdown, insert SD card into desktop/laptop and<br>
set the password inside the SD card for 'fbx' user using `passwd<br>
--root=/mount/path fbx`.  Then boot the FreedomBox and login via SSH<br>
using 'fbx' user.<br>
<br>
After that check why slapd is not running:<br>
<br>
$ systemctl status slapd<br>
<br>
$ systemctl start slapd<br>
(if not already running)<br>
<br>
$ systemctl status slapd<br>
$ journalctl -xe<br>
$ journalctl -u slapd<br>
<span><font color="#888888"><br>
--<br>
Sunil<br>
<br>
</font></span></blockquote></div><br></div></div></div></div></div>
</blockquote></div><br></div>