wm: infra

Download patch

ref: 45c1a8e584fc2d7d352bc58aadc38389af6a6193
parent: 1869813c30458cd411900b666d3fe6e351887702
author: mkf <mkf>
date: Fri Aug 30 14:40:08 EDT 2024

newuser: use dp9ik

--- a/newuser
+++ b/newuser
@@ -9,7 +9,8 @@
 while (~ $1 -*) {
 	switch ($1) {
 		case -[dier]
-        		x=$1 $2
+                        if(~ $#x 0) x=$1 $2
+                        if not x=$x $1 $2
         		shift
 		case -n
 			run_newuser=f
@@ -39,7 +40,7 @@
 					echo 'newuser: no authdom variable or entry in ndb' >[1=2]
 					exit 'no authdom'
 		}
-		echo 'key user='$u' proto=p9sk1 dom='$authdom' role=client !password='$p >/mnt/factotum/ctl
+		echo 'key user='$u' proto=dp9ik dom='$authdom' role=client !password='$p >/mnt/factotum/ctl
 		rcpu -u $u -c /sys/lib/newuser
 	}
 	auth/enable $u