<div>Hi All,</div>
<div> </div>
<div>I am trying to configure my freeradius to work with FortiMail antispam/antivir solution (so that people can automatically log into their webmail quarantine).</div>
<div>Fortimail part is done and it was easy. Then I moved to freeradius and I came across problems. Just to clarify freeradius was installed on the same server where the postfix</div>
<div>server resides and I want to authenticated my users through their linux credentials.</div>
<div> </div>
<div>clients.confs</div>
<div> </div>
<div>client  192.168.20.2 {<br>        secret      = zgadnij123<br>        shortname   = FORTIMAIL<br>        nastype     = other     <br>}</div>
<div> </div>
<div>users (default, nothing was changed)</div>
<div> </div>
<div>DEFAULT Auth-Type = System<br>        Fall-Through = 1</div>
<div> </div>
<div>What I can see in the output from radiusd -X :</div>
<div> </div>
<div>*********************************</div>
<div> </div>
<div>Starting - reading configuration files ...<br>reread_config:  reading radiusd.conf<br>Config:   including file: /etc/raddb/proxy.conf<br>Config:   including file: /etc/raddb/clients.conf<br>Config:   including file: /etc/raddb/snmp.conf<br>
Config:   including file: /etc/raddb/eap.conf<br> main: prefix = "/usr"<br> main: localstatedir = "/var"<br> main: logdir = "/var/log/radius"<br> main: libdir = "/usr/lib64"<br> main: radacctdir = "/var/log/radius/radacct"<br>
 main: hostname_lookups = no<br> main: snmp = no<br> main: max_request_time = 30<br> main: cleanup_delay = 5<br> main: max_requests = 1024<br> main: delete_blocked_requests = 0<br> main: port = 0<br> main: allow_core_dumps = no<br>
 main: log_stripped_names = no<br> main: log_file = "/var/log/radius/radius.log"<br> main: log_auth = yes<br> main: log_auth_badpass = yes<br> main: log_auth_goodpass = yes<br> main: pidfile = "/var/run/radiusd/radiusd.pid"<br>
 main: user = "radiusd"<br> main: group = "radiusd"<br> main: usercollide = no<br> main: lower_user = "no"<br> main: lower_pass = "no"<br> main: nospace_user = "no"<br> main: nospace_pass = "no"<br>
 main: checkrad = "/usr/sbin/checkrad"<br> main: proxy_requests = yes<br> proxy: retry_delay = 5<br> proxy: retry_count = 3<br> proxy: synchronous = no<br> proxy: default_fallback = yes<br> proxy: dead_time = 120<br>
 proxy: post_proxy_authorize = no<br> proxy: wake_all_if_all_dead = no<br> security: max_attributes = 200<br> security: reject_delay = 1<br> security: status_server = no<br> main: debug_level = 0<br>read_config_files:  reading dictionary<br>
read_config_files:  reading naslist<br>Using deprecated naslist file.  Support for this will go away soon.<br>read_config_files:  reading clients<br>read_config_files:  reading realms<br>radiusd:  entering modules setup<br>
Module: Library search path is /usr/lib64<br>Module: Loaded exec <br> exec: wait = yes<br> exec: program = "(null)"<br> exec: input_pairs = "request"<br> exec: output_pairs = "(null)"<br> exec: packet_type = "(null)"<br>
rlm_exec: Wait=yes but no output defined. Did you mean output=none?<br>Module: Instantiated exec (exec) <br>Module: Loaded expr <br>Module: Instantiated expr (expr) <br>Module: Loaded PAP <br> pap: encryption_scheme = "crypt"<br>
Module: Instantiated pap (pap) <br>Module: Loaded CHAP <br>Module: Instantiated chap (chap) <br>Module: Loaded MS-CHAP <br> mschap: use_mppe = yes<br> mschap: require_encryption = no<br> mschap: require_strong = no<br> mschap: with_ntdomain_hack = no<br>
 mschap: passwd = "(null)"<br> mschap: ntlm_auth = "(null)"<br>Module: Instantiated mschap (mschap) <br>Module: Loaded System <br> unix: cache = no<br> unix: passwd = "(null)"<br> unix: shadow = "/etc/shadow"<br>
 unix: group = "(null)"<br> unix: radwtmp = "/var/log/radius/radwtmp"<br> unix: usegroup = no<br> unix: cache_reload = 600<br>Module: Instantiated unix (unix) <br>Module: Loaded eap <br> eap: default_eap_type = "md5"<br>
 eap: timer_expire = 60<br> eap: ignore_unknown_eap_types = no<br> eap: cisco_accounting_username_bug = no<br>rlm_eap: Loaded and initialized type md5<br>rlm_eap: Loaded and initialized type leap<br> gtc: challenge = "Password: "<br>
 gtc: auth_type = "PAP"<br>rlm_eap: Loaded and initialized type gtc<br> mschapv2: with_ntdomain_hack = no<br>rlm_eap: Loaded and initialized type mschapv2<br>Module: Instantiated eap (eap) <br>Module: Loaded preprocess <br>
 preprocess: huntgroups = "/etc/raddb/huntgroups"<br> preprocess: hints = "/etc/raddb/hints"<br> preprocess: with_ascend_hack = no<br> preprocess: ascend_channels_per_line = 23<br> preprocess: with_ntdomain_hack = no<br>
 preprocess: with_specialix_jetstream_hack = no<br> preprocess: with_cisco_vsa_hack = no<br> preprocess: with_alvarion_vsa_hack = no<br>Module: Instantiated preprocess (preprocess) <br>Module: Loaded realm <br> realm: format = "suffix"<br>
 realm: delimiter = "@"<br> realm: ignore_default = no<br> realm: ignore_null = no<br>Module: Instantiated realm (suffix) <br>Module: Loaded files <br> files: usersfile = "/etc/raddb/users"<br> files: acctusersfile = "/etc/raddb/acct_users"<br>
 files: preproxy_usersfile = "/etc/raddb/preproxy_users"<br> files: compat = "no"<br>Module: Instantiated files (files) <br>Module: Loaded Acct-Unique-Session-Id <br> acct_unique: key = "User-Name, Acct-Session-Id, NAS-IP-Address, Client-IP-Address, NAS-Port"<br>
