ira/wip.git
22 years ago- fix handling of 0 last_change_time and must_change_time
Andrew Tridgell [Mon, 1 Oct 2001 10:54:11 +0000 (10:54 +0000)]
- fix handling of 0 last_change_time and must_change_time
- move the arbitrary 21 day timeout to local.h

22 years agoDon't try to write the LM password in the NT password feild.
Andrew Bartlett [Sun, 30 Sep 2001 14:51:38 +0000 (14:51 +0000)]
Don't try to write the LM password in the NT password feild.

22 years agomake strupper() and strlower() not modify the string if it doesn't
Andrew Tridgell [Sun, 30 Sep 2001 13:30:52 +0000 (13:30 +0000)]
make strupper() and strlower() not modify the string if it doesn't
need modifying

that makes constant strings OK

22 years agoI told Jeremy at the CIFS conference that I would sort the command list
Christopher R. Hertel [Sun, 30 Sep 2001 06:49:44 +0000 (06:49 +0000)]
I told Jeremy at the CIFS conference that I would sort the command list
in smbclient.  Done.  I had a little trouble because the "!" command is
a special case and must be listed last.  Awkward.

Chris -)-----

22 years agoSmall changes to register_vuid ahead of a larger restructure.
Andrew Bartlett [Sun, 30 Sep 2001 04:28:43 +0000 (04:28 +0000)]
Small changes to register_vuid ahead of a larger restructure.

22 years agoMake header comment clearer, these are RIDs, not UIDs.
Andrew Bartlett [Sun, 30 Sep 2001 02:51:45 +0000 (02:51 +0000)]
Make header comment clearer, these are RIDs, not UIDs.

22 years agoFinally kill off the SMBENCRYPT() macro.
Andrew Bartlett [Sun, 30 Sep 2001 01:39:47 +0000 (01:39 +0000)]
Finally kill off the SMBENCRYPT() macro.

22 years agomerge from 2.2
Gerald Carter [Sun, 30 Sep 2001 01:33:02 +0000 (01:33 +0000)]
merge from 2.2

22 years agofixed in *BSD
Motonobu Takahashi [Sat, 29 Sep 2001 20:07:26 +0000 (20:07 +0000)]
fixed in *BSD

22 years agofixed not to install in *BSD, but perhaps on Solaris, cannot install
Motonobu Takahashi [Sat, 29 Sep 2001 20:06:35 +0000 (20:06 +0000)]
fixed not to install in *BSD, but perhaps on Solaris, cannot install

22 years agoundef the code for now
Simo Sorce [Sat, 29 Sep 2001 16:20:15 +0000 (16:20 +0000)]
undef the code for now

22 years agofurther devel and test kit.
Simo Sorce [Sat, 29 Sep 2001 16:16:38 +0000 (16:16 +0000)]
further devel and test kit.
first tests show it still does not work.
work in progress...

22 years agonot to creat gmo files from po files during making
Motonobu Takahashi [Sat, 29 Sep 2001 16:07:01 +0000 (16:07 +0000)]
not to creat gmo files from po files during making
this is because some platforms such as HP-UX do not have any msgfmt
command.

if someone updates po file,
then he has to update gmo files manually and commit.

22 years agoThis is the passdb section of the previously mentioned commit.
Andrew Bartlett [Sat, 29 Sep 2001 13:14:19 +0000 (13:14 +0000)]
This is the passdb section of the previously mentioned commit.

Of particular note is the change to pdb_free_sam() to take its sam argument by
reference, allowing it to be NULLified by the SAFE_FREE() macro, and the
changed to local_password_change() both to make it work and to remove the
duplicate code that caused so much breakage over the last few days.

 - Small change in behaviour:  when LOCAL_ADD_USER is set, the user doesn't
actually exist locally but does exist in the passdb we don't attempt to do a
GetPwnam().  (How the entry got there is another matter, and most passdbs won't
allow this anyway).

Andrew Bartlett

