On Tue, 27 Aug 2002 09:42:04 -0400, Matt wrote:
>Does anyone know if there is a way so that when a user is deleted from
>the LDAP databse.. to have qmail remove their home directory?
>
>Otherwise... the directories stay there and the disk space usage for old
>and removed users is horrendous!
I don't think that qmail is able to do this - but maybe, you could use
a cron-job, that searches your ldap for the home-dirs and deletes the
dir if it doesn't find an entry in the ldap-directory?
So it would have to go like:
for each $homedir do {
result = searchldap("homedir=$homedir")
if result.count < 1 them {
rm -rf $homedir
}
}
of course you'd have to use some real script/prog language rather than
the example above i just made up...
bye
Timm