/etc/samba/smbaddclient.sh is in debian-edu-config 1.702.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #!/bin/bash
#
# A wrapper script for adding Samba machines to LDAP
#
# Authors: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
#
# Date: 2011-09-02
set +e
# This script shall always succeed in order not to irritate Samba...
# Most common failure of smbldap-machineadd-gosa is: ,,already exists''
# which may well happen and should be ignored.
/etc/samba/smbldap-machineadd-gosa -t0 -w "$1"
nscd -i passwd
sleep 1
exit 0
|