summaryrefslogtreecommitdiff
path: root/usr/src/cmd/ssh/sshd/auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/ssh/sshd/auth.c')
-rw-r--r--usr/src/cmd/ssh/sshd/auth.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr/src/cmd/ssh/sshd/auth.c b/usr/src/cmd/ssh/sshd/auth.c
index e9712d855a..9df2117ea8 100644
--- a/usr/src/cmd/ssh/sshd/auth.c
+++ b/usr/src/cmd/ssh/sshd/auth.c
@@ -22,7 +22,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -44,11 +44,11 @@ RCSID("$OpenBSD: auth.c,v 1.45 2002/09/20 18:41:29 stevesk Exp $");
#include "match.h"
#include "groupaccess.h"
#include "log.h"
+#include "buffer.h"
#include "servconf.h"
#include "auth.h"
#include "auth-options.h"
#include "canohost.h"
-#include "buffer.h"
#include "bufaux.h"
#include "uidswap.h"
#include "tildexpand.h"
@@ -582,6 +582,9 @@ getpwnamallow(const char *user)
if (user == NULL || *user == '\0')
return (NULL); /* implicit user, will be set later */
+ parse_server_match_config(&options, user,
+ get_canonical_hostname(options.verify_reverse_mapping), get_remote_ipaddr());
+
pw = getpwnam(user);
if (pw == NULL) {
log("Illegal user %.100s from %.100s",