Displaying 2 results from an estimated 2 matches for "ldbmodifybin".
2018 May 29
2
Scripting the next UID/GID number to use
Hello,
I'm developing a script to create a user and pass along all the
necessary unix attributes required. I'm successful except when I go to
increment msSFU30MaxUidNumber or msSFU30MaxGidNumber. I'm not sure how
to use ldbedit to script this process. Any guidance would be great. Thanks.
- James
2018 May 29
4
Scripting the next UID/GID number to use
...ds or fails as a whole) on one
DC, but sadly not across the whole domain, which is why it isn't part
of our standard feature-set (we don't like to create tools that have
inherent races).
That just means always run this against one specific DC to be safe.
> echo "${newid}" | $LDBMODIFYBIN -H "$ldbdb" > /dev/null 2>&1
> if [ $? != 0 ]; then
> echo "Error updating $1 in AD."
> exit 1
> fi
>
> echo "Successfully updated $1 in AD"
> }
>
> Rowland
I hope this helps,
Andrew Bartlett
--
Andrew Bartlett...