1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-15 05:57:49 +03:00

18919 Commits

Author SHA1 Message Date
Günther Deschner
e6d52c1e9d r13492: As noone objected on the mailing-list:
Fix parse_domain_user to fail when splitting a full name like "DOM\user"
when "winbind use default domain" and "winbind trusted domains only" are
not enabled.

This allows pam_winbind to behave correctly when more modules are
stacked in the "account" or "password" PAM facility. pam_winbindd calls
WINBINDD_GETPWNAM which can decide whether or not a user is a winbind
user and return correct PAM error codes.

Guenther
2007-10-10 11:10:06 -05:00
Jeremy Allison
9a08383707 r13491: Fix bug # 3498 from jason@ncac.gwu.edu. Unsigned comparison
with < 0.
Jeremy.
2007-10-10 11:10:06 -05:00
Jeremy Allison
4204794cc7 r13489: Fix #3496 from jason@ncac.gwu.edu. Variable set but never used.
Jeremy.
2007-10-10 11:10:06 -05:00
Volker Lendecke
62b02a6843 r13486: Two more -- fix bug 3503 2007-10-10 11:10:05 -05:00
James Peach
a78d94f539 r13484: Add missing semi-colon. 2007-10-10 11:10:05 -05:00
James Peach
1dce945ccb r13482: Push the FAM notification file descriptor into the select
set to avoid unnecessary polling.
2007-10-10 11:10:05 -05:00
Volker Lendecke
c15f1d553f r13477: Fix code before declaration 2007-10-10 11:10:05 -05:00
Jeremy Allison
e8e2fc79b4 r13475: Fix erroneous initialization caused by my renaming types.
Jeremy.
2007-10-10 11:10:05 -05:00
Jeremy Allison
b9b8cd1752 r13473: Back port r13470, r13471, r13472 from Samba4. Thanks Andrew:
-----------------------------------
Thanks to a report from VL:

We were causing mayhem by weakening the keys at the wrong point in time.

I think this is the correct place to do it.  The session key for SMB
signing, and the 'smb session key' (used for encrypting password sets)
is never weakened.

The session key used for bulk data encryption/signing is weakened.

This also makes more sense, when we look at the NTLM2 code.

Andrew Bartlett
-----------------------------------
With more 'try all options' testing, I found this 'simple' but in the
NTLM2 signing code.

Andrew Bartlett
-----------------------------------
After Volker's advise, try every combination of parameters.  This
isn't every parameter on NTLMSSP, but it is most of the important
ones.

This showed up that we had the '128bit && LM_KEY' case messed up.
This isn't supported, so we must look instead at the 56 bit flag.

Andrew Bartlett
-----------------------------------

We should now try retesting with NT4. This should be standalone
enough to port into a SAMBA_3_0_RELEASE branch fix.

Jeremy.
2007-10-10 11:10:05 -05:00
Gerald Carter
7a2da5f0cc r13460: by popular demand....
* remove pdb_context data structure
* set default group for DOMAIN_RID_GUEST user as RID 513 (just
  like Windows)
* Allow RID 513 to resolve to always resolve to a name
* Remove auto mapping of guest account primary group given the
  previous 2 changes
2007-10-10 11:10:04 -05:00
Jeremy Allison
f1a362580a r13458: Add parsing functions - but stub internals for lookupnames3 and 4.
Jeremy.
2007-10-10 11:10:04 -05:00
Jeremy Allison
b57406c89f r13456: Add lsa_lookup_names2.
Jeremy.
2007-10-10 11:10:04 -05:00
Jeremy Allison
2274709587 r13455: Prepare to add lookupnames2.
Jeremy.
2007-10-10 11:10:04 -05:00
Günther Deschner
d27771ca1d r13451: Fix build warning.
Guenther
2007-10-10 11:10:04 -05:00
Jeremy Allison
a9e1d0f3b4 r13449: Ensure we don't crash if no dc struct on pipe.
Jeremy.
2007-10-10 11:10:04 -05:00
Günther Deschner
7eacb47660 r13448: Fix the build (again).
Guenther
2007-10-10 11:10:03 -05:00
Jeremy Allison
a164cfab42 r13447: Added LSA_LOOKUPSIDS2 and LSA_LOOKUPSIDS3.
Jeremy.
2007-10-10 11:10:03 -05:00
Günther Deschner
98d3c63e04 r13445: We already made the decision whether to include the dominfo and
changereject.

