summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Fetka <[email protected]>2014-03-15 04:00:58 (GMT)
committer Mario Fetka <[email protected]>2014-03-15 04:00:58 (GMT)
commitda552201e68f3122e575808d1fba44a5c516d1cd (patch)
treeab2f8e6d8918084440b94ee9050d42a8bf886994
parente17cdd2d0b928f45b93c279340447dff17451dc3 (diff)
add user Description
-rw-r--r--CLIENT_DATA/setup.ins8
-rw-r--r--OPSI/control9
2 files changed, 16 insertions, 1 deletions
diff --git a/CLIENT_DATA/setup.ins b/CLIENT_DATA/setup.ins
index 3d969e3..685350e 100644
--- a/CLIENT_DATA/setup.ins
+++ b/CLIENT_DATA/setup.ins
@@ -5,11 +5,13 @@ setLogLevel=3
DefVar $ProductId$
DefVar $ProductName$
DefVar $local_user$
+DefVar $local_desc$
DefVar $Group$
DefVar $SearchResult$
DefVar $flag_active$
DefVar $val_userpasswd$
DefVar $val_username$
+DefVar $val_userdesc$
DefVar $val_groupmember$
DefVar $val_expires$
DefVar $UserExists$
@@ -97,6 +99,10 @@ comment "val_username"
comment "description: admin username"
set $local_user$= GetProductProperty("val_username", "locsupp")
+comment "val_userdesc"
+comment "description: admin user description"
+set $local_desc$= GetProductProperty("val_userdesc", "Local Support")
+
comment "val_groupmember"
comment "description: Groupemembership"
set $UserGroup$= GetProductProperty("val_groupmember", "Administratoren")
@@ -122,7 +128,7 @@ net user $local_user$ >nul 2>&1 && echo yes || echo no
"$PsGetSidExe$" /accepteula S-1-5-32-547
[DosInAnIcon_makeadmin]
-NET USER $local_user$ $val_userpasswd$ /ADD /comment:"Local User created by opsi-package" /fullname:"Local User by Opsi" /passwordchg:no /passwordreq:yes
+NET USER $local_user$ $val_userpasswd$ /ADD /comment:"Local User created by opsi-package" /fullname:"$local_desc$" /passwordchg:no /passwordreq:yes
NET LOCALGROUP $Group$ /ADD $local_user$
[DosInAnIcon_alter_pw]
diff --git a/OPSI/control b/OPSI/control
index 5b5a004..856b8ab 100644
--- a/OPSI/control
+++ b/OPSI/control
@@ -32,6 +32,15 @@ default: ["off"]
[ProductProperty]
type: unicode
+name: val_userdesc
+multivalue: False
+editable: True
+description: Beschreibung des lokalen User
+values: ["locsupp"]
+default: ["locsupp"]
+
+[ProductProperty]
+type: unicode
name: val_username
multivalue: False
editable: True

Powered by Domaintechnik.at | Hosting - Domain - Webspace