On 2024-03-25 10:42, xpzhang1971@gmail.com wrote:
Tech Folks, thanks for your replies.
There are too many unknowns for anyone to give you much help in creating a new LDAP instance. What OS? What version of OpenLDAP? Do you have full access to the directory data using LDAP, i.e. what credentials are you using and what ACLs are in place? Do you have a backup of the system?
In real world, we often face such tasks to take over a thing that not belong to you, and you even only have limited access to that thing.
Do you have physical access to the system? If the system is Linux and and you have access to the console it is a simple thing to reboot the system using init=/bin/bash, set the root password, and then reboot the system normally. Once you have root access you can do whatever you need, e.g. create user accounts, install ssh, etc. But, this really is just a normal system management task and not on topic for this distribution list.
Is there a way figuring out configuration, schema, and etc from ldif files generated by ldapsearch from source server? then to configure a fresh target openldap server with those information to have the target server exactly same as source server?
Once you can use slapcat everything gets easy. It would be best to gain root access to the system.
Bill