X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=search.cgi;fp=search.cgi;h=ffbc6549fa4e8e572ff487e5a537242316b325e7;hb=c329a3640a352b069e78d6bcecb793807ec5902a;hp=01a85411976a4a5366ca75d69929e0e115ffbf6a;hpb=178de61cd74867f61c1238f1675b8969f98b1690;p=mirror%2Fuserdir-ldap-cgi.git diff --git a/search.cgi b/search.cgi index 01a8541..ffbc654 100755 --- a/search.cgi +++ b/search.cgi @@ -1,6 +1,6 @@ #!/usr/bin/perl -# $Id: search.cgi,v 1.10 2004/11/18 14:33:32 joey Exp $ +# $Id: search.cgi,v 1.11 2004/11/18 19:17:00 joey Exp $ # (c) 1999 Randolph Chung. Licensed under the GPL. # (c) 2004 Martin Schulze. Licensed under the GPL. @@ -117,7 +117,8 @@ if (!$dosearch) { $data = $entries->{$dn}; # These are local variables.. i have enough global vars as it is... - my ($ufdn, $login, $name, $icquin, $email, $fingerprint, $address, $latlong, $vacation, $created, $modified, $lastseen) = undef; + my ($ufdn, $login, $name, $icquin, $jabberjid, $email, $fingerprint, + $address, $latlong, $vacation, $created, $modified, $lastseen) = undef; $ufdn = $dn; # Net::LDAP does not have a dn2ufn function, but this is close enough :) @@ -181,6 +182,7 @@ if (!$dosearch) { $outsub{searchresults} .= FormatEntry($dataspecref->{uid}, $login); $outsub{searchresults} .= FormatEntry($dataspecref->{ircnick}, $data->{ircnick}->[0]); + $outsub{searchresults} .= FormatEntry($dataspecref->{jabberjid}, $data->{jabberjid}->[0]); $outsub{searchresults} .= FormatEntry($dataspecref->{loginshell}, $data->{loginshell}->[0]); $outsub{searchresults} .= FormatEntry($dataspecref->{fingerprint}, $fingerprint); if ($icquin) {