diff options
author | Andrew Bartlett <abartlet@samba.org> | 2001-11-25 02:35:37 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2001-11-25 02:35:37 +0000 |
commit | a71f3f66a1b47a70e402c4d82736f376449b923c (patch) | |
tree | f1a553543427f3bddda2f8f12babf00e10676c4a /source3/libsmb/clientgen.c | |
parent | 97346ea795f43a9d9487d9c1a63af4016a72e753 (diff) | |
download | samba-a71f3f66a1b47a70e402c4d82736f376449b923c.tar.gz samba-a71f3f66a1b47a70e402c4d82736f376449b923c.tar.bz2 samba-a71f3f66a1b47a70e402c4d82736f376449b923c.zip |
Add a new torture test to extract a NT->DOS error map from an NT member of a
samba domain.
The PDC must be running a special authenticaion module that spits out NT errors
based on username.
Andrew Bartlett
(This used to be commit adc7a6048c13342b79b6228beafb5142c50f318d)
Diffstat (limited to 'source3/libsmb/clientgen.c')
-rw-r--r-- | source3/libsmb/clientgen.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index 0f1fa2e42e..0e09388803 100644 --- a/source3/libsmb/clientgen.c +++ b/source3/libsmb/clientgen.c @@ -198,6 +198,13 @@ struct cli_state *cli_initialise(struct cli_state *cli) cli->oplock_handler = cli_oplock_ack; cli->use_spnego = True; + /* Set the CLI_FORCE_DOSERR environment variable to test + client routines using DOS errors instead of STATUS32 + ones. This intended only as a temporary hack. */ + if (getenv("CLI_FORCE_DOSERR")) { + cli->force_dos_errors = True; + } + if (!cli->outbuf || !cli->inbuf) goto error; |