metze/samba/wip.git
22 years agoRemoved 'extern int DEBUGLEVEL' as it is now in the smb.h header.
Tim Potter [Tue, 2 Oct 2001 04:29:50 +0000 (04:29 +0000)]
Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.
(This used to be commit 2d0922b0eabfdc0aaf1d0797482fef47ed7fde8e)

22 years agoAdded copyright (not sure who owns it though) and #include guards.
Tim Potter [Tue, 2 Oct 2001 03:46:12 +0000 (03:46 +0000)]
Added copyright (not sure who owns it though) and #include guards.
(This used to be commit f9eb370806002eea0658f072988d96fca71bf18f)

22 years agoAdded copyright and include guards.
Tim Potter [Tue, 2 Oct 2001 03:43:26 +0000 (03:43 +0000)]
Added copyright and include guards.
(This used to be commit 9efa93556e3ed444b075a06d2706111b89a0e099)

22 years agohonor the ACB_PWNOEXP flag in smbpasswd
Andrew Tridgell [Mon, 1 Oct 2001 13:07:46 +0000 (13:07 +0000)]
honor the ACB_PWNOEXP flag in smbpasswd
(This used to be commit 70b7c900c907c4620faa7d82845296298b3820ff)

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
(This used to be commit 11075f543470c3283accce0246d0b2983420695a)

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.
(This used to be commit 90dcbe16be065e2113fba1d3cee28f40be1bb86c)

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
(This used to be commit 57196635d9b7edfcbfe1708dd22308ab30c02240)

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 -)-----
(This used to be commit 14bfd9107a9c875c54e281262f8061c20a5e9398)

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.
(This used to be commit 7802bc94e78932d24eb6658edc14d0d051246208)

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.
(This used to be commit 663c1c91bdd020e2e8266d25909db12b28fbb7d8)

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.
(This used to be commit 05910483351e9ef6375e4c49403ebe21b56315a9)

22 years agomerge from 2.2
Gerald Carter [Sun, 30 Sep 2001 01:33:02 +0000 (01:33 +0000)]
merge from 2.2
(This used to be commit c308459bda3f3036c305ee7b9307f740aec66811)

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

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
(This used to be commit a91777fb4711bfffafa96e0393ad8159b30a8853)

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
(This used to be commit 5ab220efd7a1532e11370cb0fc9854d610a7f3d7)

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...
(This used to be commit a4c746ac474e2e4cead78076ffe2109fab74aefe)

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.
(This used to be commit ca350fdf0343b0bc5e78a35a7a2345ada8aca410)

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
(This used to be commit 6b45e342fd1ed82d7f5bd613048fe862a6a6f2a1)

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
(This used to be commit 762c8758a7869809d89b4da9c2a5249678942930)

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.
(This used to be commit d38bc1dceccaa4cbdaf3ac4d561225229161714a)

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)
(This used to be commit b648cc669d16eb40b477c8dc51efeab485a15de5)

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.
(This used to be commit d0628d0d2d5f5366179d2508456ae06ce3879be3)

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.
(This used to be commit 4c5158d1e5620ccc3f2812a3fbedcb60a67caecc)

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
(This used to be commit 1f83184f881d0cabb698947660a12f729e625fae)

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.
(This used to be commit e25dc68843ed10d8454cb8166c39ff4b2e6a4159)

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.
(This used to be commit 76fac3eb945c7ced28c5685849d3616bb7c89ca2)

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.
(This used to be commit 65bf4a36ef5967b0844ab985d7b3ea31138dd4c5)

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
(This used to be commit 69a3277fc5be35536168ba195968b8b76f0b5954)

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.
(This used to be commit 2d1aabb6d4bf23985a9ce0f7e065292aacedc80a)

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
(This used to be commit e3b7cac47f4fd9dff289a367ef6649b14c117d17)

22 years agoKill unused variables
Andrew Bartlett [Thu, 27 Sep 2001 09:18:13 +0000 (09:18 +0000)]
Kill unused variables
(This used to be commit 758d923fa183b50acab9928e402f17bd25ba8f41)

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
(This used to be commit a41fb44f5e90cf8734d57217e836e14f4a80bd47)

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
(This used to be commit 9d8cbf3d5db35df6aa50636a48444caf10441c8c)

22 years agominor fixes
Simo Sorce [Thu, 27 Sep 2001 02:05:30 +0000 (02:05 +0000)]
minor fixes
(This used to be commit 57e639bbdd115b51362caf7e3db4ba34ccdeddc2)

22 years agofixed compilation of tdbtorture
Andrew Tridgell [Thu, 27 Sep 2001 01:57:02 +0000 (01:57 +0000)]
fixed compilation of tdbtorture
(This used to be commit 2f44756233e2655856f003bb15c3898118756b98)

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
(This used to be commit efc6df5a3914da9e7b792ccaccd1403c72c09f78)

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

Volker
(This used to be commit 50ea73426f58070859bbbe769c8353a11ff33dc9)

22 years agomerge from 2.2
Gerald Carter [Wed, 26 Sep 2001 14:40:21 +0000 (14:40 +0000)]
merge from 2.2
(This used to be commit 247b9c3eba78f0ddd26d836e5e18f6630bf302c7)

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
(This used to be commit c04f063573c61d8ef3f43815bbb9b6b076dc23eb)

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
(This used to be commit da4873d889928e9bd88e736e26e4e77e87bcd931)

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.
(This used to be commit 53c1c5091ea4e3ccc294f8b6f132be78c11c431f)

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
(This used to be commit 37655b42897031f754d436435e64a2548de756b5)

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.
(This used to be commit ce676f8bfc6222df1e05b164420efab30eb1b2e1)

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
(This used to be commit 42402c87d6bcff71b700e497b74d2600d7ce8b95)

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
(This used to be commit 27f0510a0b458792293d5ce2957f61383569f62f)

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...
(This used to be commit 540abc8125f1b821bd362dc0d8c19a107382479f)

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
(This used to be commit f0f315f31533bb5dc47d27cd6823ad0b146f1ff9)

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.
(This used to be commit 33e3591b2db377e720ec484872e2cbe7343350b1)

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
(This used to be commit f7ed0ecc14aeba5ad260f24a76ced70cf52f8e48)

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.
(This used to be commit e0e05cb5a51e0e46162febd0a45ea4f59b6f6573)

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.
(This used to be commit 3f10b045666479e3e1981b09fcaa0d0810422fcb)

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.
(This used to be commit 0b9e13530d728ef3c19d6ff05d74b7e594bf9a4c)

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.
(This used to be commit bca6419447e926e51aeecf3e484228f640cecb84)

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.
(This used to be commit 611bf806d569b70edabbc04a2f5408142370a550)

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...
(This used to be commit 322ba52f71045002c6b969fb87932ee8b7d578c8)

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
(This used to be commit 9ec2d5e96ebb907e66250772057bf5e2601f8ec9)

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
(This used to be commit 29b7434293d7778376486b241f9458a71fa843a6)

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.
(This used to be commit cad971f4c37042c4e9b6e6332e55757473f6da78)

22 years agomemory leak fixes ..
Simo Sorce [Tue, 25 Sep 2001 09:58:36 +0000 (09:58 +0000)]
memory leak fixes ..
(This used to be commit 7f07004571ad1b8d1ce787f6788b4c4d8685db37)

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
(This used to be commit 4ade36446e7dee1c3828d8c822f047c6e891a644)

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!
(This used to be commit fdc9952391027e209fbd24f7794b1c2b551b1f9f)

