#!/bin/sh

PASSWORD=$(grep RUDDER_OPENLDAP_BIND_PASSWORD /opt/rudder/etc/rudder-passwords.conf|sed "s/RUDDER_OPENLDAP_BIND_PASSWORD:\(.*\)/\1/")
/opt/rudder/bin/ldapsearch -x -D "cn=Manager,cn=rudder-configuration" -w ${PASSWORD} -s one -b "ou=Nodes,ou=Accepted Inventories,ou=Inventories,cn=rudder-configuration" nodeId
