[dovecot-cvs] dovecot/src/master auth-process.c, 1.54, 1.55 master-settings.c, 1.49, 1.50 master-settings.h, 1.30, 1.31

cras at procontrol.fi cras at procontrol.fi
Sat May 29 19:43:24 EEST 2004


Update of /home/cvs/dovecot/src/master
In directory talvi:/tmp/cvs-serv25557/master

Modified Files:
	auth-process.c master-settings.c master-settings.h 
Log Message:
dovecot-auth can now be run by itself, it listens in UNIX sockets specified
in AUTH_SOCKETS environment. Added extra_sockets auth setting which can be
used to do the same thing while started through dovecot master.



Index: auth-process.c
===================================================================
RCS file: /home/cvs/dovecot/src/master/auth-process.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- a/auth-process.c	23 May 2004 19:23:57 -0000	1.54
+++ b/auth-process.c	29 May 2004 16:43:22 -0000	1.55
@@ -336,6 +336,7 @@
 	env_put(t_strconcat("USERNAME_CHARS=", group->set->username_chars, NULL));
 	env_put(t_strconcat("ANONYMOUS_USERNAME=",
 			    group->set->anonymous_username, NULL));
+	env_put(t_strconcat("AUTH_SOCKETS=", group->set->extra_sockets));
 
 	if (group->set->use_cyrus_sasl)
 		env_put("USE_CYRUS_SASL=1");

Index: master-settings.c
===================================================================
RCS file: /home/cvs/dovecot/src/master/master-settings.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- a/master-settings.c	26 May 2004 15:26:06 -0000	1.49
+++ b/master-settings.c	29 May 2004 16:43:22 -0000	1.50
@@ -139,6 +139,7 @@
 
 	DEF(SET_INT, count),
 	DEF(SET_INT, process_size),
+	DEF(SET_STR, extra_sockets),
 
 	{ 0, NULL, 0 }
 };
@@ -274,6 +275,7 @@
 
 	MEMBER(count) 1,
 	MEMBER(process_size) 256,
+	MEMBER(extra_sockets) NULL,
 
 	/* .. */
 	MEMBER(uid) 0,

Index: master-settings.h
===================================================================
RCS file: /home/cvs/dovecot/src/master/master-settings.h,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- a/master-settings.h	22 May 2004 22:36:46 -0000	1.30
+++ b/master-settings.h	29 May 2004 16:43:22 -0000	1.31
@@ -116,6 +116,7 @@
 
 	unsigned int count;
 	unsigned int process_size;
+	const char *extra_sockets;
 
 	/* .. */
 	uid_t uid;



More information about the dovecot-cvs mailing list