GitHub puppet-ldapquery
Query an LDAP server using Puppet.

Repo Checks ( 8 of 11 successfull )
Metadata Valid
No translation
passed
Correct Puppet Version Range
Supported Puppet version range is %{PUPPET_SUPPORT_RANGE}
passed
With Puppet Version Range
Puppet version range is present in requirements in metadata.json
passed
With Operatingsystem Support
No translation
failed
In Modulesync Repo
Is listed as a module managed using modulesync_config
passed
Synced
Has a .msync.yml file
passed
Latest Modulesync
Has been synchronized with the latest tagged version of modulesync_config
failed
Has Modulesync
Is present in voxpupuli/modulesync_config/managed_modules.yml
passed
Released
Is in modulesync_config and in forge releases.
passed
Valid Sync File
If a (optional) sync file is present, it must not contain a `.travis.yml` entry.
passed
Reference Dot Md
The repository has a REFERENCE.md. It needs to be generated / puppet-strings documentation is missing.
failed

Open Pull Requests

WIP: Rework ldap options

Sourcing ldap server configuration options from puppet.conf was conflating their original purpose, and a future release of Puppet may even remove these options.

It's still desirable to be able to set defaults for the function from a file, but a dedicated yaml file is far more flexible than an ini file.

In this commit, the old dispatch is renamed to legacy_query and a new query dispatch with a different signature replaces it.

The function is refactored to remove the instance variables.

The legacy_query dispatch is simplified to just to the deprecated fetching of settings from puppet.conf and then call the new code.

Open PR in GitHub
Rework for full parameter support
backwards-incompatible

Pull Request (PR) description

Adding multi instance support by extending the options hash of the puppet parser function to give full parameter support for all needed internal net/ldap settings.

Adds also support for start_tls ldap connections. Use $options = { tls => 'start_tls' } in that case.

The ldap configuration via the [master] section from puppet.conf like defined in the README.md is still supported and the new parameter defaults to these options when not provided.

Example usage:
```
$filter = '(objectClass=posixAccount)'
$attributes = [
'dn',
'uid',
]
$options = {
server => 'ldap.example.com'
port => 636
tls => 'simple_tls'
cafile => '/etc/pki/tls/certs.pem'
base => 'dc=example,dc=com'
scope => 'sub'
user => 'cn=puppet,ou=people,dc=example,dc=com'
password => '',
}

$ldap_entries = ldapquery($filter, $attributes, $options)
```

This Pull Request (PR) fixes the following issues

None

Open PR in GitHub
modulesync 5.4.0
modulesync

modulesync 5.4.0

Open PR in GitHub