Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

2.0.0 returning differently.

  • Loading branch information...
commit ed9936a806ffadac0a034a4d53aa399699a0f791 1 parent c9d3953
Cody Herriges authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  manifests/init.pp
2  manifests/init.pp
@@ -109,7 +109,7 @@
109 109
   # Adds the base context for our dc=puppetlabs,dc=net parition.
110 110
   exec { 'add context':
111 111
     command => "echo '${pl_context_ldif}' | ldapadd -ZZ -D uid=admin,ou=system -H ldap://${server}:${port} -x -w ${rootpw}",
112  
-    onlyif  => "test `ldapsearch -ZZ -D uid=admin,ou=system -LLL -H ldap://${server}:${port} -x -w ${rootpw} -b dc=puppetlabs,dc=net dc=puppetlabs,dc=net | wc -l` = 0",
  112
+    onlyif  => "test `ldapsearch -ZZ -D uid=admin,ou=system -LLL -H ldap://${server}:${port} -x -w ${rootpw} -b dc=puppetlabs,dc=net '(ObjectClass=*)' dc=puppetlabs,dc=net | wc -l` = 0",
113 113
     path    => [ '/bin', '/usr/bin' ],
114 114
     require => Exec['update password'],
115 115
   }

0 notes on commit ed9936a

Please sign in to comment.
Something went wrong with that request. Please try again.