今天写了一个向MIT Kerberos服务器里面灌用户的很简单的脚本,保存下来。
###################################################
#
#1. Add 1000 Kerberos principals to Kerberos DB batchly
#2. Kerberos user name is like testerX@REALM, X is a number from 1 to 10000
#3. Initial Kerberos user password is beyondsoft
#
###################################################
#!/bin/bash
for count in `seq 10000`
do
kadmin.local -q "addprinc -pw beyondsoft tester$count" # >>AddUser.log
done
echo "Done. 10000 user added"
阅读(1933) | 评论(0) | 转发(0) |