Module: Instantiated acct_unique (acct_unique) <br>Module: Loaded detail <br> detail: detailfile = "/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d"<br> detail: detailperm = 384<br> detail: dirperm = 493<br>
 detail: locking = no<br>Module: Instantiated detail (detail) <br>Module: Loaded radutmp <br> radutmp: filename = "/var/log/radius/radutmp"<br> radutmp: username = "%{User-Name}"<br> radutmp: case_sensitive = yes<br>
 radutmp: check_with_nas = yes<br> radutmp: perm = 384<br> radutmp: callerid = yes<br>Module: Instantiated radutmp (radutmp) <br>Listening on authentication *:1812<br>Listening on accounting *:1813<br>Ready to process requests.</div>

<div>rad_recv: Access-Request packet from host <a href="http://192.168.20.2:33990">192.168.20.2:33990</a>, id=175, length=44<br>        User-Name = "test"<br>        User-Password = "testtest"<br>  Processing the authorize section of radiusd.conf<br>
modcall: entering group authorize for request 0<br>  modcall[authorize]: module "preprocess" returns ok for request 0<br>  modcall[authorize]: module "chap" returns noop for request 0<br>  modcall[authorize]: module "mschap" returns noop for request 0<br>
    rlm_realm: No <a href="mailto:'@'">'@'</a> in User-Name = "test", looking up realm NULL<br>    rlm_realm: No such realm "NULL"<br>  modcall[authorize]: module "suffix" returns noop for request 0<br>
  rlm_eap: No EAP-Message, not doing EAP<br>  modcall[authorize]: module "eap" returns noop for request 0<br>    users: Matched entry DEFAULT at line 154<br>  modcall[authorize]: module "files" returns ok for request 0<br>
modcall: leaving group authorize (returns ok) for request 0<br>  rad_check_password:  Found Auth-Type System<br>auth: type "System"<br>  Processing the authenticate section of radiusd.conf<br>modcall: entering group authenticate for request 0<br>
rlm_unix: [test]: invalid password<br>  modcall[authenticate]: module "unix" returns reject for request 0 <------ HERE<br>modcall: leaving group authenticate (returns reject) for request 0<br>auth: Failed to validate the user.<br>
Login incorrect: [test/testtest] (from client FORTIMAIL port 0)<br>Delaying request 0 for 1 seconds<br>Finished request 0<br>Going to the next request<br>--- Walking the entire request list ---<br>Waking up in 1 seconds...<br>
--- Walking the entire request list ---<br>Waking up in 1 seconds...<br>--- Walking the entire request list ---<br>Sending Access-Reject of id 175 to 192.168.20.2 port 33990<br>Waking up in 4 seconds...<br>--- Walking the entire request list ---<br>
Cleaning up request 0 ID 175 with timestamp 4abddee7<br>Nothing to do.  Sleeping until we see a request.</div>
<div> </div>
<div>********************************</div>
<div>All the password are stored in /etc/shadow. Can anybody help me why module "unix" returns reject ?</div>
<div> </div>
<div>regards,</div>
<div>mw</div>