|
|
@@ -46,10 +46,10 @@ uidnumber=$(( $(slapcat | grep 'gidNumber: 2' | cut -d' ' -f2 | sort -u | tail -
|
|
|
# add the necessary attribbute for a posixAccount
|
|
|
echo "$user" | sed \
|
|
|
-e "s/%NUMBER%/$uidnumber/" \
|
|
|
- -e "s/%UID%/$uid/" #| $MODIFY_CMD
|
|
|
+ -e "s/%UID%/$uid/" | $MODIFY_CMD
|
|
|
|
|
|
# create a posic group with the same name and uid as the user
|
|
|
# and add them to it
|
|
|
echo "$group" | sed \
|
|
|
-e "s/%NUMBER%/$uidnumber/" \
|
|
|
- -e "s/%UID%/$uid/" #| $ADD_CMD
|
|
|
+ -e "s/%UID%/$uid/" | $ADD_CMD
|