Project

General

Profile

Bug #3523 » node-extract.sh

Matthieu CERDA, 2013-04-24 19:16

 
#!/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
(2-2/2)