I am having a ldif file which exported from Active directory. it contains users and group details. I have tried to import directly through jxloper, it throws error. How do I import Active directory ldif file to openldap server?
Asked
Active
Viewed 1,567 times
-1
-
What did you try so far? What is the error ? Pleas provide more and specific information – Linus Jul 25 '18 at 11:38
-
1'It throws error' is not a problem description. – user207421 Jul 26 '18 at 05:01
-
Without seeing examples of entries one cannot give more help. Furthermore you should mention what you want to achieve. – Michael Ströder Jul 31 '18 at 15:01
1 Answers
0
The LDAP schema of MS Active Directory is very specific and completely different to that installed in OpenLDAP default installations. It's nearly impossible to get AD exports directly imported into OpenLDAP without heavy sanitizing and/or schema tweaking.
Just some examples:
- The users in AD have object class
User
which does not exist in OpenLDAP - The groups in AD have object class
Group
which does not exist in OpenLDAP
If you want to mimic behaviour of MS AD your best option would be to try Samba4 by following this docs:

Michael Ströder
- 1,248
- 8
- 12