Login to your Samba Server using Active Directory account
When you have your servers running samba it is sometime handy to allow users to login using their AD credentials so you don't have to worry about permissions etc.
Here are my steps to enable this:
- In your sub.conf add the following to enable logins to the shell
(%D=domain and %U=username, this is the default)
template shell /bin/bash template home /home/%D/%U
- run pam-auth-update on Debian to check libpam-winbind is install this enables Windows NT/Domain authentication.
- Restart your server (This must be done to ensure everything is reloaded correctly)
You should now be able to SSH into your server using your Active Directory account. Example YOURDOMAIN\username@yourserver sometimes you may need to use YOURDOMAIN\\username@yourserver