Hi

I would like to configure authlib auth_ldap so
LDAP_HOMEDIR is static, the same for every user '/usr/local/virtual'
and LDAP_MAILDIR is [EMAIL PROTECTED]/
I don't want to have attribute homeDir in my schema so I thought I
could use LDAP_MAILROOT for my static homedir. But it doesn't work.

I'm quite weak in C but I went through authldaplib.c and I think that
this patch could sort my problems out, unfortunately there is no way
that i can test it now, that's why I thought I can ask you to help me
on that.
Please let me know your thoughts.

--- ./authldaplib.c.orig        Sat Jan 20 17:03:22 2007
+++ ./authldaplib.c     Sat Aug 11 02:36:25 2007
@@ -1467,7 +1467,15 @@
                        homeDir=new_mailroot;
                }
        }
-
+       else
+       {
+           if (my_ldap.mailroot != 0 && *my_ldap.mailroot)
+           {
+               free(homeDir);
+               homeDir=my_ldap.mailroot;
+           }
+       }
+
        j=1;

        for (i=0; my_ldap.auxoptions[i]; i++)

--
Thanks in advance
Paul

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to