diff options
Diffstat (limited to 'source3/auth')
-rw-r--r-- | source3/auth/auth_builtin.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/auth/auth_builtin.c b/source3/auth/auth_builtin.c index b5bb673e2c..f76987f685 100644 --- a/source3/auth/auth_builtin.c +++ b/source3/auth/auth_builtin.c @@ -83,6 +83,12 @@ static NTSTATUS check_name_to_ntstatus_security(void *my_private_data, fstring user; long error_num; fstrcpy(user, user_info->smb_name.str); + + if (strncasecmp("NT_STATUS", user, strlen("NT_STATUS")) == 0) { + strupper(user); + return nt_status_string_to_code(user); + } + strlower(user); error_num = strtoul(user, NULL, 16); |