On Tue, 14 Jan 2003 12:58:30 -0800 Jim C <[EMAIL PROTECTED]> wrote: > Grrr!! > > What gets me is why this doesn't work: > > echo -e $output > ldapadd -x -D $binddn -W $pw4binddn > > where echo -e produces: > > [root@enigma scripts]# ./adduser alkjdfal > > dn: uid=alkjdfal,ou=Computers,dc=microverse,dc=net > objectClass: top > objectClass: account > objectClass: posixAccount > uidNumber: 501 > uid: alkjdfal > cn: alkjdfal > gidNumber: 421 > homeDirectory: /dev/null > loginShell: /bin/false > gecos: Machine Account > description: Machine Account > > 502 <--different echo statement > > If I do echo -e $output > test.ldif > and then > ldapadd -x -D "cn=root,dc=microverse,dc=net" -f test.ldif from the > command line it works fine! Do you think this is a bug in ldapadd? > >
here is what says man: The entry information is read from standard input or from file through the use of the -f option. so why not to try this: echo -e "$output" | ldapadd -x -D "cn=root,dc=microverse,dc=net" bye jipe
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com