Re: [SOLVED] Re: Ldap browsing script
On Tue, Apr 28, 2009 at 1:50 PM, Eduardo M KALINOWSKI
<eduardo@kalinowski.com.br> wrote:
> On Ter, 28 Abr 2009, Philippe Le Gal wrote:
>>
>> Probleme solved.
>
> You might want to tell the list how you did that, in case other people have
> a similar problem and could benefit from the solution.
A simple solution is:
function create_home
{
...
}
function create_maildir
{
...
}
for uid in $(ldapsearch -x -h ldap -bdc=example,dc=com uid | awk
'/^uid/ {print $2})
do
create_home $uid
create_maildir $uid
done
Perhaps better having pam_mkhomedir installed
Reply to: