Displaying 2 results from an estimated 2 matches for "realminfo".
2019 Jul 13
2
rsync alternative -- smbclient?
...me up with the following script, which essentially identifies the ?primary domain controller? and copies sysvol from there - as is suggested on https://wiki.samba.org/index.php/Rsync_based_SysVol_replication_workaround
--- begin ---
#!/bin/bash
# prerequisite: apt-get install smbclient ldb-tools
realminfo=`cat /etc/samba/smb.conf | grep realm | tr -d "' " `
domain=`echo $realminfo | sed -n -E 's/realm=(.*)/\1/p' | tr A-Z a-z`
privatedir=`smbd -b | grep "PRIVATE_DIR" | sed -n -E 's/PRIVATE_DIR:(.*)/\1/p' | xargs`
sysvol=`cd $privatedir/..;pwd`/sysvol
pdc=`samb...
2019 Jul 13
0
rsync alternative -- smbclient?
...ript, which essentially identifies the ?primary domain controller? and copies sysvol from there - as is suggested on https://wiki.samba.org/index.php/Rsync_based_SysVol_replication_workaround
>
> --- begin ---
> #!/bin/bash
> # prerequisite: apt-get install smbclient ldb-tools
>
> realminfo=`cat /etc/samba/smb.conf | grep realm | tr -d "' " `
> domain=`echo $realminfo | sed -n -E 's/realm=(.*)/\1/p' | tr A-Z a-z`
> privatedir=`smbd -b | grep "PRIVATE_DIR" | sed -n -E 's/PRIVATE_DIR:(.*)/\1/p' | xargs`
> sysvol=`cd $privatedir/..;pwd`/sy...