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

18844 Commits

Author SHA1 Message Date
Gerald Carter
c63bc30037 r21913: fix one bug in build 717: correctly check the return from sid_peek_check_rid() when trying to find a matching domain 2007-10-10 12:18:48 -05:00
Jeremy Allison
80810af7d1 r21912: There's no point checksumming the packet length
this already has to be right. This makes the
signed+sealed area the same as it will be with
gss calls. Now to go implement them.
Jeremy.
2007-10-10 12:18:48 -05:00
Gerald Carter
aac2d0af5e r21905: Rename
idmap expire time 	-> idmap cache time
  idmap negative time	-> idmap negative cache time
2007-10-10 12:18:48 -05:00
Volker Lendecke
57efba97b6 r21904: Fix HP build -- thanks, Don 2007-10-10 12:18:47 -05:00
Jeremy Allison
d34584cb5c r21903: Get the length calculations right (I always forget
the 4 byte length isn't included in the length :-).
We now have working NTLMSSP transport encryption
with sign+seal. W00t!
Jeremy.
2007-10-10 12:18:47 -05:00
Jeremy Allison
1639366561 r21902: Don't free the thing you're trying to set in the cli state.
Jeremy.
2007-10-10 12:18:47 -05:00
Jeremy Allison
c7153411f1 r21901: Don't use fstrcat when you mean fstrcpy. Doh !
Jeremy.
2007-10-10 12:18:47 -05:00
Jeremy Allison
6bd7c05290 r21900: Token exchange now seems to work, now why does the
client encrypt fail ?
Jeremy.
2007-10-10 12:18:47 -05:00
Jeremy Allison
2fde5c703d r21899: At least we're getting to stage 2 of the blob
exchange. Still not working but closer.
Jeremy.
2007-10-10 12:18:47 -05:00
Jeremy Allison
73f7c6cef8 r21898: Added test command, fixed first valgrind bugs.
Now to investigate why it doesn't work :-).
Jeremy.
2007-10-10 12:18:47 -05:00
Jeremy Allison
783a7b3085 r21897: Add in a basic raw NTLM encrypt request. Now
for testing.
Jeremy.
2007-10-10 12:18:46 -05:00
Jeremy Allison
6b5ff7bd59 r21894: Some refactoring of server side encryption context. Support
"raw" NTLM auth (no spnego).
Jeremy.
2007-10-10 12:18:46 -05:00
Rafal Szczesniak
8f313061a4 r21893: Update comments so they actually reflect reality...
rafal
2007-10-10 12:18:46 -05:00
Volker Lendecke
6cae3cf281 r21892: Mini-Patch from Michael 2007-10-10 12:18:46 -05:00
Jeremy Allison
487706701f r21891: Finish server-side NTLM-SPNEGO negotiation support.
Now for the client part, and testing.
Jeremy.
2007-10-10 12:18:46 -05:00
Gerald Carter
5035778ae4 r21888: Add the osname and osver options to 'net ads join' as discussed
on the samba-technical ml.

I'll add a 'net ads set attribute=value' utility later
rather than the original 'net ads setmachineupn' patch that
was also posted to the tech ml.
2007-10-10 12:18:45 -05:00
Günther Deschner
947a59a849 r21887: Fix annoying bug where in a pam_close_session (or a pam_setcred with the
PAM_DELETE_CREDS flag set) any user could delete krb5 credential caches.
Make sure that only root can do this.

Jerry, Jeremy, please check.

Guenther
2007-10-10 12:18:44 -05:00
Alexander Bokovoy
b10410634f r21885: Chown logic should be activated only if nfs4:chown=yes 2007-10-10 12:18:44 -05:00
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