Cadastrar usuários no smbldap em script

Notice: Undefined variable: u in /srv/www/lbr.com.br/site/modules/assunto/assunto.php(98) : eval()'d code on line 24

Notice: Undefined variable: n in /srv/www/lbr.com.br/site/modules/assunto/assunto.php(98) : eval()'d code on line 25

Notice: Undefined variable: u in /srv/www/lbr.com.br/site/modules/assunto/assunto.php(98) : eval()'d code on line 25
  1. Criar o script import_users.sh
    #!/bin/bash
    #*
    #*  Copyright (C) 2002 - 2007 Alfredo Júnior 
    #*
    #*  This program is free software; you can redistribute it and/or modify
    #*  it under the terms of the GNU General Public License as published by
    #*  the Free Software Foundation; either version 2 of the License, or
    #*  (at your option) any later version.
    #*
    #*  This program is distributed in the hope that it will be useful,
    #*  but WITHOUT ANY WARRANTY; without even the implied warranty of
    #*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    #*  GNU General Public License for more details.
    #*
    #*  You should have received a copy of the GNU General Public License
    #*  along with this program; if not, write to the Free Software
    #*  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    #*
    
    cat usuarios.txt | while read u n; do
      echo "Importando: "
      smbldap-useradd -a -m -c "" -A 1 -B 1 
    done
    
  2. Criar o arquivo usuarios.txt com o seguinte conteúdo.
    usuario1 nome completo do usuário1
    usuario2 nome prenome e o resto do nome do usuario2
    
  3. executar o script import_users.sh
IP
3.235.179.111