Skip to content

Commit

Permalink
Initial removal of dependancy to camptocamp openldap, unmaintened and…
Browse files Browse the repository at this point in the history
… not compatible with puppet5 \ voxpupuli/puppet-openldap#156
  • Loading branch information
julienmorot committed Aug 3, 2018
1 parent ec3f933 commit df2a18c
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 88 deletions.
13 changes: 13 additions & 0 deletions files/provider.ldif
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
dn: cn=module,cn=config
objectClass: olcModuleList
cn: module
olcModulePath: /usr/lib/ldap
olcModuleLoad: syncprov.la

dn: olcOverlay=syncprov,olcDatabase={1}hdb,cn=config
objectClass: olcOverlayConfig
objectClass: olcSyncProvConfig
olcOverlay: syncprov
olcSpSessionLog: 100


56 changes: 0 additions & 56 deletions manifests/master.pp

This file was deleted.

8 changes: 4 additions & 4 deletions manifests/params.pp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class ldapauth::params {
$slapdconfpath = $operatingsystem ? {
/(?i-mx:ubuntu|debian)/ => '/etc/ldap',
/(?i-mx:centos|fedora|redhat)/ => '/etc/openldap',
}
# $slapdconfpath = $operatingsystem ? {
# /(?i-mx:ubuntu|debian)/ => '/etc/ldap',
# /(?i-mx:centos|fedora|redhat)/ => '/etc/openldap',
# }
}
24 changes: 0 additions & 24 deletions manifests/slave.pp

This file was deleted.

4 changes: 0 additions & 4 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
{
"name": "puppetlabs-stdlib",
"version_requirement": ">= 1.0.0"
},
{
"name": "camptocamp-openldap",
"version": "1.14.0"
}
],
"data_provider": null
Expand Down
20 changes: 20 additions & 0 deletions templates/consumer.ldif
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
dn: olcDatabase={2}hdb,cn=config
changetype: modify
add: olcSyncRepl
olcSyncRepl: rid=001
### LDAP Master URI ###
provider=ldap://192.168.12.11:389/
bindmethod=simple
### LDAP Domain ###
binddn="uid=rpuser,dc=itzgeek,dc=local"
### Replication user credential ###
credentials=root1234
searchbase="dc=itzgeek,dc=local"
scope=sub
schemachecking=on
type=refreshAndPersist
retry="30 5 300 3"
interval=00:00:05:00



0 comments on commit df2a18c

Please sign in to comment.