MDLog:/sysadmin

The Journal Of A Linux Sysadmin

Ldapscripts Error: Trap: Usage: Trap [-lp] [Arg Signal_spec ...]

| Comments

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

1
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:

1
2
3
4
...
# Reset traps
**trap -**
...

and change it to:

1
trap - 2

in order to fix the trap error.

Comments