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

16552 Commits

Author SHA1 Message Date
Günther Deschner
e162253a32 r14675: Protect against null sids and rids in the cached credentials functions.
Guenther
2007-10-10 11:15:43 -05:00
Günther Deschner
24afdda2ae r14674: Further cleanup for cached logins, only dump hashes with DEBUG_PASSWORD.
Guenther
2007-10-10 11:15:43 -05:00
James Peach
0ebbfc867c r14669: Remove duplicate source caused by running patch(1) once too often. 2007-10-10 11:15:42 -05:00
James Peach
514a767c57 r14668: Set the FILE_STATUS_OFFLINE bit by observing the events a DMAPI-based
HSM is interested in. Tested on both IRIX and SLES9.
2007-10-10 11:15:42 -05:00
Derrell Lipman
203b4911c1 r14664: r13868@cabra: derrell | 2006-03-22 17:04:30 -0500
Implement enhancement request 3505.  Two additional features are added here.
 There is now a method of saving an opaque user data handle in the smbc_
 context, and there is now a way to request that the context be passed to the
 authentication function.  See examples/libsmbclient/testbrowse.c for an example
 of using these features.
2007-10-10 11:15:42 -05:00
Lars Müller
07a70f8f86 r14659: Fix installpammodules for shells where a
for module in ; do ... ; done

leads to an error (true64, solaris 8).

We now use {,UN}INSTALL_PAM_MODULES to get replaced by configure.
Therfore we don't run into the {,un}installpammodules rule if no PAM
module is requested.

Thanks to Björn Jacke for pointing to this issue.
2007-10-10 11:15:42 -05:00
Günther Deschner
6c4fe819c6 r14646: Adding samr querygroup infolevels 2 & 5.
Guenther
2007-10-10 11:15:42 -05:00
Günther Deschner
d45b9abb0e r14645: No idea how this happened, fixing the build.
Guenther
2007-10-10 11:15:41 -05:00
Günther Deschner
38b18f428b r14643: Merge dcerpc_errstr from Samba 4.
Might need to rework prs_dcerpc_status().

Guenther
2007-10-10 11:15:41 -05:00
Gerald Carter
db1162241f r14634: Many bug fixes thanks to train rides and overnight stays in airports
* Finally fix parsing idmap uid/gid ranges not to break with spaces
  surrounding the '-'
* Allow local groups to renamed by adding info level 2 to
  _samr_set_aliasinfo()
* Fix parsing bug in _samr_del_dom_alias() reply
* Prevent root from being deleted via Samba
* Prevent builting groups from being renamed or deleted
* Fix bug in pdb_tdb that broke renaming user accounts
* Make sure winbindd is running when trying to create the Administrators
  and Users BUILTIN groups automatically from smbd (and not just check the
  winbind nexted groups parameter value).
* Have the top level rid allocator verify that the RID it is about to
  grant is not already assigned in our own SAM (retries up to 250 times).
  This fixes passdb with existing SIDs assigned to users from the RID algorithm
  but not monotonically allocating the RIDs from passdb.
2007-10-10 11:15:41 -05:00
Stefan Metzmacher
899fd6808e r14632: add basic 'make test' using samba4's smbtorture
I'll try to add some tests using samba3's smbtorture and smbclient
later.

can someone check if this would be save to run on the build-farm
without leaking child processes...

metze
2007-10-10 11:15:40 -05:00
Lars Müller
7163c68605 r14631: Add {,un}installpammodules rule and add it to the install rule.
Nothing happens if PAM_MODULES is empty which is our default.

The default destination dir is "${LIBDIR}/security".  It's possible to
overwrite the default with --with-pammodulesdir while calling configure.
2007-10-10 11:15:40 -05:00
Stefan Metzmacher
1b6a643785 r14628: sync timelimit.c with the version from the build-farm repository
metze
2007-10-10 11:15:40 -05:00
Lars Müller
160626195b r14627: Adapt the linkage text from pam_smbpass to pam_winbind. 2007-10-10 11:15:40 -05:00
Lars Müller
94980a15be r14626: Only set libdir and mandir to the defaults if we haven't used --libdir
or --mandir to set them already.  Till now we overwrrote a setting made
with --libdir or --mandir.
2007-10-10 11:15:40 -05:00
Stefan Metzmacher
d9df1853b9 r14624: - add timelimit.c
- add configure tests --with-selftest-prefix=/tmp/samba-test
  this is needed because the path name of unix socket can only be 108 chars long
