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

21866 Commits

Author SHA1 Message Date
Gerald Carter
5e30807b4e r21884: * Blacklist BUILTIN and MACHINE domains from the
idmap domains as these should only be handled by the
  winbindd_passdb.c backend

* Allow the alloc init to fail for backwards compatible
  configurations like

     idmap backend = ad
     idmap uid = 1000-100000
	....

* Remove the deprecated flags from idmap backend, et. al.
  These are mutually exclusive with the new configuration
  options (idmap domains).  Logging annoying messages
  about deprecated parameters is confusing.  So we'll try
  this apprpach for now.
2007-10-10 12:18:44 -05:00
Jeremy Allison
638b03242d r21883: Try and fix the build by removing the prototypes for
functions that take a gss context handle in includes.h
Jeremy.
2007-10-10 12:18:43 -05:00
Jeremy Allison
60fc9c0aed r21882: The server part of the code has to use an AUTH_NTLMSSP struct,
not just an NTLMSSP - grr. This complicates the re-use of
common client and server code but I think I've got it right.
Not turned on of valgrinded yet, but you can see it start
to take shape !
Jeremy.
2007-10-10 12:18:43 -05:00
James Peach
86a70adb6a r21881: Make sure we are very specific when testing whether a backand can handle a
particular SID. Make sure that the passdb backend will accept the same set
range of local SIDs that the idmap system sends it.

Simo, Jerry - this is a 3_0_25 candidate. Can you please review?
2007-10-10 12:18:43 -05:00
Jeremy Allison
d3f3ced6c8 r21880: Make client and server calls into encryption code symetrical,
depending on encryption context pointer.
Jeremy.
2007-10-10 12:18:43 -05:00
Volker Lendecke
7e31b8ce21 r21879: Move process_blocking_lock_queue to a timed event.
The idea is that we have blocking.c:brl_timeout as a timed
event that is present whenever we do have a blocking lock
pending. It fires brl_timeout_fn() which calls
process_blocking_lock_queue().

Whenever we make changes to blocking_lock_queue, we trigger
a recalc_brl_timeout() which sets a new brl_timout event if
necessary. This makes the call to
blocking_locks_timeout_ms() in setup_select_timeout()
unnecessary, this is implicitly done in
event_add_to_select_args() from the timed events.

Volker
2007-10-10 12:18:42 -05:00
Volker Lendecke
e5741e27c4 r21878: Fix a bug with smbd serving a windows terminal server: If winbind decides smbd
to be idle it might happen that smbd needs to do a winbind operation (for
example sid2name) as non-root. This then fails to get the privileged
pipe. When later on on the same connection another authentication request
comes in, we try to do the CRAP auth via the non-privileged pipe.

This adds a winbindd_priv_request_response() request that kills the existing
winbind pipe connection if it's not privileged.

Volker
2007-10-10 12:18:42 -05:00
Jeremy Allison
184571e4b0 r21877: Missed one line.
Jeremy.
2007-10-10 12:18:42 -05:00
Jeremy Allison
530ac29abf r21876: Start adding in the seal implementation - prototype code
for the server side enc. (doesn't break anything).
I'll keep updating this until I've got NTLM seal working
on both client and server, then add in the gss level
seal.
Jeremy.
2007-10-10 12:18:42 -05:00
Gerald Carter
328807ec7b r21875: BUG 3275: Patch from Andy Polyakov <appro@fy.chalmers.se>
Relax check for i386 header checks in the PE header of printer
driver files.  Thus allowing uploading of x64 print drivers
from 64bit Windows clients.
2007-10-10 12:18:42 -05:00
Jeremy Allison
b69e18c7f1 r21874: Fix missing notify function. Thanks to Thomas Bork <tombork@web.de>
for pointing this out !
Jeremy.
2007-10-10 12:18:42 -05:00
Volker Lendecke
e1fbfbe1c4 r21873: This is winbindd_pam.c, not pam_winbind.c :-) 2007-10-10 12:18:41 -05:00
Volker Lendecke
fcec3d1c46 r21872: Fix a debug message 2007-10-10 12:18:41 -05:00
Volker Lendecke
3fc00977a9 r21871: Move deadtime processing into an idle event. While there, simplify
conn_idle_all() a bit.

