diff --git a/create_mass_primtux_users.sh b/create_mass_primtux_users.sh
index b49c4d57166b1855aa15038696331c1e8cb190a1..2af3aa4ddbcdbeaf1f37bc131529d7a84d880625 100755
--- a/create_mass_primtux_users.sh
+++ b/create_mass_primtux_users.sh
@@ -33,9 +33,16 @@ fi
 while read first last level gender categorie
 do
     echo "Creating user for $first $last"
-    $scriptbinpath/userAdd.pl $first $last "xxx" "" $gender $categorie
     uid=`ldapsearch -x cn="$first $last" | grep "^uid:" | cut -d ' ' -f 2`
     if [ -z "$uid" ]
+    then
+        $scriptbinpath/userAdd.pl $first $last "xxx" "" $gender $categorie
+    else
+        echo "Not recreating user $uid"
+    fi
+    uid=`ldapsearch -x cn="$first $last" | grep "^uid:" | cut -d ' ' -f 2`
+    echo "found uid '$uid'"
+    if [ -z "$uid" ]
     then
     	KO="$KO $uid"
         echo "Failed to create user for $first $last"