join linux to ad domain
Shell
Install Ubuntu.(setup hostname when install,
example: UBUNTUVMACHINE)
Setup Static IP.
Open terminal,
CMD:sudo apt update
CMD:sudo apt-get install fping
Make sure your Ubuntu Desktop machine has access to the Active Directory domain and the Domain Controllers:
CMD:dig -t SRV _ldap._tcp.bmbdlocal.lan | grep -A2 "ANSWER SECTION"
;; ANSWER SECTION:
_ldap._tcp.bmbdlocal.lan. 600 IN SRV 0 100 389 Server2016.bmbdlocal.lan.
ping Active Directory domain and the Domain Controllers:
example:ping bmbdlocal.lan
example:ping server2016.bmbdlocal.lan
also
CMD:fping server2016.bmbdlocal.lan
server2016.bmbdlocal.lan is alive
Install all necessary packages:
CMD:sudo apt-get -y install realmd sssd sssd-tools samba-common krb5-user packagekit samba-common-bin samba-libs adcli ntp
after ask type:BMBDLOCAL.LAN
then OK
Setup your ntp service to point to our domain timeservers:
CMD: sudo vi /etc/ntp.conf
...
#server 0.ubuntu.pool.ntp.org
#server 1.ubuntu.pool.ntp.org
#server 2.ubuntu.pool.ntp.org
#server 3.ubuntu.pool.ntp.org
server2016.bmbdlocal.lan
# Use Ubuntu's ntp server as a fallback.
#server ntp.ubuntu.com
...
restart your ntp service:
CMD:sudo service ntp restart
Setting up realmd:
CMD: sudo vi /etc/realmd.conf
...
[users]
default-home = /home/%D/%U
default-shell = /bin/bash
[active-directory]
default-client = sssd
os-name = Ubuntu Desktop Linux
os-version = 14.04
[service]
automatic-install = no
[bmbdlocal.lan]
fully-qualified-names = no
automatic-id-mapping = yes
user-principal = yes
manage-system = no
...
Join the Ubuntu machine on the AD domain:
CMD:sudo kinit [email protected]
Password for [email protected]:
[You will not see any output while you type the password. That’s normal.]
Add the Ubuntu machine in the domain:
CMD:sudo realm --verbose join bmbdlocal.lan \
--user-principal=UBUNTUVMACHINE/[email protected] --unattended
Setting up sssd:
CMD:sudo vi /etc/sssd/sssd.conf
Modify the access_provider = simple
access_provider = ad
Restart the sssd service:
CMD:sudo service sssd restart
Setup homedir auto-creation for new users:
CMD: sudo vi /etc/pam.d/common-session
...
session required pam_unix.so
session optional pam_winbind.so
session optional pam_sss.so
session optional pam_systemd.so
session required pam_mkhomedir.so skel=/etc/skel/ umask=0077
# end of pam-auth-update config
...
Check Active Directory users name resolution:
CMD:id domainuser(test1)
uid=951601106(test1) gid=951600513(domain users) groups=951600513(domain users)
Setting up LightDM for CLI mode ubuntu or linux:[no need for ubuntu GUI]
CMD: sudo vi /etc/lightdm/lightdm.conf
...
[SeatDefaults]
allow-guest=false
greeter-show-manual-login=true
...
Also in Shell:
- Title
- turn of raspberry
- Category
- Shell
- Title
- get github profile image
- Category
- Shell
- Title
- sh increment variable
- Category
- Shell
- Title
- mysqldump
- Category
- Shell
- Title
- oh my zsh
- Category
- Shell
- Title
- append a string in all files name linux
- Category
- Shell
- Title
- linux extract tgz
- Category
- Shell
- Title
- linux check timezone
- Category
- Shell
- Title
- linux find files without string
- Category
- Shell
- Title
- install pybind ubuntu
- Category
- Shell
- Title
- netstat install
- Category
- Shell
- Title
- check git version
- Category
- Shell
- Title
- how to update local repo when i make changes to github remote repo
- Category
- Shell
- Title
- count occurrences of word in file linux ignoring case
- Category
- Shell
- Title
- git add all files command
- Category
- Shell
- Title
- remove debian gnu/linux - continue with install process
- Category
- Shell
- Title
- copy folders linux
- Category
- Shell
- Title
- linux restrict process network access
- Category
- Shell
- Title
- linux df -h levels occupy
- Category
- Shell
- Title
- ubuntu 16.04 bluetooth not detecting devices
- Category
- Shell
- Title
- terminal how to find a directory
- Category
- Shell
- Title
- pod deintegrate
- Category
- Shell
- Title
- read file using shell script
- Category
- Shell
- Title
- i dont have pip, hoow to install pandas
- Category
- Shell
- Title
- ubuntu bionic docker container install chrome
- Category
- Shell
- Title
- remove remote git
- Category
- Shell
- Title
- delete git tag remote
- Category
- Shell
- Title
- how to change dotnet version
- Category
- Shell
- Title
- Run a command in the background witch automatically rerun Raw
- Category
- Shell
- Title
- run powershell script from wsl bash
- Category
- Shell
- Title
- remove .svn recursively linux
- Category
- Shell
- Title
- bash: zipalign: command not found
- Category
- Shell
- Title
- linux unzip with password
- Category
- Shell
- Title
- how to add font icon in gatsby
- Category
- Shell
- Title
- powershell sharepoint copy file to other site collection
- Category
- Shell
- Title
- matrix synapse install
- Category
- Shell
- Title
- batch rename files
- Category
- Shell
- Title
- install jake
- Category
- Shell
- Title
- linux find file
- Category
- Shell
- Title
- firewall in ubuntu 18.04
- Category
- Shell
- Title
- list number of files in each folder linux
- Category
- Shell
- Title
- git reset hard
- Category
- Shell
- Title
- run docker redis localhost
- Category
- Shell
- Title
- will exe file work on ubantu
- Category
- Shell
- Title
- install redux-thunk
- Category
- Shell
- Title
- git remove all pdf files
- Category
- Shell
- Title
- pycharm duplicate line
- Category
- Shell
- Title
- ubuntu stop process on port
- Category
- Shell
- Title
- bash get field from line
- Category
- Shell
- Title
- how to download youtube video in linux
- Category
- Shell
- Title
- linux list
- Category
- Shell
- Title
- install phpmyadmin ubuntu 18.04
- Category
- Shell
- Title
- firewall status on ubuntu
- Category
- Shell
- Title
- luminati proxy manager
- Category
- Shell
- Title
- fleet management software github
- Category
- Shell
- Title
- force pull github
- Category
- Shell
- Title
- snap store android studio
- Category
- Shell
- Title
- bash pass all arguments
- Category
- Shell
- Title
- install ruby mac
- Category
- Shell
- Title
- git files changed between two commits
- Category
- Shell
- Title
- shell set environment variable
- Category
- Shell
- Title
- install bootstrap angular
- Category
- Shell
- Title
- How do I get a complete list of all table names in all databases in Hive?
- Category
- Shell
- Title
- docker to sudoers
- Category
- Shell
- Title
- jscore
- Category
- Shell
- Title
- mongodb shell query last document
- Category
- Shell
- Title
- ubuntu camera not longer found
- Category
- Shell
- Title
- how to install react router dom with typescript
- Category
- Shell
- Title
- npm install dev dependencies
- Category
- Shell
- Title
- how to deploy to netlify using git bash
- Category
- Shell
- Title
- show rights inside folder debian
- Category
- Shell
- Title
- pyglet linux
- Category
- Shell
- Title
- powershell upgrade
- Category
- Shell
- Title
- createa. branch off of development git
- Category
- Shell
- Title
- mkdir linux
- Category
- Shell
- Title
- powershell search array
- Category
- Shell
- Title
- npm package github
- Category
- Shell
- Title
- linux replace string in all files
- Category
- Shell
- Title
- git rebase one commit
- Category
- Shell
- Title
- git grep across all branches
- Category
- Shell
- Title
- ould not change directory to "/root": Permission denied
- Category
- Shell
- Title
- conda install mmcv
- Category
- Shell
- Title
- git clean cache
- Category
- Shell
- Title
- ubuntu install composer
- Category
- Shell
- Title
- git sync branch with master
- Category
- Shell
- Title
- install ext-soap
- Category
- Shell
- Title
- how to get stashed on git
- Category
- Shell
- Title
- list all services using systemctl
- Category
- Shell
- Title
- install dateutil
- Category
- Shell
- Title
- delete a deployment in kubernetes
- Category
- Shell
- Title
- ubuntu show disk space
- Category
- Shell
- Title
- bazel instal
- Category
- Shell
- Title
- git log one line
- Category
- Shell
- Title
- git config core.autocrlf true
- Category
- Shell
- Title
- delete a daemonset deployment
- Category
- Shell
- Title
- How to find cmake version in ubuntu?
- Category
- Shell
- Title
- git rebase
- Category
- Shell
- Title
- serverless sqs batch size
- Category
- Shell
- Title
- list of files in git commit
- Category
- Shell
- Title
- powershell get all computers in ou
- Category
- Shell