Authorization with Active Directory
suggestme
suggest_me at hotmail.com
Thu Jan 26 22:21:46 CET 2012
Thanks a lot again for showing me the direction.
Everything works perfect except the conditional checking for
Client-Shortname. I tried using:
*if (Client-Shortname =~ /^localhost/) {*
It didn't work saying Client-Shortname as unknown attribute.
Again I tried using:
* if ("%{client: shortname}" =~ /^localhost/) {*
It also showed the following test result:
I am testing it with localhost; In the debug mode output it shows:
+++? if ("%{client: shortname}" =~ /^localhost/)
expand: %{client: shortname} ->
? Evaluating ("%{client: shortname}" =~ /^localhost/) -> FALSE
+++? if ("%{client: shortname}" =~ /^localhost/) -> FALSE
Why is the condition checking for localhost is evaluated as FALSE?
In my clients.conf I have just listed the default FreeRadius configuration
for localhost as:
client localhost {
ipaddr = 127.0.0.1
secret = testing123
nastype = other
}
Can't it be tested using localhost shortname; should I need to use client in
real environment testing instead of localhost ? OR is there any silly thing
I am missing again..........
For just trial purpose I used NAS-IP-Address and supplied my localhost IP
address inside "If" condition; it is works.
Thanks,
--
View this message in context: http://freeradius.1045715.n5.nabble.com/Authorization-with-Active-Directory-tp5117364p5434013.html
Sent from the FreeRadius - User mailing list archive at Nabble.com.
More information about the Freeradius-Users
mailing list