git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62d5285
)
Allow usernames in the form of 'NT_STATUS_....' to map to that as the error
author
Andrew Bartlett
<abartlet@samba.org>
Tue, 1 Jan 2002 05:51:03 +0000
(
05:51
+0000)
committer
Andrew Bartlett
<abartlet@samba.org>
Tue, 1 Jan 2002 05:51:03 +0000
(
05:51
+0000)
when using the 'name_to_ntstatus' auth module.
This could be useful in testing.
Andrew Bartlett
(This used to be commit
5cdc67d0bda8ef41305cae9c5be70d11593ffdd8
)
source3/auth/auth_builtin.c
patch
|
blob
|
history
diff --git
a/source3/auth/auth_builtin.c
b/source3/auth/auth_builtin.c
index b5bb673e2cb59988aa46b0219e6cac323bc5d258..f76987f685d4df40c7c12ea35c404fbb1d488b38 100644
(file)
--- 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);