diff src/auth/passdb-passwd.c @ 3257:92c16e82b806 HEAD

passdb can now change the username that was used to log in. This is mostly useful to support case-insensitive username lookups.
author Timo Sirainen <tss@iki.fi>
date Sun, 03 Apr 2005 01:00:49 +0300
parents e6a487d80288
children 9096b7957413
line wrap: on
line diff
--- a/src/auth/passdb-passwd.c	Sun Apr 03 00:20:38 2005 +0300
+++ b/src/auth/passdb-passwd.c	Sun Apr 03 01:00:49 2005 +0300
@@ -45,6 +45,9 @@
 		return;
 	}
 
+	/* make sure we're using the username exactly as it's in the database */
+	request->user = p_strdup(request->pool, pw->pw_name);
+
 	callback(PASSDB_RESULT_OK, request);
 }