Hi and sorry for my late reply … had some other stuff to do, so I had to pause this problem.
The NAS models are QNAP TVS-EC 880 and a TS-453 Pro. There is not much you can change on the NAS and it's hard to find good information about the possibilities of the command line of QNAP.
Your link is about getting OD connected to AD with kerberos, and we don't have an AD-Server.
But I've tried rekerberizing our OD a bunch of times the Apple way (touch /var/db/openldap/migration/.rekerberize …) and as far I can say nothing happened. Maybe because we don't use kerberos or maybe I just don't know where I could find any changes or see that something happened.
I was also able to try the LDAP desroying and restoring and now I can say, that there must be something fundamental wrong with our OD and I just can't find any clou what happened there.
When I restore a fresh backup of the OD, almost everything will work. Only the QNAP machines don't get any informations of the Users and Groups in the OD, like described before.
I tried to restore a old Backup (Nov. 2016) from the OD and than the QNAPs instantly showed all Users and Groups like it was before this problem started.
But after a restart of the server the OD was always off and I wasn't able to start it again.
I tried than:
server1:~ admin$ sudo launchctl unload /System/Library/LaunchDaemons/org.openldap.slapd.plist
Password:
/System/Library/LaunchDaemons/org.openldap.slapd.plist: Could not find specified service
server1:~ admin$ sudo /usr/libexec/slapd -Tt
5a5c9b9f bdb(dc=xxxx,dc=xxxx,dc=xxxx): file id2entry.bdb has LSN 1/2120018, past end of log at 1/42237
5a5c9b9f bdb(dc=xxxx,dc=xxxx,dc=xxxx): Commonly caused by moving a database from one database environment
5a5c9b9f bdb(dc=xxxx,dc=xxxx,dc=xxxx): to another without clearing the database LSNs, or by removing all of
5a5c9b9f bdb(dc=xxxx,dc=xxxx,dc=xxxx): the log files from a database environment
5a5c9b9f bdb(dc=xxxx,dc=xxxx,dc=xxxx): /var/db/openldap/openldap-data/id2entry.bdb: unexpected file type or format
5a5c9b9f bdb_db_open: database "dc=xxxx,dc=xxxx,dc=xxxx": db_open(/var/db/openldap/openldap-data/id2entry.bdb) failed: Invalid argument (22).
5a5c9b9f backend_startup_one (type=bdb, suffix="dc=xxxx,dc=xxxx,dc=xxxx"): bi_db_open failed! (22)
slap_startup failed (test would succeed using the -u switch)
A recovery with:
sudo db_recover -cv -h /var/db/openldap/authdata/
wasn't possible.
I also tried to make a dump of the OD in a LDIF and restore it like described here.
Sadly no luck either.
Right now I'm thinking of copying as much as possible out of the OD to a text file and recreating it manually. Then I'll search for a solution to use Linux as a server for Filesharing and User management with OS X Clients.
Or do you have any other ideas I should try?
I miss our Snow Leopard Server 😢 – the last realy stable and real Server System of Apple.
Wasn't perfect, but much better than this.