How to Join a Linux Machine to Active Directory (Ubuntu 20.04)

Поділитися
Вставка
  • Опубліковано 17 січ 2021
  • In this video, we talk about how to add an Ubuntu server to our existing Active Directory domain. This will allow the Linux machine to authenticate to the specified Kerberos realm from Active Directory. This allows us to SSH into our Ubuntu 20.04 server using credentials from the AD domain. We also discuss how to enable the creation of home directories on login, and sudo access defined by Active Directory groups.
    Join my new Discord server: discord.gg/9CvTtHqWCX
    Follow me on Twitter for updates: / 0xconda
    If you found this video helpful and would like to support future creations, please considering visiting the following links:
    Patreon: / conda
    Buy Me a Coffee: www.buymeacoffee.com/conda
    Merch: conda.creator-spring.com/
    Amazon affiliate link (anything purchased through this link will provide me with a small commission): amzn.to/3hsHzD2
    Supporting article (not written by me): computingforgeeks.com/join-ub...

КОМЕНТАРІ • 90

  • @rouvenlorenz5701
    @rouvenlorenz5701 2 роки тому +6

    THANKS! You are the ONLY tutorial I found in like 2 hours or so, that actually worked

  • @KenPryor
    @KenPryor 2 роки тому

    Thank You Thank You Thank You!!! This was the only tutorial I could find that actually worked!!! I've been trying for two days to authenticate domain users on the Ubuntu server and you are the only one who taught me correctly how to do it. Subscribed!

  • @uuuuuhhlettuce3909
    @uuuuuhhlettuce3909 3 роки тому +2

    The quality of your videos is great! Thank you for doing this!

    • @c0nd4
      @c0nd4  3 роки тому +1

      No problem! Thank you for the support

  • @InfiniteLogins
    @InfiniteLogins 3 роки тому +6

    Cool stuff - I've never joined a Linux box to AD before, so this is helpful.

    • @c0nd4
      @c0nd4  3 роки тому +1

      Awesome! It's a great addition to any home lab 😉

  • @zackarysilva1618
    @zackarysilva1618 Рік тому +1

    Awesome video, thank you so much! Thought this would have taken much longer!

  • @DanielNjora
    @DanielNjora 2 роки тому +3

    Thanks so much for this super guide! It worked perfectly! I look forward to more such stuff. Good job and keep it up.

    • @DanielNjora
      @DanielNjora 2 роки тому

      After replicating your "admin" for root access, I am getting error that the user is not authorised to do sudo su and yet the user in in that admin group in domain controller. Not sure when I need fix. Otherwise thanks.

  • @sachintribhuvan7283
    @sachintribhuvan7283 2 роки тому +1

    Worked perfectly. Thanks Conda..

  • @chukwudumebiosemeke2992
    @chukwudumebiosemeke2992 2 роки тому

    This was really helpful and precise. Thanks!

  • @realjoecast
    @realjoecast 10 місяців тому

    pretty easy tutorial, helped me find the step i forgot

  • @juanrebella2589
    @juanrebella2589 5 місяців тому

    Thanks, man!! appreciate you help!

  • @Dennis-Earl-Smiley
    @Dennis-Earl-Smiley 2 роки тому +1

    This is the one that worked for me!

  • @shayarand
    @shayarand 3 роки тому +11

    I think it would be helpful you included all the commands you ran in the description to the video! Great Content Conda!

    • @c0nd4
      @c0nd4  3 роки тому +1

      Thanks for the feedback! I will keep this in mind for future videos.

    • @donaldwilliams6821
      @donaldwilliams6821 2 роки тому

      @@c0nd4 yes please. You go through them so fast I need to stop do them so I can keep up. Also please increase the size of the fonts.

  • @ITCLOUD13
    @ITCLOUD13 2 роки тому +1

    you are the best... very very clear and TOP .. Thanks a lot.. MERCI

    • @c0nd4
      @c0nd4  2 роки тому

      Thank you for the support 😁

  • @4ag2
    @4ag2 3 роки тому +1

    Interesting! thanks bud ;)

    • @c0nd4
      @c0nd4  3 роки тому

      No problem man! Thanks for watching!

  • @brucemvanhorn2
    @brucemvanhorn2 Рік тому +1

    I recently switched my dev laptop from Windows 11 to pop_os 22 but had trouble getting it joined to AD. I ran the usual realmd install but whenever I tried to sign into the OS from the GUI, I got a grey screen. When I tried it from a console I got a message stating it couldn't figure out what my home folder was, so it defaulted to /. Not good. After a day of fiddling with kererbros defaults, I found this video and it fixed the problem immediately! Thank you!

  • @bmjman6141
    @bmjman6141 2 роки тому +6

    permission denied when trying to login.

  • @anuragsom09
    @anuragsom09 Рік тому

    very helpful

  • @KL-og8gg
    @KL-og8gg Рік тому

    next time I will search UA-cam first before Google...Good job brother...

  • @richacevedo660
    @richacevedo660 2 роки тому

    thank you for the video i have to move our ubuntu desktops from 1 active directory domain to another do you any helpful tips?

  • @xenom5659
    @xenom5659 2 роки тому +1

    How are you able to edit the nameserver address? When I try to change it, none of my changes register, it's like the page cannot be edited.

  • @sasmitaranisashu
    @sasmitaranisashu 3 роки тому +1

    I followed the same step but there is some thing not right with this config as I see its allowing every login even you enter a wrong password. I am looking to see how to fix it.

  • @Jencastr0
    @Jencastr0 3 роки тому +4

    this is really great, but can you please make the font bigger

    • @c0nd4
      @c0nd4  3 роки тому

      Definitely will do in the future. Thanks for the feedback!

  • @alexandragroza2611
    @alexandragroza2611 2 роки тому +1

    I'm stuck at realm discover. It says there is no such realm. My DNS server sits inside a home server, so the gateway and the DNS server are not the same...maybe that's why, i just don't know how to do it in my case

  • @neurologicalstyle1763
    @neurologicalstyle1763 2 роки тому

    Hi, does the IP of your linux VM matter? What about the network adapters? Thanks :)

  • @pbx1299
    @pbx1299 3 роки тому +3

    Hi , can you please tell me how to perform the sudo vim/etc/resolv.conf i am unable to resolve the host and getting temporary failure in name resolution and sudo:vim: command cannot found

    • @kaunon
      @kaunon 2 місяці тому

      Vim is a texteditor. You can use also sudo nano.

  • @dasgoll
    @dasgoll 3 роки тому +1

    Are you running ESXi on a physical server or on a vm??

    • @c0nd4
      @c0nd4  3 роки тому

      I run it on a physical server

  • @gonzaloetse29
    @gonzaloetse29 2 роки тому

    Which one is the windows set up video? It's not linked as said on the video.

  • @Thirumalesh100
    @Thirumalesh100 2 роки тому

    Can we add windows machine to linux domain server? if yes , any reference on how to do that

  • @hashimalmoosawi4976
    @hashimalmoosawi4976 3 роки тому

    Can an Active directory be used along with other Linux servers? If yes, how? If no, Why?

  • @imppaco
    @imppaco 3 роки тому +2

    You want a challenge? Try to do the same, and implement Smart Card authentication...

  • @krillonusa
    @krillonusa 3 роки тому +3

    2:24 Im having an issue with Resolv.config - the whole file is empty and I do not what was shown in the vid. Any ideas why?

    • @dada0900
      @dada0900 2 роки тому

      me too. i hope we find someone who can help us.

    • @rosenbergkk
      @rosenbergkk 2 роки тому +1

      @@dada0900 If It's empty just type nameserver then go to the next line and type search

  • @bjre.wa.8681
    @bjre.wa.8681 Рік тому

    in your terminal screen enlarge the font so a person can actually read whats going on.

  • @sud0b01
    @sud0b01 Рік тому

    After finishing everything really worked and I can access with the users. But access to web pages and the internet is not enabled, what could it be?

  • @yosefm170
    @yosefm170 3 роки тому

    can someone explain why I get realm: command not found. I installed the realm package by sudo apt-get install sssd realmd -y

  • @jayc3715
    @jayc3715 4 дні тому

    I must be missing something, this works until I reboot, then the resolv.conf gets truncated and breaks DNS. Only way I've been able to fix is to enable/start systemd-resolved.service, edit the resolv.conf again, then stop/disable. Which will work until I reboot again.

  • @infraestructuratecnologica3564
    @infraestructuratecnologica3564 2 роки тому

    Did you know why i cann't change the password in first login or after for a user?

  • @buttsaabgreat
    @buttsaabgreat 2 роки тому

    kindly tell how copy local account profile(data, settings etc) to azure account after joining azure in ubuntu

  • @SantoshKumar-rq2pi
    @SantoshKumar-rq2pi 3 роки тому

    Please help me on How to apply windows server group policy to Linux client

  • @abineshgopal1906
    @abineshgopal1906 3 роки тому

    Hi , I have this kind of issue can you help me. what is issue here ?? realm: Cannot join this realm

  • @kaunon
    @kaunon 2 місяці тому

    If ubuntu linux client finds windows server and dns, but domain not found. What could be the reason? You can try telnet connet to 53 port and it works. I try to understand more.

    • @kaunon
      @kaunon 2 місяці тому

      Maybe it is that you have to edit resolv.conf? It won't work with out it?

  • @minhphamhoang2894
    @minhphamhoang2894 Рік тому

    The sudo systemctl set-hostname should be as $ sudo systemctl set-hostname conda.local not ubu-1.conda.local. This helps to alleviate confusion

  • @drucikpk
    @drucikpk 3 роки тому

    Will this ubuntu machine appear in computers OU in Active Directory? If not, is it posible to do so?

  • @marcosgonzalezflex
    @marcosgonzalezflex 3 роки тому +1

    Hello, I need help, installed ubunto 20.04, but add domian, i have this See: journalctl REALMD_OPERATION=r16127.10824
    realm: Couldn't join realm: Failed to join the domain

    • @c0nd4
      @c0nd4  3 роки тому

      Hey, did you make sure to install all of the packages shown in the beginning of the video? Missing packages can cause that error to occur.

  • @vellakamm4870
    @vellakamm4870 11 місяців тому

    Hi
    Can we try this configuration on cent OS?

  • @Luvxaurora
    @Luvxaurora 2 роки тому

    What good is it to join a Linux computer to a Windows server domain controller

  • @Prophet_sheikh_Yabooty
    @Prophet_sheikh_Yabooty Рік тому

    Okay but How can I use shared home directory in linux from windows active directory.

  • @XxTWMLxX
    @XxTWMLxX 3 роки тому

    0:50 error "E: unable to locate package realm" fully up to date 20.04 ubuntru apt-get update and apt-get upgrade have been run.

    • @c0nd4
      @c0nd4  3 роки тому

      Hey, I believe the package name is "realmd" and the command is "realm". Hope that helps. Good luck!

  • @someshwarrao2177
    @someshwarrao2177 2 роки тому

    I think the screen resolution could be set properly. It looks so small :-(

  • @tt2009ish
    @tt2009ish 2 роки тому +1

    The problem started at 4:14
    * Using GSS-SPNEGO for SASL bind
    ! Couldn't authenticate to active directory: SASL(-4): no mechanism available: No worthy mechs found
    adcli: couldn't connect to Homelab.local domain: Couldn't authenticate to active directory: SASL(-4): no mechanism available: No worthy mechs found
    ! Insufficient permissions to join the domain
    realm: Couldn't join realm: Insufficient permissions to join the domain

  • @zach446
    @zach446 2 роки тому +1

    can confirm pam is kinda painful to fix

  • @maxkeduniya
    @maxkeduniya 3 роки тому +1

    i have a question bro !
    i preparing for my oscp right now.
    can i get a job after oscp. plz answer
    thankyou

    • @c0nd4
      @c0nd4  3 роки тому +1

      I would say you should have no problem getting an entry level position after you get your OSCP.
      Good luck!

  • @TheAlirezak
    @TheAlirezak 4 місяці тому

    at the end a have the message / PERMISSION DENIED 5PUBLICKEY?PASSWORD° how can i fix that ? thanks

  • @GTECHGorakh
    @GTECHGorakh 2 роки тому

    How to add ubuntu client to ubuntu server domain

  • @adilmahomedsalim6609
    @adilmahomedsalim6609 9 місяців тому

    No homo but can i give you a kiss dawg? This is so good. Its amazing. Im setting up a lab and this is just so cool

  • @GTECHGorakh
    @GTECHGorakh 2 роки тому

    How to join ubuntu server to ubuntu desktop

  • @AJ-xm7vg
    @AJ-xm7vg 3 роки тому

    Gui not able to login

  • @SanjayYadav-pl3kd
    @SanjayYadav-pl3kd 3 місяці тому

    You have nowhere mentioned about starting sssd service. When you start sssd.service then it will check for /etc/krb5.keytab which is not automatically created. So I am sorry to say that the information provided in this video is not satisfactory.

  • @volks8426
    @volks8426 3 роки тому +1

    First

    • @c0nd4
      @c0nd4  3 роки тому +2

      Congratulations! You'll go down in this video's history 🤣

  • @Custom-wf1tz
    @Custom-wf1tz 8 місяців тому

    alert(1)

  • @0unhny535
    @0unhny535 3 роки тому

    0:33 haarsträubend

  • @Debunked421
    @Debunked421 3 роки тому

    I'm getting old bro make your text bigger, not cool with squinting for 12:35 :)

  • @theoallemand6214
    @theoallemand6214 2 роки тому

    i love you

  • @stejothepisto
    @stejothepisto 2 роки тому

    test

  • @Stephen-wh7vl
    @Stephen-wh7vl 2 роки тому +2

    lets go Brandon? thx u