Univention Bugzilla – Attachment 7526 Details for
Bug 40876
create_spn_account.sh allows special characters
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch file
spn_no_special_characters.patch (text/plain), 492 bytes, created by
Stefan Elser
on 2016-03-10 09:48:16 CET
(
hide
)
Description:
Patch file
Filename:
MIME Type:
Creator:
Stefan Elser
Created:
2016-03-10 09:48:16 CET
Size:
492 bytes
patch
obsolete
>--- /usr/share/univention-samba4/scripts/create_spn_account.sh.orig 2016-03-04 08:37:09.534230430 +0100 >+++ /usr/share/univention-samba4/scripts/create_spn_account.sh 2016-03-04 09:17:42.952102480 +0100 >@@ -71,2 +71,6 @@ > spn_account_name="${2:?missing argument for samaccountname}" >+ if ! [[ $spn_account_name =~ ^[A-Za-z0-9.\-]+$ ]]; then >+ echo "Only numbers, letters, dots and dashes are allowed to be used in samaccountname." >+ exit 1 >+ fi > shift 2 || exit 2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 40876
: 7526 |
8218