1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
Commit Graph

5534 Commits

Author SHA1 Message Date
Simo Sorce
31a87fa4a6 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.
(This used to be commit 2d1aabb6d4)
2001-09-27 12:41:38 +00:00
Andrew Bartlett
415cfe0912 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
(This used to be commit e3b7cac47f)
2001-09-27 09:36:38 +00:00
Andrew Bartlett
f6ce758e5b Kill unused variables
(This used to be commit 758d923fa1)
2001-09-27 09:18:13 +00:00
Andrew Bartlett
2a9cd3b79a 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
(This used to be commit a41fb44f5e)
2001-09-27 09:13:26 +00:00
Simo Sorce
59a02ecae1 minor fixes
(This used to be commit 57e639bbdd)
2001-09-27 02:05:30 +00:00
Andrew Tridgell
c61d1a1679 fixed compilation of tdbtorture
(This used to be commit 2f44756233)
2001-09-27 01:57:02 +00:00
Gerald Carter
2c4d1d39b1 OpenSSL merge from 2.2
(This used to be commit efc6df5a39)
2001-09-26 17:29:53 +00:00
Volker Lendecke
29d3318437 From 2.2.
Volker
(This used to be commit 50ea73426f)
2001-09-26 16:47:02 +00:00
Gerald Carter
c10dc7a4cc merge from 2.2
(This used to be commit 247b9c3eba)
2001-09-26 14:40:21 +00:00
Andrew Bartlett
41821943da 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
(This used to be commit c04f063573)
2001-09-26 13:55:59 +00:00
Andrew Bartlett
865467c82f 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
(This used to be commit da4873d889)
2001-09-26 13:11:22 +00:00
Andrew Bartlett
71850be47e 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.
(This used to be commit 53c1c5091e)
2001-09-26 12:28:46 +00:00
Andrew Bartlett
83db39d2b5 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
(This used to be commit 37655b4289)
2001-09-26 12:12:26 +00:00
Andrew Bartlett
c907f33396 Update for new pdb_set_plaintext_passwd() interface.
(This used to be commit ce676f8bfc)
2001-09-26 11:55:13 +00:00
Andrew Bartlett
d74d82bddc 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
(This used to be commit 42402c87d6)
2001-09-26 11:51:25 +00:00
Andrew Bartlett
1ef468f805 Fix the uninitialised variable, but more importantly fix the SEGFAULT.
Merge for 2.2.2

Should TDB cope with TDB pointers itself?

Andrew Bartlett
(This used to be commit 27f0510a0b)
2001-09-26 11:44:25 +00:00
Andrew Bartlett
f12ebc00a8 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...
(This used to be commit 540abc8125)
2001-09-26 11:36:37 +00:00
Andrew Bartlett
9b1c40b7a4 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
(This used to be commit f0f315f315)
2001-09-26 11:28:26 +00:00
Andrew Bartlett
dc62feccb6 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.
(This used to be commit 33e3591b2d)
2001-09-26 11:23:08 +00:00
Andrew Bartlett
6744ca0a36 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
(This used to be commit f7ed0ecc14)
2001-09-26 11:13:55 +00:00
Andrew Bartlett
345a670324 We don't use a modified 'user' in any case, so don't modifiy it.
(This used to be commit e0e05cb5a5)
2001-09-26 05:22:10 +00:00
Andrew Bartlett
950bae4a22 Update build_options.c in line with new configure options.
(This used to be commit 3f10b04566)
2001-09-26 02:30:55 +00:00
Andrew Bartlett
48fb51809a Finish Jeremy's passdb merge :-).
(fix up configure.in for default (smbpasswd) option)

Rerun autoconf.
(This used to be commit 0b9e13530d)
2001-09-26 00:22:54 +00:00
Jeremy Allison
0f4281b9b4 Added Elrond patch to make se_access_check use NT datastructures, not Samba.
Jeremy.
(This used to be commit bca6419447)
2001-09-26 00:05:03 +00:00
Jeremy Allison
6ddcd8a3bc Fixup passdb stuff to add new nisplus and ldap backends.
Jeremy.
(This used to be commit 611bf806d5)
2001-09-25 20:21:21 +00:00
Motonobu Takahashi
c1af3aabcf sorry to forget re-run autoconf again...
(This used to be commit 322ba52f71)
2001-09-25 17:41:35 +00:00
Motonobu Takahashi
1817c231c7 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
(This used to be commit 9ec2d5e96e)
2001-09-25 17:40:12 +00:00
Andrew Bartlett
00842ae253 Don't segfault when deleting accounts not in /etc/passwd. The RID we want is
the one in the sampass anyway.

Andrew Bartlett
(This used to be commit 29b7434293)
2001-09-25 14:40:25 +00:00
Andrew Bartlett
cc96a00014 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.
(This used to be commit cad971f4c3)
2001-09-25 14:11:28 +00:00
Simo Sorce
76c8d7a579 memory leak fixes ..
(This used to be commit 7f07004571)
2001-09-25 09:58:36 +00:00
Simo Sorce
deed36e40f - the inactive core of the new mangling code that use tdb
- some more utils for unicode string manipulation
(This used to be commit 4ade36446e)
2001-09-25 09:57:06 +00:00
Andrew Tridgell
666f8a09b2 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!
(This used to be commit fdc9952391)
2001-09-25 06:39:41 +00:00
Andrew Tridgell
827e189778 fixed a typo
(This used to be commit 11a2808e10)
2001-09-25 06:38:07 +00:00
Andrew Tridgell
4fe127dbe8 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.
(This used to be commit eb668b54af)
2001-09-25 05:20:43 +00:00
Andrew Bartlett
2bfd6d56cd Change ./configure.developer to stay in effect across a
'./config.status --recheck' by making it a real configure option.

reran autoconf
(This used to be commit 23173125cd)
2001-09-25 05:08:05 +00:00
Andrew Tridgell
c386d8bdd0 allow all ucs2 chars in utf8, rather than mapping some to a single
char like libiconv does
(This used to be commit e13e8b190c)
2001-09-25 04:27:59 +00:00
Andrew Tridgell
e3249d0196 added cli_qpathinfo_alt_name() for fetching the 8.3 name of a file
(This used to be commit b2eb7feb7f)
2001-09-25 04:25:49 +00:00
Andrew Bartlett
f3d8f6b198 Try to fix up manpage installation
(This used to be commit a302bb20e2)
2001-09-25 02:01:29 +00:00
Jeremy Allison
008ba27b28 Fixed enumeration of large numbers of groups from a Samba DC.
Tidied up debug messages in lib/messages.c
Jeremy.
(This used to be commit dfb58f2276)
2001-09-25 00:50:37 +00:00
Jeremy Allison
be6023b2fb Log sys_acl_set_XX at level 2 not zero.
Jeremy.
(This used to be commit 4a54a633c5)
2001-09-25 00:05:26 +00:00
Jeremy Allison
abaa4ab96a Change log message to 2 from zero when failing to create directory.
Stops spurious profile creation messages.
Jeremy.
(This used to be commit fa74d07207)
2001-09-24 23:50:28 +00:00
Jeremy Allison
fe1950562d Removed extra '()' s.
Jeremy.
(This used to be commit b5f4a97bb0)
2001-09-24 21:53:34 +00:00
Motonobu Takahashi
14403d5e8a fixed a typo in installman.sh
fixed a problem that source/install-sh is not executable
(This used to be commit c2e256c18c)
2001-09-24 18:22:46 +00:00
Motonobu Takahashi
fce47dc67a fixed a typo
(This used to be commit 87a945f13d)
2001-09-24 16:38:54 +00:00
Motonobu Takahashi
1207c43204 added files and directories to support gettext() feature
Also added some po files to support:
    English, Japanese, Polish, Turlish
(This used to be commit 736b713c49)
2001-09-24 16:13:06 +00:00
Motonobu Takahashi
b8369b62c2 Update configure from configure.in
(This used to be commit 50a61b221b)
2001-09-24 16:02:05 +00:00
Motonobu Takahashi
96db4b1ba3 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.
(This used to be commit 486b79a6fc)
2001-09-24 15:55:09 +00:00
Andrew Tridgell
79b5b1aebf fixed a silly off by 1 bug
(This used to be commit e558ab6ac8)
2001-09-24 06:24:14 +00:00
Andrew Tridgell
1c29d9d8f0 fixed bug in POST var handling
(This used to be commit 73f10d3ef6)
2001-09-24 06:02:31 +00:00
Andrew Tridgell
7ef445e226 tdbtorture updates from when I was trying to track down the hp tdb bug
(This used to be commit b8d9d1fca3)
2001-09-24 04:56:56 +00:00