ldapscripts error: trap: usage: trap [-lp] [arg signal_spec ...]

Running the latest version of ldapscripts from Debian lenny (ver 1.7.1-2) I was getting this error:

trap: usage: trap [-lp] [arg signal_spec ...]

whenever I was running ldapadduser.

To fix this you have to edit /usr/share/ldapscripts/runtime and find the line:

...
# Reset traps
trap -
...

and change it to:

trap - 2

in order to fix the trap error.

comments powered by Disqus