From: tausq <> Date: Sun, 26 Mar 2000 20:13:25 +0000 (+0000) Subject: Adds ICQ UIN support X-Git-Tag: release-0.3.33~138 X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap-cgi.git;a=commitdiff_plain;h=968a3c8f26adc301945f4753fc6b81806c4f51ed Adds ICQ UIN support --- diff --git a/search.cgi b/search.cgi index ff67109..7a54100 100755 --- a/search.cgi +++ b/search.cgi @@ -1,6 +1,6 @@ #!/usr/bin/perl -# $Id: search.cgi,v 1.5 2000/01/11 05:43:18 tausq Exp $ +# $Id: search.cgi,v 1.6 2000/03/26 22:13:25 tausq Exp $ # (c) 1999 Randolph Chung. Licensed under the GPL. use lib '.'; @@ -116,7 +116,7 @@ if (!$dosearch) { $data = $entries->{$dn}; # These are local variables.. i have enough global vars as it is... - my ($ufdn, $login, $name, $email, $fingerprint, $address, $latlong, $vacation, $created, $modified, $lastseen) = undef; + my ($ufdn, $login, $name, $icquin, $email, $fingerprint, $address, $latlong, $vacation, $created, $modified, $lastseen) = undef; $ufdn = $dn; # Net::LDAP does not have a dn2ufn function, but this is close enough :) @@ -132,6 +132,11 @@ if (!$dosearch) { $email .= "$_"; } + # ICQ + if ($data->{icquin}->[0]) { + $icquin = sprintf("%s", $data->{icquin}->[0], $data->{icquin}->[0]); + } + # Format PGP/GPG key fingerprints my $fi; foreach (@{$data->{keyfingerprint}}) { @@ -177,6 +182,9 @@ if (!$dosearch) { $outsub{searchresults} .= FormatEntry($dataspecref->{ircnick}, $data->{ircnick}->[0]); $outsub{searchresults} .= FormatEntry($dataspecref->{loginshell}, $data->{loginshell}->[0]); $outsub{searchresults} .= FormatEntry($dataspecref->{fingerprint}, $fingerprint); + if ($icquin) { + $outsub{searchresults} .= FormatEntry($dataspecref->{icquin}, $icquin); + } if ($auth) { # Some data should only be available to authorized users... diff --git a/update.cgi b/update.cgi index 33fc9de..7dd4fc5 100755 --- a/update.cgi +++ b/update.cgi @@ -1,6 +1,6 @@ #!/usr/bin/perl -# $Id: update.cgi,v 1.5 1999/12/13 04:56:48 tausq Exp $ +# $Id: update.cgi,v 1.6 2000/03/26 22:13:25 tausq Exp $ # (c) 1999 Randolph Chung. Licensed under the GPL. use lib '.'; @@ -130,6 +130,7 @@ if (!($query->param('doupdate'))) { LDAPUpdate($ldap, $editdn, 'emailForward', $query->param('email')); LDAPUpdate($ldap, $editdn, 'privatesub', $query->param('privatesub')); LDAPUpdate($ldap, $editdn, 'ircNick', $query->param('ircnick')); + LDAPUpdate($ldap, $editdn, 'icquin', $query->param('icquin')); LDAPUpdate($ldap, $editdn, 'labeledUrl', $query->param('labeledurl')); LDAPUpdate($ldap, $editdn, 'onvacation', $query->param('onvacation'));