[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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})
     create_home $uid
     create_maildir $uid

Perhaps better having pam_mkhomedir installed

Reply to: