mirror of
https://github.com/philippdieter/puppet-ldapquery.git
synced 2026-05-05 15:32:47 +00:00
Allow ldapserver to be passed as argument
Put options for ldapquery into opts argument
This commit is contained in:
@@ -9,11 +9,13 @@ module PuppetX
|
||||
filter,
|
||||
attributes = [],
|
||||
base = Puppet[:ldapbase],
|
||||
scope = 'sub'
|
||||
scope = 'sub',
|
||||
server = Puppet[:ldapserver]
|
||||
)
|
||||
@filter = filter
|
||||
@attributes = attributes
|
||||
@base = base
|
||||
@host = server
|
||||
|
||||
return unless scope
|
||||
|
||||
@@ -41,7 +43,6 @@ module PuppetX
|
||||
end
|
||||
end
|
||||
|
||||
host = Puppet[:ldapserver]
|
||||
port = Puppet[:ldapport]
|
||||
|
||||
if Puppet[:ldapuser] && Puppet[:ldappassword]
|
||||
@@ -53,7 +54,7 @@ module PuppetX
|
||||
ca_file = "#{Puppet[:confdir]}/ldap_ca.pem"
|
||||
|
||||
conf = {
|
||||
host: host,
|
||||
host: @host,
|
||||
port: port
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user