ldif03.ksh 771 B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/ksh -p
  2. #ident "ldclt @(#)ldif03.ksh 1.1 01/04/11"
  3. # BEGIN COPYRIGHT BLOCK
  4. # Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
  5. # Copyright (C) 2006 Red Hat, Inc.
  6. # All rights reserved.
  7. #
  8. # License: GPL (version 3 or any later version).
  9. # See LICENSE for details.
  10. # END COPYRIGHT BLOCK
  11. # Create ldif file with random strings from file.
  12. # Will create 150k entries
  13. #
  14. . env.ksh
  15. echo "dn: $BaseDN
  16. objectclass: organization
  17. " > /tmp/ldif03.ldif
  18. ldclt \
  19. -h $Host -p $Port \
  20. -D "$UserDN" -w "$UserPassword" \
  21. -q -v -n1 \
  22. -e object=ofile \
  23. -e append,genldif=/tmp/ldif03.ldif \
  24. -e imagedir=../../../data/ldclt/images \
  25. -b $BaseDN -e rdn='cn:blob [C=RNDFROMFILE(../../../data/ldclt/names/Lastname.txt)] [D=RNDN(3;11;5)] [E=INCRNNOLOOP(1;150000;6)]'