22 years agoFix up a number of intertwined issues:
Andrew Bartlett [Sat, 29 Sep 2001 13:08:26 +0000 (13:08 +0000)]
Fix up a number of intertwined issues:

The big one is a global change to allow us to NULLify the free'ed pointer to a
former passdb object.  This was done to allow idra's SAFE_FREE() macro to do
its magic, and to satisfy the input test in pdb_init_sam() for a NULL pointer
to start with.

This NULL pointer test was what was breaking the adding of accounts up until
now, and this code has been reworked to avoid duplicating work - I hope this
will avoid a similar mess-up in future.

Finally, I fixed a few nasty bugs where the pdb_ fuctions's return codes were
being ignored.  Some of these functions malloc() and are permitted to fail.
Also, this caught a nasty bug where pdb_set_lanman_password(sam, NULL) acheived
precisely didilly-squat, just returning False.  Now that we check the returns
this bug was spotted.  This could allow different LM and NT passwords.

 - the pdbedit code needs to start checking these too, but I havn't had a
chance to fix it.

I have also fixed up where some of the password changing code was using the
pdb_set functions to store *internal* data.  I assume this is from a previous
lot of mass conversion work...

Most likally (and going on past experience) I have missed somthing, probably in
the LanMan password change code which I havn't yet been able to test, but this
lot is in much better shape than it was before.

If all this is too much to swallow (particularly for 2.2.2) then just adding a
sam_pass = NULL to the particular line of passdb.c should do the trick for the
ovbious bug.

Andrew Bartlett

22 years agoreturn NT_STATUS_NO_MEMORY istead of NT_STATUS_OK if we are out of memory.
Simo Sorce [Sat, 29 Sep 2001 12:26:40 +0000 (12:26 +0000)]
return NT_STATUS_NO_MEMORY istead of NT_STATUS_OK if we are out of memory.

22 years agoAdd a few const statements to various odd bits of the tree. (Fixes some
Andrew Bartlett [Sat, 29 Sep 2001 11:51:40 +0000 (11:51 +0000)]
Add a few const statements to various odd bits of the tree.  (Fixes some
warnings)

22 years agoDon't build make_printerdef in HEAD. This tool is not needed except
Gerald Carter [Sat, 29 Sep 2001 04:04:35 +0000 (04:04 +0000)]
Don't build make_printerdef in HEAD.  This tool is not needed except
to support 2.0.x style WIn9x driver download.

22 years agoFixed CUPS detection - patch from Michael Sweet.
Jeremy Allison [Fri, 28 Sep 2001 18:07:11 +0000 (18:07 +0000)]
Fixed CUPS detection - patch from Michael Sweet.
Jeremy.

22 years agoHow the heck I missed this I don't know, but somehow I got a copy-and-paste
Andrew Bartlett [Fri, 28 Sep 2001 04:48:36 +0000 (04:48 +0000)]
How the heck I missed this I don't know, but somehow I got a copy-and-paste
error in here...

Now you can change local passwords again.  There is stil somthing broken about
remote (via windows/sampasswd) password changing.

I shall have to revise my testing, I honestly don't know how this slipped
through the net.

MERGE for 2.2.2.

Sorry,
Andrew Bartlett

22 years agoRemoved smbpasswd_XX call (how did this get re-added, I removed all
Jeremy Allison [Thu, 27 Sep 2001 21:27:12 +0000 (21:27 +0000)]
Removed smbpasswd_XX call (how did this get re-added,  I removed all
these yesterday ?).
Jeremy.

22 years agoSync 2.2.2 and HEAD (I will keep these the same if it kills me :-).
Jeremy Allison [Thu, 27 Sep 2001 21:20:14 +0000 (21:20 +0000)]
Sync 2.2.2 and HEAD (I will keep these the same if it kills me :-).
Jeremy.

22 years agoMerge HEAD and 2.2 - try frantically to keep in sync.
Jeremy Allison [Thu, 27 Sep 2001 20:40:47 +0000 (20:40 +0000)]
Merge HEAD and 2.2 - try frantically to keep in sync.
Jeremy.

22 years agoHow often did I read the CVS commit message
Volker Lendecke [Thu, 27 Sep 2001 16:28:50 +0000 (16:28 +0000)]
How often did I read the CVS commit message
"Always compile before commit" :-((

Volker

22 years agoget out unicode_from_buffer and buffer_from_unicode, unneeded.
Simo Sorce [Thu, 27 Sep 2001 12:41:38 +0000 (12:41 +0000)]
get out unicode_from_buffer and buffer_from_unicode, unneeded.
store mangled filename in dos charset and unmangled in unicode.
clean ups
still lot to do.
againg compiled but not yet tested.

22 years agoMajor update to pdbedit's import and export code, in line with reqests for it
Andrew Bartlett [Thu, 27 Sep 2001 09:36:38 +0000 (09:36 +0000)]
Major update to pdbedit's import and export code, in line with reqests for it
to use the pdb_ formatting functions.

Similarly, it now uses pdb_set...() rather than accessing passdb members
directly.

Andrew Bartlett

22 years agoKill unused variables
Andrew Bartlett [Thu, 27 Sep 2001 09:18:13 +0000 (09:18 +0000)]
Kill unused variables

22 years agoFix memory leak in get_sampwd_entries(), reindent for clarity.
Andrew Bartlett [Thu, 27 Sep 2001 09:13:26 +0000 (09:13 +0000)]
Fix memory leak in get_sampwd_entries(), reindent for clarity.
 - call pdb_reset_sam() after each getent call.

Fix bug in get_group_alias_entries(), were if num_entries was zero this caused
talloc() to return NULL, failing a test below with NT_STATUS_NO_MEMORY.

Fix pdb_reset_sam() to correctly initalise the sam structure.

Move default value code into a single place, likewise for sam freeing code.
 - should make things easier if we decide to malloc other strings, or get more
 non-zero default values.

Finally, add a function in init a sam struct from a getpwnam() return.

Andrew Bartlett

22 years agosync up with 2.2
Gerald Carter [Thu, 27 Sep 2001 03:40:34 +0000 (03:40 +0000)]
sync up with 2.2

22 years agominor fixes
Simo Sorce [Thu, 27 Sep 2001 02:05:30 +0000 (02:05 +0000)]
minor fixes

22 years agofixed compilation of tdbtorture
Andrew Tridgell [Thu, 27 Sep 2001 01:57:02 +0000 (01:57 +0000)]
fixed compilation of tdbtorture

22 years agoOpenSSL merge from 2.2
Gerald Carter [Wed, 26 Sep 2001 17:29:53 +0000 (17:29 +0000)]
OpenSSL merge from 2.2

22 years agoFrom 2.2.
Volker Lendecke [Wed, 26 Sep 2001 16:47:02 +0000 (16:47 +0000)]
From 2.2.

Volker

22 years agomerge from 2.2
Gerald Carter [Wed, 26 Sep 2001 14:40:21 +0000 (14:40 +0000)]
merge from 2.2

22 years agoKill of the reply.c end of the workstaion trust account mess.
Andrew Bartlett [Wed, 26 Sep 2001 13:55:59 +0000 (13:55 +0000)]
Kill of the reply.c end of the workstaion trust account mess.

Fix the NT errror codes, this time in line with WinXP/2k.
 - Return the normal error codes, expect for bad user/bad password.  These map
   to logon failure, as a quick security hack.  We follow suit.

Simplfy some of the password extraction code, the auth subsytem has the
 intelegence to sort this stuff out, no need to do it here.

Move to 'global_encrypted_passwords_negotiated' to determine the use of
unencrypted hacks, replacing the current mess.

Andrew Bartlett

22 years agoProcess the workstation trust account code INSIDE the authenticaion subsystem,
Andrew Bartlett [Wed, 26 Sep 2001 13:11:22 +0000 (13:11 +0000)]
Process the workstation trust account code INSIDE the authenticaion subsystem,
just like any other logon.  Matching code removal in reply.c to follow.

Andrew Bartlett

22 years agoRearrange the order of the checks in auth_smbpasswd.c, always check passwords
Andrew Bartlett [Wed, 26 Sep 2001 12:28:46 +0000 (12:28 +0000)]
Rearrange the order of the checks in auth_smbpasswd.c, always check passwords
first.

Add password expiry and 'must change before first logon' support.
 - This requires that the passdb be up to the job to supply the info.

22 years agoFix this to use the plaintext password code directly, like SWAT does.
Andrew Bartlett [Wed, 26 Sep 2001 12:12:26 +0000 (12:12 +0000)]
Fix this to use the plaintext password code directly, like SWAT does.

This whole area needs to be cleaned up.  Should this kind of passowrd
change/check be permitted with encrypt passwords = yes?

In any case I've also had trouble testing this, as I can't find the right
software/configuration to exersise this behaviour.  But its better than the
previous situation.  Any assistance greatly appriciated.

Andrew Bartlett

22 years agoUpdate for new pdb_set_plaintext_passwd() interface.
Andrew Bartlett [Wed, 26 Sep 2001 11:55:13 +0000 (11:55 +0000)]
Update for new pdb_set_plaintext_passwd() interface.

22 years agoMake use of the pdb_set_plaintext_passwd() update to vastly simplify
Andrew Bartlett [Wed, 26 Sep 2001 11:51:25 +0000 (11:51 +0000)]
Make use of the pdb_set_plaintext_passwd() update to vastly simplify
decode_pw_buffer() and the samr password changing routines.

And yes, I know that we can lost some information in the Unicode->UTF->Unicode
bit of this, but its worth the code cleanup.

This also takes into account the possability of multibyte passwords.

Andrew Bartlett

22 years agoFix the uninitialised variable, but more importantly fix the SEGFAULT.
Andrew Bartlett [Wed, 26 Sep 2001 11:44:25 +0000 (11:44 +0000)]
Fix the uninitialised variable, but more importantly fix the SEGFAULT.

Merge for 2.2.2

Should TDB cope with TDB pointers itself?

Andrew Bartlett

22 years agoFix up TDB_SAM with repect to case sensitvity. (need to use unix_strlower)
Andrew Bartlett [Wed, 26 Sep 2001 11:36:37 +0000 (11:36 +0000)]
Fix up TDB_SAM with repect to case sensitvity.  (need to use unix_strlower)

Also attempt to make some of the syntax clearer, its confusing enought for the
compiler... (it thinks that there is use of an unitilaised variable)

In fact there is, see next patch...

22 years agoFix up pdbedit to initialise its structures with the standard functions,
Andrew Bartlett [Wed, 26 Sep 2001 11:28:26 +0000 (11:28 +0000)]
Fix up pdbedit to initialise its structures with the standard functions,
therfore ensuring sensible defaults for some values, notably account expriries
which mean 'locked out' if == 0.

This NEEDS to be merged into 2.2.2 or people can get wrongly initilaised TDB
records.  (which will only fail on future versions of samba).

Andrew Bartlett

22 years agoAdd a new interface pdb_set_plaintext_passwd() to the passdb. This simply
Andrew Bartlett [Wed, 26 Sep 2001 11:23:08 +0000 (11:23 +0000)]
Add a new interface pdb_set_plaintext_passwd() to the passdb.  This simply
interfaces to the existing set NT and LM functions, but ensures we always do it
in the same way.

This also allows for the possibility for the unix password sync code to be
hidden behind the passdb interface as some stage.

22 years agoMore updates to prevent account-guessing.
Andrew Bartlett [Wed, 26 Sep 2001 11:13:55 +0000 (11:13 +0000)]
More updates to prevent account-guessing.

This moves the check that ensures that the account being looked up is the same
account as the machine logged in as to the front, before we even start with
passdb.

Merge for 2.2.2?

Andrew Bartlett

22 years agoWe don't use a modified 'user' in any case, so don't modifiy it.
Andrew Bartlett [Wed, 26 Sep 2001 05:22:10 +0000 (05:22 +0000)]
We don't use a modified 'user' in any case, so don't modifiy it.

22 years agoUpdate build_options.c in line with new configure options.
Andrew Bartlett [Wed, 26 Sep 2001 02:30:55 +0000 (02:30 +0000)]
Update build_options.c in line with new configure options.

22 years agoFinish Jeremy's passdb merge :-).
Andrew Bartlett [Wed, 26 Sep 2001 00:22:54 +0000 (00:22 +0000)]
Finish Jeremy's passdb merge :-).

(fix up configure.in for default (smbpasswd) option)

Rerun autoconf.

22 years agoAdded Elrond patch to make se_access_check use NT datastructures, not Samba.
Jeremy Allison [Wed, 26 Sep 2001 00:05:03 +0000 (00:05 +0000)]
Added Elrond patch to make se_access_check use NT datastructures, not Samba.
Jeremy.

22 years agoFixup passdb stuff to add new nisplus and ldap backends.
Jeremy Allison [Tue, 25 Sep 2001 20:21:21 +0000 (20:21 +0000)]
Fixup passdb stuff to add new nisplus and ldap backends.
Jeremy.

22 years agosorry to forget re-run autoconf again...
Motonobu Takahashi [Tue, 25 Sep 2001 17:41:35 +0000 (17:41 +0000)]
sorry to forget re-run autoconf again...

22 years agonow --with-i18n-swat works to install some international files
Motonobu Takahashi [Tue, 25 Sep 2001 17:40:12 +0000 (17:40 +0000)]
now --with-i18n-swat works to install some international files
used by SWAT into $swatdir/$ln/{help,images,include}

we have still points which needs to discuss, that is how to archive
and install lots of HTML help files and Using Samba files.

-- monyo

22 years agoDon't segfault when deleting accounts not in /etc/passwd. The RID we want is
Andrew Bartlett [Tue, 25 Sep 2001 14:40:25 +0000 (14:40 +0000)]
Don't segfault when deleting accounts not in /etc/passwd.  The RID we want is
the one in the sampass anyway.

Andrew Bartlett

22 years agoFix up the ./configure for the BSDs:
Andrew Bartlett [Tue, 25 Sep 2001 14:11:28 +0000 (14:11 +0000)]
Fix up the ./configure for the BSDs:

Subject:
         Re: bugs in installman.sh script
    Date:
         Tue, 25 Sep 2001 16:02:11 +0200 (CEST)
   From:
         Rafal Szczesniak <mimir@spin.ict.pwr.wroc.pl>
     To:
         Andrew Bartlett <abartlet@pcug.org.au>
     CC:
         <samba-technical@lists.samba.org>

On Tue, 25 Sep 2001, Andrew Bartlett wrote:

> Its broken for BSDs and was broken for many others.  You might want to
> re-checkout.  Any fixes appricatiated.

OK. Here's the patch for configure.in. Replaces illegal, under [t]csh,
substitution with more general sed construction. Apply it, please, and
I'll see if I can clean up the installman.sh further.

22 years agomemory leak fixes ..
Simo Sorce [Tue, 25 Sep 2001 09:58:36 +0000 (09:58 +0000)]
memory leak fixes ..

22 years ago- the inactive core of the new mangling code that use tdb
Simo Sorce [Tue, 25 Sep 2001 09:57:06 +0000 (09:57 +0000)]
- the inactive core of the new mangling code that use tdb
- some more utils for unicode string manipulation

22 years agofixed the really awful performance problem with the stat cache when it
Andrew Tridgell [Tue, 25 Sep 2001 06:39:41 +0000 (06:39 +0000)]
fixed the really awful performance problem with the stat cache when it
ran out of primes and used a power of two hash modulus. It ended up
sticking all the entries in just a few buckets. Yuck!

22 years agofixed a typo
Andrew Tridgell [Tue, 25 Sep 2001 06:38:07 +0000 (06:38 +0000)]
fixed a typo

22 years agoadded a little smbtorture test for dumping the unicode table of a
Andrew Tridgell [Tue, 25 Sep 2001 05:20:43 +0000 (05:20 +0000)]
added a little smbtorture test for dumping the unicode table of a
server. This is just a framework right now - I want this to eventually
replace the win32 test code from monyo

The interesting this about this test is that it shows up a really
horrible performance bug in our stat cache code. I'll see if I can fix
it.

22 years agoChange ./configure.developer to stay in effect across a
Andrew Bartlett [Tue, 25 Sep 2001 05:08:05 +0000 (05:08 +0000)]
Change ./configure.developer to stay in effect across a
'./config.status --recheck' by making it a real configure option.

reran autoconf

22 years agoallow all ucs2 chars in utf8, rather than mapping some to a single
Andrew Tridgell [Tue, 25 Sep 2001 04:27:59 +0000 (04:27 +0000)]
allow all ucs2 chars in utf8, rather than mapping some to a single
char like libiconv does

22 years agoadded cli_qpathinfo_alt_name() for fetching the 8.3 name of a file
Andrew Tridgell [Tue, 25 Sep 2001 04:25:49 +0000 (04:25 +0000)]
added cli_qpathinfo_alt_name() for fetching the 8.3 name of a file

22 years agoTry to fix up manpage installation
Andrew Bartlett [Tue, 25 Sep 2001 02:01:29 +0000 (02:01 +0000)]
Try to fix up manpage installation

22 years agoFixed enumeration of large numbers of groups from a Samba DC.
Jeremy Allison [Tue, 25 Sep 2001 00:50:37 +0000 (00:50 +0000)]
Fixed enumeration of large numbers of groups from a Samba DC.
Tidied up debug messages in lib/messages.c
Jeremy.

22 years agoLog sys_acl_set_XX at level 2 not zero.
Jeremy Allison [Tue, 25 Sep 2001 00:05:26 +0000 (00:05 +0000)]
Log sys_acl_set_XX at level 2 not zero.
Jeremy.

22 years agoChange log message to 2 from zero when failing to create directory.
Jeremy Allison [Mon, 24 Sep 2001 23:50:28 +0000 (23:50 +0000)]
Change log message to 2 from zero when failing to create directory.
Stops spurious profile creation messages.
Jeremy.

22 years agoRemoved extra '()' s.
Jeremy Allison [Mon, 24 Sep 2001 21:53:34 +0000 (21:53 +0000)]
Removed extra '()' s.
Jeremy.

22 years agofixed a typo in installman.sh
Motonobu Takahashi [Mon, 24 Sep 2001 18:22:46 +0000 (18:22 +0000)]
fixed a typo in installman.sh
fixed a problem that source/install-sh is not executable

22 years agofixed a typo
Motonobu Takahashi [Mon, 24 Sep 2001 16:38:54 +0000 (16:38 +0000)]
fixed a typo

22 years agoadded files and directories to support gettext() feature
Motonobu Takahashi [Mon, 24 Sep 2001 16:13:06 +0000 (16:13 +0000)]
added files and directories to support gettext() feature
Also added some po files to support:
    English, Japanese, Polish, Turlish

22 years agoUpdate configure from configure.in
Motonobu Takahashi [Mon, 24 Sep 2001 16:02:05 +0000 (16:02 +0000)]
Update configure from configure.in

22 years agoAdded SWAT i18n feature:
Motonobu Takahashi [Mon, 24 Sep 2001 15:55:09 +0000 (15:55 +0000)]
Added SWAT i18n feature:
  TO enable configure with --with-i18n-swat
  to support this gettext is integrated
  and a new directories name "po" and "intl" are created.

  now these languages are supported:

  en - English (default)
  ja - Japanese
  po - Polish
  tr - Turkish

  To add your language,
  to create ${your_language}.po by translating source/po/en.po
  into your language is needed.

  some of html and image files of various language version are not
  included yet, though message catalogue files are installed.
  you need to copy files manually under
  ${swatdir}/lang/$ln/{help,images,included,using_samba}

And also added a option to intall manual pages:
of various lang version
  To enable configure with --with-manlangs
  but manual pages themself are not included yet.

22 years agoadded SWAT i18n support files for Japanese and Turkish
Motonobu Takahashi [Mon, 24 Sep 2001 15:49:06 +0000 (15:49 +0000)]
added SWAT i18n support files for Japanese and Turkish

22 years agofixed a silly off by 1 bug
Andrew Tridgell [Mon, 24 Sep 2001 06:24:14 +0000 (06:24 +0000)]
fixed a silly off by 1 bug

22 years agofixed bug in POST var handling
Andrew Tridgell [Mon, 24 Sep 2001 06:02:31 +0000 (06:02 +0000)]
fixed bug in POST var handling

22 years agoIf we disable hostname lookups we can at least get a uniform answer for testing
Andrew Bartlett [Mon, 24 Sep 2001 05:27:44 +0000 (05:27 +0000)]
If we disable hostname lookups we can at least get a uniform answer for testing
the rhosts and hostsequiv stuff with.

Andrew Bartlett

22 years agotdbtorture updates from when I was trying to track down the hp tdb bug
Andrew Tridgell [Mon, 24 Sep 2001 04:56:56 +0000 (04:56 +0000)]
tdbtorture updates from when I was trying to track down the hp tdb bug

22 years agoconvert all POST variables from display to unix charset
Andrew Tridgell [Mon, 24 Sep 2001 04:49:14 +0000 (04:49 +0000)]
convert all POST variables from display to unix charset

22 years agoAdd .headers.stamp
Andrew Bartlett [Mon, 24 Sep 2001 01:04:52 +0000 (01:04 +0000)]
Add .headers.stamp

22 years agoLets call an NTSTATUS an nt_status, not an ecode.
Andrew Bartlett [Sun, 23 Sep 2001 23:07:53 +0000 (23:07 +0000)]
Lets call an NTSTATUS an nt_status, not an ecode.

22 years agoZero out these pstrings before we start: makes for much easier debugging.
Andrew Bartlett [Sun, 23 Sep 2001 22:51:27 +0000 (22:51 +0000)]
Zero out these pstrings before we start: makes for much easier debugging.

22 years agoFix up NT_STATUS return for session setups, Win2k objects to anything other
Andrew Bartlett [Sun, 23 Sep 2001 05:16:03 +0000 (05:16 +0000)]
Fix up NT_STATUS return for session setups, Win2k objects to anything other
than NT_STATUS_LOGON_FAILURE.  This also brings us (almost) back in line with
their implementation.

Kill off SMBENCRYPT() macro

Kill off 'nt smb support' paramater - tridge okayed this one.

Andrew Bartlett

22 years agofixed the Makefile so we don't rebuild libsmbclient and build_env.h
Andrew Tridgell [Sat, 22 Sep 2001 07:50:08 +0000 (07:50 +0000)]
fixed the Makefile so we don't rebuild libsmbclient and build_env.h
(and thus smbd) every time

22 years agoIgnore unmappable (NT Authority, BUILTIN etc.) SIDs in an ACL set.
Jeremy Allison [Sat, 22 Sep 2001 06:45:24 +0000 (06:45 +0000)]
Ignore unmappable (NT Authority, BUILTIN etc.) SIDs in an ACL set.
Jeremy.

22 years agoThese are RIDs not Unix UIDs so make this clear in the feild names.
Andrew Bartlett [Sat, 22 Sep 2001 03:44:15 +0000 (03:44 +0000)]
These are RIDs not Unix UIDs so make this clear in the feild names.

Andrew Bartlett

22 years agoAttempt to make quotas work with RH7.1, and with other Linuxen... This is
Jeremy Allison [Fri, 21 Sep 2001 22:06:03 +0000 (22:06 +0000)]
Attempt to make quotas work with RH7.1, and with other Linuxen... This is
*HARD*, dammit !
Jeremy.

22 years agofixed the error code handling in can_delete() by converting it to
Andrew Tridgell [Fri, 21 Sep 2001 14:27:43 +0000 (14:27 +0000)]
fixed the error code handling in can_delete() by converting it to
NTSTATUS. This gets the right error codes in SMBunlink

22 years agoAdded -s configfile to smbcontrol.c.
Volker Lendecke [Fri, 21 Sep 2001 13:37:52 +0000 (13:37 +0000)]
Added -s configfile to smbcontrol.c.

Volker

22 years agofixed character set for user name pull
Andrew Tridgell [Fri, 21 Sep 2001 13:22:22 +0000 (13:22 +0000)]
fixed character set for user name pull

22 years agosmbmount fixes from Urban.
Jeremy Allison [Thu, 20 Sep 2001 21:06:02 +0000 (21:06 +0000)]
smbmount fixes from Urban.
Jeremy.

22 years agoMove pass_check.c over to NTSTATUS, allowing full NTSTATUS from PAM to wire!
Andrew Bartlett [Thu, 20 Sep 2001 13:15:35 +0000 (13:15 +0000)]
Move pass_check.c over to NTSTATUS, allowing full NTSTATUS from PAM to wire!

Add the ability for swat to run in non-root-mode (ie non-root from inetd).
 - we still need some of the am_root() calls fixed however.

22 years agoWe are not meant to touch the username, so use the pass->pw_name output rather
Andrew Bartlett [Thu, 20 Sep 2001 10:26:50 +0000 (10:26 +0000)]
We are not meant to touch the username, so use the pass->pw_name output rather
than Get_Pwnam(user, True).

22 years agoFix up the test for some of the quirkier hosts on the farm, and enable one
Andrew Bartlett [Thu, 20 Sep 2001 08:28:41 +0000 (08:28 +0000)]
Fix up the test for some of the quirkier hosts on the farm, and enable one
previously disabled sub-test.

22 years agoCheck 'hosts equiv' and 'use rhosts' compatability with 'hostname
Andrew Bartlett [Thu, 20 Sep 2001 07:27:55 +0000 (07:27 +0000)]
Check 'hosts equiv' and 'use rhosts' compatability with 'hostname
lookup' value.

22 years agoRearrange the ordering of the checks in make_connection(). The new order has
Andrew Bartlett [Thu, 20 Sep 2001 07:09:28 +0000 (07:09 +0000)]
Rearrange the ordering of the checks in make_connection().  The new order has
some sainity, avoiding things like 'root preexec' when the connection would
otherwise already be denied (max connections).

This does change behaviour, but I think its for the best.

Andrew Bartlett

22 years agoAdd and modify some of the various tests I have had sitting around here for a
Andrew Bartlett [Thu, 20 Sep 2001 06:23:29 +0000 (06:23 +0000)]
Add and modify some of the various tests I have had sitting around here for a
little while.  This should give us a bit more coverage.

Andrew Bartlett

22 years agoFix for MiXed and UPPER case usernames with plaintext PAM passwords.
Andrew Bartlett [Thu, 20 Sep 2001 03:31:57 +0000 (03:31 +0000)]
Fix for MiXed and UPPER case usernames with plaintext PAM passwords.

22 years agoRevert this one: The NTLMv2 checks need the original username as found
Andrew Bartlett [Thu, 20 Sep 2001 00:19:55 +0000 (00:19 +0000)]
Revert this one:  The NTLMv2 checks need the original username as found
on the wire.

22 years ago- Fix up to use sampass->username insted of user_info->smb_username
Andrew Bartlett [Wed, 19 Sep 2001 23:53:51 +0000 (23:53 +0000)]
- Fix up to use sampass->username insted of user_info->smb_username
- Fix initial lookup to use the mapped username.

22 years agoTry to fix up the shell syntax
Andrew Bartlett [Wed, 19 Sep 2001 13:29:33 +0000 (13:29 +0000)]
Try to fix up the shell syntax