0

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

Community
  • 1
  • 1
Mimi.O
  • 89
  • 4
  • 13

3 Answers3

0

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.

jwilleke
  • 10,467
  • 1
  • 30
  • 51
  • could you describe how to set this up to use a different server installation like apacheds – Mimi.O Jun 06 '16 at 15:16
  • Just download the ZIP file and extract it. The No need to do anything else but maybe set the Java path variable. – jwilleke Jun 07 '16 at 13:03
0

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.,

Bala Krishna
  • 47
  • 2
  • 8
0

An old article, perhaps still useful for ApacheDS users.
if you have found your bin folder with dsadm.exe usw., then you will find your ldapsearch.exe in a parallel folder.

dsee7:
*---bin
|       dsadm.exe
|
*---dsrk
    +---bin
        ldapsearch.exe
        ldapmodify.exe

WARNING: call pls.

ldapmodify -h 

In order to see the difference between openldap and ApacheDS. It is not working with openldap syntax.
Have a fun with experimenting. (rulez Shadows)
Hint you will see the same syntax in suchlogs in your Apache Directory Browser

ZoltanB
  • 79
  • 7