[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: dummy population [auf Viren überprüft]



On Mon Nov 29 2004 at 17:15:00 CET, Hans Moser wrote:

> Does anyone have a ldif file or script to populate an OpenLDAP server 
> with a an amount of ~15,000 dummy users (or more) for testing?

Any variation of something like this might help:

#/bin/sh
grep '^[a-zA-Z]' /usr/dict/words | while read word
do
	cat <<!End
	dn: cn=$word,ou=People,dc=example,dc=com
	cn: $word
	uid: $word
	sn: $word
	objectclass: person
	objectclass: inetOrgPerson
	...

!End
done

Regards,
	-JP