LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-25-2017, 12:55 AM   #1
Patric.F
Member
 
Registered: Feb 2010
Posts: 47

Rep: Reputation: 0
Problem with listing active directory users and groups


Hello!

I have two Debian servers, one with 8.7 and one with 7.11.
I have joined both to my domain successfully but I have problems with the one running 8.7.

If I run getent group on the old version I will get all the group on the domain including the ones from the domain trust.
If I do this on 8.7 I don't get anything from the domain at all but if I run wbinfo -g I get the groups from the domain but not from the domain that is trusted as I do on 7.11.

All the config is identical between the machines.
This is nsswitch.conf:

Code:
passwd:         compat winbind
group:          compat winbind
shadow:         compat

hosts:          files dns
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis
krb5.conf:
Code:
[logging]
        Default = FILE:/var/log/krb5.log

[libdefaults]
        ticket_lifetime = 24000
        clock-skew = 300
        default_realm = DOMAIN.LOCAL

[realms]

        DOMAIN.LOCAL = {
                kdc = AD1.DOMAIN.LOCAL:88
                admin_server = AD1.DOMAIN.LOCAL:464
}

[domain_realm]

        .domain.local = domain.local
        domain.local = domain.local

[login]
        krb4_convert = true
        krb4_get_tickets = false
smb.conf:
Code:
[global]
        security = ads
        realm = domain.local
        password server = ad1.domain.local
        workgroup = DOMAIN
        idmap uid = 10000-20000
        idmap gid = 10000-20000
        winbind enum users = yes
        winbind enum groups = yes
        template homedir = /home/%D/%U
        template shell = /bin/bash
        client use spnego = yes
        client ntlmv2 auth = yes
        encrypt passwords = yes
        winbind use default domain = yes
        restrict anonymous = 2
        domain master = no
        local master = no
        preferred master = no
        os level = 0
        unix extensions = no
So when I run wbinfo -g on 8.7 I get the domain groups but not from the trusted domain. And when I run getent group I don't get any information from the domain at all indicating that there's something wrong with the nsswitch.conf?

Is there something that has changed regarding this in the newer version of Debian?

Any help is appreciated.
 
Old 04-25-2017, 01:33 AM   #2
Patric.F
Member
 
Registered: Feb 2010
Posts: 47

Original Poster
Rep: Reputation: 0
Just as usual I always find the answer right after I've made a post about it.

I installed libnss-winbind and libpam-winbind and restarted winbind and it started working..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Active directory Groups daveginorge Linux - Server 2 04-08-2010 01:46 AM
Using Active Directory groups in sshd_config dsdonut Linux - Newbie 6 01-29-2009 02:31 PM
Active Directory groups via Samba/Winbind? dsdonut Linux - Newbie 3 01-23-2009 03:26 PM
samba and active directory groups kapilcool Linux - Software 1 01-16-2007 09:34 PM
Active Directory Groups with Samba??? beat_researcher Linux - Networking 0 06-14-2004 04:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration