vlan in ldap - full version
Hello list I was send the last mail wrongly - here the correct version : I am trying to assign different vlans for my different Radius-users. The good news is that with a user defined in the users file it works fine. The users file : tester cleartext-Password := "alois" Tunnel-Type = VLAN, Tunnel-Medium-Type = IEEE-802, Tunnel-Private-Group-Id = 155 The message: ++[eap] returns ok Login OK: [tester] (from client ciscosw port 29 cli 00-1F-E1-23-71-85) +- entering group post-auth {...} ++[exec] returns noop Sending Access-Accept of id 255 to 10.53.240.10 port 32769 Tunnel-Type:0 = VLAN Tunnel-Medium-Type:0 = IEEE-802 Tunnel-Private-Group-Id:0 = "155" User-Name = "tester" MS-MPPE-Recv-Key = 0x283b539628ec3ece70444bce496d078fc67323356a6cd12f435f878743447f7a MS-MPPE-Send-Key = 0xa978c29338aa1547d14524b0f43bfcde45841e3bce0f9c30a0b6c3d57187d810 EAP-Message = 0x03130004 Message-Authenticator = 0x00000000000000000000000000000000 Finished request 12. But with my users in Ldap - it does not work - seems that radius dont replay the vlan-attributes Some hints? luis my user in ldap : dn: uid=test,ou=users,dc=sb-brixen,dc=it objectClass: radiusprofile radiusTunnelMediumType: IEEE-802 radiusTunnelType: VLAN radiusTunnelPrivateGroupId: 154 The message i get: [ldap] looking for check items in directory... rlm_ldap: radiusTunnelPrivateGroupId -> Tunnel-Private-Group-Id:0 == "154" rlm_ldap: radiusTunnelMediumType -> Tunnel-Medium-Type:0 == IEEE-802 rlm_ldap: radiusTunnelType -> Tunnel-Type:0 == VLAN ... Login OK: [test] (from client ciscosw port 29 cli 00-1F-E1-23-71-85) +- entering group post-auth {...} ++[exec] returns noop Sending Access-Accept of id 97 to 10.53.240.10 port 32769 User-Name = "test" MS-MPPE-Recv-Key = 0x460785611f313ad630d4947a9f319303a05238d5b340b0a32d38a58b81a416aa MS-MPPE-Send-Key = 0xceeebab47129af3baa96c6fa859b26434b3894a32fddeeffc4f86bb9dfc080b1 EAP-Message = 0x031a0004 Message-Authenticator = 0x00000000000000000000000000000000 Finished request 53.
alois blasbichler wrote:
I am trying to assign different vlans for my different Radius-users. The good news is that with a user defined in the users file it works fine. ... The message i get:
[ldap] looking for check items in directory... rlm_ldap: radiusTunnelPrivateGroupId -> Tunnel-Private-Group-Id:0 == "154" rlm_ldap: radiusTunnelMediumType -> Tunnel-Medium-Type:0 == IEEE-802 rlm_ldap: radiusTunnelType -> Tunnel-Type:0 == VLAN
You have configured these as *check* items, not as *reply* items. Fix that. Alan DeKok.
You have configured these as *check* items, not as *reply* items. Fix that.
Hello Thank you. I changed to ------- replayItem Tunnel-Type radiusTunnelType replayItem Tunnel-Medium-Type radiusTunnelMediumType replayItem Tunnel-Private-Group-Id radiusTunnelPrivateGroupId -------- But so it says that : By luis rlm_ldap: performing search in dc=sb-brixen,dc=it, with filter (uid=test) [ldap] Added User-Password = {MD5}qmP3j3bSY61V2vpYrvPZTg== in check items [ldap] looking for check items in directory... rlm_ldap: sambaNTPassword -> NT-Password == 0x3730353833444539334132364235333932313639333235314644313734413841 rlm_ldap: sambaLMPassword -> LM-Password == 0x3037414538333031344236393035433631323837303833414331353839444544 [ldap] looking for reply items in directory... [ldap] user test authorized to use remote access rlm_ldap: ldap_release_conn: Release Id: 0 ++[ldap] returns ok ++[expiration] returns noop
alois blasbichler wrote: [...]
I changed to ------- replayItem Tunnel-Type radiusTunnelType replayItem Tunnel-Medium-Type radiusTunnelMediumType replayItem Tunnel-Private-Group-Id radiusTunnelPrivateGroupId -------- But so it says that :
It should be "replyItem". Kind regards, -- Lech Karol Pawłaszek <ike> "You will never see me fall from grace" [KoRn]
Not replay, reply. Ivan Kalik Kalik Informatika ISP Dana 17/12/2008, "alois blasbichler" <alois.blasbichler@sb-brixen.it> piše:
You have configured these as *check* items, not as *reply* items. Fix that.
Hello
Thank you.
I changed to ------- replayItem Tunnel-Type radiusTunnelType replayItem Tunnel-Medium-Type radiusTunnelMediumType replayItem Tunnel-Private-Group-Id radiusTunnelPrivateGroupId -------- But so it says that :
By luis
rlm_ldap: performing search in dc=sb-brixen,dc=it, with filter (uid=test) [ldap] Added User-Password = {MD5}qmP3j3bSY61V2vpYrvPZTg== in check items [ldap] looking for check items in directory... rlm_ldap: sambaNTPassword -> NT-Password == 0x3730353833444539334132364235333932313639333235314644313734413841 rlm_ldap: sambaLMPassword -> LM-Password == 0x3037414538333031344236393035433631323837303833414331353839444544 [ldap] looking for reply items in directory... [ldap] user test authorized to use remote access rlm_ldap: ldap_release_conn: Release Id: 0 ++[ldap] returns ok ++[expiration] returns noop
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (4)
-
Alan DeKok -
alois blasbichler -
Lech Karol Pawłaszek -
tnt@kalik.net