Thursday, 5 December 2013

SAMBA4: Samba4 on Ubuntu Server 12.04 further checks

Make sure the following are installed;

apt-get install build-essential libacl1-dev libattr1-dev \
   libblkid-dev libgnutls-dev libreadline-dev python-dev \
   python-dnspython gdb pkg-config libpopt-dev libldap2-dev \
   dnsutils libbsd-dev attr krb5-user docbook-xsl libcups2-dev acl git


Test DNS


root@samba:~# host -t SRV _ldap._tcp.mysamba.local
_ldap._tcp.mysamba.local has SRV record 0 100 389 samba.mysamba.local.

root@samba:~# host -t SRV _kerberos._udp.mysamba.local
_kerberos._udp.mysamba.local has SRV record 0 100 88 samba.mysamba.local.

root@samba:~# host -t A samba.mysamba.local
samba.mysamba.local has address 192.168.1.249


Configure Kerberos


Check the following file;

/usr/local/samba/share/setup/krb5.conf

[libdefaults]
        default_realm = ${REALM}
        dns_lookup_realm = false
        dns_lookup_kdc = true

The above should be in place.

Testing Kerberos


root@samba:~# kinit administrator@MYSAMBA.LOCAL
Password for administrator@MYSAMBA.LOCAL:
Warning: Your password will expire in 41 days on Thu Jan 16 12:36:24 2014

root@samba:~# klist
Ticket cache: FILE:/tmp/krb5cc_0
Default principal: administrator@MYSAMBA.LOCAL

Valid starting     Expires            Service principal
05/12/13 12:55:38  05/12/13 22:55:38  krbtgt/MYSAMBA.LOCAL@MYSAMBA.LOCAL
    renew until 06/12/13 12:55:35


If you do have any problems, please check the sources below for further troubleshooting. The samba wiki is a great resource.

Sources;
https://wiki.samba.org/index.php/Samba_4_OS_Requirements#Debian_or_Ubuntu
https://wiki.samba.org/index.php/Samba4/HOWTO#Provisioning_Samba_.28Setting_up_a_new_domain.29

No comments:

Post a Comment