|
|
| Author |
Message |
|
| Guest |
Posted: Tue Jul 18, 2006 9:56 am |
|
|
|
Guest
|
Hi again everyone,
I downloaded the source code for ejabberd and used that - worked first
time. Seems there might be a FreeBSD ports issue...
Anyway, onto the new problem that I have.
I want to use the extauth function to authenticate our users against
Tacacs (which works).
I log the output of the script like this:
### Here i get the variables as discussed on the forum:
my ($op,$user,$domain,$password) = split /:/,$buf;
### Later in the program:
$op eq 'auth' and do
{
$t= new Authen::TacacsPlus(Host => $tacacshost,
Key => $tacacskey);
if ($t->authen($user,$password)){
$result ="0";
system ("echo Granted - $op, $user, $password, $domain, $result
>>/tmp/log4me");
} else {
$result = "1";
system ("echo Denied - $op, $user, $password, $d
omain, $result >>/tmp/log4me");
}
$t->close();
},last SWITCH;
### Results pushing back to ejabberd (as per the examples on the site)
system("echo $result - RESULT >> /tmp/log4me");
my $out = pack "nn",2,$result ? 1 : 0;
#system("echo $out >> /tmp/log4me");
syswrite STDOUT,$out;
}
closelog;
The contents of my log file looks like this:
Denied - auth, riasdasd, password, localhost, 1
1 - RESULT
Granted - auth, riaana, password, localhost, 0
0 - RESULT
So as you can see - riaana is OK, and riasdasd is just a bogus user.
The problem i have now, is the in Gaim, i still get "logged in" with both accounts. So i'm suspecting a config file issue (attached)
Again, any help will be appreciated.
--
riaan annandale, systems engineer, infrastructure
internet solutions, south africa
Direct tel: +27-11-575-4844
Support tel: +27-11-575-0055
Post recived frommailinglist |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|