'puppet resource user' questions

62 views
Skip to first unread message

llowder

unread,
Oct 26, 2012, 11:16:59 AM10/26/12
to puppet...@googlegroups.com
When I run "puppet resource user <ldadpuser>" I get a resource definition back for that user. However, when I run "puppet resource user" I do NOT see <ldapuser> in the list.

Is this intended behavior? Is there a way to get a list of all users, whether they are ldap or local?

This node is running puppet 2.7.19 on Ubuntu 12.04 against a 2.7.19 master on Ubuntu 10.04.

Thanks.

Nan Liu

unread,
Oct 27, 2012, 4:56:08 PM10/27/12
to puppet...@googlegroups.com
On Fri, Oct 26, 2012 at 8:16 AM, llowder <llow...@gmail.com> wrote:
> When I run "puppet resource user <ldadpuser>" I get a resource definition
> back for that user. However, when I run "puppet resource user" I do NOT see
> <ldapuser> in the list.
>
> Is this intended behavior? Is there a way to get a list of all users,
> whether they are ldap or local?

The user resource only implemented discovery for local users, it did
not implement a way to discovery accounts on ldap. You can still
manage ldap accounts, but they won't show up in the command 'puppet
resource user'. You can extend the ldap user provider and implement
the self.instances method to list all ldap user accounts if you wish
to have this functionality, however I suspect this will carry quite a
bit of overhead.

Nan
Reply all
Reply to author
Forward
0 new messages