I am new to Apache Directory Server and the official documentation about it is quite incomplete.
I know that is possible to configure the server easily using Apache Directory Studio GUI, but i want the server to be deployed on a remote server not having a graphic interface that means, no way to use apache Directory Studio.

So can someone tell me how to:

  • Add a partition, a JDBM one
  • Import an ldif file of entries under that partition

i have tried to read this , then i have created a new partition using apache studio to see what files have been created on the disk. Effectively, there are folders and .ldif files created with attributes listed from the documentation. The problem here is that there are some auto-generated values for mandatory attributes such as entryCSN from this list list for the file indexes.ldif

Another problem is that i want this job to be done on unix family OS, but also on windows, nevertheless, the documention is still incomplete

  • So you would like to create entries using a command line tool instead of using Apache Directory Studio? – 030 Feb 21 '17 at 22:15
  • sorry @030 for the delay, yes something like that, or directly by modifying configurations files. – Philippe Simo Mar 10 '17 at 8:20
  • let's consider the both cases: running and not – Philippe Simo Mar 10 '17 at 9:19

One could use OpenLDAP and ldif to create a LDAP structure using the commandline.

If the Apache Directory server is listing to port 10389

For example, it is possible to create a domain:


dn: dc=hello,dc=world
dc: hello
o: My Company
objectclass: organization
objectclass: dcObject

once the file is created one could run

ldapadd -x -W -D "cn=Manager,dc=hello,dc=world" -f domain.ldif

If the Apache Directory is stopped

It is possible to copy the directory structure, change it and start the server to make changes to the apache directory server

  • I will try your suggestions and get back to you asap – Philippe Simo Mar 10 '17 at 15:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.