Thank you Buchan and Tony for your replies. I've found smbldap-tools to work pretty fine, but I also have found another tool that fits my needs: http://www.hits.at/diradm/ This script is useradd/usermod/userdel... syntax alike and it seems to work ok. Regards, -- Imobach González Sosa Servicio de Informática y Comunicaciones de la ULPGC e-mail: igonzalez@becarios.ulpgc.es Teléfono: +34 928 459519