Volker
2007-10-10 12:18:41 -05:00
Volker Lendecke
6226b30f38 r21870: Move sending auth_server keepalives out of the main loop into an idle event.
Volker
2007-10-10 12:18:41 -05:00
Volker Lendecke
9499fd9c80 r21869: Move sending keepalives out of the main processing loop into idle event.
On the way, make lp_keepalive() a proper parameter.

Volker
2007-10-10 12:18:41 -05:00
Volker Lendecke
4632a0caaf r21868: Remove check_log_size from the central smbd processing loop. This can be done
with a become_root/unbecome_root in debug.c.
2007-10-10 12:18:41 -05:00
Volker Lendecke
c0aaee6d36 r21867: Simplify calling convention of timeout_processing. lp_deadtime is only
referenced in conn_idle_all().
2007-10-10 12:18:40 -05:00
Volker Lendecke
52f2c89c0a r21866: Remove unused "lock spin count" parameter 2007-10-10 12:18:40 -05:00
Jeremy Allison
5bfe638f21 r21865: Add in the stubs for SMB transport encryption. Will flesh
these out as I implement. Don't add to SAMBA_3_0_25, this
is experimental code.
NFSv4 you're now officially on notice... :-).
Jeremy.
2007-10-10 12:18:40 -05:00
Jeremy Allison
f18e87ba6b r21864: Reformatting.
Jeremy.
2007-10-10 12:18:40 -05:00
Jeremy Allison
d432d81c83 r21863: Fix debug messages with incorrect function name.
Jeremy.
2007-10-10 12:18:39 -05:00
Gerald Carter
5b47c4e5c2 r21862: add the cups comment and location lookup to get_a_printer_2_default() as well 2007-10-10 12:18:39 -05:00
Gerald Carter
e859e1fdcd r21861: Pull the comment and location from CUPS if we don't have one
when fetching a printer from ntprinters.tdb.

Slightly modified from original version submitted on
samba-technical ml by Andy Polyakov <appro@fy.chalmers.se>
2007-10-10 12:18:39 -05:00
Gerald Carter
505fc669a1 r21860: Fixes for "winbind normalize names" functionality:
* Fix getgroups() call called using a normalized name
* Fix some more name mappings that could cause for example
  a user to be unable to unlock the screen as the username
  would not match in the PAM authenticate call.
2007-10-10 12:18:39 -05:00
Günther Deschner
663514e511 r21858: Fix typo.
Guenther
2007-10-10 12:18:39 -05:00
Günther Deschner
f55e1a312e r21857: Stop pretending to be Vista in the %a macro towards Samba clients.
Guenther
2007-10-10 12:18:39 -05:00
Günther Deschner
128ea9bebb r21855: Fix a memleak in the krb5 locator and comment out gfree_all() which doesn't
make sense as long as it doesn't work as an lp_unload().

