0
votes

I am attempting to setup an LDAP server.

I installed ApacheDS and I was going through the user guide. I am trying to change the default admin password. I know I can use the Apache Directory Studio to do this, but I am required to use the command line to setup and maintain the LDAP server I create. I found this and it helped by showing how to use an ldif file to modify the default password.

However when I run

ldapmodify -h localhost -p 10389 -D "uid=admin,ou=system" -f conf-modify.ldif

I get the message:

'ldapmodify' is not recognized as an internal or external command, operable program or batch file. 

Is there an LDAP package for windows command line tools or is there a specific directory that the ldap command must be executed from in ApacheDS

I am currently running the command from the ApacheDS install directory C:\Program Files\ApacheDS

2

2 Answers

0
votes

I have been using OpenDJ and their tools. You do not need to run the LDAP server to be able to run their LDAP tools.

Runs on any(?) Java 7 or greater platform.

0
votes

Open any cmd prompt and add add this command

set path=%path%;E:\Softwares\OpenLDAP\bin

and after that run your command

ldapmodify -h localhost -p 10389 -D "uid=admin,ou=system" -f conf-modify.ldif

I Hope it helps you.,