Displaying 2 results from an estimated 2 matches for "your_workgroup_nam".
Did you mean:
your_workgroup_name
2017 Dec 02
1
idamp ad/rid
...> To unsubscribe from this list go to the following URL and read the
> > instructions: https://lists.samba.org/mailman/options/samba
> >
>
>
>
Found it and tested it, still works ;-)
Hope you can understand it, all you need do is open sam.ldb with
ldbedit, find
'CN=your_workgroup_name,CN=ypservers,CN=ypServ30,CN=RpcServices,CN=System,DC=your,DC=dns,DC=name'
Add:
msSFU30MaxUidNumber: 'the start number for your UIDs'
Close and save sam.ldb
Then feed the script with the required info, I would suggest you try it
with just one user first.
Rowland
2017 Dec 02
2
idamp ad/rid
On Sat, 2 Dec 2017 10:21:07 -0200
Elias Pereira <empbilly at gmail.com> wrote:
> Correcting! :)
>
> #!/bin/bash
> #
> GROUP=ADM
> GUID=10000 # Domain Users
> UID=10000 # get the next ID ?
>
> for USER in $(samba-tool group listmembers $GROUP)
> do
> samba-tool user edit $USER --nis-domain=samdom \
> --unix-home=/home/$USER \
>