Seems straight forward enough but I keep getting errors. On a client...

err: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed 
when searching for node ubuntu5.ttinet: LDAP Search failed

on the puppet master...

puppet.conf [master]
 # ENC (external node classificiations)
  node_terminus = ldap
  ldapnodes = true
  ldapclassattrs = puppetclass

 # LDAP
  ldapserver = ubuntu.ttinet
  ldapbase = ou=Hosts,dc=ttinet,dc=local
  ldapuser = cn=admin,dc=ttinet,dc=local
  ldappasswd = XXXXXXXXXXXX
  ldapstring = (&(objectclass=puppetClient)(cn=%s))
  ldaptls = false
  ldapssl = false
  ldapport = 389

and this is a piece of cake from CLI

# ldapsearch -x '(&(objectclass=puppetClient)(cn=ubuntu5.ttinet))'
# extended LDIF
#
# LDAPv3
# base <dc=ttinet,dc=local> (default) with scope subtree
# filter: (&(objectclass=puppetClient)(cn=ubuntu5.ttinet))
# requesting: ALL
#

# ubuntu5.ttinet, Hosts, ttinet.local
dn: cn=ubuntu5.ttinet,ou=Hosts,dc=ttinet,dc=local
objectClass: device
objectClass: top
objectClass: puppetClient
objectClass: ipHost
ipHostNumber: 10.1.1.13
environment: production
cn: ubuntu.ttinet
cn: ubuntu5.ttinet
puppetClass: baseclass
puppetClass: nginx::configure: {$fqdn}
puppetClass: nginx::vhost: {$fqdn: port => 80, ssl => false, priority => 10, p
 assenger_enable => 'Yes', serveraliases => ['alias1', 'alias2']}

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1

puppet 2.6.8
# ruby -rldap -e "puts :installed"
installed
ruby-ldap-ro is installed

-- 
Craig White ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  craig.wh...@ttiltd.com
1.800.869.6908 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ www.ttiassessments.com 

Need help communicating between generations at work to achieve your desired 
success? Let us help!

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to