12 Commits

Author SHA1 Message Date
Zach Leslie
5e4e0671ef modulesync 2017-02-07 2017-02-20 14:00:46 -08:00
Zach Leslie
1a7a4894b1 Add support for scoped queries
This work adds support for setting the scope of a given query.  This
allows retrieval of a specific objects, or searching at a specific level
of the tree for the desired results.
2016-05-16 13:18:18 -07:00
Zach Leslie
bf64a51a42 Always return an array for the values
Previously, its impossible to know if the results you are working with
in the puppet manifest are in string or array form without counting
them.  This work ensures that an array is always returned, even if there
is only one item returned.

This is useful in situations where an attribute is commonly both
multi-valued and single-valued to avoid complext manifest code.
2016-03-12 18:58:11 -08:00
Zach Leslie
daf2269f52 Update require for puppet_x to use relative path
This work should allow the code to be loaded in the puppetserver.
2016-03-11 10:13:39 -08:00
Zach Leslie
da1af3a535 Add additional information in the search debug
Adds information about the number of results returned for the given
search.
2015-11-10 21:47:26 +00:00
Eric Zounes
b133f80a91 Return boolean false if the LDAP query function raises an exception. 2015-09-11 10:25:25 -07:00
Zach Leslie
9969f16a60 Increase granularity 2015-08-20 10:36:57 -07:00
Zach Leslie
a3ce58dc85 Improve debugging, add timing information
Ldap has the potential to slow down compiles if a search takes too long.
Here we add timing information to the debug output, so that in case of
question, we can at least have a method of determining the time a given
search took.
2015-08-20 10:36:57 -07:00
Zach Leslie
b29db3b7ca Set some defaults 2015-08-20 09:06:36 -07:00
Zach Leslie
85ebc74fae Extend the arg count of the function to meet the lib 2015-06-13 16:33:34 -07:00
Zach Leslie
cb15ae8e70 Rewrite for testability
Testing the methods inside of the function is a complete pain.  This
moves the code out to use the PuppetX pattern and adds some basic unit
tests that validate the logic.
2015-05-20 12:55:18 -07:00
Zach Leslie
f0e5e6e8a0 Add initial function code 2015-05-19 09:05:08 -07:00