22 years agofixed a typo
Andrew Tridgell [Tue, 25 Sep 2001 06:38:07 +0000 (06:38 +0000)]
fixed a typo
(This used to be commit 11a2808e10bb7885da04c19c261d3876c31ac08d)

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.
(This used to be commit eb668b54af4925194c07b217724657f406ec00d0)

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
(This used to be commit 23173125cd124508a080cfc11436273efcbeedb6)

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
(This used to be commit e13e8b190c70136cb2c3588bdcf7328a7f61d152)

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
(This used to be commit b2eb7feb7f5bafe953fdeb92daaf9e4f08e44983)

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
(This used to be commit a302bb20e28ea2e4d04eca34a23ff42e9bc07b05)

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.
(This used to be commit dfb58f227609d6c8a255677b85ec853efa19f602)

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.
(This used to be commit 4a54a633c59a18b387427e89266e294bdddf8574)

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.
(This used to be commit fa74d07207fa9024b6ebdb10686b032ef6673d18)

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

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
(This used to be commit c2e256c18cbaa1145ab6ca8ad59baadca36abbdd)

22 years agofixed a typo
Motonobu Takahashi [Mon, 24 Sep 2001 16:38:54 +0000 (16:38 +0000)]
fixed a typo
(This used to be commit 87a945f13d2f241facdd3a1bdc636193339f1697)

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
(This used to be commit 736b713c49ebe45923169b70f5c47f5afda8d94a)

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
(This used to be commit 50a61b221ba97a41ecc52e862f7b41bc18b61852)

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.
(This used to be commit 486b79a6fc4ba20a751aab544bd0f7ccff2b3d19)

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
(This used to be commit 1e77e87dcf782a0b3b2f0509385b2edad6113a05)

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
(This used to be commit e558ab6ac8930e3393291fe12289ad43175b8a1d)

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
(This used to be commit 73f10d3ef6de2dbcb23f93ef93eb9e7053ebf26b)

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
(This used to be commit 3a2a96772304bbf04a2bdb2d3a8f9d92df62fc5f)

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
(This used to be commit b8d9d1fca3eec5150fb9784f1d0157a82e60cebd)

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
(This used to be commit cd6478ad9890949d0ef34a7078ec5518debe4a3c)

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

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.
(This used to be commit b6048e28ab996ba5581cfa3b50401c0f775befdd)

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.
(This used to be commit d417b6b5cbdbb244cc683387d73a9200eef53427)

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
(This used to be commit 67947bf6e31ee9758f8a2186f83031ba21b716f2)

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
(This used to be commit e78d0a3615d74cdd023d2d623abc27ac59356ae0)

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.
(This used to be commit bc7963bd643422cce081b6284e3bdd49ae3a02ab)

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
(This used to be commit d1bc778301b31d77fdc3837ec3cff24ce37adcd7)

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.
(This used to be commit 59a4684201fb72989698db5ac8169bd8880bd9a7)

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
(This used to be commit c82f7828c05c747a5782d10c68cc2df80d4071bd)

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
(This used to be commit 9ecd9db4efc7b736bef0e01a5e157e149a381587)

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
(This used to be commit 374f76fa2d5dcd036943c3f968a94f097a971ac7)

22 years agosmbmount fixes from Urban.
Jeremy Allison [Thu, 20 Sep 2001 21:06:02 +0000 (21:06 +0000)]
smbmount fixes from Urban.
Jeremy.
(This used to be commit 73ec9392396af6183bdf43b9f8ac0a6a0359a074)

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.
(This used to be commit 2c2317c56ee13abdbdbc866363c3b52dab826e3c)

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).
(This used to be commit bf81f0021328da97afe58cc17317b15ec1b3cc96)

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.
(This used to be commit 4df974527c7dbe88e7cbe9feb8e87f7ce89012b2)

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.
(This used to be commit 5f5b4b48ca78b3981001965058a2b4e796ba815c)

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
(This used to be commit 99e8a263ada41de2662a0290fda3dd9df3ac0cd4)

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
(This used to be commit 9e5a1d1623872a598c936e596270abe519c36e97)