Saturday, 3 November 2012

Join CentOS 6.x server to Windows 2012 AD domain using Likewise Open (PowerBroker Identity Services)

I've used the Likewise Open package for AD integration of Linux machines before, but never for CentOS 6.x.

I'm not too sure, nor do I really care all that much, but it seems that it seems that the package is not called Likewise Open anymore, but rather PowerBroker Identity Services, at any rate, these are the instructions needed to join a CentOS 6.x to a Windows 2012 AD Domain.

Firstly, ensure that domain name resolution is working, at a minimum the CentOS box must be able to ping the domain controller by name. Example /etc/resolv.conf file below, where there is a dns server on 192.168.1.65 for domain dev.com:
search dev.com
nameserver 192.168.1.65
  1. Download the package from here (Although there is no support for CentOS 6.1 or higher it works fine):
  2. http://www.beyondtrust.com/Technical-Support/Downloads/PowerBroker-Identity-Services-Open-Edition/?Pass=True

  3. Disable SELinux. This is required by the installer 
  4. setenforce 0
  5. Install package:
  6. sh pbis-open-7.0.4.918.linux.x86_64.rpm.sh
  7. Join AD domain:
  8. domainjoin-cli join dev.com Administrator
  9. Create DNS entry:
  10. /opt/pbis/bin/update-dns
  11. Create SELinux Policy Module (see this link). Alternatively, disable SELinux altogether by editing the /etc/selinux/config file.
I must say that while using this product makes it simpler than my labour intensive way, I feel somewhat reticent to recommend this. It just feels like a cop out, maybe I'm a masochist who knows.

14 comments:

  1. This, by far, is the easiest walk-through I've seen in getting a *nix box on AD. Thanks very much!

    ReplyDelete
  2. Very helpful thnx!

    ReplyDelete
  3. I agree, thanks a bunch!

    ReplyDelete
  4. ERROR_FILE_NOT_FOUND (0x00000002)
    i got this error can any one help

    ReplyDelete
    Replies
    1. does this happen when installing the package or when joining the domain?

      Delete
    2. while installing the package

      Delete
    3. I had this error too -- ERROR_FILE_NOT_FOUND (0x00000002) -- eventually i found that installing "samba-client" got past. I also had to follow the details listed in this thread: http://ubuntuforums.org/showthread.php?t=2120798
      good luck.

      Delete
  5. now i am able to add my centos machine into the domain by using above documents thank a lot to share your knowledge .

    ReplyDelete
  6. One more update - this is MUCH easier to use to facilitate TACACS+ with AD authentication on Ubuntu / Centos than the old fashioned OpenLDAP way.

    ReplyDelete
  7. does someone know after this guide how to add the samba file server role. I've installed everything but i still get errors

    ReplyDelete
  8. I have Used PBIS to join Ubuntu machines in windows AD. For a while only(1 or 2 hours)
    After some time again i tried to login those machines in domain by using the same credentials (which are working well to login)
    it shows "Access Denied" in Putty. how to solve this issue

    ReplyDelete
  9. i got an error when adding to domain Error:Undocumented exception [code 0x00009efc]. Plese hep!

    ReplyDelete
  10. Great tutorial! Anyone here configure it with Tacacs+ via PAM? Any tutorial as well?

    ReplyDelete