Skip to content
Snippets Groups Projects
Verified Commit 751a1772 authored by David Beniamine's avatar David Beniamine
Browse files

Fix bug : removing users.txt

parent 2ed22439
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ then
exit 1
fi
rm -f users.txt
rm -f uids.txt
scriptbinpath="/usr/share/lcs/sbin"
. /etc/slis/slis.conf
......@@ -50,7 +50,7 @@ do
ldapmodify -x -D "cn=$LDAP_ADMIN_RDN,$LDAP_BASE_DN" -w $LDAP_ADMIN_PW -f $$.ldiff
rm $$.ldiff
echo -e "$uid\n$uid" | smbpasswd -s -U $uid
echo $uid >> users.txt
echo $uid >> uids.txt
echo "Done creating $uid"
OK="$OK $uid"
done < $1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment