Bug 14056 - lsuser -R WINBIND ALL no more listing any users.
Summary: lsuser -R WINBIND ALL no more listing any users.
Status: REOPENED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Winbind (show other bugs)
Version: 4.10.6
Hardware: PPC AIX
: P5 regression (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-26 09:02 UTC by Ayappan
Modified: 2019-08-09 10:53 UTC (History)
0 users

See Also:


Attachments
smb config file (850 bytes, text/plain)
2019-08-09 06:45 UTC, Ayappan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ayappan 2019-07-26 09:02:39 UTC
The lsuser command "lsuser -R WINBIND ALL" used to list all the available domain users.
I recently made a move from 4.9.6 to 4.10.6 version. And the above command is not listing any users.

Checking the WINBIND debug logs shows the below.

open name='WINBIND' mode=0 domain='' options='debug'
method attrlist called
method attrlist called
Got getentry with key='ALL' table='user' size=0 attributes[0]=''
invalid lsuser op
normalize 'ALL'
getpwnam 'ALL'
normalize 'ALL'


So looks like something changed in winbind code and it is not able to properly recognize the keyword "ALL" ( which is supposed to list all the users ).
Comment 1 Ayappan 2019-07-30 06:22:39 UTC
Any update on this ?
Comment 2 Amit Kumar 2019-08-09 06:15:34 UTC
(In reply to Ayappan from comment #1)
1. Are you using linux or AIX?
2. can you please provide your smb.conf, steps you performed to join AD? I do this:
https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Domain_Member
Comment 3 Ayappan 2019-08-09 06:45:39 UTC
Created attachment 15386 [details]
smb config file
Comment 4 Ayappan 2019-08-09 06:48:09 UTC
This is specific to AIX.

I could see some AIX specific changes that went into Samba 4.10.X series that would have caused this change in behaviour

This is nothing to do with smb.conf file since i have been using it from Samba 4.6.X to 4.9.X without any issues. But anyway attached it.
Comment 5 Björn Jacke 2019-08-09 10:25:45 UTC
it was more a bug that winbind enum users/groups was not honored on AIX, see commit c36cf69d5911b86d73a495308c1bed14004b0659
Comment 6 Ayappan 2019-08-09 10:53:11 UTC
"lsuser -R WINBIND ALL" not showing anything is also a bug as it is supposed to list all the available winbind users ( which was working in 4.9.X releases )
"lsgroup -R WINBIND ALL" still works by the way.