I instaled de radiusplugin on my system but it's not authenticate my user. The radtest comand authenticate successfully but when i try to conect with the openvpn not.
The radius server show my password correctly on 2 requests and de access is accept and another 2 requests the password are shown truncates and de access is reject.
This is my freeradius log...
rad_recv: Access-Request packet from host 127.0.0.1:32825, id=224, length=97 User-Name = "rogeriol" User-Password = "master"
NAS-IP-Address = 127.0.0.1 NAS-Port = 8 Service-Type = Dialout-Framed-User Calling-Station-Id = "200.142.62.114
" NAS-Identifier = "OpenVpn" NAS-Port-Type = Virtual Processing the authorize section of radiusd.conf modcall: entering group authorize for request 0 modcall[authorize]: module "preprocess" returns ok for request 0
modcall[authorize]: module "chap" returns noop for request 0 modcall[authorize]: module "mschap" returns noop for request 0 rlm_realm: No '@' in User-Name = "rogeriol", looking up realm NULL
rlm_realm: No such realm "NULL" modcall[authorize]: module "suffix" returns noop for request 0 rlm_eap: No EAP-Message, not doing EAP modcall[authorize]: module "eap" returns noop for request 0
users: Matched entry DEFAULT at line 156 modcall[authorize]: module "files" returns ok for request 0 rlm_ldap: - authorize rlm_ldap: performing user authorization for rogeriol radius_xlat: '(uid=rogeriol)'
radius_xlat: 'o=prdf' rlm_ldap: ldap_get_conn: Checking Id: 0 rlm_ldap: ldap_get_conn: Got Id: 0 rlm_ldap: attempting LDAP reconnection rlm_ldap: (re)connect to
ldap.prdf.mpf.gov.br:389, authentication 0 rlm_ldap: bind as / to ldap.prdf.mpf.gov.br:389 rlm_ldap: waiting for bind result ... rlm_ldap: Bind was successful
rlm_ldap: performing search in o=prdf, with filter (uid=rogeriol) rlm_ldap: looking for check items in directory... rlm_ldap: looking for reply items in directory... rlm_ldap: user rogeriol authorized to use remote access
rlm_ldap: ldap_release_conn: Release Id: 0 modcall[authorize]: module "ldap" returns ok for request 0 modcall: leaving group authorize (returns ok) for request 0 rad_check_password: Found Auth-Type LDAP
auth: type "LDAP" Processing the authenticate section of radiusd.conf modcall: entering group LDAP for request 0 rlm_ldap: - authenticate rlm_ldap: login attempt by "rogeriol" with password "master"
rlm_ldap: user DN: cn=Rogeriol,ou=CINF,o=PRDF rlm_ldap: (re)connect to ldap.prdf.mpf.gov.br:389, authentication 1 rlm_ldap: bind as cn=Rogeriol,ou=CINF,o=PRDF/master to
ldap.prdf.mpf.gov.br:389 rlm_ldap: waiting for bind result ... rlm_ldap: Bind was successful rlm_ldap: user rogeriol authenticated succesfully modcall[authenticate]: module "ldap" returns ok for request 0
modcall: leaving group LDAP (returns ok) for request 0 Sending Access-Accept of id 224 to 127.0.0.1 port 32825 Finished request 0 Going to the next request --- Walking the entire request list ---
Waking up in 3 seconds... rad_recv: Access-Request packet from host 127.0.0.1:32826, id=224, length=97 User-Name = "rogeriol" User-Password = "master"
NAS-IP-Address = 127.0.0.1 NAS-Port = 8 Service-Type = Dialout-Framed-User Calling-Station-Id = "200.142.62.114
" NAS-Identifier = "OpenVpn" NAS-Port-Type = Virtual Processing the authorize section of radiusd.conf modcall: entering group authorize for request 1 modcall[authorize]: module "preprocess" returns ok for request 1
modcall[authorize]: module "chap" returns noop for request 1 modcall[authorize]: module "mschap" returns noop for request 1 rlm_realm: No '@' in User-Name = "rogeriol", looking up realm NULL
rlm_realm: No such realm "NULL" modcall[authorize]: module "suffix" returns noop for request 1 rlm_eap: No EAP-Message, not doing EAP modcall[authorize]: module "eap" returns noop for request 1
users: Matched entry DEFAULT at line 156 modcall[authorize]: module "files" returns ok for request 1 rlm_ldap: - authorize rlm_ldap: performing user authorization for rogeriol radius_xlat: '(uid=rogeriol)'
radius_xlat: 'o=prdf' rlm_ldap: ldap_get_conn: Checking Id: 0 rlm_ldap: ldap_get_conn: Got Id: 0 rlm_ldap: performing search in o=prdf, with filter (uid=rogeriol) rlm_ldap: looking for check items in directory...
rlm_ldap: looking for reply items in directory... rlm_ldap: user rogeriol authorized to use remote access rlm_ldap: ldap_release_conn: Release Id: 0 modcall[authorize]: module "ldap" returns ok for request 1
modcall: leaving group authorize (returns ok) for request 1 rad_check_password: Found Auth-Type LDAP auth: type "LDAP" Processing the authenticate section of radiusd.conf modcall: entering group LDAP for request 1
rlm_ldap: - authenticate rlm_ldap: login attempt by "rogeriol" with password "master" rlm_ldap: user DN: cn=Rogeriol,ou=CINF,o=PRDF rlm_ldap: (re)connect to
ldap.prdf.mpf.gov.br:389, authentication 1 rlm_ldap: bind as cn=Rogeriol,ou=CINF,o=PRDF/master to ldap.prdf.mpf.gov.br:389 rlm_ldap: waiting for bind result ... rlm_ldap: Bind was successful
rlm_ldap: user rogeriol authenticated succesfully modcall[authenticate]: module "ldap" returns ok for request 1 modcall: leaving group LDAP (returns ok) for request 1 Sending Access-Accept of id 224 to
127.0.0.1 port 32826 Finished request 1 Going to the next request --- Walking the entire request list --- Cleaning up request 0 ID 224 with timestamp 46b8e9f6 Waking up in 3 seconds...
rad_recv: Access-Request packet from host 127.0.0.1:32827, id=224, length=97 User-Name = "rogeriol" User-Password = "\235\324s\021\307f\334\355\003w\271\235\002\202\0330"
NAS-IP-Address = 127.0.0.1 NAS-Port = 8 Service-Type = Dialout-Framed-User Calling-Station-Id = "200.142.62.114
" NAS-Identifier = "OpenVpn" NAS-Port-Type = Virtual Processing the authorize section of radiusd.conf modcall: entering group authorize for request 2 modcall[authorize]: module "preprocess" returns ok for request 2
modcall[authorize]: module "chap" returns noop for request 2 modcall[authorize]: module "mschap" returns noop for request 2 rlm_realm: No '@' in User-Name = "rogeriol", looking up realm NULL
rlm_realm: No such realm "NULL" modcall[authorize]: module "suffix" returns noop for request 2 rlm_eap: No EAP-Message, not doing EAP modcall[authorize]: module "eap" returns noop for request 2
users: Matched entry DEFAULT at line 156 modcall[authorize]: module "files" returns ok for request 2 rlm_ldap: - authorize rlm_ldap: performing user authorization for rogeriol radius_xlat: '(uid=rogeriol)'
radius_xlat: 'o=prdf' rlm_ldap: ldap_get_conn: Checking Id: 0 rlm_ldap: ldap_get_conn: Got Id: 0 rlm_ldap: performing search in o=prdf, with filter (uid=rogeriol) rlm_ldap: looking for check items in directory...
rlm_ldap: looking for reply items in directory... rlm_ldap: user rogeriol authorized to use remote access rlm_ldap: ldap_release_conn: Release Id: 0 modcall[authorize]: module "ldap" returns ok for request 2
modcall: leaving group authorize (returns ok) for request 2 rad_check_password: Found Auth-Type LDAP auth: type "LDAP" Processing the authenticate section of radiusd.conf modcall: entering group LDAP for request 2
rlm_ldap: - authenticate rlm_ldap: login attempt by "rogeriol" with password "?�s?�f��?w�????0" rlm_ldap: user DN: cn=Rogeriol,ou=CINF,o=PRDF rlm_ldap: (re)connect to
ldap.prdf.mpf.gov.br:389, authentication 1 rlm_ldap: bind as cn=Rogeriol,ou=CINF,o=PRDF/?�s?�f��?w�????0 to ldap.prdf.mpf.gov.br:389 rlm_ldap: waiting for bind result ...
rlm_ldap: Bind failed with invalid credentials rlm_ldap: NDS error: failed authentication (-669) modcall[authenticate]: module "ldap" returns reject for request 2 modcall: leaving group LDAP (returns reject) for request 2
auth: Failed to validate the user. WARNING: Unprintable characters in the password. ? Double-check the shared secret on the server and the NAS! Delaying request 2 for 1 seconds Finished request 2 Going to the next request
--- Walking the entire request list --- Cleaning up request 1 ID 224 with timestamp 46b8ea00 Waking up in 1 seconds... rad_recv: Access-Request packet from host 127.0.0.1:32828
, id=224, length=97 User-Name = "rogeriol" User-Password = "@\274\010W\225\354\250\347\211\210\226o\271\274\327\206" NAS-IP-Address = 127.0.0.1
NAS-Port = 8 Service-Type = Dialout-Framed-User Calling-Station-Id = "200.142.62.114" NAS-Identifier = "OpenVpn"
NAS-Port-Type = Virtual Processing the authorize section of radiusd.conf modcall: entering group authorize for request 3 modcall[authorize]: module "preprocess" returns ok for request 3 modcall[authorize]: module "chap" returns noop for request 3
modcall[authorize]: module "mschap" returns noop for request 3 rlm_realm: No '@' in User-Name = "rogeriol", looking up realm NULL rlm_realm: No such realm "NULL"
modcall[authorize]: module "suffix" returns noop for request 3 rlm_eap: No EAP-Message, not doing EAP modcall[authorize]: module "eap" returns noop for request 3 users: Matched entry DEFAULT at line 156
modcall[authorize]: module "files" returns ok for request 3 rlm_ldap: - authorize rlm_ldap: performing user authorization for rogeriol radius_xlat: '(uid=rogeriol)' radius_xlat: 'o=prdf'
rlm_ldap: ldap_get_conn: Checking Id: 0 rlm_ldap: ldap_get_conn: Got Id: 0 rlm_ldap: performing search in o=prdf, with filter (uid=rogeriol) rlm_ldap: looking for check items in directory... rlm_ldap: looking for reply items in directory...
rlm_ldap: user rogeriol authorized to use remote access rlm_ldap: ldap_release_conn: Release Id: 0 modcall[authorize]: module "ldap" returns ok for request 3 modcall: leaving group authorize (returns ok) for request 3
rad_check_password: Found Auth-Type LDAP auth: type "LDAP" Processing the authenticate section of radiusd.conf modcall: entering group LDAP for request 3 rlm_ldap: - authenticate rlm_ldap: login attempt by "rogeriol" with password "@�?W?���???o���?"
rlm_ldap: user DN: cn=Rogeriol,ou=CINF,o=PRDF rlm_ldap: (re)connect to ldap.prdf.mpf.gov.br:389, authentication 1 rlm_ldap: bind as cn=Rogeriol,ou=CINF,o=PRDF/@�?W?���???o���? to
ldap.prdf.mpf.gov.br:389 rlm_ldap: waiting for bind result ... rlm_ldap: Bind failed with invalid credentials rlm_ldap: NDS error: failed authentication (-669) modcall[authenticate]: module "ldap" returns reject for request 3
modcall: leaving group LDAP (returns reject) for request 3 auth: Failed to validate the user. WARNING: Unprintable characters in the password. ? Double-check the shared secret on the server and the NAS! Delaying request 3 for 1 seconds
Finished request 3 Going to the next request --- Walking the entire request list --- Sending Access-Reject of id 224 to 127.0.0.1 port 32827 Reply-Message = "NDS error: failed authentication (-669)"
Cleaning up request 2 ID 224 with timestamp 46b8ea05 Waking up in 1 seconds... --- Walking the entire request list --- Sending Access-Reject of id 224 to 127.0.0.1 port 32828
Reply-Message = "NDS error: failed authentication (-669)" Cleaning up request 3 ID 224 with timestamp 46b8ea0d Nothing to do. Sleeping until we see a request.