diff options
author | Andrew Bartlett <abartlet@samba.org> | 2004-03-27 07:53:47 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2004-03-27 07:53:47 +0000 |
commit | 873db3f5fd3fbfcf290cea61d7e9f58bf28b3983 (patch) | |
tree | 1f1918277e00080155334f14b640589ff8d90961 /source3/lib | |
parent | 6dbd02d056750de48dd09c2a222a36e74079d044 (diff) | |
download | samba-873db3f5fd3fbfcf290cea61d7e9f58bf28b3983.tar.gz samba-873db3f5fd3fbfcf290cea61d7e9f58bf28b3983.tar.bz2 samba-873db3f5fd3fbfcf290cea61d7e9f58bf28b3983.zip |
Based on the detective work of Jianliang Lu <j.lu@tiesse.com>, allow yet
another NTLMv2 combination.
We should allow the NTLMv2 response to be calculated with either the domain
as supplied, or the domain in UPPER case (as we always did in the past).
As a client, we always UPPER case it (as per the spec), but we also
make sure to UPPER case the domain, when we send it. This should give
us maximum compatability.
Andrew Bartlett
(This used to be commit 1e91cd0cf87b29899641585f46b0dcecaefd848e)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/talloc.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/source3/lib/talloc.c b/source3/lib/talloc.c index 485dc28f31..093a221fd3 100644 --- a/source3/lib/talloc.c +++ b/source3/lib/talloc.c @@ -276,6 +276,24 @@ char *talloc_strdup(TALLOC_CTX *t, const char *p) return NULL; } +/** strdup_upper with a talloc */ +char *talloc_strdup_upper(TALLOC_CTX *t, const char *p) +{ + char *r; + if (p) { + char *q = strdup_upper(p); + if (q) { + r = talloc_strdup(t, q); + SAFE_FREE(q); + return r; + } else { + return NULL; + } + } else { + return NULL; + } +} + /** strdup_w with a talloc */ smb_ucs2_t *talloc_strdup_w(TALLOC_CTX *t, const smb_ucs2_t *p) { |