View | Details | Raw Unified | Return to bug 41765 | Differences between
and this patch

Collapse All | Expand All

(-)a/univention-ldb-modules/ucs-school-create_windows_computer (-1 / +6 lines)
 Lines 1-6    Link Here 
1
#!/bin/sh
1
#!/bin/sh
2
. /usr/share/ucs-school-lib/base.sh
3
ou="$(school_ou)"
4
if [ -z "$ou" ]; then
5
	ou=$(school_ou "$(/usr/sbin/univention-config-registry get 'dhcpd/ldap/base')")
6
fi
2
samba4_addmachine=$(/usr/sbin/univention-config-registry get "samba4/addmachine")
7
samba4_addmachine=$(/usr/sbin/univention-config-registry get "samba4/addmachine")
3
/usr/bin/test "$samba4_addmachine" = "deny" && exit 2
8
/usr/bin/test "$samba4_addmachine" = "deny" && exit 2
4
/usr/sbin/umc-command "$@" || exit 1
9
/usr/sbin/umc-command "$@" -o "school=$ou" || exit 1
5
/usr/bin/test "$samba4_addmachine" = "dummy" && exit 3
10
/usr/bin/test "$samba4_addmachine" = "dummy" && exit 3
6
exit 0
11
exit 0

Return to bug 41765