Guenther
2007-10-10 11:10:03 -05:00
Günther Deschner
58baf718be r13444: Add REJECT_REASON_OTHER for samr_chgpasswd_user3
Guenther
2007-10-10 11:10:03 -05:00
Günther Deschner
40a21776a7 r13443: Fix the build.
Guenther
2007-10-10 11:10:03 -05:00
Günther Deschner
f60eddc0a4 r13442: Implement samr_chgpasswd_user3 server-side.
Guenther
2007-10-10 11:10:03 -05:00
Jeremy Allison
9437ffc84f r13439: Fix NET_SAM_LOGON_EX.
Jeremy.
2007-10-10 11:10:02 -05:00
Jeremy Allison
f58d0ebf74 r13436: Add in NET_SAM_LOGON_EX. Still needs testing.
Jeremy
2007-10-10 11:10:02 -05:00
Jeremy Allison
58544eb3c8 r13434: Add stub for NET_SAM_LOGON_EX.
Jeremy.
2007-10-10 11:10:02 -05:00
Jeremy Allison
666b03b4a9 r13433: Get ready to implement NET_SAM_LOGON_EX.
Jeremy.
2007-10-10 11:10:01 -05:00
Jeremy Allison
95793d7e64 r13427: Fix ctime -> st_ctime.
Jeremy.
2007-10-10 11:10:01 -05:00
James Peach
30122f61c3 r13425: Revert all the "clever" compiler options checks. They broke
the build on Solaris, AIX and S390. The fundamental problem is
that macros like AX_CFLAGS_IRIX_OPTION can spuriously succeed.
2007-10-10 11:10:01 -05:00
James Peach
341d554e2f r13424: Don't attempt to use cc -O2. This breaks the solaris build. 2007-10-10 11:10:01 -05:00
Jeremy Allison
07132d8796 r13423: Write wrapper functions (and configure tests) so we can
always assume we can get a struct timespec out of a stat
struct. This will allow us to portably move to nsec timestamps
on files and directories in the file server code in future.
Jeremy.
2007-10-10 11:10:01 -05:00
James Peach
5e57021723 r13420: Support profile-guided optimisation in the build system. This is
implemented for gcc 3.x, gcc 4.x and MIPSPro compilers.
2007-10-10 11:10:01 -05:00
James Peach
eb3ba826ef r13418: Formalise support for checking compiler options. 2007-10-10 11:10:00 -05:00
Lars Müller
b28e43427b r13417: Add .2 to the SONAME as version suffix if we link the nss modules on
linux.

Heads up: This might be required on other OS using glibc too.
2007-10-10 11:10:00 -05:00
Lars Müller
e64134a859 r13416: Remove superfluous -lc while linking libnss_wins.so and pam_winbind.so. 2007-10-10 11:10:00 -05:00
Jeremy Allison
89db006997 r13412: Don't use arbitrary uint32 size for uid and gid storage. Use
correct system size. Fixed a bug that was accidentally introduced
by use of uint32 - uid was stored twice, not uid and gid.
Jeremy.
2007-10-10 11:10:00 -05:00
Simo Sorce
46f9f7a6f0 r13411: Sync with the latest fix I've made to package 3.0.21b 2007-10-10 11:10:00 -05:00
Günther Deschner
9b19a68456 r13410: Dump a netbootGUID as a GUID.
Guenther
2007-10-10 11:09:59 -05:00
Günther Deschner
286f6fc233 r13409: No functional changes, just some DEBUG cleanup.
Guenther
2007-10-10 11:09:59 -05:00
Günther Deschner
cf86d4c9f0 r13408: Remove C++ comments (# 3494)
Guenther
2007-10-10 11:09:59 -05:00
Jeremy Allison
5b3c2e63c7 r13407: Change the credentials code to be more like the Samba4 structure,
makes fixes much easier to port. Fix the size of dc->sess_key to
be 16 bytes, not 8 bytes - only store 8 bytes in the inter-smbd
store in secrets.tdb though. Should fix some uses of the dc->sess_key
where we where assuming we could read 16 bytes.
Jeremy.
2007-10-10 11:09:59 -05:00
Jeremy Allison
8ae70122b7 r13399: Get closer to passing RPC-SCHANNEL test.
Jeremy.
2007-10-10 11:09:59 -05:00
Jeremy Allison
205db6968a r13396: Add in userinfo26, re-enable userinfo25 - took the knowledge
from Samba4 on how to decode the 532 byte password buffers.
Getting closer to passing samba4 RPC-SCHANNEL test.
Jeremy.
2007-10-10 11:09:59 -05:00
Volker Lendecke
df6d67cd10 r13394: Fix rpcclient to obey the -W parameter. Not that I *like* the smbclient
solution, but it does this particular job... :-)

Volker
2007-10-10 11:09:58 -05:00
Gerald Carter
6c4ede6cee r13393: Do not initialize the lp_svcctl_list() value since it is handled
internally in services_db.c now.  This prevents internal services from
being listed twice (one internal and one external) when no
'svcctl list' parameter is explcitly set in smb.conf
2007-10-10 11:09:58 -05:00
Gerald Carter
e0c4e5cfde r13392: check gcc version before trying 'make pch'. remove some historical actions 2007-10-10 11:09:58 -05:00
Günther Deschner
e9ccebf45a r13391: Only fall into password change when ACB_PWNOEXP is not set
(got it wrong the first time as administrator has this flag set by
default).

Guenther
2007-10-10 11:09:58 -05:00
Volker Lendecke
d3b66fb871 r13389: get_ldap_filter is only used once, make it static 2007-10-10 11:09:58 -05:00
Jeremy Allison
6f8334ad31 r13386: Fix parsing of SAMR_Q_CONNECT_ANON.
Jeremy.
2007-10-10 11:09:58 -05:00
Gerald Carter
064338c6f5 r13384: Adding in some more SuSE patches
* uninitialized-variables.diff
* samba-smbadduser.diff
* samba-implicit_decl.patch
2007-10-10 11:09:57 -05:00
Gerald Carter
1b955bbf59 r13383: pulling in swat-welcome patch from SuSE packaging 2007-10-10 11:09:57 -05:00
Gerald Carter
9eb743584d r13382: added server affinity cache stores for 'net rpc join' and trusted domain code 2007-10-10 11:09:57 -05:00