Displaying 2 results from an estimated 2 matches for "tmp_group".
Did you mean:
tid_group
2019 Aug 09
3
id mapping on a dc+file server
Thanks for your answer. It is clearer now for me.
> >> It is probably a bit late to change now, but there is only one way to
> >> get the same numeric ID everywhere and that is to use the 'ad' winbind
> >> backend.
So, on the Linux clients?
> > This is why I removed the idmap config entries from the dc3 smb.conf.
> > "On a Samba Active
2019 Aug 09
6
id mapping on a dc+file server
...ot found in AD"
exit 1
fi
# Check for gidNumber : $1 must not have one !
_GID=$(echo "$_RESULT" | grep "gidNumber: " | sed "s|gidNumber: ||")
if [ -n "$_GID" ]; then
echo "Group $1 already has a gidNumber!"
exit 1
fi
# Create LDIF
tmp_group="$_ENTRY
changetype: modify
add: gidNumber
gidNumber: $G_GID
-
"
# Modify group entry
echo "$tmp_group" | ldbmodify -H ${SAM} > /dev/null 2>&1
if [ $? != 0 ]; then
echo "Error adding gidNumber to group $1"
exit 1
fi
unset tmp_group
echo "Success...