1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-10 13:57:47 +03:00

13254 Commits

Author SHA1 Message Date
Andrew Bartlett
e2d301accf Clarify comment on set_effective_uid()
Andrew Bartlett
(This used to be commit ca24ae50ea37942dde335e97019880b6ce518a6a)
2004-01-27 10:01:30 +00:00
Andrew Bartlett
36abff1609 Revise our server-side password change code to cope with the various
different feilds that different clients send.  (For example, not all clients
send both password types).

This also cleans up the code to make it clearer what is really going on,
and to make better use of common functions.

Andrew Bartlett
(This used to be commit 934e9f3bd0e8a938263978ffcd1fef51e42fa5e4)
2004-01-26 09:03:09 +00:00
Andrew Bartlett
784b05c489 This adds client-side support for the unicode/SAMR password change scheme.
As well as avoiding DOS charset issues, this scheme returns useful error
codes, that we can map back via the pam interface.

This patch also cleans up the interfaces used for password buffers, to
avoid duplication of code.

Andrew Bartlett
(This used to be commit 2a2b1f0c872d154fbcce71a250e23dfad085ba1e)
2004-01-26 08:45:02 +00:00
Andrew Bartlett
8be4584979 Add a few more NTSTATUS <=> PAM error mappings.
Andrew Bartlett
(This used to be commit 7495cafd42617c0aa2ba9de69f87426ecacc1297)
2004-01-26 08:38:34 +00:00
Andrew Bartlett
c26e4057ae Patch by Luca Bolcioni <Luca.Bolcioni@yacme.com>. Ensure we always
initialise the session key.  Fixes segfaults with security=server, and
encrypt passwords = no.

Andrew Bartlett
(This used to be commit 493ac5ce98fa3fcddb596139240dd762e70d4ac3)
2004-01-26 02:19:44 +00:00
Volker Lendecke
7ff912521a Fix memleak just introduced. Thanks to abartlet :-)
Volker
(This used to be commit be485eea81c6bab8067642c26e41a14652ce7ee6)
2004-01-25 10:14:50 +00:00
Volker Lendecke
4d6b478b19 On my SuSE 8.2 (glibc 2.3.2) the getpwnam inside pdb_getsampwnam reset
the surrounding getpwent loop to the first entry. So smbd went into an
endless loop.

Volker
(This used to be commit 1797b16fadd61ef1f30a1be950e3afe7a2e1d791)
2004-01-25 10:04:10 +00:00
Andrew Bartlett
b31ec210fc Fix the initialisation vectors for NTLM2, so that they at least make sense,
even if they don't work yet.

Andrew Bartlett
(This used to be commit 636b98dab9bc27f55bdc65d7dedb58cdf8d8563b)
2004-01-25 01:11:10 +00:00
Andrew Bartlett
181f2be495 If we are providing strndup(), ensure we provide a prototype too.
Andrew Bartlett
(This used to be commit 109627145463fc4c00b8f6664e3f2e48e0305d56)
2004-01-25 01:02:39 +00:00
Andrew Bartlett
236adfd9f4 Fix removal of attributes in LDAP - we would not actually remove the old
value in the previous code.

Andrew Bartlett
(This used to be commit c97d3eb1622ee25c24b0cd81b65ec7d4b854e604)
2004-01-25 00:50:39 +00:00
Andrew Bartlett
eade7ab769 A Samba DC is nothing special these days - so every domain controller
location packet from the client is not a DEBUG(1) event anymore...

(Yes, we printed this for each of these UDP packets...)

Andrew Bartlett
(This used to be commit 4ca0ab7506f15112d996bf68278e54e535c4cab4)
2004-01-24 10:46:55 +00:00
Volker Lendecke
9038e9e2c3 Fix typo
(This used to be commit 09a30014233f111fe978effb12ecb2f88b710cb5)
2004-01-23 12:57:29 +00:00
Volker Lendecke
aa7a675025 Fix decoding of base64. We got the length wrong when the result was not
an exact multiple of 3.

I also wrote a torture test and it survived some minutes of random stuff
coded/decoded up to 16 MB data. But that would be a bit too embarassing to
commit... :-)

