Hi Jens,
not sure if I understood completely, what you wish to do (a one time
clone and no continuous replication?), but as to schema, it should not
be too difficult. On the UCS server all schema needed should be stored
below /usr/share/univention-ldap/schema (see /etc/openldap/slapd.conf
and look for include commands if you cannot find the schema files). If
you convert all those files from slapd.conf format (xx.schema) to
cn=config (xx.ldif) format, which you seem to know how to do it, and
put them in the appropriate location of the target system (below
/etc/openldap/slapd.d/cn=schema/) renaming the files to cn={<running
number>}xx.ldif and restart the server it should work. The cleaner way
to do it, is instead of copying the files yourself with the danger to
make mistakes, to ldapadd the single ldif files, e.g.
ldapadd -x -D <binddn> -w <password> -f xx.ldif
(you can create a small shellscript for that)
Then the server creates those funny files below slapd.d/cn=schema by
itself. and there would not be any need to restart the server.
There is no need to change core.ldif nor to ldapadd that, because it is
already installed!
Hope this helped.
Cheers,
Peter
Am 31.05.19 um 23:15 schrieb Jens Bürger:
Dear people of OpenLDAP,
I have a Univention Corporate Server (UCS) running at a local site, with a well-populated
LDAP.
I have a VM on the Internet, providing some web services.
I’d like to just clone the LDAP data from the local UCS machine to the VM regularly.
While copying the database is a no-brainer (scp & ssh-key), I currently fail at
importing the UCS-specific LDAP schemas into the LDAP of the VM. The schema conversion
created a {0}core.ldif as starting point. Importing this into openldap failed because I
have not the right to modification to core (of course).
Any hints?
Kind regards,
Jens
--
Peter Gietz, CEO
DAASI International GmbH
Europaplatz 3
D-72072 Tübingen
Germany
phone: +49 7071 407109-0
fax: +49 7071 407109-9
email: peter.gietz(a)daasi.de
web:
www.daasi.de
Sitz der Gesellschaft: Tübingen
Registergericht: Amtsgericht Stuttgart, HRB 382175
Geschäftsleitung: Peter Gietz