[dovecot-cvs] dovecot/src/login-common auth-common.c,1.3,1.4

cras at procontrol.fi cras at procontrol.fi
Tue Feb 18 21:11:29 EET 2003


Update of /home/cvs/dovecot/src/login-common
In directory danu:/tmp/cvs-serv12828/src/login-common

Modified Files:
	auth-common.c 
Log Message:
Added default_pass_scheme to LDAP. Support for more password schemes. Merged
password checking code with LDAP and passwd-file, so both support the same
schemes now.



Index: auth-common.c
===================================================================
RCS file: /home/cvs/dovecot/src/login-common/auth-common.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- auth-common.c	9 Feb 2003 17:23:20 -0000	1.3
+++ auth-common.c	18 Feb 2003 19:11:26 -0000	1.4
@@ -24,7 +24,7 @@
 		  const unsigned char *data, struct client *client,
 		  master_callback_t *master_callback, const char **error)
 {
-	const char *user, *realm;
+	const char *user;
 
 	*error = NULL;
 
@@ -55,11 +55,9 @@
 		client->auth_request = NULL;
 
 		user = auth_login_get_str(reply, data, reply->username_idx);
-		realm = auth_login_get_str(reply, data, reply->realm_idx);
 
 		i_free(client->virtual_user);
-		client->virtual_user = realm == NULL ?
-			i_strdup(user) : i_strconcat(user, "@", realm, NULL);
+		client->virtual_user = i_strdup(user);
 
 		master_request_imap(client, master_callback,
 				    request->conn->pid, request->id);




More information about the dovecot-cvs mailing list