Displaying 1 result from an estimated 1 matches for "authaccess".
Did you mean:
auth_acces
2002 Mar 28
1
[PATCH] Feature addition: user access control per auth method
...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);
+ ipaddr = get_remote_ipaddr();
+ }
+...