Volker
(This used to be commit 6d22f0d8c36bea618ad0adf4eefc2f5a37cb3fda)
2004-01-23 12:04:07 +00:00
Andrew Bartlett
8975dde004 Fix for debian Bug#225328 by LaMont Jones <lamont@debian.org>, where
the failure of our LFS test caused the _GNU_SOURCE define not to be
added, causeing strndup() not to be defined...

I'll into when we really should define _GNU_SOURCE shortly, but the
fix is correct anyway.

Andrew Bartlett
(This used to be commit aca07f33a2f3cca48b44ac92d3b1b35592ffadc7)
2004-01-22 10:12:26 +00:00
Stefan Metzmacher
fc33274a27 * Add SIGABRT to fault handling
so we now got a backtrace, if we crash
  in libldap with SIGABRT

metze
(This used to be commit b5e814294eb3ce44131084d89014cb8a8840fe74)
2004-01-22 01:50:58 +00:00
Volker Lendecke
f9e9acb07f Fix compiler warning
(This used to be commit 413ed77142377351a0ed1c6cf800a14809e56e9c)
2004-01-21 14:48:02 +00:00
Volker Lendecke
28cc456e08 Display some nicer error messages for login via 'net'. I don't
see a reason why we have so many special cases and not simply use
nt_errstr(nt_status).

Comments?

Volker
(This used to be commit ea1a5fb30357f4fe70139ff5583d09cef9fdaa62)
2004-01-21 14:36:56 +00:00
Jeremy Allison
bb1119acca Fix for a signing bug when the mid wraps.
Found by Fran Fabrizio <fran@cis.uab.edu>.
Add to the *start* of the list not the end of the list.
This ensures that the *last* send sequence with this mid
is returned by preference.
This can happen if the mid wraps and one of the early
mid numbers didn't get a reply and is still lurking on
the list.
Jeremy.
(This used to be commit 25d739978fe9081ba0946c36901492127248e3e0)
2004-01-17 00:30:35 +00:00
Gerald Carter
0cf45c96b4 fix another bug caused by cli_lsa_query_info_policy() changes
(This used to be commit faec928564529c7ffb2653943be9cafbfb9e4688)
2004-01-16 22:15:35 +00:00
Jim McDonough
261fba09ef Fix another join problem. Don't use a TALLOC_CTX before it has been
initialized.

Also split out the oldstyle join into a new fn, allowing us to call it
with no failure message from net rpc join, but displaying a failure message
when used with net rpc oldjoin.
(This used to be commit 07d6ed4343d7a2575dc974bfbc498b14784b2dc1)
2004-01-16 15:07:28 +00:00
Volker Lendecke
4fd80158ab Patch from "Stoian Ivanov" <sdr@bultra.com>: Add -g (greppable..) to
smbclient -L to make the output usable in pipes.

Volker
(This used to be commit 4c904210705f2be16daad21c07a4fb5117a3360b)
2004-01-16 15:01:09 +00:00
Volker Lendecke
fadc012803 Commit sid<->[ug]id extensions to libnss_winbind.so on Linux, as well as a
factored-out nss_winbind.[ch]. I took tridge's public domain license comment
for the nss_winbind.[ch].

This is probably not the last word on that extension, but as it is quite
non-intrusive to the main samba code, I would like to give it a start.

