Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: How to install and configure samba 4 on Ubuntu 12.04 ?

  1. #11
    Join Date
    Sep 2011
    Location
    Behind you!
    Beans
    515
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How to install and configure samba 4 on Ubuntu 12.04 ?

    Quote Originally Posted by IJselflearner View Post
    Is it possible to join an Ubuntu machine to the domain?
    Your answer lies with Likewise

  2. #12
    Join Date
    Feb 2013
    Beans
    22

    Re: How to install and configure samba 4 on Ubuntu 12.04 ?

    LHammonds,

    I tried likewise following the tutorial on youtube.

    Seems that it cannot connect to my server,
    ~$ domainjoin-cli join <FQDN> <username>
    Error: NERR_DCNotFound [code 0x00000995]

    Do you have idea on this?
    Pls. help.

    Thanks,
    -IJ-

  3. #13
    Join Date
    Feb 2013
    Beans
    22

    Re: How to install and configure samba 4 on Ubuntu 12.04 ?

    Quote Originally Posted by lingpanda View Post
    I've used this tutorial with success. http://paulcolfer.ie/category/os/linux/ Let me know if you have issues. I've been able to join windows and ubuntu clients to the samba4 DC.

    Hi lingpanda,

    I've been trying to add Ubuntu clients, but failed.
    Do you have any tutorial on adding Ubuntu clients, or link maybe?

    thanks so much!

    -IJ-

  4. #14
    Join Date
    Jan 2013
    Beans
    152

    Re: How to install and configure samba 4 on Ubuntu 12.04 ?

    Here is my quick and dirty tutorial I made. I basically copied and pasted various info across the net.

    Configure nsswitch.conf
    Before you attempt to join an Active Directory domain, make sure the
    /etc/nsswitch.conf file contains the following line:
    hosts: files dns
    The hosts line can contain additional information, but it must include the
    dns entry, and it is recommended that the dns entry appear after the files
    entry.
    Computers running Solaris, in particular, may not contain this line in
    nsswitch.conf until you add it.
    When you use PowerBroker Identity Services with Multicast DNS 4
    (mDNS4) and have a domain in your environment that ends in .local, you
    must place the dns entry before the mdns4_minimal entry and before the
    mdns4 entry:
    hosts: files dns mdns4_minimal [NOTFOUND=return] mdns4
    The default setting for many Linux systems is to list the mdns4 entries
    before the dns entry—a configuration that leaves PBIS unable to find the
    domain.
    Important: For PBIS to process changes to your nsswitch.conf file, you
    must restart the PBIS input-output service (lwio) and the authentication
    service (lsass). Running the following command as root restarts both
    services:
    /opt/pbis/bin/lwsm restart lwio
    For PBIS to work correctly, the nsswitch.conf file must be readable by
    user, group, and world.
    For more information on configuring nsswitch, see the man page for
    nsswitch.conf.


    Configure resolv.conf
    Before you attempt to join an Active Directory domain, make sure that
    /etc/resolv.conf on your Linux, Unix, or Mac client includes a DNS
    server that can resolve SRV records for your domain.
    Example: [root@rhel5d Desktop]# vi /etc/resolvconf/resolv.conf.d/head
    search cimglocal.local
    nameserver 192.168.68.132


    Step 2: Install PBIS Open on Linux
    You install PBIS Open by using a shell script that contains a self-extracting
    executable—an SFX installer with a file name that ends in sh. Example:
    pbis-open-6.5.0.3499-linux-i386-rpm.sh.
    1. As root, run the installer, substituting the file name of the installer that
    you have selected for the one shown below:
    sh ./pbis-open-6.5.0.3499-linux-i386-rpm.sh
    Alternatively, you can run the installer as a regular user:
    sudo sh ./pbis-open-6.5.0.3499-linux-i386-rpm.sh
    2. Follow the instructions in the installer.
    Note: On SLES and other systems on which the pager is set to less, you
    must exit the end user license agreement, or EULA, by typing the
    following command: q
    Enable Other Login


    1) You have to be root to perform this how-to.
    If you are not root then be root by executing following command :-
    ubuntu-12.04lts@tejas-barot-linux-ahmedabad:~$ sudo su – ( Single Hyphen )


    2) First of all Please take backup of original file, execute following command :-
    root@tejas-barot-linux-ahmedabad:~# cp -p /etc/lightdm/lightdm.conf /etc/lightdm/lightdm.conf.orig


    3) Execute Following command :-


    root@tejas-barot-linux-ahmedabad:~#/usr/lib/lightdm/lightdm-set-defaults -m true
    root@tejas-barot-linux-ahmedabad:~#/etc/init.d/lightdm restart








    Disable Guest Account


    Open /etc/lightdm/lightdm.conf file from your terminal using the following command

    sudo gedit /etc/lightdm/lightdm.conf Add the following line

    allow-guest=false Save and exit the file

    After adding the above line you should see similar to the following in lightdm.conf file
    [SeatDefaults]
    user-session=ubuntu
    greeter-session=unity-greeter
    allow-guest=false

    Finally you have to restart lightdm using the following command from your terminal

    sudo restart lightdm Enjoy
    Last edited by cariboo907; March 9th, 2013 at 06:02 AM. Reason: Remove font formatting to comply with forum C of C

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •