[31809] in Kerberos
Re: Adding users with a script
daemon@ATHENA.MIT.EDU (Jason Edgecombe)
Sun Dec 27 16:21:11 2009
Message-ID: <4B37CFA5.3010103@rampaginggeek.com>
Date: Sun, 27 Dec 2009 16:20:37 -0500
From: Jason Edgecombe <jason@rampaginggeek.com>
MIME-Version: 1.0
To: Jaap Winius <jwinius@umrk.nl>
In-Reply-To: <4b36b370$0$8410$e4fe514c@dreader25.news.xs4all.nl>
Cc: kerberos@mit.edu
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: kerberos-bounces@mit.edu
Jaap Winius wrote:
> Hi all,
>
> If you have 1,000 user names and passwords to add to an MIT Kerberos V
> database on a Linux system, you could add them all manually with kadmin,
> but that would be a terrible waste of time. The proper way would be to
> automate this process with a script, but I have no idea how.
>
ssh to your master kdc and runthe following as root:
kadmin.local -q "addprinc -randkey username"
for each user to create a userwith a random password
With a few lines of scripting, you can automate that.
If you have a keytab for an admin account, then you don't have to ssh to
the kdc, and you can use normal kadmin instead of kadmin.local.
Jason
________________________________________________
Kerberos mailing list Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos