Permalink
Browse files

contrib/LWPsearch.pl: support DSML output format of LWP::Protocol::ldap

  • Loading branch information...
1 parent 31c741d commit 9a0ffe5896f42323394310aeda5bddfa1fbc5279 @marschap marschap committed Sep 16, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 contrib/LWPsearch.pl
View
8 contrib/LWPsearch.pl
@@ -19,10 +19,10 @@
# die on errors on the command line
die "Usage: LWPsearch [<options>] <LDAP-URL>\n" .
" where <options> are:\n" .
- " -f --format {html|ldif|json} output format\n" .
+ " -f --format {dsml|html|json|ldif} output format\n" .
" -u --user <username> user name (DN) to logon to LDAP server\n" .
" -p --password <password> password to logon to LDAP server\n"
- if (!$result || scalar(@ARGV) != 1 || ($format && $format !~ /^(json|ldif|html)$/));
+ if (!$result || scalar(@ARGV) != 1 || ($format && $format !~ /^(dsml|json|ldif|html)$/));
# create a user agent object
my $ua = LWP::UserAgent->new;
@@ -55,7 +55,7 @@ =head1 NAME
=head1 SYNOPSIS
B<LWPsearch.pl>
-[B<-f|--format> {C<html>|C<json>|C<ldif>}]
+[B<-f|--format> {C<dsml>|C<html>|C<json>|C<ldif>}]
[B<-u|--user> I<user>]
[B<-p|--password> I<password>]
B<LDAP-URL>
@@ -74,7 +74,7 @@ =head1 OPTIONS
=over 4
-=item B<-f|--format> {C<html>|C<json>|C<ldif>}
+=item B<-f|--format> {C<dsml>|C<html>|C<json>|C<ldif>}
Specifies the the output format to use.

0 comments on commit 9a0ffe5

Please sign in to comment.