diff options
author | Volker Lendecke <vlendec@samba.org> | 2005-03-03 16:52:44 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:55:53 -0500 |
commit | 140752fd35bd5701b3078abf695f811d933fe893 (patch) | |
tree | 1b66bc1d681aff4a5d62bc0647c4dd8683545377 /source3/auth | |
parent | 85b094801e3dcabc7aa86360371515c5c471027f (diff) | |
download | samba-140752fd35bd5701b3078abf695f811d933fe893.tar.gz samba-140752fd35bd5701b3078abf695f811d933fe893.tar.bz2 samba-140752fd35bd5701b3078abf695f811d933fe893.zip |
r5647: Caches are good for performance, but you get a consistency problem.
Fix bug # 2401.
Volker
(This used to be commit eb4ef94f244d28fe531d0b9f724a66ed3834b687)
Diffstat (limited to 'source3/auth')
-rw-r--r-- | source3/auth/auth_util.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index f3c01a58ca..7cab3df99e 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -50,6 +50,7 @@ static int smb_create_user(const char *domain, const char *unix_username, const if (homedir) all_string_sub(add_script, "%H", homedir, sizeof(pstring)); ret = smbrun(add_script,NULL); + flush_pwnam_cache(); DEBUG(ret ? 0 : 3,("smb_create_user: Running the command `%s' gave %d\n",add_script,ret)); return ret; } |