ldapmodify command

hi,

Iam trying to add some entries to the directory using ldapmodify -a

i dont have any problem if do it straight without using option -e...

if is use this option i get the reply

ldapmodify: illegal option -- e.......

The command i tried looks like this:

ldapmodify -a -h host -p 389 -D "cn=Directory Manager" -w pwd -e "/home/archsupp/reject.ldif" -c -i "/home/archuspp/Mst0110.ldif" or else sometime i use (<) symbol for the input file.....I dont see any mistake in the command syntax....it worked for me before and if i try the same thing...it throws out an error..the above....where am i going wrong exctly?

regards

[674 byte] By [anandkaturia] at [2007-11-27 3:59:59]
# 1

Which ldapmodify are you using? If you're using sh, bash, or ksh you can use the command "type ldapmodify" to find out. Users of csh or tcsh can use "which ldapmodify" instead.

It sounds like you're using the /usr/bin/ldapmodify supplied with the OS.On Solaris 9 system I have on hand right now the /usr/bin/ldapmodify doesn't know about -e (or several other options).

You probably want to be using the ldapmodify & ldap search that came with the Directory Server (or DS Resource Kit). For 5.2 that's in $server_root/shared/bin, which you will probably want before /usr/bin in your PATH (and you'll want $server_root/lib in your LD_LIBRARY_PATH).

If you have the openldap tools installed you'll need to watch out because they have yet another set of ldapsearch & ldapmodify with there own idiocyncracies.

-Scott-

Scott.R.Corzinea at 2007-7-12 9:04:34 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2
Thanks for the reply.....I have figured it out...what you said was correct..the path i was for the ldapmodify was not having the -e thing in its wrapped file...Now i got it fixed..
anandkaturia at 2007-7-12 9:04:34 > top of Java-index,Web & Directory Servers,Directory Servers...