diff options
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/ntlmssp.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source3/libsmb/ntlmssp.c b/source3/libsmb/ntlmssp.c index 96dc1fb6aa..79c45f697b 100644 --- a/source3/libsmb/ntlmssp.c +++ b/source3/libsmb/ntlmssp.c @@ -309,6 +309,21 @@ static NTSTATUS ntlmssp3_client_initial(struct ntlmssp_state *ntlmssp_state, return NT_STATUS_MORE_PROCESSING_REQUIRED; } +bool ntlmssp_is_anonymous(struct ntlmssp_state *ntlmssp_state) +{ + const char *user = ntlmssp_state->user; + + if (ntlmssp_state->user == NULL) { + return true; + } + + if (strlen(ntlmssp_state->user) == 0) { + return true; + } + + return false; +} + /** * Next state function for the Challenge Packet. Generate an auth packet. * |