PaulDotCom mailing list archives
ldapsearch in monitoring script without bind password written in script
From: Sven Aluoor <aluoor () gmail com>
Date: Thu, 22 Sep 2011 14:51:24 +0200
Hi I do a very simple monitoring of our OpenLDAP (runs in cronjob and generate alerts if unsuccessfully) $ ldapsearch -h hostname.domain -D "cn=monitor_user,ou=People,dc=organisation" -w "password" -b "dc=organisation" -x "(&(cn=monitor_user)(ou=People))" dn | grep -v version dn: cn=monitor_user,ou=People,dc=organisation My problem is that the password is written in clear text in script (see -w "password"). How to do without writing password in UNIX script? cheers Sven _______________________________________________ Pauldotcom mailing list Pauldotcom () mail pauldotcom com http://mail.pauldotcom.com/cgi-bin/mailman/listinfo/pauldotcom Main Web Site: http://pauldotcom.com
Current thread:
- ldapsearch in monitoring script without bind password written in script Sven Aluoor (Sep 22)