Volker
(This used to be commit da5944129fad39010544b82649dfe5531a504ecf)
2004-01-16 13:11:01 +00:00
Gerald Carter
4180525599 Bug 381: check builtin (not local) group SID. Patch from Jianliang Lu <j.lu@tiesse.com>
(This used to be commit 2fd2c07df42df42103e81f5eb39bd1778de6ca0a)
2004-01-15 20:47:30 +00:00
Gerald Carter
1c3ade4108 setting version to 3.0.2rc2
(This used to be commit db1c6721bfe72323978b2d2b7fbd7ef29b914573)
2004-01-15 20:32:27 +00:00
Jim McDonough
8083486dee Fix net rpc join (at least newstyle) after it was broken by changing
the parms to cli_lsa_query_info_policy without changing them here...
(This used to be commit a885df7635a9230bc6cca88e7e8fb1420c74c7fb)
2004-01-15 19:45:36 +00:00
Gerald Carter
b20f1a95a9 * BUG 446
- setup_logging() in smbclient to be interactive (remove the timestamps)
  - Fix bad return value in pull_ucs2( needs more testing to make sure this
    didn't break something else) that caused clistr_pull() to always read
    the same string from the buffer (pull_usc2() could return -1 if the original
    source length was given as -1)
  - increment some debugging messages to avoid printing them out so often
(This used to be commit 79fe75dcdf6cc38e18ca1231e4357893db4d4a08)
2004-01-15 19:03:18 +00:00
Gerald Carter
ad40c8a1f4 BUG 958; don't use the -N option when invoking smbclient from the smbtar script
(This used to be commit c51eaec4f09d9c191c6b24dadb1d12770b368da0)
2004-01-15 17:18:39 +00:00
Volker Lendecke
55d6877f0f reply_spnego_kerberos did not set the domain of the user handed to
register_vuid correctly. We ended up with the local netbios name in
substitutions for %D later.

Volker

P.S: Tridge, I can *really* see why you want to get rid of global variables
:-)
(This used to be commit 3d9931fe291559a907c3e172a66fbce1155497a3)
2004-01-15 17:17:58 +00:00
Volker Lendecke
3c3c7b329a Don't substitute stuff in lp_afs_username_map, this is explicitly
done later.

Volker
(This used to be commit c4a6151f469764444f4dab8bcae04e1a2bdb0b64)
2004-01-15 17:05:08 +00:00
Volker Lendecke
56c23c527b And another memory corruption in winbind. Arg 3 of safe_strcpy does not
include the terminating 0.

Volker
(This used to be commit 945c7807641e82500c84e833f03f381497f0a2d0)
2004-01-15 15:36:01 +00:00
Volker Lendecke
617d7c0bcd Fix a segfault in winbindd. Calling getusersids with a SID that results in 0
groups winbind ended up freeing an uninitialised pointer.

Volker
(This used to be commit cd89288e21ba13a9e97c548eccc15cef21a98d07)
2004-01-15 15:00:44 +00:00
Stefan Metzmacher
d5aecd1850 * Fix sys_chown() when no chown() is presend
metze
(This used to be commit b0c0d736919079afc4f9bf5a406000048d26fe71)
2004-01-15 09:08:06 +00:00
Stefan Metzmacher
9343c89cb4 * Fix XFS quotas: XFS_USER_QUOTA -> USRQUOTA
XFS_GROUP_QUOTA -> GRPQUOTA
* Fix disk_free calculation with group quotas.
* Add debug class 'quota' and a lot of DEBUG()'s
  to the quota code.

