9 Commits

Author SHA1 Message Date
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