Hi,

I don't know if this is of interest, but...

In /etc/authlib/authldaprc you can read

=====================
##NAME: LDAP_MAILDIR:0
#
# The MAILDIR attribute is OPTIONAL, and specifies the location of the
# mail directory.  If not specified, ./Maildir will be used

# LDAP_MAILDIR          mailbox
=====================

I think this means that if not LDAP_MAILDIR defined then
"homeDirectory + /Maildir" will be used.

The attached patch makes this sentence true.

Regards,
Fernando.

--
Fernando Gozalo Rodrigo - Analista de Sistemas

    Centro de Sistemas Informáticos
Universidad Nacional de Educación a Distancia

---------------------------------------------------------------
Por favor, no envíe adjuntos de WORD, EXCEL o POWERPOINT
Vea http://www.gnu.org/philosophy/no-word-attachments.es.html
---------------------------------------------------------------

--- authldaplib.c.original	2006-02-03 12:45:58.000000000 +0100
+++ authldaplib.c	2006-02-06 12:43:06.000000000 +0100
@@ -1283,6 +1283,23 @@
 		}
 	}
 
+	if (service && strcmp(service, "courier") != 0 && !attributes[1])
+	{
+		char *new_maildir=malloc(strlen(homeDir)+
+					strlen("/Maildir")+1);
+
+		if (!new_maildir)
+		{
+			perror("CRIT: authldap: malloc failed");
+                        rc= -1;
+                }
+                else
+		{
+			strcat(strcpy(new_maildir, homeDir), "/Maildir");
+			mailDir=new_maildir;
+		}
+	}
+
 	j=1;
 
 	for (i=0; my_ldap.auxoptions[i]; i++)

Reply via email to