[Chilli] dhcp client hostname

Gergely Kiss mail.gery at gmail.com
Sun Apr 29 21:08:42 UTC 2012


Hi Tamás,

David wrote an article about using vendor-specific attributes to be
able to get the DHCP options from the clients (including the client's
hostname):

http://www.coova.org/node/118

I don't know if it's still a proposal or has been implemented already,
but taking a quick look at the source tells me the proposed DHCP
attributes are already included in the dictionary file:

http://dev.coova.org/svn/coova-chilli/doc/dictionary.chillispot

On the other hand, it seems the code does not use these attributes
anywhere, so I think you will need to change the source to get the
hostname as a RADIUS access request attribute.

Unfortunately, I'm not good enough at C++ programming to do the
coding, but basically you just need to fetch the hostname from the
DHCP request (DHCP option 12), store it in a property and pass it to
the RADIUS server when sending an access request packet during
authentication.


Regards,
Gergely Kiss

Ps. én is magyar vagyok! :)

On 29 April 2012 17:19, Fekete Tamás <f.tomi7 at citromail.hu> wrote:
> Hello All,
>
> I would like to get the host name of the connected client. My plan was
> simple modify the source code of chilli, but as I suppose it is not the best
> way and anyway I have not idea how to do this. But I went ahead and I got
> deeper and deeper in this topic. Now I find that radius server perfectly can
> solve my problem. It is almost very good news, but I do not know how to
> receive the wished attributes from that. Maybe someone can give me some
> advice how I can do this.
>
> But I simple do not understand why the dhcp part cannot prove this
> information. I think where I use dhcp server I want to know about client
> there. And I do not want to depend on something else. But maybe this is only
> my consideration.
>
> But the main point is now I would be really glad of getting some help in
> question of getting hostname. :)
>
> Nice day,
>
> Tamas
>
> _______________________________________________
> Chilli mailing list
> Chilli at coova.org
> http://lists.coova.org/cgi-bin/mailman/listinfo/chilli
>


More information about the Chilli mailing list