diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-05-25 23:56:41 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-05-25 23:56:41 +0000 |
commit | 6ace723c44f61c1166b90666ca6f5b2546ced46b (patch) | |
tree | 2a961fe1bc7b54efd37336f74de8acd7fa51263f /source3/auth/auth_server.c | |
parent | a3938d8d704b1be76239ecf88112972bc8973a88 (diff) | |
download | samba-6ace723c44f61c1166b90666ca6f5b2546ced46b.tar.gz samba-6ace723c44f61c1166b90666ca6f5b2546ced46b.tar.bz2 samba-6ace723c44f61c1166b90666ca6f5b2546ced46b.zip |
Get 'add user script' working again for Samba 3.0.
I'm still not convinced that sharing the option name with the administrative
code is the best idea, but anyway...
Tested by vl, bug #41.
Andrew Bartlett
(This used to be commit 9d78f064c5e4e6b340f994204977aaac6513320b)
Diffstat (limited to 'source3/auth/auth_server.c')
-rw-r--r-- | source3/auth/auth_server.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/source3/auth/auth_server.c b/source3/auth/auth_server.c index 73af290af2..18c5216137 100644 --- a/source3/auth/auth_server.c +++ b/source3/auth/auth_server.c @@ -372,12 +372,19 @@ use this machine as the password server.\n")); cli_ulogoff(cli); - if NT_STATUS_IS_OK(nt_status) { + if (NT_STATUS_IS_OK(nt_status)) { struct passwd *pass = Get_Pwnam(user_info->internal_username.str); if (pass) { nt_status = make_server_info_pw(server_info, pass); } else { - nt_status = NT_STATUS_NO_SUCH_USER; + auth_add_user_script(user_info->domain.str, user_info->internal_username.str); + pass = Get_Pwnam(user_info->internal_username.str); + + if (pass) { + nt_status = make_server_info_pw(server_info, pass); + } else { + nt_status = NT_STATUS_NO_SUCH_USER; + } } } |