Gossamer Forum
Home : Products : DBMan : Customization :

problems with &get_email

Quote Reply
problems with &get_email
Hi,

i have integrated the secure PW mod into my DB. Everything works exept the &get_email function.
In the .cfg I entered &get_email as default. All I receive is the following error message when adding a new address.
"not found in password file"

When I replace
if ($db_userid eq $userid) {
with
if ("MrX" eq $userid) {
the email address of Mr X is displayed.

What am I doing wrong?

I attached my get_email mod.

Thank you for the help!

Jakob


sub get_email {
# --------------------------------------------------------
# Pulls the email address from the password file.
### Following subroutine added for secure_password_lookup mod

my ($userid, $pw, $view, $add, $del, $mod, $admin, $view_all, $email, $db_userid);

open (PASSWD, "<$auth_pw_file") || &cgierr("unable to open password file. Reason: $!\n");
@passwds = <PASSWD>;
close PASSWD;

foreach $pass (@passwds) { # Go through each pass and see if we match..
next if ($pass =~ /^$/); # Skip blank lines.
next if ($pass =~ /^#/); # Skip Comment lines.
chomp ($pass);
($userid, $pw, $view, $add, $del, $mod, $admin, $view_all, $email, $name, $vorname, $group) = split (/:/, $pass);
if ($db_userid eq $userid) {
return $email;
}
}
return "$db_userid not found in password file";
}


Subject Author Views Date
Thread problems with &get_email Jakob 5984 Jul 28, 2000, 2:11 PM
Thread Re: problems with &get_email
JPDeni 5949 Jul 28, 2000, 4:14 PM
Thread Re: problems with &get_email
Jakob 5895 Jul 29, 2000, 2:59 AM
Thread Re: problems with &get_email
JPDeni 5959 Jul 29, 2000, 3:38 AM
Thread Re: problems with &get_email
Jakob 5955 Jul 29, 2000, 3:49 AM
Thread Re: problems with &get_email
JPDeni 5910 Jul 29, 2000, 6:11 AM
Thread Re: problems with &get_email
Jakob 5880 Jul 29, 2000, 8:28 AM
Thread Re: problems with &get_email
JPDeni 5819 Jul 31, 2000, 2:17 AM
Thread Re: problems with &get_email
Jakob 5832 Jul 31, 2000, 12:00 PM
Thread Re: problems with &get_email
Jakob 5728 Aug 10, 2000, 2:12 PM
Thread Re: problems with &get_email
JPDeni 5863 Aug 10, 2000, 2:58 PM
Thread Re: problems with &get_email
Jakob 5743 Aug 10, 2000, 10:58 PM
Post Re: problems with &get_email
JPDeni 5730 Aug 11, 2000, 12:20 AM
Post Re: problems with &get_email
Jakob 5840 Jul 31, 2000, 12:39 PM
Thread Re: problems with &get_email
Jakob 5860 Jul 31, 2000, 12:49 PM
Thread Re: problems with &get_email
JPDeni 5867 Jul 31, 2000, 2:11 PM
Thread Re: problems with &get_email
Jakob 5868 Jul 31, 2000, 2:32 PM
Thread Re: problems with &get_email
JPDeni 5851 Jul 31, 2000, 2:37 PM
Post Re: problems with &get_email
Jakob 5839 Jul 31, 2000, 2:50 PM
Thread Re: problems with &get_email
Jakob 5848 Jul 31, 2000, 2:52 PM
Thread Re: problems with &get_email
JPDeni 5848 Jul 31, 2000, 2:57 PM
Thread Re: problems with &get_email
Jakob 5861 Jul 31, 2000, 3:11 PM
Thread Re: problems with &get_email
JPDeni 5893 Jul 31, 2000, 3:31 PM
Thread Re: problems with &get_email
Jakob 5875 Aug 1, 2000, 10:07 AM
Post Re: problems with &get_email
JPDeni 5807 Aug 1, 2000, 3:04 PM