Case study: modattr.pl
use Mozilla::LDAP::Utils;
$USAGE = "$APPNAM [-dnvW] -b base -h host -D bind\
-w pswd -P cert attr=value filter";
if (!getopts('adnvWb:h:D:p:s:w:P:')) {
print "usage: $APPNAM $USAGE\n";
%ld = Mozilla::LDAP::Utils::ldapArgs();
Mozilla::LDAP::Utils::userCredentials(\%ld) unless $opt_n;