Re: LDAP check attributes

2006-05-22 Thread Antonio Matera
Ok, thanks... I'm searching for a solution ;-) bye antonio on 22/05/2006 20.11 Alan DeKok said the following: Antonio Matera <[EMAIL PROTECTED]> wrote: I haven't an EAP-Type entry and I don't understand where freeradius finds this attribute Neither do I. But the message isn't produced

Re: LDAP check attributes

2006-05-22 Thread Alan DeKok
Antonio Matera <[EMAIL PROTECTED]> wrote: > I haven't an EAP-Type entry and I don't understand where freeradius > finds this attribute Neither do I. But the message isn't produced in the default configuration, even when LDAP is enabled. It's something you've changed in your configuration.

Re: LDAP check attributes

2006-05-22 Thread Antonio Matera
Hallo, thanks for your answers. It's not in the conf files. Read the debug output. It's in LDAP. Ok, the problem in the log file is this: > rlm_ldap: ldap_get_conn: Checking Id: 0 > rlm_ldap: ldap_get_conn: Got Id: 0 > rlm_ldap: performing search in dc=create-net,dc=org, with filter (

Re: LDAP check attributes

2006-05-19 Thread Alan DeKok
Antonio Matera <[EMAIL PROTECTED]> wrote: > The problem is that I haven't set an EAP-Type in my configuration. That's not what the debug output says. > Can it be an "automatic" configuration of PEAP? No. > In my conf files I haven't an EAP-Type entry. It's not in the conf files. R

Re: LDAP check attributes

2006-05-19 Thread Antonio Matera
Hi! thanks for the answer. The problem is that I haven't set an EAP-Type in my configuration. Can it be an "automatic" configuration of PEAP? In my conf files I haven't an EAP-Type entry. Bye Antonio on 18/05/2006 18.41 Alan DeKok said the following: Antonio Matera <[EMAIL PROTECTED]> wrote

Re: LDAP check attributes

2006-05-18 Thread Alan DeKok
Antonio Matera <[EMAIL PROTECTED]> wrote: > Invalid operator for item EAP-Type: reverting to '==' > rlm_ldap: Pairs do not match. Rejecting user. > rlm_ldap: ldap_release_conn: Release Id: 0 > modcall[authorize]: module "ldap" returns reject for request 5 Why do you have EAP-Type in your LDAP co

Re: LDAP check attributes

2006-05-18 Thread Antonio Matera
Hi, I write better my error in my log, the problem I suppose that is these lines: Invalid operator for item EAP-Type: reverting to '==' rlm_ldap: Pairs do not match. Rejecting user. rlm_ldap: ldap_release_conn: Release Id: 0 modcall[authorize]: module "ldap" returns reject for request 5 Her

Re: LDAP check attributes

2006-05-17 Thread Antonio Matera
Hallo, I do some test on my freeradius. If I set "compare_check_items = yes" the PEAP seassion fails and I receive this log: rlm_eap_peap: Session established. Decoding tunneled attributes. rlm_eap_peap: Received EAP-TVL response. rlm_eap_peap: Tunneled data is valid. rlm_eap_peap: Had sent TL

Re: LDAP check attributes

2006-05-17 Thread ludovic cailleau
Yes, your explanation is clear. But I think that you must affect a default vlan at each user. Because the filter of ldap module is the same for each request and for your example the filter works for ‘test2’ but for ‘test3’ the Cisco-AVpair attributes is vacuum and it’s normal if he don’t works.  

Re: LDAP check attributes

2006-05-17 Thread Antonio Matera
My Ldap base contains attributes SSID for each users. Because my NAS sends its vendor-specific containing the SSID where wants to connect the users. And at each request for authentification, the module authorize (radiusd.conf) call Ldap (with the filter) to compare the `uid' and `SSID'. If

Re: LDAP check attributes

2006-05-17 Thread ludovic cailleau
Ok, I don’t be clear.       The solution that I your given does not use the replyItem Tunnel-Medium-Type, Tunnel-Private-Group-Id, Tunnel-Type.     My Ldap base contains attributes SSID for each users. Because my NAS sends its vendor-specific containing the SSID where wants to connect the use

Re: LDAP check attributes

2006-05-17 Thread Antonio Matera
Hi, thanks a lot for your answer. Your solution works fine but I don't understand some things: 1 - If I insert the Cisco-AVPair in the filter and I haven't this attribute in my ldap user, I can't authenticate it. Is it possible to check the ssid only if it is in the list of the ldap user attrib

Re: LDAP check attributes

2006-05-17 Thread ludovic cailleau
Hi   fillter = "(&(uid=%{Stripped-User-Name:-%{User-Name}})(radiusCiscoAVpair=%{Cisco-AVPair}))"   regardsAntonio Matera <[EMAIL PROTECTED]> a écrit : Hi,thanks for the answer.I forgot my filter line in ldap module:filter = "(uid=%{Stripped-User-Name:-%{User-Name}})"How I have to insert in th

Re: LDAP check attributes

2006-05-16 Thread Antonio Matera
Hi, thanks for the answer. I forgot my filter line in ldap module: filter = "(uid=%{Stripped-User-Name:-%{User-Name}})" How I have to insert in this string to add the ssid check? Where I insert the Cisco-AVPair check? Thanks, bye Antonio on 16/05/2006 14.06 ludovic cailleau said the follow

Re: LDAP check attributes

2006-05-16 Thread ludovic cailleau
Antonio Matera <[EMAIL PROTECTED]> a écrit :> > ldap {> server = "localhost"> basedn = "dc=create-net,dc=org"> password_attribute = userPassword> start_tls = no> ldap_connections_number = 5> }>   You must use filter in Ldap module if you want check SSID. You’ll make filter with uid and Cisco-AV

Re: LDAP check attributes

2006-05-16 Thread Antonio Matera
Anyone can help me? Thanks, bye Antonio on 15/05/2006 11.06 Antonio Matera said the following: Hallo, I have a problem with the LDAP attributes. I want set an ssid check in my radius authentication. If I do it with the user file all works fine. Now I want to insert this attribute in the ldap sc

LDAP check attributes

2006-05-15 Thread Antonio Matera
Hallo, I have a problem with the LDAP attributes. I want set an ssid check in my radius authentication. If I do it with the user file all works fine. Now I want to insert this attribute in the ldap schema. I have inserted a new attribute radiusCisco-AVpair in my schema with value ssid=VLAN3 and i