From 6646fc0e699b939504be3db73b824f95ec598a42 Mon Sep 17 00:00:00 2001 From: joey <> Date: Thu, 18 Nov 2004 13:33:54 +0000 Subject: [PATCH] Update from samosa: case sensitive LDAP attribute name --- update.cgi | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/update.cgi b/update.cgi index 4ad5b88..2fae80d 100755 --- a/update.cgi +++ b/update.cgi @@ -1,6 +1,6 @@ #!/usr/bin/perl -# $Id: update.cgi,v 1.9 2003/03/13 04:25:56 rmurray Exp $ +# $Id: update.cgi,v 1.10 2004/11/18 14:33:54 joey Exp $ # (c) 1999 Randolph Chung. Licensed under the GPL. use lib '.'; @@ -96,8 +96,8 @@ if (!($query->param('doupdate'))) { &Util::FixParams($query); - if (($query->param('labeledurl')) && - ($query->param('labeledurl') !~ /^https?:\/\//i)) { + if (($query->param('labeleduri')) && + ($query->param('labeleduri') !~ /^https?:\/\//i)) { &Util::HTMLError("Your homepage URL is invalid"); } @@ -125,16 +125,16 @@ if (!($query->param('doupdate'))) { &Util::LDAPUpdate($ldap, $editdn, 'latitude', $lat); &Util::LDAPUpdate($ldap, $editdn, 'longitude', $long); &Util::LDAPUpdate($ldap, $editdn, 'c', $query->param('country')); - &Util::LDAPUpdate($ldap, $editdn, 'postalcode', $query->param('postalcode')); + &Util::LDAPUpdate($ldap, $editdn, 'postalCode', $query->param('postalcode')); &Util::LDAPUpdate($ldap, $editdn, 'telephoneNumber', $query->param('telephonenumber')); &Util::LDAPUpdate($ldap, $editdn, 'facsimileTelephoneNumber', $query->param('facsimiletelephonenumber')); &Util::LDAPUpdate($ldap, $editdn, 'loginShell', $query->param('loginshell')); &Util::LDAPUpdate($ldap, $editdn, 'emailForward', $query->param('email')); - &Util::LDAPUpdate($ldap, $editdn, 'privatesub', $query->param('privatesub')); + &Util::LDAPUpdate($ldap, $editdn, 'privateSub', $query->param('privatesub')); &Util::LDAPUpdate($ldap, $editdn, 'ircNick', $query->param('ircnick')); - &Util::LDAPUpdate($ldap, $editdn, 'icquin', $query->param('icquin')); - &Util::LDAPUpdate($ldap, $editdn, 'labeledUrl', $query->param('labeledurl')); - &Util::LDAPUpdate($ldap, $editdn, 'onvacation', $query->param('onvacation')); + &Util::LDAPUpdate($ldap, $editdn, 'icqUin', $query->param('icquin')); + &Util::LDAPUpdate($ldap, $editdn, 'labeledURI', $query->param('labeleduri')); + &Util::LDAPUpdate($ldap, $editdn, 'onVacation', $query->param('onvacation')); # when we are done, reload the page with the updated details. my $url = "$proto://$ENV{SERVER_NAME}/$config{webupdateurl}?id=$id&authtoken=$authtoken&editdn="; -- 2.20.1