1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

6412 Commits

Author SHA1 Message Date
Jeremy Allison
3a17bab00f Ensure accessing NT member servers works with a Samba PDC. Don't
change these timestamp settings without good reason.
Remove CLEAR_IF_FIRST flag is tdb is read-only.
Jeremy.
(This used to be commit a71d9d98b013a6c30fd85524b7cdc929bdbd9bcb)
2001-10-03 22:58:37 +00:00
Simo Sorce
a42efb4971 fix some possible memleaks and not tested reallocs spotted by Andreas Moroder
(This used to be commit d30939a091b48f4d77f7618c75668ae151a5592e)
2001-10-03 21:10:29 +00:00
Andrew Tridgell
9d4e919f4a fixed basic ucs2 operation on big endian boxes. Still a bit more to
do, but at least you can connect now.
(This used to be commit 211aeffa1a770716f798fd6ba12ab29a95555526)
2001-10-03 14:55:45 +00:00
Andrew Tridgell
c388e744c4 set ACB_PWNOEXP by default on new accounts.
(This used to be commit ead3d41f1a8293bcd2062af918b58022f4d9b10e)
2001-10-03 13:07:02 +00:00
Andrew Tridgell
5640bb5953 removed old unused files
(This used to be commit f597cf047cd0b88ba11cbe0cfbb883bd7ba262a7)
2001-10-03 13:05:59 +00:00
Andrew Tridgell
9bcd133e9e switched over to a new method of handling uppercase/lowercase mappings
for unicode strings. The new method relies on 3 files that are mmap'd
at startup to provide the mapping tables. The upcase.dat and
lowcase.dat tables should be the same on all systems. The valid.dat
table says what characters are valid in 8.3 names, and differs between
systems. I'm committing the japanese valid.dat here, in future we need
some way of automatically installing and choosing a appropriate table.

This commit also adds my mini tdb based gettext replacement in
intl/lang_tdb.c. I have not enabled this yet and have not removed the
old gettext code as the new code is still being looked at by Monyo.

Right now the code assumes that the upcase.dat, lowcase.dat and
valid.dat files are installed in the Samba lib directory. That is not
a good choice, but I'll leave them there until we work out the new
install directory structure for Samba 3.0.

simo - please look at the isvalid_w() function and think about using
it in your new mangling code. That should be the final step to
correctly passing the chargen test code from monyo.
(This used to be commit 1c221994f118dd542a158b2db51e07d04d0e9314)
2001-10-03 12:18:20 +00:00
Jeremy Allison
5b24e783dd Fixup insure changes for rpcclient.
Jeremy.
(This used to be commit 4fdd45f3ccde89e2ed022f7bfd91c225af6f161b)
2001-10-03 03:05:55 +00:00
Jeremy Allison
4cfeacd871 Incorrect definition of debugf.
Jeremy.
(This used to be commit 9f5405d425b2391ccddd919835c9c07cf4b9bf16)
2001-10-03 01:45:51 +00:00
Jeremy Allison
facbdd692d Fixed up the change password bug when not using PAM.
The problem is we were trying to use mask_match as a generic
wildcard matcher for UNIX strings (like the password prompts).
We can't do that - we need a unix_wild_match (re-added into lib/util.c)
as the ms_fnmatch semantics for empty strings are completely wrong.
This caused partial reads to be accepted as correct passwd change
responses when they were not....
Also added paranioa test to stop passwd change being done as root
with no %u in the passwd program string.
Jeremy.
(This used to be commit 9333bbeb7627c8b21a3eaeae1683c34e17d14bf0)
2001-10-02 21:58:09 +00:00
Andrew Tridgell
e8547256f3 better method of generating the case equivalence table
interestingly, this shows that w2kp-jp and w2kp have the *same* case
equivalence table, but it is not the same as the Samba one.
(This used to be commit b97fbfcd7cfbafc40b4be558fb8d6e86ad656cb0)
2001-10-02 13:26:38 +00:00
Jeremy Allison
cb4b13a82b Fixed the bug with member servers in a Samba PDC hosted domain not allowing
other access. Problem was max time was being set to 0xffffffff, instead of
0x7fffffff.
Jeremy.
(This used to be commit 94403d841710391ec26539e4b4157439d5778ff7)
2001-10-02 06:57:18 +00:00
Andrew Tridgell
58bc10518b the CASETABLE torture target now generates the complete unicode
equivalence table for a server. This was inspired by the chargen win32
code from monyo.

This takes a *long* time to run against a Samba server due to the case
insensitive comparisons in the filesystem. That makes it a N^2
operation, and N is 64k. It is linear on NT.
(This used to be commit 441f9415b365787854fb0d3e04d1ea4938d7af73)
2001-10-02 05:52:11 +00:00
Tim Potter
dc1fc3ee8e Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.
(This used to be commit 2d0922b0eabfdc0aaf1d0797482fef47ed7fde8e)
2001-10-02 04:29:50 +00:00
Tim Potter
260002f0e7 Added copyright (not sure who owns it though) and #include guards.
(This used to be commit f9eb370806002eea0658f072988d96fca71bf18f)
2001-10-02 03:46:12 +00:00
Tim Potter
33fb598731 Added copyright and include guards.
(This used to be commit 9efa93556e3ed444b075a06d2706111b89a0e099)
2001-10-02 03:43:26 +00:00
Andrew Tridgell
cf2ec80d4e honor the ACB_PWNOEXP flag in smbpasswd
(This used to be commit 70b7c900c907c4620faa7d82845296298b3820ff)
2001-10-01 13:07:46 +00:00
Andrew Tridgell
c6d1e75664 - 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)
2001-10-01 10:54:11 +00:00
Andrew Bartlett
2e3be37878 Don't try to write the LM password in the NT password feild.
(This used to be commit 90dcbe16be065e2113fba1d3cee28f40be1bb86c)
2001-09-30 14:51:38 +00:00
Andrew Tridgell
b7ca6ec034 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)
2001-09-30 13:30:52 +00:00
Christopher R. Hertel
9a22ac94a4 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)
2001-09-30 06:49:44 +00:00
Andrew Bartlett
60d315cb72 Small changes to register_vuid ahead of a larger restructure.
(This used to be commit 7802bc94e78932d24eb6658edc14d0d051246208)
2001-09-30 04:28:43 +00:00
Andrew Bartlett
99b9f80852 Make header comment clearer, these are RIDs, not UIDs.
(This used to be commit 663c1c91bdd020e2e8266d25909db12b28fbb7d8)
2001-09-30 02:51:45 +00:00
Andrew Bartlett
73f8da3a87 Finally kill off the SMBENCRYPT() macro.
(This used to be commit 05910483351e9ef6375e4c49403ebe21b56315a9)
2001-09-30 01:39:47 +00:00
Gerald Carter
59681e1655 merge from 2.2
(This used to be commit c308459bda3f3036c305ee7b9307f740aec66811)
2001-09-30 01:33:02 +00:00
Motonobu Takahashi
14b47c8c53 fixed in *BSD
(This used to be commit d3cb139aff9d232b4d70b197e806759b6fbada3b)
2001-09-29 20:07:26 +00:00
Motonobu Takahashi
51bb6e8248 fixed not to install in *BSD, but perhaps on Solaris, cannot install
(This used to be commit a91777fb4711bfffafa96e0393ad8159b30a8853)
2001-09-29 20:06:35 +00:00
Simo Sorce
90841e8e13 undef the code for now
(This used to be commit 5ab220efd7a1532e11370cb0fc9854d610a7f3d7)
2001-09-29 16:20:15 +00:00
Simo Sorce
b01e2e7098 further devel and test kit.
first tests show it still does not work.
work in progress...
(This used to be commit a4c746ac474e2e4cead78076ffe2109fab74aefe)
2001-09-29 16:16:38 +00:00
Motonobu Takahashi
b4dc377673 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)
2001-09-29 16:07:01 +00:00
Andrew Bartlett
a28dd18fe7 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)
2001-09-29 13:14:19 +00:00
Andrew Bartlett
81697d5ebe 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)
2001-09-29 13:08:26 +00:00
Simo Sorce
14cc9a3101 return NT_STATUS_NO_MEMORY istead of NT_STATUS_OK if we are out of memory.
(This used to be commit d38bc1dceccaa4cbdaf3ac4d561225229161714a)
2001-09-29 12:26:40 +00:00
Andrew Bartlett
d25c2b146b Add a few const statements to various odd bits of the tree. (Fixes some
warnings)
(This used to be commit b648cc669d16eb40b477c8dc51efeab485a15de5)
2001-09-29 11:51:40 +00:00
Gerald Carter
00d1bccaab 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)
2001-09-29 04:04:35 +00:00
Jeremy Allison
bf1697bc88 Fixed CUPS detection - patch from Michael Sweet.
Jeremy.
(This used to be commit 4c5158d1e5620ccc3f2812a3fbedcb60a67caecc)
2001-09-28 18:07:11 +00:00
Andrew Bartlett
b2e39ddcf7 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)
2001-09-28 04:48:36 +00:00
Jeremy Allison
75c5061331 Removed smbpasswd_XX call (how did this get re-added, I removed all
these yesterday ?).
Jeremy.
(This used to be commit e25dc68843ed10d8454cb8166c39ff4b2e6a4159)
2001-09-27 21:27:12 +00:00
Jeremy Allison
a69e900d97 Sync 2.2.2 and HEAD (I will keep these the same if it kills me :-).
Jeremy.
(This used to be commit 76fac3eb945c7ced28c5685849d3616bb7c89ca2)
2001-09-27 21:20:14 +00:00
Jeremy Allison
3bd48ad718 Merge HEAD and 2.2 - try frantically to keep in sync.
Jeremy.
(This used to be commit 65bf4a36ef5967b0844ab985d7b3ea31138dd4c5)
2001-09-27 20:40:47 +00:00
Volker Lendecke
f7fb26f675 How often did I read the CVS commit message
"Always compile before commit" :-((

Volker
(This used to be commit 69a3277fc5be35536168ba195968b8b76f0b5954)
2001-09-27 16:28:50 +00:00
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 2d1aabb6d4bf23985a9ce0f7e065292aacedc80a)
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 e3b7cac47f4fd9dff289a367ef6649b14c117d17)
2001-09-27 09:36:38 +00:00
Andrew Bartlett
f6ce758e5b Kill unused variables
(This used to be commit 758d923fa183b50acab9928e402f17bd25ba8f41)
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 a41fb44f5e90cf8734d57217e836e14f4a80bd47)
2001-09-27 09:13:26 +00:00
Gerald Carter
0d76ac6331 sync up with 2.2
(This used to be commit 9d8cbf3d5db35df6aa50636a48444caf10441c8c)
2001-09-27 03:40:34 +00:00
Simo Sorce
59a02ecae1 minor fixes
(This used to be commit 57e639bbdd115b51362caf7e3db4ba34ccdeddc2)
2001-09-27 02:05:30 +00:00
Andrew Tridgell
c61d1a1679 fixed compilation of tdbtorture
(This used to be commit 2f44756233e2655856f003bb15c3898118756b98)
2001-09-27 01:57:02 +00:00
Gerald Carter
2c4d1d39b1 OpenSSL merge from 2.2
(This used to be commit efc6df5a3914da9e7b792ccaccd1403c72c09f78)
2001-09-26 17:29:53 +00:00
Volker Lendecke
29d3318437 From 2.2.
Volker
(This used to be commit 50ea73426f58070859bbbe769c8353a11ff33dc9)
2001-09-26 16:47:02 +00:00
Gerald Carter
c10dc7a4cc merge from 2.2
(This used to be commit 247b9c3eba78f0ddd26d836e5e18f6630bf302c7)
2001-09-26 14:40:21 +00:00