[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE: Web Interface to add new users..
On Thu, 2004-11-18 at 16:34, Tony Earnshaw wrote:
> tor, 18.11.2004 kl. 06.10 skrev Ow Mun Heng:
>
> > If I needed to _batch_ add users, what are my choices?
> >
> > I'm thinking of making a bash script that will populate into a LDIF
> > template and then cat >> into it before using ldapadd to import it.
> >
> > Maybe there's a more elegent solution?
>
> I had to populate a replicated DIT with 1150+ users with a number of
> objectclasses and attributes from a list of first, middle and last names
> producing every thinkable lexical combination of that name to go into
> the attributes and ended up by learning awk (Internet, no book). In 4
> days I'd produced a script that I still use to make a standard ldif.
> awk's very powerful for US ASCII, but at least gawk can't cope with UTF
> encodings.
I'm always interested in scripts. Even if I don't use it, there's bound
to be good things which I can learn from it.
I'm curious to know how you managed to put them together.
>
> Let me know off list if you want the script.
Can you send it to me, off-list then? If you can, include some example
files. (eg, when you debug it)
I'm not sure how to debug awk though/
Thanks in advance