Realm Discover

Home » CentOS » Realm Discover
CentOS 3 Comments

I am new to CentOS and trying to setup a Samba file server however when discovering domains I receive an authorisation error:

[root@sssd-testing ~]# id uid=0(root) gid=0(root) groups=0(root)
[root@sssd-testing ~]# realm discover realm: Couldn’t discover realms: Not authorized to perform this action

3 thoughts on - Realm Discover

  • Double-posting, I see: http://unix.stackexchange.com/questions/256626/

    Have you tried giving the domain name? DHCP might not be getting the correct one.

    (ObWarStory: We installed our system at a site a few months ago that used one domain name for their public web site and email, another for internal AD stuff, and gave us yet a third when we asked for AD login credentials. Needless to say, neither the first nor the third were the right values, and we had to go round and round with them until they admitted the existence of the second domain name.)

    Also, I’m pretty sure it’s not complaining about local permissions here. You should not have to be root to make this work.

  • Hi Warren and thanks for the reply. I have tried both with and without the domain name without success.

  • Been researching further… to answer you question above:

    [root@sssd-testing ~]# realm discover realm: Couldn’t discover realms: Not authorized to perform this action
    [root@sssd-testing ~]# realm discover ad.samdom.com.au realm: Couldn’t discover realms: Not authorized to perform this action
    [root@sssd-testing ~]# realm list
    [root@sssd-testing ~]#

    I did find the following which implies it has to do with polkit however I
    do have polkit installed:
    https://bugs.freedesktop.org/show_bug.cgi?id=90683