Active Directory (AD) Domain Controller (DC) is what we need in order to create a central login (authentication) server. We can have that by using samba - a software that implements SMB/CIFS protocol, which is used by all DOS and Windows versions.
This is my personal note on how to create a central login server to be used in FTK-E labs with computer facilities. I'll be using Slackware for this, but any OS that runs samba should be able to achieve the same thing. I started experimenting this on FreeBSD.
Since samba is available in the default Slackware installation, I'll jump straight to creating a samba AD DC.
As with any server machine, we need a fixed IP assigned to the target machine.
/etc/rc.d/rc.inet1.conf
(for those using rc.networkmanager, disable that)/etc/resolv.conf
/etc/hosts
samba-tool domain provision –use-rfc2307 –interactive
ln -sf /var/db/samba4/private/krb5.conf /etc/
samba
(not smbd
)/etc/rc.d/rc.samba
actually executes smbd
and nmbd
samba
(with full path) to rc.local
?samba
as root to startsmbclient -L localhost -U%
smbclient //localhost/netlogon -UAdministrator -c 'ls'
host -t SRV _ldap._tcp.<domain-name> host -t SRV _kerberos._udp.<domain-name> host -t A <server-name>.<domain-name>
samba-tool user setexpiry administrator --noexpiry
samba-tool user list
samba-tool user add [username] [password]
This works… but still trying to get folder redirection (@remote profile?) to work. At the moment (20160903), all stuff will be deleted once the user logoff. Perfect for most cases, but we do not want the students to lose their files :( Refer this.