Re: freeradius for pam 1.3.15

This is a discussion on Re: freeradius for pam 1.3.15 within the FreeRADIUS Users forums, part of the Networking and Network Related category; Rachmel, Nir (Nir) wrote: > I have noticed, that when configuring my box with a DNS server, then > once ...


Go Back   Usenet Forums > Networking and Network Related > FreeRADIUS Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-27-2007
Alan DeKok
 
Posts: n/a
Default Re: freeradius for pam 1.3.15

Rachmel, Nir (Nir) wrote:
> I have noticed, that when configuring my box with a DNS server, then
> once a user attempts login, a call is attempted at the radius server and
> some kind of query is sent to the DNS server.
> Looking into the code revealed that there is a call to gethostbyname(),
> intended to resolve the ip of myself according to my hostname - or at
> least that is what
> I could figure out from the available code.


Yes.

> Why is it done, and how bad would it be if I changed that call to
> something simpler that won't demand a connection to the DNS server?


It's done because it's easy to code, and because it's easier than
explaining to people why the PAM module doesn't do DNS lookups.

If you don't want it to do DNS lookups, replace the gethostbyname()
with code that parses an IPv4 address.

Alan DeKok.
--
http://deployingradius.com - The web site of the book
http://deployingradius.com/blog/ - The blog
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:24 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0