Default user password

370 views
Skip to first unread message

schickb

unread,
Nov 9, 2008, 12:54:31 AM11/9/08
to Puppet Users
I would like to creating new users on a system and assign them default
passwords that are set only upon creation. I can create the users and
assign default passwords with the "user" type, but puppet will
continue to reset the password back to that default value even after
users modify their own.

I guess I could handle this with an "exec" that sets passwords only if
the user exists but has never logged in or something. Any other
solution?

It would be helpful if the "user" type had a new attribute called
"defaultpassword" or "initialpassword".

Peter Meier

unread,
Nov 9, 2008, 6:54:11 AM11/9/08
to puppet...@googlegroups.com
Hi

> It would be helpful if the "user" type had a new attribute called
> "defaultpassword" or "initialpassword".

or a boolean option 'reset' or 'resetpassword' default to true. Like the
replace option for the file type.

That would definitely be interesting.

greets pete

Luke Kanies

unread,
Nov 12, 2008, 7:23:15 PM11/12/08
to puppet...@googlegroups.com


I can see how you'd want this. It might actually make sense to even
have a metaparameter that generalized this -- something like
'noreplace => password'. If the property is absent, then it gets set,
but otherwise, it gets ignored. This would be able to replace the
file's 'replace' parameter -- it would be equivalent to 'noreplace =>
content'.

Anyone willing to open that as a feature request?

--
It is curious that physical courage should be so common in the world and
moral courage so rare. -- Mark Twain
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com

Peter Meier

unread,
Nov 13, 2008, 3:47:45 AM11/13/08
to puppet...@googlegroups.com
Hi

> Anyone willing to open that as a feature request?

#1744 [1]

cheers pete

[1] http://projects.reductivelabs.com/issues/show/1744

Reply all
Reply to author
Forward
0 new messages