Rick Stevens wrote:
From the script: ldapadd -U root -w 'FuNkyP@sswd' -f /tmp/userdata.ldif [..] ldapadd -U root -w 'FuNkyP@sswd' -f /tmp/userdata.ldif
Maybe different handling of the single quotes around the password in your user shell and the script's shell? Just a wild guess though.
Ciao, Michael.