Hello Robin -
On Mon, 05 Jun 2000, Robin Gruyters wrote:
> Hi,
>
> I get a stange error when I try to use NoReplyHook.
>
> Jun 5 11:52:50 dns3 Forwarded from emout2: /usr/bin/radiusd[94772]: Error in
> NoReplyHook(): Can't call method "add_attr" on an undefined value at
> Radius/AuthGeneric.pm line 1157.
>
> Below you find our configuration.
>
> AuthPort 1645
> AcctPort 1646
> BindAddress <removed>
> LogDir /var/log/radiusd
> DbDir /usr/local/etc/raddb
> LogFile %L/%d%m%Y-proxy-vtel.log
> PidFile /var/run/proxy.pid
> DictionaryFile %D/dictionary
> Trace 3
>
> <Client 212.48.47.15>
> Secret <removed>
> </Client>
> <Client 212.48.47.130>
> Secret <removed>
> </Client>
> <Client 212.48.47.131>
> Secret <removed>
> </Client>
> <Client 212.48.47.132>
> Secret <removed>
> </Client>
> <Client 212.48.47.135>
> Secret <removed>
> </Client>
>
> <AuthBy FILE>
> Identifier reject
> Filename %D/reject-users
> </AuthBy>
>
> <AuthBy RADIUS>
> Identifier radius
> Host 10.1.0.11
> AuthPort 1645
> AcctPort 1646
> Secret <removed>
> LocalAddress 10.1.0.12
> DefaultSimultaneousUse = 2
> NoReplyHook sub {Radius::AuthGeneric::find('LDAP')->handle_request(${$_[0]});}
>
> AddToReply Service-Type = Framed-User,\
> Framed-Protocol = PPP,\
> Framed-IP-Address = 255.255.255.254,\
> Framed-MTU = 1500,\
> Ascend-Client-Primary-DNS= 212.123.129.79,\
> Ascend-Client-Secondary-DNS= 212.123.128.16
>
> </AuthBy>
>
> <AuthBy LDAP2>
> Identifier LDAP
> Host ldap1.inside.servers
> AuthDN cn=radius,o=WISH, c=NL
> BaseDN o=WISH, c=NL
> AuthPassword <removed>
> UsernameAttr uid
> PasswordAttr userPassword
> HoldServerConnection
>
> AddToReply Service-Type = Framed-User,\
> Framed-Protocol = PPP,\
> Framed-IP-Address = 255.255.255.254,\
> Framed-MTU = 1500,\
> Ascend-Client-Primary-DNS= 212.123.129.79,\
> Ascend-Client-Secondary-DNS= 212.123.128.16
> </AuthBy>
>
> <Handler User-Name = /[^a-zA-Z0-9_-]/>
> AuthBy reject
> </Handler>
>
> <Handler>
> AuthBy radius
> </Handler>
>
> <Log SYSLOG>
> Facility user
> Trace 5
> </Log>
>
There are a number of reasons why you can't do this, but the specific reason
above is that you are calling "AuthGeneric::handle-request" with only the
current request packet as an argument, and "add_attr" is trying to add an
attribute to an undefined reply packet.
Perhaps you had better outline your requirements.
regards
Hugh
--
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc, etc.
Available on Unix, Linux, FreeBSD, Windows 95/98/2000, NT, MacOS X.
===
Archive at http://www.starport.net/~radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.