- add configure test --with-smbtorture4-path=/home/foo/prefix/samba4/bin/smbtorture
  this will be used to run samba4's smbtorture inside samba3's make test later

metze
2007-10-10 11:15:39 -05:00
Stefan Metzmacher
c3a9f30e2a r14618: add --no-process-group to all server programms
to make the following possible:

timelimit 20000 bin/nmbd -F -S --no-process-group
timelimit 20000 bin/smbd -F -S --no-process-group

this is needed to 'make test' working without losing child processes

metze
2007-10-10 11:15:39 -05:00
Lars Müller
df6d69e78f r14617: Fix typo in comment. 2007-10-10 11:15:39 -05:00
Günther Deschner
bde4a4018e r14611: Fix init_creds_opts issue jerry discovered when using MIT krb5 1.3:
We were using a far too short renewable_time in the request; newer MIT
releases take care interally that the renewable time is never shorter
then the default ticket lifetime.

Guenther
2007-10-10 11:15:39 -05:00
Jeremy Allison
306061c93d r14602: Fix another logic bug in new oplock handling. Just
because lck->num_share_modes != 0 doesn't mean that
there *are* other valid share modes. They may be
all marked "UNUSED" or be deferred open entries.
In that case don't downgrade the granted oplock to
level2 needlessly - a client can have an exclusive
oplock in this case. The original code handled this
correctly in the lck->num_share_modes == 0 case but
not in the case where there were no valid share modes
but lck->num_share_modes != 0. I'll clean up my
Samba4 torture tester for this and commit it tomorrow.
Jeremy.
2007-10-10 11:15:39 -05:00
James Peach
763f4c0148 r14600: Refactor capability interface from being IRIX-specific to using only
the POSIX interface. Note that this removes support for inherited
capabilities. This wasn't used, and probably should not be.
2007-10-10 11:15:39 -05:00
Günther Deschner
3f195f8248 r14597: Merge DCERPC_FAULT constants from Samba 4.
Guenther
2007-10-10 11:15:38 -05:00
Jeremy Allison
c2488db727 r14596: Fix a logic bug with multiple oplock contention.
The sad thing is the core of this bug fix is just
removing a paranoia "exit_server" call, as the
rest of the logic was already correct :-).

Lots of comments to explain the logic added.

I will look at adding tests to exercise this,
might be possible.

Jeremy.
2007-10-10 11:15:38 -05:00
Günther Deschner
afc519530f r14585: Tighten argument list of kerberos_kinit_password again,
kerberos_kinit_password_ext provides access to more options.

