RE: [EXTERNAL] how to migrate an openldap server to a new linux server

2024-03-25 Thread xpzhang1971
Tech Folks, thanks for your replies. 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. Is there a way figuring out configuration, schema, and etc from ldif files generated by ldapsearch from source server?

RE: [EXTERNAL] how to migrate an openldap server to a new linux server

2024-03-25 Thread xpzhang1971
Because port 22 is not open, I can't ssh or rlogin to the server. only can run ldapsearch such client commands. nmap to the server only see port 389 and 636 open. I don't know how the server owner maintain, startup/stop the server.

RE: [EXTERNAL] how to migrate an openldap server to a new linux server

2024-03-25 Thread xpzhang1971
the problem here is that source openldap server only have port 389 opened, it is not accessible, not able to run slapcat.

RE: [EXTERNAL] how to migrate an openldap server to a new linux server

2024-03-26 Thread xpzhang1971
I did ldapsearch to export schema from source ldap server, cmd is: ldapsearch -x -LLL -H "ldap://xxx:389; -D "cn=admin,ou=AdminUsers,dc=example,dc=com" -W -b "cn=schema" -o ldif-wrap=no > source-schema.ldif but ldapadd this ldif to target server still report: [root@phx-ldap-ol8 openldap]#

RE: [EXTERNAL] how to migrate an openldap server to a new linux server

2024-03-26 Thread xpzhang1971
I gave a try like this way: I installed an openldap 2.6 as target server, started it up with initial slapd.ldif. Then I tried to ldapadd entries that exported from source server, but failed on the first entry, error message: [root@ldap-ol8 openldap]# ldapadd -H ldap:/// -D

how to migrate an openldap server to a new linux server

2024-03-23 Thread xpzhang1971
I have an openldap server I want to clone it to another linux server. However, I can't access it by login but can just run ldapsearch because this source openldap server only open port 389. Now I installed openldap-servers package to target linux server, then what? I appreciate if anybody can