Update on this. It appears that the groups command is working, it takes a while to filter through for some reason (like, about 15 minutes). Any ideas why it should be so slow to update?
c:) On 28 August 2013 16:17, Chris Alavoine <chr...@acs-info.co.uk> wrote: > Hi all, > > I can't seem to figure this one out. > > I have a test rig Samba 4 VM up and running nicely. Have imported my old > Samba 3 directory and am using nslcd to get users and groups back to *nix. > > I have a perl login script which generates on-the-fly .bat scripts per > user as they login using the root preexec and postexec commands in my > smb.conf (which worked out of the box with Samba 4 surprisingly). > > My current issue is that I use the "groups user.name" command to list > what groups that user is a member of. This is then parsed into my batch > script and the users and mapped drives accordingly. > > The groups command appeared to be working ok, but I've just noticed that > any changes I make to existing or new users aren't passed to the groups > command. getent group and getent passwd still work ok but neither of these > can list a users' groups in the manner that I need. > > Can anyone suggest an alternative method or a fix for the groups problem? > > Thanks in advance. > > Chris. > > -- > ACS (Alavoine Computer Services Ltd) > Chris Alavoine > mob +44 (0)7724 710 730 > www.alavoinecs.co.uk > http://twitter.com/#!/alavoinecs > http://www.linkedin.com/pub/chris-alavoine/39/606/192 > -- ACS (Alavoine Computer Services Ltd) Chris Alavoine mob +44 (0)7724 710 730 www.alavoinecs.co.uk http://twitter.com/#!/alavoinecs http://www.linkedin.com/pub/chris-alavoine/39/606/192 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba