kai/samba.git
18 years agoSync with HEAD.
Tim Potter [Wed, 22 Jan 2003 23:50:14 +0000 (23:50 +0000)]
Sync with HEAD.

18 years agoMinor merges from HEAD.
Tim Potter [Wed, 22 Jan 2003 23:49:54 +0000 (23:49 +0000)]
Minor merges from HEAD.

18 years agoMerge: remove dead function.
Tim Potter [Wed, 22 Jan 2003 23:33:18 +0000 (23:33 +0000)]
Merge: remove dead function.

18 years agoMerge of kerberos changes to make this branch build again!
Tim Potter [Wed, 22 Jan 2003 23:32:33 +0000 (23:32 +0000)]
Merge ... kerberos changes to make this branch build again!

18 years agoMerge of wins server dead list into gencache.tdb
Tim Potter [Wed, 22 Jan 2003 23:32:03 +0000 (23:32 +0000)]
Merge of wins server dead list into gencache.tdb

18 years agoMerge: Make torture tools in everything target.
Tim Potter [Wed, 22 Jan 2003 23:31:04 +0000 (23:31 +0000)]
Merge: Make torture tools in everything target.

18 years agofix for CR 1603; provide description of NT_STATUS_PIPE_NOT_AVAILABLE
Gerald Carter [Wed, 22 Jan 2003 14:34:00 +0000 (14:34 +0000)]
fix for CR 1603; provide description of NT_STATUS_PIPE_NOT_AVAILABLE

18 years agoGet closer to Heimdal compile... Damn. HEAD has different code in
Jeremy Allison [Tue, 21 Jan 2003 20:43:26 +0000 (20:43 +0000)]
Get closer to Heimdal compile... Damn. HEAD has different code in
kerberos_verify...
Jeremy.

18 years agoProperly display popt errors. Also fix debug to be -d for consistency with other...
Jim McDonough [Tue, 21 Jan 2003 14:08:33 +0000 (14:08 +0000)]
Properly display popt errors.  Also fix debug to be -d for consistency with other progs.

18 years agoFixup proto generation to not include krb5 specific symbols
Jeremy Allison [Tue, 21 Jan 2003 13:33:31 +0000 (13:33 +0000)]
Fixup proto generation to not include krb5 specific symbols
if no kerberos selected. Noticed by Metze.
Jeremy.

18 years agoMore fixes getting us closer to full Heimdal compile....
Jeremy Allison [Tue, 21 Jan 2003 06:23:49 +0000 (06:23 +0000)]
More fixes getting us closer to full Heimdal compile....
Jeremy.

18 years agodon't free() auto variables; fixes segfault when looking up RefusePasswordChange...
Gerald Carter [Tue, 21 Jan 2003 03:42:26 +0000 (03:42 +0000)]
don't free() auto variables; fixes segfault when looking up RefusePasswordChange registry value

18 years agosanity checks from Ken Cross
Gerald Carter [Tue, 21 Jan 2003 01:21:33 +0000 (01:21 +0000)]
sanity checks from Ken Cross

18 years agoshould be HAVE_KRB5_SET_REAL_TIME (HAVE_ was missing)...fix the build
Jim McDonough [Mon, 20 Jan 2003 19:37:11 +0000 (19:37 +0000)]
should be HAVE_KRB5_SET_REAL_TIME (HAVE_ was missing)...fix the build

18 years agoMerge in more of the SuSE patches for Heimdal. These changes show how
Jeremy Allison [Sun, 19 Jan 2003 22:27:32 +0000 (22:27 +0000)]
Merge in more of the SuSE patches for Heimdal. These changes show how
to add a function without an explicit #ifdef HEIMDAL which I'm trying
to avoid.
Jeremy.

18 years agostrip any trailing \'s from reg key names in an open
Gerald Carter [Sun, 19 Jan 2003 05:04:03 +0000 (05:04 +0000)]
strip any trailing \'s from reg key names in an open

18 years agoremoving extra debug statement
Gerald Carter [Sat, 18 Jan 2003 01:40:29 +0000 (01:40 +0000)]
removing extra debug statement

18 years agoconnect to the actual netbios name in smb.conf and not LOCALHOST
Gerald Carter [Fri, 17 Jan 2003 14:34:07 +0000 (14:34 +0000)]
connect to the actual netbios name in smb.conf and not LOCALHOST

18 years agosync with HEAD; link to HOWTO index
Gerald Carter [Fri, 17 Jan 2003 14:33:31 +0000 (14:33 +0000)]
sync with HEAD; link to HOWTO index

18 years agock at documenting Win9X/ME Profile Handling.
John Terpstra [Fri, 17 Jan 2003 06:59:38 +0000 (06:59 +0000)]
ck at documenting Win9X/ME Profile Handling.

18 years agoJanitorial duty...
Jeremy Allison [Fri, 17 Jan 2003 06:40:12 +0000 (06:40 +0000)]
Janitorial duty...
fix some undefined behaviour with increments in C. In theory a
compiler could have produced complete crap for this code. (tridge).
Jeremy.

18 years agoFix reference count bug where smbd's would not terminate with no
Jeremy Allison [Fri, 17 Jan 2003 06:34:22 +0000 (06:34 +0000)]
Fix reference count bug where smbd's would not terminate with no
open resources.
Jeremy.

18 years agoupdate for 3.0
Herb Lewis [Thu, 16 Jan 2003 23:34:51 +0000 (23:34 +0000)]
update for 3.0

18 years agoMerge the fix from head about short variables.
Richard Sharpe [Thu, 16 Jan 2003 23:29:14 +0000 (23:29 +0000)]
Merge the fix from head about short variables.

18 years agoFixed up mutex protection around winbindd logon code. Sync with APP-HEAD.
Jeremy Allison [Thu, 16 Jan 2003 20:08:26 +0000 (20:08 +0000)]
Fixed up mutex protection around winbindd logon code. Sync with APP-HEAD.
Jeremy.

18 years agoAdding genlogon obtained from a a mailing list posting in 2001.
John Terpstra [Thu, 16 Jan 2003 05:54:35 +0000 (05:54 +0000)]
Adding genlogon obtained from a a mailing list posting in 2001.

18 years agoMore Heimdal changes. Still not compiling with Heimdal yet...
Jeremy Allison [Thu, 16 Jan 2003 02:58:14 +0000 (02:58 +0000)]
More Heimdal changes. Still not compiling with Heimdal yet...
Jeremy.

18 years agoFist part of fixes to make us compile with Heimdal. Don't explicitly
Jeremy Allison [Thu, 16 Jan 2003 02:39:49 +0000 (02:39 +0000)]
Fist part of fixes to make us compile with Heimdal. Don't explicitly
detect for now, I still have vague hopes of hiding the differences
between MIT and Heimdal with a compatibility layer....
Jeremy.

18 years agoregenerate docs
Gerald Carter [Thu, 16 Jan 2003 02:21:51 +0000 (02:21 +0000)]
regenerate docs

18 years agoMore notes added.
John Terpstra [Thu, 16 Jan 2003 00:33:17 +0000 (00:33 +0000)]
More notes added.

18 years agoAdd mutex protection around auth calls.
Jeremy Allison [Thu, 16 Jan 2003 00:27:27 +0000 (00:27 +0000)]
Add mutex protection around auth calls.
Jeremy.

18 years agoMerge of holding pattern stuff from HEAD.
Tim Potter [Wed, 15 Jan 2003 23:32:47 +0000 (23:32 +0000)]
Merge of holding pattern stuff from HEAD.

18 years agos/WIFSIGNALLED/WIFSIGNALED/g
Gerald Carter [Wed, 15 Jan 2003 23:11:57 +0000 (23:11 +0000)]
s/WIFSIGNALLED/WIFSIGNALED/g

18 years agomissed a file
Gerald Carter [Wed, 15 Jan 2003 22:52:54 +0000 (22:52 +0000)]
missed a file

18 years agodo not use RCS variables in file
Gerald Carter [Wed, 15 Jan 2003 22:37:28 +0000 (22:37 +0000)]
do not use RCS variables in file

18 years agosyncing docs with HEAD
Gerald Carter [Wed, 15 Jan 2003 22:29:27 +0000 (22:29 +0000)]
syncing docs with HEAD

18 years agoRemove debugging stmt.
Tim Potter [Wed, 15 Jan 2003 22:20:16 +0000 (22:20 +0000)]
Remove debugging stmt.

18 years agoSync up compiler warning fixes.
Tim Potter [Wed, 15 Jan 2003 22:18:33 +0000 (22:18 +0000)]
Sync up compiler warning fixes.

18 years agoand another comment.
John Terpstra [Wed, 15 Jan 2003 21:46:25 +0000 (21:46 +0000)]
and another comment.

18 years agodded further comment.
John Terpstra [Wed, 15 Jan 2003 21:42:18 +0000 (21:42 +0000)]
dded further comment.

18 years agoRemove a wayward file.
Richard Sharpe [Wed, 15 Jan 2003 21:35:36 +0000 (21:35 +0000)]
Remove a wayward file.

18 years agoAdding Win2K profile info.
John Terpstra [Wed, 15 Jan 2003 21:26:07 +0000 (21:26 +0000)]
Adding Win2K profile info.

18 years agoAdding more notes.
John Terpstra [Wed, 15 Jan 2003 20:46:13 +0000 (20:46 +0000)]
Adding more notes.

18 years agoAdded note about Win2Pro RK.
John Terpstra [Wed, 15 Jan 2003 20:08:25 +0000 (20:08 +0000)]
Added note about Win2Pro RK.

18 years agoplaying janitor for tpot; remove holding pattern
Gerald Carter [Wed, 15 Jan 2003 19:08:23 +0000 (19:08 +0000)]
playing janitor for tpot; remove holding pattern

18 years ago*lots of small merges form HEAD
Gerald Carter [Wed, 15 Jan 2003 18:57:41 +0000 (18:57 +0000)]
*lots of small merges form HEAD
*sync up configure.in
*don't build torture tools in make all
*make sure to remove torture tools as part of make clean

18 years agosync up ignored files from HEAD
Gerald Carter [Wed, 15 Jan 2003 17:40:09 +0000 (17:40 +0000)]
sync up ignored files from HEAD

18 years agowinbindd merges from HEAD
Gerald Carter [Wed, 15 Jan 2003 17:39:47 +0000 (17:39 +0000)]
winbindd merges from HEAD

18 years agomerging some rpcclient and net functionality from HEAD
Gerald Carter [Wed, 15 Jan 2003 17:22:48 +0000 (17:22 +0000)]
merging some rpcclient and net functionality from HEAD

18 years agoinitialize acct_ctrl variable before it is used
Herb Lewis [Wed, 15 Jan 2003 16:41:29 +0000 (16:41 +0000)]
initialize acct_ctrl variable before it is used
remove ldap_msgfree(result); as result is unitialized at this point

18 years agomore unused files
Gerald Carter [Wed, 15 Jan 2003 16:32:06 +0000 (16:32 +0000)]
more unused files

18 years agoremving more unused files
Gerald Carter [Wed, 15 Jan 2003 16:29:38 +0000 (16:29 +0000)]
remving more unused files

18 years ago[merge]
Gerald Carter [Wed, 15 Jan 2003 16:10:57 +0000 (16:10 +0000)]
[merge]
* removed unused variable from rpcclient code
* added container option to net command (patch from SuSE)
* Makefile patch for examples/VFS from SuSE

18 years agoFirst set of Profile Manipulation Notes.
John Terpstra [Wed, 15 Jan 2003 16:07:24 +0000 (16:07 +0000)]
First set of Profile Manipulation Notes.

18 years agoremoving unused files from release branch
Gerald Carter [Wed, 15 Jan 2003 14:52:23 +0000 (14:52 +0000)]
removing unused files from release branch

18 years agoThis commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.
cvs2svn Import User [Wed, 15 Jan 2003 12:52:39 +0000 (12:52 +0000)]
This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.

18 years agoRefactor the NTLMSSP code again - this time we use function pointers to
Andrew Bartlett [Wed, 15 Jan 2003 12:52:38 +0000 (12:52 +0000)]
Refactor the NTLMSSP code again - this time we use function pointers to
eliminate the dependency on the auth subsystem.  The next step is to add
the required code to 'ntlm_auth', for export to Squid etc.

Andrew Bartlett

18 years agoDoing a malloc(strlen(s)) then a pstrpcp(y, s) is just silly, make it a strdup
Andrew Bartlett [Wed, 15 Jan 2003 12:48:06 +0000 (12:48 +0000)]
Doing a malloc(strlen(s)) then a pstrpcp(y, s) is just silly, make it a strdup
instead.

Andrew Bartlett

18 years agoadded cli_lsa_enum_account_rights() call. Note that this is in
Andrew Tridgell [Wed, 15 Jan 2003 07:40:40 +0000 (07:40 +0000)]
added cli_lsa_enum_account_rights() call. Note that this is in
principal similar to the existing cli_lsa_enum_privsaccount() call,
except that cli_lsa_enum_account_rights() doesn't require a call to
open_account first. There is also the minor matter that
cli_lsa_enum_account_rights() works whereas
cli_lsa_enum_privsaccount() doesn't!

this call can be used to find what privileges an account or group
has. This is a first step towards proper privileges support in Samba.

18 years agoFix warnings by getting the function into a shape the autoprototyper will
Andrew Bartlett [Wed, 15 Jan 2003 05:56:12 +0000 (05:56 +0000)]
Fix warnings by getting the function into a shape the autoprototyper will
read, and add a static.

Andrew Bartlett

18 years agoCrash fixes:
Andrew Bartlett [Wed, 15 Jan 2003 05:55:22 +0000 (05:55 +0000)]
Crash fixes:
 - fix a crash when a second NTLMSSP session tried to free the first
 - fix a crash due to some NULL pointers in the Add Printer Wizard (or read
   printer code too it appears).  As far as I can tell it's just that the
   GUID just might not exist.

Andrew Bartlett

18 years agoOne more from waitpid() audit: Correctly interpret waitstatus when a
Martin Pool [Wed, 15 Jan 2003 05:27:33 +0000 (05:27 +0000)]
One more from waitpid() audit: Correctly interpret waitstatus when a
child fails.  Possibly this was causing smbmount to exit(0) when it
really should have indicated a failure.

18 years agoRun autoheader
Martin Pool [Wed, 15 Jan 2003 05:23:40 +0000 (05:23 +0000)]
Run autoheader

18 years agoFix bug where the existence of config.cache would cause functions like
Martin Pool [Wed, 15 Jan 2003 05:00:04 +0000 (05:00 +0000)]
Fix bug where the existence of config.cache would cause functions like
yp_get_default_domain to be misdetected.

According to the autoconf manual we need to check for libraries before
looking for functions in them.

18 years agoIRIX uses libns_winbind.so instead of libnss_winbind.so
Herb Lewis [Wed, 15 Jan 2003 01:07:09 +0000 (01:07 +0000)]
IRIX uses libns_winbind.so instead of libnss_winbind.so

18 years agoIRIX uses libns_winbind.so instead of libnss_winbind.so
Herb Lewis [Wed, 15 Jan 2003 01:05:35 +0000 (01:05 +0000)]
IRIX uses libns_winbind.so instead of libnss_winbind.so

18 years ago[merge] removing unused variable and unused file
Gerald Carter [Tue, 14 Jan 2003 23:55:14 +0000 (23:55 +0000)]
[merge] removing unused variable and unused file

18 years agoremoving unused variable and unused file
Gerald Carter [Tue, 14 Jan 2003 23:52:42 +0000 (23:52 +0000)]
removing unused variable and unused file

18 years agoFix some debug lines, and add a bit more info to help track down ldap
Andrew Bartlett [Tue, 14 Jan 2003 23:45:14 +0000 (23:45 +0000)]
Fix some debug lines, and add a bit more info to help track down ldap
connectivity problems.

Andrew Bartlett

18 years agomerge: disable [u|g]idPool objects
Gerald Carter [Tue, 14 Jan 2003 16:03:27 +0000 (16:03 +0000)]
merge: disable [u|g]idPool objects

18 years agomake -i flag work lik eit did in 2.2
Gerald Carter [Tue, 14 Jan 2003 15:52:45 +0000 (15:52 +0000)]
make -i flag work lik eit did in 2.2

18 years agomake -i flag work lik eit did in 2.2
Gerald Carter [Tue, 14 Jan 2003 15:52:14 +0000 (15:52 +0000)]
make -i flag work lik eit did in 2.2

18 years agoMerge from HEAD - patch by metze to fill in 'workgroup' etc in testparm output,
Andrew Bartlett [Tue, 14 Jan 2003 10:47:56 +0000 (10:47 +0000)]
Merge from HEAD - patch by metze to fill in 'workgroup' etc in testparm output,
and probably SWAT too..

Andrew Bartlett

18 years agoMerge from HEAD:
Andrew Bartlett [Tue, 14 Jan 2003 10:39:32 +0000 (10:39 +0000)]
Merge from HEAD:

Keep all the const warnings in one place, by adding a utility function to
make the TDB_DATA.

18 years agoMerge from HEAD:
Andrew Bartlett [Tue, 14 Jan 2003 08:53:59 +0000 (08:53 +0000)]
Merge from HEAD:
 - fstring/pstring mixups
 - the detection code that found them (disabled)
 - a bit of whitespace
 - a static

Andrew Bartlett

18 years agoMerge from HEAD:
Andrew Bartlett [Tue, 14 Jan 2003 08:26:54 +0000 (08:26 +0000)]
Merge from HEAD:
 - remove useless #else
 - signed/unsigned fixes
 - use an fstring for LM hash buffer.

Andrew Bartlett

18 years agoMerge from HEAD - eliminated unused arguments.
Andrew Bartlett [Tue, 14 Jan 2003 07:49:15 +0000 (07:49 +0000)]
Merge from HEAD - eliminated unused arguments.

Andrew Bartlett

18 years agoMerge indirection, signed/unsigned and uninitialiased-value fixes from HEAD.
Andrew Bartlett [Tue, 14 Jan 2003 07:26:12 +0000 (07:26 +0000)]
Merge indirection, signed/unsigned and uninitialiased-value fixes from HEAD.

Andrew Bartlett

18 years agoCommit my (disabled) fstring/pstring mixup detection code.
Andrew Bartlett [Tue, 14 Jan 2003 06:53:35 +0000 (06:53 +0000)]
Commit my (disabled) fstring/pstring mixup detection code.

We need to fix some 'overmalloc' cases before it can be enabled by default.

Andrew Bartlett

18 years agoThe last of the fstring/pstring mixups, and an extra 'static'.
Andrew Bartlett [Tue, 14 Jan 2003 06:46:14 +0000 (06:46 +0000)]
The last of the fstring/pstring mixups, and an extra 'static'.

18 years agoA couple more pstcpy/fstrcpy mixups - doing an fstrcpy into a pstring is
Andrew Bartlett [Tue, 14 Jan 2003 06:36:40 +0000 (06:36 +0000)]
A couple more pstcpy/fstrcpy mixups - doing an fstrcpy into a pstring is
harmless, but breaks my automated check.

18 years agoAdded comment about a SMB_ASSERT()
Tim Potter [Tue, 14 Jan 2003 05:25:08 +0000 (05:25 +0000)]
Added comment about a SMB_ASSERT()

18 years agoRemove wrapper function _get_trust_account_password() as it doesn't
Tim Potter [Tue, 14 Jan 2003 05:08:42 +0000 (05:08 +0000)]
Remove wrapper function _get_trust_account_password() as it doesn't
seem to do anything useful anymore other than call
secrets_fetch_trust_account_password().

18 years agoAdded a comment in case anyone is thinking of doing a SMB_ASSERT in winbindd.
Tim Potter [Tue, 14 Jan 2003 04:04:13 +0000 (04:04 +0000)]
Added a comment in case anyone is thinking of doing a SMB_ASSERT in winbindd.

18 years agomerge alt_name patch from head
Andrew Tridgell [Tue, 14 Jan 2003 03:02:18 +0000 (03:02 +0000)]
merge alt_name patch from head

18 years agoquery_alt_name takes a forced unicode string in win2000. It is not
Andrew Tridgell [Tue, 14 Jan 2003 02:51:37 +0000 (02:51 +0000)]
query_alt_name takes a forced unicode string in win2000. It is not
null terminated.

Thanks to Metze for finding this.

18 years agoclearer debug message when the user is already in the ldap db
Andrew Tridgell [Tue, 14 Jan 2003 00:39:18 +0000 (00:39 +0000)]
clearer debug message when the user is already in the ldap db

18 years agoadd help text for 'net ads lookup'
Andrew Tridgell [Tue, 14 Jan 2003 00:35:38 +0000 (00:35 +0000)]
add help text for 'net ads lookup'

18 years agoDon't touch data after a free.
Jeremy Allison [Mon, 13 Jan 2003 23:15:14 +0000 (23:15 +0000)]
Don't touch data after a free.
Jeremy.

