#!/bin/bash

#
# A wrapper script for adding Samba machines to LDAP
#
# Authors: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> 2011-09-02
#          Wolfgang Schweer <wschweer@arcor.de> 2018-02-07
# License: GPL v2+
#
# This version uses ldapaddmachine (package ldapscripts) with customized config
# and a machine template suited for GOsa; see files in /etc/ldapscripts.

set +e

/usr/sbin/ldapaddmachine "$1" 50553
/usr/sbin/nscd -i passwd
sleep 1
exit 0

