search for: auth_allowed_us

Displaying 1 result from an estimated 1 matches for "auth_allowed_us".

Did you mean: auth_allowed_user
2002 Mar 28
1
[PATCH] Feature addition: user access control per auth method
...* If the user is in DenyUsers or his group is in DenyGroups, + * return false. + * If AllowUsers is non-empty, and doesn't contain the user, return + * false. + * If AllowGroups is non-empty, and doesn't contain the user's group + * return false. + * Otherwise, return true. + */ +int auth_allowed_user(struct passwd *pw, Authaccess access) +{ + const char *hostname = NULL, *ipaddr = NULL; + int i; + + if (!pw || !pw->pw_name) + return 0; + + if (access.num_deny_users > 0 || access.num_allow_users > 0) { + hostname = get_canonical_hostname(options.verify_reverse_mapping); + ipa...