Guenther
2007-10-10 11:15:38 -05:00
Lars Müller
1829d22720 r14584: Really follow with roosbindir by defaulr the setting we use for sbindir. 2007-10-10 11:15:38 -05:00
Gerald Carter
3137fe5068 r14580: add 'net sam createbuiltingroup' to map BUILTIN local groups to a gid 2007-10-10 11:15:38 -05:00
Günther Deschner
9de3e9e6b2 r14579: Add REJECT_REASON_OTHER in the rpcclient chgpasswd3.
Guenther
2007-10-10 11:15:38 -05:00
Gerald Carter
ddad66ec58 r14578: fix incorrect comment in fill_sam_account(). This function is called from multiple places now (krb5, winbindd auth and domain_client_validate() 2007-10-10 11:15:37 -05:00
Gerald Carter
df53d64910 r14577: BUG Fixes:
* Add back in the import/export support to pdbedit
* Fix segv in pam_smbpass
* Cleanup some error paths in pdb_tdb and pdb_interface
2007-10-10 11:15:37 -05:00
Günther Deschner
8a0c1933d3 r14576: Skip remaining keytab entries when we have a clear indication that
krb5_rd_req could decrypt the ticket but that ticket is just not valid
at the moment (either not yet valid or already expired). (This also
prevents an MIT kerberos related crash)

Guenther
2007-10-10 11:15:37 -05:00
James Peach
0809e2cb1d r14574: Allow use of sendfile as long as the write cache has not been enabled
on the particular file we are performing I/O on, irrespective of whether
the write cache is globally enabled
2007-10-10 11:15:37 -05:00
Volker Lendecke
19e9bc03f8 r14559: Oplocks have changed, process_smb can be static again 2007-10-10 11:15:37 -05:00
Gerald Carter
0e789b7e43 r14530: removing unused 'winbind max idle children' parameter 2007-10-10 11:15:36 -05:00
Stefan Metzmacher
7cf4ad8899 r14522: sync socket_wrapper code with samba4
metze
2007-10-10 11:15:36 -05:00
Gerald Carter
7d92cff7a3 r14515: fix soname breakage caused by mad merge from trunk (missed replacing a AC variable) 2007-10-10 11:15:36 -05:00
Günther Deschner
345d2ab5d3 r14514: Fixing last commit. Thanks Volker.
Guenther
2007-10-10 11:15:35 -05:00
Günther Deschner
c7268dc9ac r14513: Fix winbindd_chauthtok: only fallback when the chgpasswd3 call is not
supported.

Is there a better way to check for the 0x1c010002 status code?

Guenther
2007-10-10 11:15:35 -05:00
Gerald Carter
635f0c9c01 r14512: Guenther, This code breaks winbind with MIT krb1.3.
I'm disabling it for now until we have en effective
means of dealing with the ticket request flags for users
and computers.
2007-10-10 11:15:35 -05:00
Volker Lendecke
6704859950 r14509: Attempt to fix the build on "sun1" 2007-10-10 11:15:35 -05:00
Günther Deschner
1f1402e45d r14508: Return PAM_SUCCESS in pam_sm_close_session when there is no KRB5CCNAME
environment.

Guenther
2007-10-10 11:15:35 -05:00
Günther Deschner
0892077fce r14507: Re-disable accidentially re-enabled paranoia check. This should make
offline logons work again with NT4 and older Samba3 DCs.

Guenther
2007-10-10 11:15:35 -05:00
Günther Deschner
aae8f8ae7a r14506: Remove remaining references to a KCM credential cache type.
Guenther
2007-10-10 11:15:35 -05:00
Günther Deschner
3e607aa69a r14505: Rename the timed_event to lockout_policy_event.
Guenther
2007-10-10 11:15:34 -05:00
Günther Deschner
7b1fcb75da r14503: Fix principal in debug statement.
Guenther
2007-10-10 11:15:34 -05:00
Günther Deschner
2155bb0535 r14496: Add WBFLAG_PAM_GET_PWD_POLICY bit to only callout for domain password
policies when requested.

No panic, the flags is uint32 so we are not running out of WBFLAG bits.

Guenther
2007-10-10 11:15:34 -05:00
Günther Deschner
52d721b638 r14495: Allow to play with the logon_param flag when testing samlogons.
Guenther
2007-10-10 11:15:34 -05:00
Günther Deschner
5fdddffba5 r14493: There is no point in falling back to a samlogon when a krb5login has
failed with a clear error indication. This prevents the bad logon count
beeing increased on the DC.

Guenther
2007-10-10 11:15:34 -05:00
Jeremy Allison
2703df7a8f r14489: Guard against coverity reversion. #181 is a false positive
but make the intent clearer.
Jeremy.
2007-10-10 11:15:34 -05:00
Gerald Carter
69f816e9f8 r14482: Fixes for spoolss code (after coverity fixes) when the
client sends a NULL RPC_BUFFER*
2007-10-10 11:15:33 -05:00
Volker Lendecke
d9b85e3b28 r14480: Kill one boolean flag passed down :-) 2007-10-10 11:15:33 -05:00