Guenther
2007-10-10 12:18:38 -05:00
Günther Deschner
eb34ebd9e7 r21854: Add gfree_interfaces() to gfree_all().
Guenther
2007-10-10 12:18:38 -05:00
Volker Lendecke
d0d16cc55a r21853: Fix a valgrind error 2007-10-10 12:18:38 -05:00
Volker Lendecke
ff886436b7 r21851: Obvious typos... 2007-10-10 12:18:38 -05:00
Jeremy Allison
1a2be06d4a r21850: After Jerry explained to me the HORRIBLE way in which
the MIT gss libraries *SUCK*, move the frees to the end
of the function so MIT doesn't segfault.....
Add a comment so that another engineer knows why I did
this.
Jeremy.
2007-10-10 12:18:38 -05:00
Gerald Carter
54a114fa75 r21848: add a comment about gss_import_name() and when to free the krb5 principal data 2007-10-10 12:18:38 -05:00
Jeremy Allison
89bdd30e4b r21847: Fix memory leaks in error paths (and in main code path in one case...)
in sasl bind. Wonder why coverity didn't find these ?
Jeremy.
2007-10-10 12:18:37 -05:00
Jeremy Allison
1e32b44bfc r21846: Try and fix the Darwin build which seems to have a strange krb5.
Jeremy.
2007-10-10 12:18:37 -05:00
Jeremy Allison
c426340fc7 r21845: Refactor the sessionsetupX code a little to allow us
to return a NT_STATUS_TIME_DIFFERENCE_AT_DC error to
a client when there's clock skew. Will help people
debug this. Prepare us for being able to return the
correct sessionsetupX "NT_STATUS_MORE_PROCESSING_REQUIRED"
error with associated krb5 clock skew error to allow
clients to re-sync time with us when we're eventually
able to be a KDC.
Jeremy.
2007-10-10 12:18:37 -05:00
Steve French
bd9439cc7d r21840: mount.cifs compile on old libc missing bind mount #define
Thanks to Thomas Jarosch for pointing this out.
2007-10-10 12:18:37 -05:00
Volker Lendecke
fd0ee6722d r21831: Back out r21823 for a while, this is going into a bzr tree first.
Volker
2007-10-10 12:18:37 -05:00
Herb Lewis
4af2795e65 r21825: add debug prefix timestamp to allow "short timestamps" to be
added to debug messages
2007-10-10 12:18:37 -05:00
Volker Lendecke
f94e5af72e r21823: Let secrets_store_machine_password() also store the account name. Not used
yet, the next step will be a secrets_fetch_machine_account() function that
also pulls the account name to be used in the appropriate places.

Volker
2007-10-10 12:18:36 -05:00
Günther Deschner
34ae610bd5 r21822: Adding experimental krb5 lib locator plugin.
This is a starting point and may get changed. Basically we need follow the
exact same path to detect (K)DCs like other Samba tools/winbind do. In
particular with regard to the server affinity cache and the site-awarness for
DNS SRV lookups.

To compile just call "make bin/smb_krb5_locator.so", copy to
/usr/lib/plugin/krb5/ (Heimdal HEAD) or /usr/lib/krb5/plugins/libkrb5/ (MIT)
and you should immediately be able to kinit to your AD domain without having
your REALM with kdc or kpasswd directives defined in /etc/krb5.conf at all.

Tested with todays Heimdal HEAD and MIT krb5 1.5.

Guenther
2007-10-10 12:18:36 -05:00
Volker Lendecke
4efc7b4598 r21819: Wrap all steps in secrets_store_machine_password into one single
transaction. Succeed all or store nothing.

Volker
2007-10-10 12:18:36 -05:00
Volker Lendecke
f88eab91c4 r21818: Remove some unused code 2007-10-10 12:18:36 -05:00
Andrew Tridgell
05bd5cb6ee r21814: use ndr_push_error in the ndr layer, not just a NTSTATUS failure 2007-10-10 12:18:36 -05:00
Andrew Tridgell
4b1c4cd25a r21813: fixed an integer overflow error in the ndr push code.
Jerry, you might like to consider this for 3.0.25
2007-10-10 12:18:35 -05:00
Lars Müller
0cb6634d94 r21804: Create a reference after proto_exits was called once. Else we link the
binaries again with each make.  Thx Volker to point my chesty at this.
2007-10-10 12:18:35 -05:00
Jeremy Allison
b1fa55e513 r21803: Missed part of patch to make self-referrals work.
Jeremy.
2007-10-10 12:18:35 -05:00
Volker Lendecke
8700cd71bb r21801: Fix Coverity ID # 342 2007-10-10 12:18:35 -05:00
Jeremy Allison
7a7862c01d r21800: Check-in the DFS rewrite. I am still testing this but it
works from smbclient and Windows, and I am promising to
support and fix both client and server code moving forward.
Still need to test the RPC admin support but I haven't
changed that code.
Jeremy.
2007-10-10 12:18:34 -05:00
Jeremy Allison
1809e0866a r21792: Fix crash bug triggered by Excel reported by Jerry.
Bad cut-n-paste on rewrite of timestamps.
Jeremy.
2007-10-10 12:18:34 -05:00