Thanks for your answer.
So I take it that we can't give wild card/regular expression in ldapdelete.
I have just installed an OpenLDAP with LMDB only [ without bdb/hdb].
./configure --prefix=/my/home/directory/parveen/OpenLDAP_LMDB --exec-prefix=/my/home/directory/parveen/OpenLDAP_LMDB --enable-bdb=no --enable-hdb=no
So I was adding and deleting entries and it was taking time.
For addition, I switch from ldapadd to slapadd [stoping slapd for a while].
For deletion, I was thinking of some wild card like things to see if timing can be improved.
I was adding some 100K entries and deleting them, it was taking time, so I thought it could be faster if we give command in one go and then ldapdelete just receives the output and send to STDOUT/STDERR.
To Others,
Is there any plan for adding wild cards or its in my fantasy only?
The GURU has well decided not to provide such things as ldapdelete is destructive and a little misunderstanding in handling wildcards/regular expression can delete the DB.
Thanks anyways!!
----------------
Hi,
you cannot use wildcards in deletes as per my understanding. You can, however, use wildcards in search filters.If you are on a Unix-like system, you can feed the output of a search with a bit of transformation into ldapmodify.You may want to try something like this (I ran this on Linux):
ldapmodify -f <(ldapsearch -b "dc=ALCATEL,dc=FR" "(cn=Parveen30*)" | grep dn: | sed 's/$/\nchangetype:delete\n'/)Regards,
tamás