Thursday 19 November 2015

Join fedora, Ubuntu, mac and Windows to Domain

PBIS Download link::
http://download1.beyondtrust.com/Technical-Support/Downloads/PowerBroker-Identity-Services-Open-Edition/?Pass=True

FEDORA TO DOMAIN:
uname –i :-To chack fedora Fedora bit Version
 hostnamectl set-hostname --static QKRCBDF0001.q.ranch
vi /etc/hosts
192.168.101.30 QKRBLRSRVAD.q.ranch QKRBLRSRVAD
192.168.101.11 QKRBLRSRVADC.q.ranchQKRBLRSRVADC

(echo 192.168.101.30 QKRBLRSRVAD.q.ranch QKRBLRSRVAD; 192.168.101.11 QKRBLRSRVADC.q.ranchQKRBLRSRVADC) >> /etc/hosts

chmod a+x pbis-open-8.3.0.3287.linux.x86_64.rpm.sh
sudo ./pbis-open-8.3.0.3287.linux.x86_64.rpm.sh install
Manual add Primary DNS - 192.168.101.30 (network settings)
domainjoin-cli join q.ranch administrator@q.ranch
Reboot and login as Domain user

------------------------------------------------------------------------------------------------------------
UBUNTU TO DOMAIN:

1. To Set the computer Name follow these 3 steps:-
hostname QKRCBDU0001
nano /etc/hostname
Here rename the Hostname(Ex:QKRCBDU0001)
nano /etc/hosts 
192.168.101.30 QKRBLRSRVAD.q.ranch QKRBLRSRVAD
192.168.101.11 QKRBLRSRVADC.q.ranch QKRBLRSRVADC

(echo 192.168.101.30 QKRBLRSRVAD.q.ranch QKRBLRSRVAD; 192.168.101.11 QKRBLRSRVADC.q.ranch QKRBLRSRVADC) >> /etc/hosts

2. From Internet, download the most current version of PBIS and keep it in Desktop.

3. Change the Directory where you kept PBIS Dump File(use cd command)

4. sudo chmod +x pbis-open-8.0.1.2029.linux.x86_64.deb.sh  (conform file name with version)

5.sudo ./pbis-open-8.0.1.2029.linux.x86_64.deb.sh

6.nano /etc/resolv.conf 
nameserver 192.168.101.30
nameserver 192.168.101.11
(echo nameserver 192.168.101.30; nameserver 192.168.101.11) >> /etc/resolv.conf

Note : Primary DNS should be 192.168.101.30 (Mandatory to check network settings manualy)

7.cd /opt/pbis/bin
sudo domainjoin-cli join --disable ssh q.ranch administrator@q.ranch

8.sudo /opt/pbis/bin/config UserDomainPrefix quikr.ranch|sudo /opt/pbis/bin/config AssumeDefaultDomain true|sudo /opt/pbis/bin/config LoginShellTemplate /bin/bash|sudo /opt/pbis/bin/config HomeDirTemplate %H/%U

12. sudo vi /etc/pam.d/common-session

Find below line:session sufficient pam_lsass.so if available otherwise leave this step
Replace it with:
session [success=ok default=ignore] pam_lsass.so

13.For ubuntu 14 version:
nano /usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf
allow-guest=false
greeter-show-manual-login=true
(echo allow-guest=false; greeter-show-manual-login=true) >> /usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf

For Ubuntu 12 version lightdm location is:-
nano /etc/lightdm/lightdm.conf
greeter-show-manual-login=true
allow-guest=false
(echo greeter-show-manual-login=true; allow-guest=false) >> /etc/lightdm/lightdm.conf


14. Reboot your PC and log-in using an appropriate domain user account(quikr.ranch\administrator)

---------------------------------------------------------------------------------------------------------

MAC TO DOMAIN

Step 1: Download PBIS Open

Step 2: Install PBIS Open on a Mac:-1. Log on to the Mac with a local account that has administrative privileges. 2. On the Apple menu , click System Preferences. 3. Under Internet & Network, click Sharing, and then select the Remote Login check box. Turning on Remote Login lets you access the Mac with SSH after you install PBIS. 4. On the Mac computer, go to the Desktop and double-click the PBIS .dmg file. 5. In the Finder window, double-click the PBIS .mpkg file. 6. Follow the instructions in the installation wizard.

Step 3: Join Active Directory:-After the wizard finishes installing PBIS Open, the Join Active Directory Domain dialog is displayed. If it does not appear go to pbis application and double click there

1. In the Computer name box, type the local hostname of the Mac without the .local extension. Because of a limitation with Active Directory, the local hostname cannot be more than 15 characters. Also, localhost is not a valid name. 2. In the Domain to join box, enter the fully qualified domain name (FQDN) of your Active Directory domain. Example: engineering.example.com 3. Click Join

Step 4: Log On with AD Credentials



DOCUMENTS(CONFIDENTIAL)

Fedora:- https://app.box.com/s/vl18jfqir5t4sqwyej2o94ivxkscc9jz

Mac:- https://app.box.com/s/4q76y5xg7h5ajzkjykjghcfj5o2vmte7

Ubuntu:- https://app.box.com/s/gy5navvony8knr0eeumqrqtsup9mtvpu