metze
(This used to be commit e9e5e2036f13ff847aa3ef52e8be657bef7d5774)
2004-01-15 08:49:30 +00:00
Gerald Carter
919c261a49 BUG 936: fix bind credentials for schannel binds in smbd (and add a comment to winbindd_cm about this
(This used to be commit 5134c6bcbc5180431e95a30559c453f3744fd427)
2004-01-15 06:55:10 +00:00
Tim Potter
c92a776bcf Fix for bug 905. Remove POBAD_CC as it doesn't seem to be applicable
anymore.
(This used to be commit 67d25f3de803f7e599c51cacd51367f124151d6b)
2004-01-15 06:51:20 +00:00
Gerald Carter
1cb47a2cb7 BUG 972; check pointer in cli_ds_getprimarydominfo() before trying to copy a structure
(This used to be commit 1c15bfacb45d42873f3d7e7cb55ba2cbbbe33d26)
2004-01-15 05:16:29 +00:00
Herb Lewis
be1b3604ef source/rpc_parse/parse_prs.c ZERO_STRUCTP(ps) not needed as it is done
in prs_init now

testsuite/printing/psec.c	cannot do a prs_mem_free() when tdb_prs_fetch fails
				as the prs structure has not been initialized
(This used to be commit a363e5d8c549861329506bd87c11d82ace5520e5)
2004-01-14 22:53:50 +00:00
Gerald Carter
2624dd0313 Fix initgroups() call nss_winbind on solaris; patch from John Klinger <john.klinger@lmco.com>
(This used to be commit 40b7d863dc246ea23ff3d9cdc167f1fb96166e1d)
2004-01-14 21:22:30 +00:00
Gerald Carter
bb104f31d5 bug 770; correct fix this time; Make sure that we send the SMBjobid for unix jobs back to the client. Allows windows client to remove print jobs submitted from lpr
(This used to be commit 514561118860f982c458930c34763dac9ce0554e)
2004-01-14 20:56:26 +00:00
Gerald Carter
e7615b5776 bug 660; using byte order safe macros (or tdb_unpack) when reading 2 or 4 byte values from a tdb buffer
(This used to be commit be9f25bea94415af6b631a9c6e7af28d9d6e6565)
2004-01-14 19:12:06 +00:00
Gerald Carter
1dce4ebed8 revert the cracklib changes until post 3.0.2
(This used to be commit 6202e0fa727a4307f51bf42f5ced401a7c7b8214)
2004-01-14 17:34:41 +00:00
Gerald Carter
fe48d1c800 * Revert to using rpc for mixed mode AD domains.
The reason for this are:
  (a) the set_dc_type_and_flags() cannot tell the different
      between connecting to an NT4 domain and an NT4 BDC
      of a mixed mode domain.
  (b) the connection management for the rpc backend only
      provides on named pipe per cli_state.  So it is possible
      to connect to an NT4 BDC for netlogon and an AD mixed mode
      DC for lsarpc.  RPC is the lowest common demonimator here.
  (c) Issue with the sequence number value between the
      highestCommittedUSN LDAP attribute and the seq_num returned
      via RPC.


We will revisit this later, but the changes need to make this
work right now are too broad and risky.
(This used to be commit 1ed2e521536108229d153c2996f4757d89461166)
2004-01-14 16:25:39 +00:00
Jeremy Allison
9bf45a0393 Remove duplicate extern.
Jeremy.
(This used to be commit fb088b5679f1def054d8b433c5e6c5b855411488)
2004-01-14 06:44:20 +00:00
Jeremy Allison
438bfa6efb Remove references to 'jn' which gcc-3.4 with precompiled headers
doesn't like.
Jeremy.
(This used to be commit da51988cfac91e63f6e0213701aad652bc1bd55e)
2004-01-14 06:41:50 +00:00
Stefan Metzmacher
2c1f07b66a fix XFS quotas the macro changed from HAVE_XFS_QUOTA -> HAVE_XFS_QUOTAS
metze
(This used to be commit c73e845055163c1d814710fe4d9960c7f3587f12)
2004-01-14 02:51:41 +00:00
Andrew Bartlett
ade34c9ade Remove duplicate comment.
Andrew Bartlett
(This used to be commit b0b2010461d8554334b033c4f07d78c308e73e7f)
2004-01-14 01:17:21 +00:00
Andrew Bartlett
0c0dfe4da5 Finish adding cracklib support - this adds the configure test to enable
it, on machines that actually have a working cracklib, for which we have
the correct path to the dictionary.

Andrew Bartlett
(This used to be commit 17518018c0264d2a8e4afbc712a22ef4a1a00003)
2004-01-14 01:14:22 +00:00
Gerald Carter
b085f0f08e * allow dns lookups to be disabled for DOMAIN#1c (and #1b)
names
* fix some a mispelled variable name
(This used to be commit bca702c97620ad8f66015d6e4b41abd4adf22076)
2004-01-13 19:42:53 +00:00
Andrew Bartlett
f203358fdb On systems without a working cracklib, ensure we don't include the header
(the actual call to crack was already in this #ifdef)

Andrew Bartlett
(This used to be commit 4a01f3dbb4a2e744b48bdb86c4d91ee4692d38e5)
2004-01-12 21:12:47 +00:00
Gerald Carter
31a3842644 fixing compile problems due to my recent ads.h changes
(This used to be commit d7b6298b9e4e7f83deaa2c6f3d711c390ff9cefd)
2004-01-12 14:26:50 +00:00