FreeBSD 11 Active Directory Member Server - SAMBA - Ninja
FreeBSD 11 Active Directory Member Server - SAMBA - Ninja
This guide details how to install and configure SAMBA 4.8 as an AD member server of an Fast SSD VPSes
existing domain on FreeBSD 11.x. This is only a basic configuration with a single share that
allows Domain Users read/write access. Further configuration can be performed to restrict IRC Support
access as well as enabling ACLs to provide granular access management to directories within
#sambaninja on FreeNode
shares.
NB: I’ve started right from the beginning of installing FreeBSD and YMMV if you are not Recent Posts
installing from scratch but it’s only the samba48 package and its dependencies that are
Ubuntu 18 Active Directory Member
installed as part of this guide. You should also make sure your AD PDC FSMO is sourcing
Server
external time synchronisation because Kerberos authentication has a 5min tolerance. Clients
exceeding that tolerance will experience authentication failures with their Kerberos tickets. FreeBSD 11 Active Directory Member
Server
1. Accepted default charset.
Ubuntu 15 Active Directory Member
2. Entered hostname.
3. Unchecked docs, games and ports trees. Server
SAMBA Ubuntu
14. Restart SSHD
service sshd restart
17. Install the “pkg” package manager and update the repository
pkg
pkg update
[testshare]
comment = Test share
path = /samba/testshare
read only = no
force group = "Domain Users"
directory mode = 0770
force directory mode = 0770
create mode = 0660
force create mode = 0660
klist
# Credentials cache: FILE:/tmp/krb5cc_0
# Principal: [email protected]
#
# Issued Expires Principal
# Dec 6 10:15:39 2014 Dec 6 20:15:39 2014 krbtgt/[email protected]
wbinfo -g
# Should return domain groups
getent passwd
# Should return domain users at the end of the list with 10000+ UIDs
getent group
# Should return domain groups at the end of the list with 10000+ GIDs
If the getent commands don’t work but wbinfo DOES return the expected results, check
your /etc/nsswitch.conf passwd: and group: lines are set correctly as above, “compat”
should be removed from both lines so they just specify “files winbind“.
You should then be able to browse the share from a Windows client and create files and
directories etc.
NB: If you get an error that the server cannot be found by the Windows client check your AD
DNS and add a hostname for your SAMBA server if it does not exist. It may not have been
automatically created during the domain join process but you should have received an error
at that point stating as much.
Categories: FREEBSD
1 Comment
REPLY
Leave a Reply
Related Posts
FREEBSD FREEBSD
HOM E CONTACT