Anlegen von Homedir's mit courier ldap, postfix und procmail
Florian Lohoff
flo at rfc822.org
Thu Jan 3 14:22:00 CET 2008
On Thu, Jan 03, 2008 at 02:12:27PM +0100, Michael Westermann wrote:
> Mein Probem ist wenn ein neuer Nutzer im ldap angelegt wird, der hat
> noch kein homedir im "/home". Normalerweise ist das kein Problem. Aber
> da der Nutzer sich nicht direkt am Maiserver anmeldet gibts auch kein
> Homeverzeichniss.
> Wenn ich den Nutzer einmal anmelde tut es ja.
Was spricht gegen ein simples shell script was einfach regelmaessig
guckt ob alle user homedirs existieren ?
So in dieser art - Cronjob und gut ist ...
ldapsearch homedir | while read line; do
p=`echo $line | sed -e 's/homedir: //'`;
if [ ! -d ${p} ]; then
mkdir ${p}
fi
done
Flo
--
Florian Lohoff flo at rfc822.org +49-171-2280134
Those who would give up a little freedom to get a little
security shall soon have neither - Benjamin Franklin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lug-owl.de/pipermail/linux/attachments/20080103/e6329d9b/attachment.sig>
More information about the Linux
mailing list