I have the following script running in /etc/cron.hourly on my system.
It queries ldap for the list of valid users. My /etc/ldap.conf sets up
the default behavior for the query. It also sets up spam and ham
Maildirs for spamassassin to use.
-steve j
-------- Cut Here ----------
for i in `ldapsearch -x uid | grep ^uid | cut -f2 -d: | cut -f2 -d" " |
sort | uniq | grep ^[a-z]` ; do
if [ ! -d /home/${i} ] ; then
mkdir -p /home/$i
chown ${i}:users /home/$i
fi
if [ ! -d /home/${i}/Maildir ] ; then
/usr/local/bin/maildirmake /home/${i}/Maildir
/usr/local/bin/maildirmake /home/${i}/Maildir/.spam
/usr/local/bin/maildirmake /home/${i}/Maildir/.spam.spam
/usr/local/bin/maildirmake /home/${i}/Maildir/.spam.ham
chown -R ${i}:users /home/${i}/Maildir
fi
-------- Cut Here ----------
courier wrote:
I have courier LDAP setup and running fine (debian Sarge). To
manipulate the LDAP database, i use "jxplorer" (a java LDAP admin GUI)
which works great.
Is there anyway I can get the virtual user directories to be created
automatically once I have entered the account information via the
jxplorer app? I guess this would have to be done by watching the ldap
database or something but I have no idea if it is possible or if it
can be done.
Currently I have to login to a shell and create the userdir and
Maildir manually using the appropriate tools. Is anyone doing this a
better way?
thanks
regards
-Matt
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing
& QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
--
Steve Jacobson
Support Manager
SourceLabs, Inc.
[EMAIL PROTECTED]
(206) 322-0099 x110
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users