When I scanned a bit the libnet_user.c file in SAMBA, I noticed that the acct_flags wouldn't be set with the actual code. So I wrote a little patch.
Created attachment 2911 [details] The proposed patch
Rafal: Can you comment on this patch?
It is correct. I'm going to commit it in slightly different form, however.
When should be commited my patch?
I'm sorry, Matthias. I'm refactoring usermod function right now and have originally planned to put your changes along with that. I think I'm going to commit it to the original code, anyway. Should be there soon.
Finally closed. Thanks mimir!