Created attachment 8274 [details] network trace, frame 11 shows NO_MEMORY If you set "username map script = /bin/echo" to use the nss groups instead of the AD groups and also have winbind for authentication, session setup is returning NT_STATUS_NO_MEMORY: [global] security = ads workgroup = SAMBA-WG realm = SAMBA.ORG idmap config * : backend = tdb idmap config * : range = 1000000-1999999 username map script = /bin/echo root@samba-member:~/git/master/source3# bin/smbclient //127.0.0.1/tmp -Uadministrator%Passw0rd session setup failed: NT_STATUS_NO_MEMORY looking at the attached network trace shows it is a message by the server, not a local message. Diagnosing it boils down to source3/auth/token_util.c:741 from commit 1c3c5e21: *found_username = NULL; Somewhere further up in the callchain this NULL is seen as NO_MEMORY, which then is returned to the client.
Created attachment 8328 [details] Patchset for master Verified the bug and fixed this as attached. This patchset is for master.
Created attachment 8329 [details] Patchset for 4.0 This is the patchset for 4.0, just for the record: Basically the master patchset applies cleanly and should be added with cherry-pick info once the master-patchset has landed. Michael
(In reply to comment #1) > Created attachment 8328 [details] > Patchset for master > > Verified the bug and fixed this as attached. > This patchset is for master. Patches have been pushed to master (0770a4c0 and c5b150b3).
Comment on attachment 8329 [details] Patchset for 4.0 LGTM for 4.0.0 release.
Created attachment 8335 [details] updated patchset for 4.0 with cherry-pick-info This patchset contains cherry-pick-info from master. It also contains one additional patch that Volker pushed meanwhile, which is a fix of an embarrassing typo in the comment fix.. :-)
Comment on attachment 8335 [details] updated patchset for 4.0 with cherry-pick-info Looks good to me. The typo was a very minor error (IMHO). :-).
Thanks Jeremy. ==> Karolin for 4.0.
Pushed to autobuild-v4-0-test.
Pushed to v4-0-test. Closing out bug report. Thanks a lot!