I fetched custom_example.pm from github. I'm confused about its dependencies. I 
see that $custom_db_prepared is set in custom_db_prepare(), but the variable is 
never set and the sub is never run. Huh?

I can run my $sth = get_db_handle()->prepare inline, but $sth->execute($var) 
fails.

    my $sth = get_db_handle()->prepare(<<"    SQL");
        SELECT affiliation
        FROM person
        WHERE pid = ?
    SQL

warn "$sth";
(gives me DBI::st=HASH(0x7eff7b654950) at /usr/local/pf/lib/pf/vlan/custom.pm 
line 78.)
    my $query = $sth->execute($user_name);
warn "$query";
(gives me 0E0 at /usr/local/pf/lib/pf/vlan/custom.pm line 80.)
    my ($affiliation) = $sth->fetchrow_array();
-- 
Rich Graves http://claimid.com/rcgraves
Carleton.edu Sr UNIX and Security Admin

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Packetfence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to