Puppet: System Administration Automated

Support

Ticket #1024 (closed enhancement: fixed)

Opened 10 months ago

Last modified 9 months ago

Directory Service Provider

Reported by: mccune Assigned to: luke
Priority: normal Milestone: 0.24.2
Component: library Version:
Severity: normal Keywords: directoryservice, osx, mac, apple, user, group, provider
Cc: Triage Stage: Ready for checkin
Attached Patches: Code Complexity: Unknown

Description

This ticket is a placeholder for all patches to the directoryservice provider for Mac OS X.

Change History

01/22/08 04:43:11 changed by mccune

  • patch changed from None to Code.

Working directory service provider.

Please see patch [1962232a43da964c0955cf800693b198427a6d72] of branch ticket_1024 on mccune-math or mccune (See Developer Repositories).

% git diff master
diff --git a/lib/puppet/provider/nameservice/directoryservice.rb b/lib/puppet/provider/nameservice/directoryservice.rb
index b2ccfbd..973a62f 100644
--- a/lib/puppet/provider/nameservice/directoryservice.rb
+++ b/lib/puppet/provider/nameservice/directoryservice.rb
@@ -178,11 +178,8 @@ class DirectoryService < Puppet::Provider::NameService
         #     This method spits out proper DSCL commands for us.
         #     We EXPECT name to be @resource[:name] when called from an instance object.
 
-        # JJM: With dscl, the domain "/" is always the default local domain.
-        #      The domain /Search will search all domains, and you may
-        #      get at specific domains with /LDAPv3/server1.foobar.com,
-        #      /LDAPv3/server2.foobar.com, etc...
-        command_vector = [ command(:dscl), "-url", "/" ]
+        # There are two ways to specify paths in 10.5.  See man dscl.
+        command_vector = [ command(:dscl), "-url", "." ]
         # JJM: The actual action to perform.  See "man dscl"
         #      Common actiosn: -create, -delete, -merge, -append, -passwd
         command_vector << ds_action

01/22/08 04:49:43 changed by mccune

  • owner changed from community to mccune.

Note, please see examples/code/mac_dscl.pp for an example of how the directoryservice provider works.

01/28/08 04:24:32 changed by luke

  • stage changed from Unreviewed to Accepted.
  • milestone set to 0.24.2.

02/05/08 07:23:47 changed by luke

  • patch changed from Code to Insufficient.

As with your fixes for #1009, can you recreate this patch against the 0.24.x branch instead of master?

Note that we'll be fixing this dev process in the next release -- master will be the stable branch, rather than the dev branch.

02/07/08 19:53:39 changed by luke

  • status changed from new to closed.
  • resolution set to fixed.

Pushed. Thanks!

02/07/08 20:00:38 changed by luke

  • status changed from closed to reopened.
  • resolution deleted.

Oops, wrong window. Reopening.

02/15/08 03:30:24 changed by jamtur01

  • owner changed from mccune to luke.
  • status changed from reopened to new.
  • stage changed from Accepted to Ready for checkin.
  • patch changed from Insufficient to Code.

Okay I pushed this patch (done against 0.24.x) in commit [30128bd9302f7db5aee5991ebcbbdbde9852690b] in ticket_1024.

02/16/08 21:35:46 changed by luke

  • status changed from new to closed.
  • resolution set to fixed.

Pushed.