<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16587" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I try to change the attribute to authenticate a
user/system. I have the following setup where my LDAP connection fills an
attribute My-MAC-Address, which then check against file entries. The problem I
have is that I still get the User-Name as the compare value not
My-MAC-Address. I did include a PostAuthHook sub { print
${$_[0]}->get_attr('My-MAC-Address') ; } and it has the correct MAC-Address.
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>What could be the reason that I still compare the
User-Name attribute ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><AuthBy
FILE><BR> Identifier
MacFilter</FONT></DIV>
<DIV><FONT face=Arial size=2>
AuthenticateAttribute
My-MAC-Address<BR> Filename
%D/macs<BR></AuthBy></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><Handler
Device-Class=class1><BR>
AddToRequestIfNotExist
Request-Protocol=Radius<BR>
AuthByPolicy ContinueUntilReject<BR>
AuthBy
LDAPMACAuthorisation<BR> </FONT><FONT
face=Arial size=2>AuthBy MacFilter<BR></FONT><FONT face=Arial
size=2> # Log accounting to the detail
file in LogDir<BR> AcctLogFileName
%L/detail<BR></Handler><BR><Handler><BR>
AddToRequestIfNotExist
Request-Protocol=Radius<BR>
AuthByPolicy ContinueUntilReject<BR>
AuthBy LDAPAuthorisation<BR> AuthBy
UserFilter<BR> AuthBy
PAMAuthentication<BR> AuthLog
LogAuthentication<BR> # Log accounting
to the detail file in LogDir<BR>
AcctLogFileName %L/detail<BR></Handler><BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thank you</FONT></DIV>
<DIV><FONT face=Arial size=2>Markus</DIV></FONT></BODY></HTML>