Forum archive
LDIF import to openldap_15 fails
Hi all,
I exported from LDAP version 2.4.31 (samba AD 4.0.9) as below:
C:\Windows\system32>ldifde -f export.ldf -s samba.matrixscience.co.uk
Connecting to "samba.matrixscience.co.uk"
Logging in as current user using SSPI
Exporting directory to file export.ldf
Searching for entries...
Writing out entries.............................................................
................................................................................
................................................................................
................................................................................
................................................................................
........................................................................
453 entries exported
The command has completed successfully
When I import to 2.4.44 (debian-9-turnkey-openldap_15.0-1_amd64) through php LDAP admin logging in as cn=admin,dc=matrixscience,dc=co,dc=uk the import fails on every line.
It's full of 0x11 and 0x15 errors.
2 examples below:
Could not add the object to the LDAP server.
LDAP said: Undefined attribute type
Error number: 0x11 (LDAP_UNDEFINED_TYPE)
Description: The attribute type specified is invalid.
LDIF text import
Could not add object cn=testuser,CN=Users,DC=matrixscience,DC=co,DC=uk
LDAP said: Undefined attribute type
Error number: 0x11 (LDAP_UNDEFINED_TYPE)
Description: The attribute type specified is invalid.
Could not add the object to the LDAP server.
LDAP said: Invalid syntax
Error number: 0x15 (LDAP_INVALID_SYNTAX)
Description: An invalid attribute value was specified.
LDIF text import
Could not add object cn=Domain Controllers,CN=Users,DC=matrixscience,DC=co,DC=uk
LDAP said: Invalid syntax
Error number: 0x15 (LDAP_INVALID_SYNTAX)
Description: An invalid attribute value was specified.
Am I doing something fundamentally wrong?
Regards,
Adam
FWIW by my (somewhat limited) understanding you can replicate AD domain data via as many AD DCs as you like. So whilst the data isn't decoupled as you'd ideally like, it can be replicated, giving you the fault tolerance I assume you are hoping for.
Good luck with it all and please feel free to post back (regardless of success or failure). Whilst I'm not super experienced with Samba4 at a production level, I do have at least a reasonable theoretical understanding and have been involved in development and maintenance of our appliance. I also have pretty good google-fu! :)