18 years agoMissing indirect in final free.
Jeremy Allison [Mon, 13 Jan 2003 23:07:28 +0000 (23:07 +0000)]
Missing indirect in final free.
Jeremy.

18 years agoMerge of indirection fixes from HEAD.
Jeremy Allison [Mon, 13 Jan 2003 23:07:26 +0000 (23:07 +0000)]
Merge of indirection fixes from HEAD.
Jeremy

18 years agoAlways initialise this variable - and don't set the 'must change now' if it was
Andrew Bartlett [Mon, 13 Jan 2003 21:49:49 +0000 (21:49 +0000)]
Always initialise this variable - and don't set the 'must change now' if it was
last changed at '0'.

We need to actually change this password sometime...

Andrew Bartlett

18 years agoFix typo, and the build.
Andrew Bartlett [Mon, 13 Jan 2003 21:48:52 +0000 (21:48 +0000)]
Fix typo, and the build.

18 years agoMore janitorial duties. Pulling these in from samba-head.
Richard Sharpe [Mon, 13 Jan 2003 20:37:46 +0000 (20:37 +0000)]
More janitorial duties. Pulling these in from samba-head.

18 years agoMake sure that those cleanups actually went in.
Richard Sharpe [Mon, 13 Jan 2003 20:30:28 +0000 (20:30 +0000)]
Make sure that those cleanups actually went in.

18 years agoNow that I am running config.developer, I decided to get rif of some warnings:
Richard Sharpe [Mon, 13 Jan 2003 20:04:40 +0000 (20:04 +0000)]
Now that I am running config.developer, I decided to get rif of some warnings:

1. reboot in parse_reg and cli_reg was shadowing a definition on FreeBSD
   4.3 from system includes.

2. Added a bit of const to places.

3. Made sure internal functions were declared where needed.

18 years agoPatch from metze to add what he feels is the correct semantics for a Domain
Andrew Bartlett [Mon, 13 Jan 2003 13:11:36 +0000 (13:11 +0000)]
Patch from metze to add what he feels is the correct semantics for a Domain
Controller.  As we have had a number of attempts at this over the last little
while, I need to get my test rig going, and give this whole area a poke...

Meanwhile, if you want to use this, just adjust your 'auth methods' line to use
samstrict_dc...

Andrew Bartlett

18 years agoPatch from metze to to make testparm show values for 'workgroup', 'netbios
Andrew Bartlett [Mon, 13 Jan 2003 13:03:25 +0000 (13:03 +0000)]
Patch from metze to to make testparm show values for 'workgroup', 'netbios
name' and 'netbios scope'.  Probably has a similar effect on SWAT.

Also adds '-V' to testparm.

Andrew Bartlett

18 years agoPatch from ab, to make findsmb omit -r most of the time.
Andrew Bartlett [Mon, 13 Jan 2003 12:54:59 +0000 (12:54 +0000)]
Patch from ab, to make findsmb omit -r most of the time.

(original mail follows)
--
From: Alexander Bokovoy <a.bokovoy@sam-solutions.net>
Greetings!

I propose to make an optional argument '-r' for findsmb utility to pass
'-r' option to nmblookup optionally and default to omit it. The reason is
to have findsmb working more user-friendly in contemporary office
environments where Windows 95/98 boxes are rare and also to allow usage of
the utility under non-priviledged accounts when Windows95/98 boxes are in
minority or even absent in network neighbourhood.

An attached patch provides this change for HEAD together with
documentation changes.

--
/ Alexander Bokovoy

18 years agoUpdates to our NTLMSSP code:
Andrew Bartlett [Mon, 13 Jan 2003 12:48:37 +0000 (12:48 +0000)]
Updates to our NTLMSSP code:

This tries to extract our server-side code out of sessetup.c, and into a more
general lib.  I hope this is only a temporay resting place - I indend to
refactor it again into an auth-subsystem independent lib, using callbacks.

Move some of our our NTLMSSP #defines into a new file, and add two that I found
in the COMsource docs - we seem to have a double-up, but I've verified from
traces that the NTLMSSP_TARGET_TYPE_{DOMAIN,SERVER} is real.

This code also copes with ASCII clients - not that we will ever see any here,
but I hope to use this for HTTP, were we can get them.  Win2k authenticates
fine under forced ASCII, btw.

Tested with Win2k, NTLMv2 and Samba's smbclient.

Andrew Bartlett