# File lib/puppet/util/ldap/manager.rb, line 28
28:     def create(name, attributes)
29:         attributes = attributes.dup
30: 
31:         # Add the objectclasses
32:         attributes["objectClass"] = objectclasses.collect { |o| o.to_s }
33:         attributes["objectClass"] << "top" unless attributes["objectClass"].include?("top")
34: 
35:         attributes[rdn.to_s] = [name]
36: 
37:         # Generate any new values we might need.
38:         generate(attributes)
39: 
40:         # And create our resource.
41:         connect { |conn| conn.add dn(name), attributes }
42:     end