Created
October 12, 2016 01:47
-
-
Save rafaelfoster/eb2b298279b243ce600f3743e9d2a860 to your computer and use it in GitHub Desktop.
Compiling and promoting Samba4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| yum install perl gcc attr libacl-devel libblkid-devel \ | |
| gnutls-devel readline-devel python-devel gdb pkgconfig \ | |
| krb5-workstation zlib-devel setroubleshoot-server libaio-devel \ | |
| setroubleshoot-plugins policycoreutils-python \ | |
| libsemanage-python perl-ExtUtils-MakeMaker perl-Parse-Yapp \ | |
| perl-Test-Base popt-devel libxml2-devel libattr-devel \ | |
| keyutils-libs-devel cups-devel bind-utils libxslt \ | |
| docbook-style-xsl openldap-devel autoconf python-crypto pam-devel | |
| ./configure \ | |
| --exec-prefix=EXEC_PREFIX \ | |
| --enable-fhs \ | |
| --prefix=/opt/samba \ | |
| --sbindir=/sbin/ \ | |
| --sysconfdir=/etc/samba/ \ | |
| --mandir=/usr/share/man/ \ | |
| --localstatedir=/var/samba | |
| samba-tool domain provision --option="interfaces=lo em1 tun0" --option="bind interfaces only=yes" --use-rfc2307 --interactive | |
| samba-tool domain join domain.example.com DC -U rafael.foster --option="interfaces=lo em1 tun0" --option="bind interfaces only=yes" --realm=YOUIT.COM.BR --dns-backend=SAMBA_INTERNAL --server=192.168.200.1 | |
| samba-tool domain passwordsettings set --complexity=off | |
| samba-tool domain passwordsettings set --history-length=0 | |
| samba-tool domain passwordsettings set --min-pwd-age=0 | |
| samba-tool domain passwordsettings set --max-pwd-age=0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment