Hide/Delete keepusaliveuser in radpostauth table
Dear all, I need to get a keepalive user for my NAS to be authenticated every minutes. Also, for monitoring purpose, I am using this table to check which user get authenticated. Is there a specific way to delete automatically or to say to the Radius server not to add this particular user in the database? In fact, I am authenticated this user every minutes so this table is not significant anymore. Thanks for your reply, Sylvain - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Logging in more then once
I'm running FreeRadius Version: 2.1.8 SUSE Linux My problem is that people can login more then once. In e-directory I have it set to only allow the user to login once. When they are logged into novell then try to login to FreeRadius it lets them in. How do I make FreeRadius see this rule in e-directory? Is it even possible? Here is my debug screen: FreeRADIUS Version 2.1.8, for host i686-suse-linux-gnu, built on Jan 23 2010 at 01:51:06 Copyright (C) 1999-2009 The FreeRADIUS server project and contributors. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. You may redistribute copies of FreeRADIUS under the terms of the GNU General Public License v2. Starting - reading configuration files ... including configuration file /etc/raddb/radiusd.conf including configuration file /etc/raddb/clients.conf including files in directory /etc/raddb/modules/ including configuration file /etc/raddb/modules/cui including configuration file /etc/raddb/modules/pam including configuration file /etc/raddb/modules/pap including configuration file /etc/raddb/modules/otp including configuration file /etc/raddb/modules/chap including configuration file /etc/raddb/modules/echo including configuration file /etc/raddb/modules/exec including configuration file /etc/raddb/modules/expr including configuration file /etc/raddb/modules/ldap including configuration file /etc/raddb/modules/krb5 including configuration file /etc/raddb/modules/perl including configuration file /etc/raddb/modules/unix including configuration file /etc/raddb/modules/inner-eap including configuration file /etc/raddb/modules/radutmp including configuration file /etc/raddb/modules/counter including configuration file /etc/raddb/modules/acct_unique including configuration file /etc/raddb/modules/files including configuration file /etc/raddb/modules/realm including configuration file /etc/raddb/modules/wimax including configuration file /etc/raddb/modules/mac2vlan including configuration file /etc/raddb/modules/linelog including configuration file /etc/raddb/modules/sqlcounter_expire_on_login including configuration file /etc/raddb/modules/detail.example.com including configuration file /etc/raddb/modules/checkval including configuration file /etc/raddb/modules/ntlm_auth including configuration file /etc/raddb/modules/logintime including configuration file /etc/raddb/modules/sql_log including configuration file /etc/raddb/modules/sradutmp including configuration file /etc/raddb/modules/always including configuration file /etc/raddb/modules/attr_rewrite including configuration file /etc/raddb/modules/detail including configuration file /etc/raddb/modules/digest including configuration file /etc/raddb/modules/ippool including configuration file /etc/raddb/modules/mac2ip including configuration file /etc/raddb/modules/mschap including configuration file /etc/raddb/modules/smbpasswd including configuration file /etc/raddb/modules/passwd including configuration file /etc/raddb/modules/policy including configuration file /etc/raddb/modules/smsotp including configuration file /etc/raddb/modules/etc_group including configuration file /etc/raddb/modules/preprocess including configuration file /etc/raddb/modules/attr_filter including configuration file /etc/raddb/modules/detail.log including configuration file /etc/raddb/modules/expiration including configuration file /etc/raddb/eap.conf including configuration file /etc/raddb/policy.conf including files in directory /etc/raddb/sites-enabled/ including configuration file /etc/raddb/sites-enabled/default including configuration file /etc/raddb/sites-enabled/inner-tunnel including configuration file /etc/raddb/sites-enabled/control-socket main { user = radiusd group = radiusd allow_core_dumps = no } including dictionary file /etc/raddb/dictionary main { prefix = /usr localstatedir = /var logdir = /var/log/radius libdir = /usr/lib/freeradius radacctdir = /var/log/radius/radacct hostname_lookups = no max_request_time = 30 cleanup_delay = 5 max_requests = 1024 pidfile = /var/run/radiusd/radiusd.pid checkrad = /usr/sbin/checkrad debug_level = 0 proxy_requests = yes log { stripped_names = no auth = no auth_badpass = no auth_goodpass = no } security { max_attributes = 200 reject_delay = 1 status_server = yes } } radiusd: Loading Realms and Home Servers radiusd: Loading Clients client 172.16.33.2 { require_message_authenticator = no secret = fake shortname = wlc-nsac-exteng-4404-6 nastype = cisco } client 172.16.33.4 { require_message_authenticator = no secret = fake shortname = wlc-nsac-exteng-4404-7 nastype = cisco } client 172.16.19.130 { require_message_authenticator = no secret = fake
I can get Access-Accept but no Framed-IP-Address
Hi, I fresh install freeradius ( Yes. I am newbie). I try to give IP address for my authenticated user who use token as password. But still I don't understand why altough users can give access if IP is in a ip pool, other users can't give IP address as static. What affects while user take IP address as static and from pool? What are the changes? #users file: tevfikceydelilerProxy-To-Realm := 10.1.1.51 Framed-IP-Address := 172.30.64.20, Framed-IP-Netmask := 255.255.255.255 In my case user can get Access-Accept but there is no IP address #Here is the log: r...@radiussql:/etc/freeradius# freeradius -X FreeRADIUS Version 2.1.0, for host i486-pc-linux-gnu, built on Sep 17 2009 at 17:22:02 ... Starting - reading configuration files ... including configuration file /etc/freeradius/radiusd.conf including configuration file /etc/freeradius/proxy.conf including configuration file /etc/freeradius/clients.conf including files in directory /etc/freeradius/modules/ including configuration file /etc/freeradius/modules/sql_log including configuration file /etc/freeradius/modules/detail.log including configuration file /etc/freeradius/modules/mschap including configuration file /etc/freeradius/modules/echo ... including configuration file /etc/freeradius/modules/files including configuration file /etc/freeradius/modules/policy including configuration file /etc/freeradius/modules/counter including configuration file /etc/freeradius/modules/sradutmp including configuration file /etc/freeradius/modules/radutmp including configuration file /etc/freeradius/modules/realm including configuration file /etc/freeradius/modules/unix including configuration file /etc/freeradius/modules/chap including configuration file /etc/freeradius/modules/mac2vlan including configuration file /etc/freeradius/modules/ippool ... including configuration file /etc/freeradius/eap.conf including configuration file /etc/freeradius/policy.conf including files in directory /etc/freeradius/sites-enabled/ including configuration file /etc/freeradius/sites-enabled/inner-tunnel including configuration file /etc/freeradius/sites-enabled/default including dictionary file /etc/freeradius/dictionary main { prefix = /usr localstatedir = /var logdir = /var/log/freeradius libdir = /usr/lib/freeradius radacctdir = /var/log/freeradius/radacct hostname_lookups = no max_request_time = 30 cleanup_delay = 5 max_requests = 1024 allow_core_dumps = no pidfile = /var/run/freeradius/freeradius.pid checkrad = /usr/sbin/checkrad debug_level = 0 proxy_requests = yes log { stripped_names = no auth = no auth_badpass = no auth_goodpass = no } security { max_attributes = 200 reject_delay = 1 status_server = yes } } client localhost { ipaddr = 127.0.0.1 require_message_authenticator = no secret = testing123 nastype = other } client 10.65.8.100 { require_message_authenticator = no secret = testing123 shortname = tceydelilerNB } client 172.30.80.1 { require_message_authenticator = no secret = 1q2w3e4r shortname = TurkcellGGSN } radiusd: Loading Realms and Home Servers proxy server { retry_delay = 5 retry_count = 3 default_fallback = no dead_time = 120 wake_all_if_all_dead = no } home_server localhost { ipaddr = 127.0.0.1 port = 1812 type = auth secret = testing123 response_window = 20 max_outstanding = 65536 zombie_period = 40 status_check = status-server ping_interval = 30 check_interval = 30 num_answers_to_alive = 3 num_pings_to_alive = 3 revive_interval = 120 status_check_timeout = 4 } home_server_pool my_auth_failover { type = fail-over home_server = localhost } realm example.com { auth_pool = my_auth_failover } realm LOCAL { } realm 10.1.1.51 { authhost = 10.1.1.51:1812 secret = geheim } radiusd: Instantiating modules instantiate { Module: Linked to module rlm_exec Module: Instantiating exec exec { wait = no input_pairs = request shell_escape = yes } Module: Linked to module rlm_expr Module: Instantiating expr Module: Linked to module rlm_expiration Module: Instantiating expiration expiration { reply-message = Password Has Expired } Module: Linked to module rlm_logintime Module: Instantiating logintime logintime { reply-message = You are calling outside your allowed timespan minimum-timeout = 60 } } radiusd: Loading Virtual Servers server inner-tunnel { modules { Module: Checking authenticate {...} for more modules to load Module: Linked to module rlm_pap Module:
SOLVED: RE: Help pls: How to strip REALM but insert it from a usern...@mac onto an MySQL DB
Hi All; With your help i have managed to get Radius to do what i needed, thanks. Basically i have placed the following into the sites-available/default file on the authorize and accounting areas: if(User-Name){ if (%{User-Name} =~ /^(.{6,32})(@{1})(.{17})$/){ update request { User-Name := %{1} Realm := %{3} } } else { reject } } The Regex will allow: Usernames from 6 to 32 characters; Only one @ sign, and 32 Chars for the MAC Address Users without the @ MAC_ADDRESS will be dropped. With that REGEX true the Username and Realm are updated respectively on my MySQL DB. Next time anybody is around Windsor UK, let me know (email at the top) i'll treat you for a pint(s) of Stella and a Kebab Thanks again Lucio _ Tell us your greatest, weirdest and funniest Hotmail stories http://clk.atdmt.com/UKM/go/195013117/direct/01/- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
EAP-TLS - OpenLDAP - UID Check
Hello, due to a typing error i realized that there is a mistake at my configuration, the eap-tls is working fine but it doesn't matter what name is written in the certificate, ldap is returning not found but the user is always accepted. I looked at the ldap module for an identity check but i can't find it and setting access_attr = uid makes no difference. Please give me a hint where i have to look. -- View this message in context: http://old.nabble.com/EAP-TLS---OpenLDAP---UID-Check-tp27326455p27326455.html Sent from the FreeRadius - User mailing list archive at Nabble.com. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: dropped request after ldap constraint violating
Date: Tue, 26 Jan 2010 08:33:41 +0100 From: Alan DeKok al...@deployingradius.com Subject: Re: dropped request after ldap constraint violating To: FreeRadius users mailing list freeradius-users@lists.freeradius.org Message-ID: 4b5e9ad5.90...@deployingradius.com Content-Type: text/plain; charset=ISO-8859-1 chui wrote: From radius.log, the symptom of the failure goes as follow 1. rlm_ldap receives constraint violation reply from ldap. Well... that's an issue with LDAP. 2. other authentication requests immediately followed the constraint violation reply failed with incorrect login Likely because the LDAP server treats the connection as bad, and starts rejecting all searches done via that connection. Can anybody shed some light on this failure scenario? See https://bugs.freeradius.org/bugzilla/show_bug.cgi?id=18 Maybe that change will help. Alan DeKok. I believed I have the same issue as described in ID 18 rlm_ldap MAX_FAILED_CONNS logic and ldap response 19 constraint violation. I would also like to see that constraint violation being handled as RLM_MODULE_REJECT instead of RLM_MODULE_FAIL. Is it likely that Adam's request be included in the next update? Thanks Cedric - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
ldap rebind?
In the release notes for 2.1.8 it says: Document chase_referrals and rebind in raddb/modules/ldap Well 2.1.7 says: # The following two configuration items are for Active Directory # compatibility. If you see the helpful operations error # being returned to the LDAP module, uncomment the next # two lines. # # chase_referrals = yes # rebind = yes which is no different than 2.1.8. What's different? Is this documentation somewhere? I'm especially interested in rebind. Wat's it do? Rick Rick Steeves http://www.sinister.net In reality nothing is more damaging to the adventurous spirit within a man than a secure future - Alexander Supertramp - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: dropped request after ldap constraint violating
Cedric Hui wrote: I believed I have the same issue as described in ID 18 rlm_ldap MAX_FAILED_CONNS logic and ldap response 19 constraint violation. I would also like to see that constraint violation being handled as RLM_MODULE_REJECT instead of RLM_MODULE_FAIL. Is it likely that Adam's request be included in the next update? Does the patch solve the problem? Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: ldap rebind?
freerad...@corwyn.net wrote: In the release notes for 2.1.8 it says: Document chase_referrals and rebind in raddb/modules/ldap ... which is no different than 2.1.8. What's different? Is this documentation somewhere? I'm especially interested in rebind. Wat's it do? It re-sends authentication credentials for referrals. Active Directory has a habit of referring LDAP clients to a *different* LDAP server. The client needs to re-authenticate to that server before it answers queries. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: EAP-TLS - OpenLDAP - UID Check
_Stefan_H wrote: Hello, due to a typing error i realized that there is a mistake at my configuration, the eap-tls is working fine but it doesn't matter what name is written in the certificate, ldap is returning not found but the user is always accepted. I looked at the ldap module for an identity check but i can't find it and setting access_attr = uid makes no difference. Please give me a hint where i have to look. EAP-TLS does authentication by checking the certificate, not the user name. If you want the LDAP module to reject users who aren't in LDAP, edit raddb/sites-enabled/default, the authorize section. Change the line saying ldap to: ldap { notfound = reject } Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Logging in more then once
J Brandon Polley wrote: My problem is that people can login more then once. In e-directory I have it set to only allow the user to login once. When they are logged into novell then try to login to FreeRadius it lets them in. How do I make FreeRadius see this rule in e-directory? Is it even possible? See doc/Simultaneous-Use Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Pam radius client and binding to mulitple IPs
Chris Tong wrote: The problem I am having is that I have an OpenVPN proxy hub that has 3 external IP addresses. ... However if the user connects to INT2 the NAS requset still has the source IP address of INT1 and therefore the user is rejected because he is not a member of the INT1 grouping. The PAM module doesn't have a configuration option for use this local IP address Is it possible to have multiple instances of the radius plugin each binding to a different interface so that the request seen by the Radius server via the PAM plugin has the correct source address? The module will have to be updated to add that capability. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: ldap rebind?
At 07:16 PM 1/26/2010, Alan DeKok wrote: freerad...@corwyn.net wrote: In the release notes for 2.1.8 it says: Document chase_referrals and rebind in raddb/modules/ldap ... which is no different than 2.1.8. What's different? Is this documentation somewhere? I'm especially interested in rebind. Wat's it do? It re-sends authentication credentials for referrals. Active Directory has a habit of referring LDAP clients to a *different* LDAP server. The client needs to re-authenticate to that server before it answers queries. Intereesting. What errors does freeradius thrown when this occurs? (since I'm still troubleshooting my ldap woes) Rick - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Windows Authentication Failing After Changing IP
Thanks Alan. I upgraded to 2.1.8, but I'm unable to find anything regarding operations error. Sorry if this is a stupid question, but I can't figure this one out as I verified my configuration. It must be something really minor, but any assistance\clue would be deeply appreciated. On Fri, Jan 8, 2010 at 1:48 AM, Alan DeKok al...@deployingradius.comwrote: Edwin Isada wrote: .. rlm_ldap: performing search in dc=eidev,dc=com, with filter ((objectCategory=user)(samaccountname=edwinadmin)(memberOf=cn=MIS-NetworkAdmins-All,OU=Security Groups,OU=MIS Admin,DC=EIDEV,DC=COM)) rlm_ldap: ldap_search() failed: Operations error In 2.1.8, read raddb/modules/ldap, and look for operations error. In older versions... upgrade. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Windows Authentication Failing After Changing IP
I commented out rebind and chase_referral, but this didn't fix the issue. Can someone explain to me what this change fixes for my curiosity? On Tue, Jan 26, 2010 at 11:31 PM, Edwin Isada eis...@gmail.com wrote: Thanks Alan. I upgraded to 2.1.8, but I'm unable to find anything regarding operations error. Sorry if this is a stupid question, but I can't figure this one out as I verified my configuration. It must be something really minor, but any assistance\clue would be deeply appreciated. On Fri, Jan 8, 2010 at 1:48 AM, Alan DeKok al...@deployingradius.comwrote: Edwin Isada wrote: .. rlm_ldap: performing search in dc=eidev,dc=com, with filter ((objectCategory=user)(samaccountname=edwinadmin)(memberOf=cn=MIS-NetworkAdmins-All,OU=Security Groups,OU=MIS Admin,DC=EIDEV,DC=COM)) rlm_ldap: ldap_search() failed: Operations error In 2.1.8, read raddb/modules/ldap, and look for operations error. In older versions... upgrade. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html