Oguz Yilmaz
2010-Nov-12 10:19 UTC
[Samba] different output of getent group with samba 3.0.33 and samba3-3.5.1: WAS: getting users of a Active Directory group
I narrowed the problem, With samba-3.0.33-3.15.el5_4.1 getent group will display groups including users as fouth field g_group1:*:10263:mr.smith,mrs.smith However with samba3-3.5.1-43.el5 (from sernet) getent group will NOT diplar users g_group1:*:10263: What do you think the problem is? Regards, -- Oguz YILMAZ On Thu, Nov 11, 2010 at 5:32 PM, Oguz Yilmaz <oguzyilmazlist at gmail.com> wrote:> Hi all, > > I try to form a file to include AD usernames with their group > memberships. I have no problems with joining and getent and wbinfo > stuff. All are working. > > A user may have more then one group membership except "Domain Users"group.> > One way is to run "getent group" and grep for the group I try to find > its members. After finding its GID I can search "getent passwd" output > for the users with this GID. However, in some servers "getent passwd" > only show GID for default "Domain Users" group which every user is a > member of. > > Another way is to run "getent group". In one of my servers (win2003), > "getent group" output will give users in the form of: > g_group1:*:10263:mr.smith,mrs.smith > Then I can conclude g_group1 has members mr.smith and mrs.smith. > > However in another type of server (2008r2), "getent group" does not > list members as fourth field in the output. Also "getent passwd" lists > only "domain users" group GID. > > I do want to now What can be the difference with those AD servers? Is > this about organizational hirarchy of AD? > > Can you propose any other way to find members of a specific group? > > Samba is samba3-3.5.1-43.el5, os is Centos 5 level. > > Best Regards, > > > -- > Oguz YILMAZ >