View | Details | Raw Unified | Return to bug 47955
Collapse All | Expand All

(-)a/services/univention-samba4/scripts/create_spn_account.sh (-5 / +5 lines)
 Lines 67-81   create_spn_account () { Link Here 
67
	do
67
	do
68
		case "$1" in
68
		case "$1" in
69
			"--samaccountname"|"--sAMAccountName")
69
			"--samaccountname"|"--sAMAccountName")
70
				samAccountName="${2:?missing argument for samaccountname}"
70
				samAccountName="${2:?missing argument for "$1"}"
71
				shift 2 || exit 2
71
				shift 2 || exit 2
72
				;;
72
				;;
73
			"--serviceprincipalname"|"--servicePrincipalName")
73
			"--serviceprincipalname"|"--servicePrincipalName")
74
				servicePrincipalName="${2:?missing argument for servicePrincipalName}"
74
				servicePrincipalName="${2:?missing argument for "$1"}"
75
				shift 2 || exit 2
75
				shift 2 || exit 2
76
				;;
76
				;;
77
			"--privatekeytab"|"--privateKeytab")
77
			"--privatekeytab"|"--privateKeytab")
78
				privateKeytab="${2:?missing argument for privateKeytab}"
78
				privateKeytab="${2:?missing argument for "$1"}"
79
				shift 2 || exit 2
79
				shift 2 || exit 2
80
				;;
80
				;;
81
			"--help"|"-h"|"-?")
81
			"--help"|"-h"|"-?")
 Lines 83-94   create_spn_account () { Link Here 
83
				exit 0
83
				exit 0
84
				;;
84
				;;
85
			"--bindpwdfile")
85
			"--bindpwdfile")
86
				bindpwdfile="${2:?missing argument for samaccountname}"
86
				bindpwdfile="${2:?missing argument for "$1"}"
87
				credentials+=("--bindpwdfile" "$bindpwdfile")
87
				credentials+=("--bindpwdfile" "$bindpwdfile")
88
				shift 2 || exit 2
88
				shift 2 || exit 2
89
				;;
89
				;;
90
			"--binddn")
90
			"--binddn")
91
				binddn="${2:?missing argument for samaccountname}"
91
				binddn="${2:?missing argument for "$1"}"
92
				credentials+=("--binddn" "$binddn")
92
				credentials+=("--binddn" "$binddn")
93
				shift 2 || exit 2
93
				shift 2 || exit 2
94
				;;
94
				;;

Return to bug 47955