Samba 4 // Linux console // Delete machines

OBJECT2DELETE=Workstation03 ldbdel -H $SAMBA_LDB “$(ldbsearch -H $SAMBA_LDB “(sAMAccountName=$OBJECT2DELETE)” dn | grep -v ‘^#’ | head -n 1 | grep ‘dn:’ | sed ‘s|dn:\ ||’ | grep ‘DC’)” Advertisements

SAMBA 4.5 // Gentoo Linux Domain Member // File Server

Sources: Strategy This machine file server (domain member server). It will serve domain users profiles, homes and other file stuff. ADDC’s IP is This machines IP is, host name is F4 Principles Users on a domain member will be authenticated by the domain controller. This process uses winbind. […]

Samba // wbcGetpwnam: WBC_ERR_DOMAIN_NOT_FOUND on linux domain member

linux domain member – idmap ad – getent passwd not working – wbinfo -i SAMDOM\\xyzuser returns wbcGetpwnam: WBC_ERR_DOMAIN_NOT_FOUND PROBLEM: Users per default primary group “domain users” has not set gidNumber per default installation. Edit these groups props with ldbedit and add a gidNumber entry. How solved? ( credits: wbinfo -n SAMDOM\\user1 to give you […]

Gentoo // Samba 4.5 as AD DC

… still fighting – means: try and error + under construction. Sources: Configure NTP emerge ntp rc-update add ntp-client default Check /etc/hosts # CHECK # dc.samdom.test.local dc Strategy Use Sambas own Heimdal kerberos. Using Sambas own internal DNS backend with DNS forwarder. This machine is a […]

debian | disabling the spooky network-manager

Check the /etc/network/interfaces file. If there is nothing but lo – you are hijacked by the network-manager. Edit /etc/network/interfaces like: auto enp1s0f0 iface enp1s0f0 inet static address netmask gateway dns-nameservers dns-search MYDOMAIN.ORG Then do # systemctl stop network-manager # systemctl disable network-manager replace the symlink /etc/resolv.conf with a proper file.