The RSA Authentication Agent for PAM uses the getgrent() system call to return the group membership. If Winbind is not configured properly, the system call returns an empty list. You can test this using the command
getent group <group_name>.
A working configuration looks something like the example below:
[root@rhel7 ~]# getent group ad_group
ad_group:x:16777224:user1,user2,user3,user4
A failed configuration returns the ad_group value but not the users, as shown:
[root@rhel7 ~]# getent group ad_group
ad_group:x:16777224:
Configuration changes must be made to Winbind for the group membership to return correctly. Follow the steps below:
- As the root user, open the config file /etc/samba/smb.conf using a text editor.
- Find the section #--authconfig--end-line--.
- Add the line winbind expand groups = 1 above #--authconfig--end-line--:
...
winbind expand groups = 1
#--authconfig--end-line--
- Check that the smb.conf file is free of any syntax errors by running the command testparm:
[root@rhel7 ~]# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[tmp]"
Processing section "[html]"
Loaded services file OK.
- Restart the winbind service:
[root@rhel7 ~]# service winbind restart
- Test that the change resolved the issue by running getent group <group_name>:
[root@rhel7 ~]# getent group ad_group
ad_group:x:16777224:user1,user2,user3,user4