[Puppet Users] Re: who uses clear text passwords with directoryservice/netinfo providers?

2008-11-12 Thread Nigel Kersten

On Wed, Nov 12, 2008 at 4:34 PM, Luke Kanies <[EMAIL PROTECTED]> wrote:
>
> On Nov 12, 2008, at 11:55 AM, Nigel Kersten wrote:
>
>>
>> So I have a first candidate that's a pretty big rewrite of the
>> directoryservice provider.
>>
>> If anyone is interested in testing this (it's just replacing one file
>> in the 0.24.6 installation) on an OS X client, let me know. I have
>> some more cleanup to do before submitting the patch, but it's
>> functional.
>>
>> Note this is also fixing the bug with comments or any other attributes
>> with spaces in the value that was reported with the directoryservice
>> provider.
>>
>> Makes manifests a bit ugly though... but all that zero padding is
>> actually used for some things on OS X like setting an alternative
>> Lanman hash for SMB, and managing the existence or lack thereof of
>> alternative hashes is rather desirable to me.
>>
>> user { "testviapuppet":
>>  ensure => present,
>>  gid => 80,
>>  uid => 495,
>>  home => "/Users/testviapuppet",
>>  shell => "/bin/bash",
>>  comment => "Test Via Puppet",
>>  password =>
>> "0
>> 00
>> 0087832794FF3758105D7A4E560EBADDF18D7A0635
>> F49BA17000
>> ..
>
> For this kind of thing, it probably makes sense to have a function to
> retrieve the password from an external source; or even provide a
> function that just does the necessary zero-padding.

Absolutely. I think we're most likely to enforce the lack of a Lanman
hash, so will have a function that does all the padding.

It wouldn't take too much work to generalize this to support current
and future alternative hashes in the one password hash file.

After chatting to Jeff McCune who did the initial directoryservice
nameservice provider, I think we have a clearer idea of what should be
done as far as refactoring goes for post 0.24.x puppet, but just
wanted to get this functionality in before 0.24.7.

-- 
Nigel Kersten
Systems Administrator
Tech Lead - MacOps

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~--~~~~--~~--~--~---



[Puppet Users] Re: who uses clear text passwords with directoryservice/netinfo providers?

2008-11-12 Thread Luke Kanies

On Nov 12, 2008, at 11:55 AM, Nigel Kersten wrote:

>
> So I have a first candidate that's a pretty big rewrite of the
> directoryservice provider.
>
> If anyone is interested in testing this (it's just replacing one file
> in the 0.24.6 installation) on an OS X client, let me know. I have
> some more cleanup to do before submitting the patch, but it's
> functional.
>
> Note this is also fixing the bug with comments or any other attributes
> with spaces in the value that was reported with the directoryservice
> provider.
>
> Makes manifests a bit ugly though... but all that zero padding is
> actually used for some things on OS X like setting an alternative
> Lanman hash for SMB, and managing the existence or lack thereof of
> alternative hashes is rather desirable to me.
>
> user { "testviapuppet":
>  ensure => present,
>  gid => 80,
>  uid => 495,
>  home => "/Users/testviapuppet",
>  shell => "/bin/bash",
>  comment => "Test Via Puppet",
>  password =>  
> "0 
> 00 
> 0087832794FF3758105D7A4E560EBADDF18D7A0635 
> F49BA17000 
> 0",
> }

For this kind of thing, it probably makes sense to have a function to  
retrieve the password from an external source; or even provide a  
function that just does the necessary zero-padding.


-- 
Talent hits a target no one else can hit; Genius hits a target no one
else can see. -- Arthur Schopenhauer
-
Luke Kanies | http://reductivelabs.com | http://madstop.com


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~--~~~~--~~--~--~---



[Puppet Users] Re: who uses clear text passwords with directoryservice/netinfo providers?

2008-11-12 Thread Nigel Kersten

So I have a first candidate that's a pretty big rewrite of the
directoryservice provider.

If anyone is interested in testing this (it's just replacing one file
in the 0.24.6 installation) on an OS X client, let me know. I have
some more cleanup to do before submitting the patch, but it's
functional.

Note this is also fixing the bug with comments or any other attributes
with spaces in the value that was reported with the directoryservice
provider.

Makes manifests a bit ugly though... but all that zero padding is
actually used for some things on OS X like setting an alternative
Lanman hash for SMB, and managing the existence or lack thereof of
alternative hashes is rather desirable to me.

user { "testviapuppet":
  ensure => present,
  gid => 80,
  uid => 495,
  home => "/Users/testviapuppet",
  shell => "/bin/bash",
  comment => "Test Via Puppet",
  password => 
"087832794FF3758105D7A4E560EBADDF18D7A0635F49BA17",
}


On Fri, Oct 17, 2008 at 7:16 PM, Crawford Kyle <[EMAIL PROTECTED]> wrote:
>
> When I quickly realized it was using clear text I started distributing
> the /var/db/shadow/hash/ file.  We want no clear text.
>
> Thanks for working on this Nigel.
>
> On Oct 17, 2008, at 2:16 PM, Nigel Kersten wrote:
>
>>
>> Sparked off from this discussion on puppet-dev:
>>
>> http://groups.google.com/group/puppet-dev/browse_thread/thread/88f60414c3dfbe5c
>>
>> Who is currently using clear-text passwords with the directoryservice
>> provider in particular, and would you be exceedingly upset if Puppet
>> changed to no longer allow you to set a password in clear text on Mac
>> clients, and only allowed you to set a hash?
>>
>> I'd like to change the provider so that it no longer used clear text
>> passwords.
>>
>> --
>> Nigel Kersten
>> Systems Administrator
>> Tech Lead - MacOps
>>
>> >
>
>
> >
>



-- 
Nigel Kersten
Systems Administrator
Tech Lead - MacOps

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~--~~~~--~~--~--~---



[Puppet Users] Re: who uses clear text passwords with directoryservice/netinfo providers?

2008-10-17 Thread Crawford Kyle

When I quickly realized it was using clear text I started distributing  
the /var/db/shadow/hash/ file.  We want no clear text.

Thanks for working on this Nigel.

On Oct 17, 2008, at 2:16 PM, Nigel Kersten wrote:

>
> Sparked off from this discussion on puppet-dev:
>
> http://groups.google.com/group/puppet-dev/browse_thread/thread/88f60414c3dfbe5c
>
> Who is currently using clear-text passwords with the directoryservice
> provider in particular, and would you be exceedingly upset if Puppet
> changed to no longer allow you to set a password in clear text on Mac
> clients, and only allowed you to set a hash?
>
> I'd like to change the provider so that it no longer used clear text  
> passwords.
>
> -- 
> Nigel Kersten
> Systems Administrator
> Tech Lead - MacOps
>
> >


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~--~~~~--~~--~--~---