1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-18 00:23:50 +03:00
Commit Graph

1154 Commits

Author SHA1 Message Date
Günther Deschner
cb7ace209c libads: add ads_get_machine_kvno() to make ads_get_kvno() a bit more generic.
Guenther
2008-06-17 19:54:09 +02:00
Volker Lendecke
dee60935d4 Add forgotten protoypes 2008-06-15 18:46:10 +02:00
Volker Lendecke
c8fd5eef32 Remove the current_user reference from fake_file.c
The current vuid is not only available there, it is also in the current
smb_request structure.
2008-06-15 13:37:53 +02:00
Volker Lendecke
097446c3c8 Add prototype for delete_negative_conn_cache 2008-06-07 08:16:23 +02:00
Günther Deschner
7f8b0b4d15 util_str: add talloc_asprintf_strlower_m().
Guenther
2008-06-04 01:35:43 +02:00
Günther Deschner
06b597213a build: fix the build (missing protoype for lp_ldap_connection_timeout()).
Guenther
2008-06-03 20:41:29 +02:00
Jeremy Allison
23b825e9d2 Security fix for CVE-2008-1105: Boundary failure when parsing SMB responses
can result in a buffer overrun.
Jeremy.
2008-05-28 09:31:42 -07:00
Michael Adam
1a6f91755c fix build: add missing prototype of msg_close_file()
Michael
2008-05-28 01:10:54 +02:00
Michael Adam
d96634d037 fix the build after prototype change.
Michael
2008-05-28 01:10:54 +02:00
Günther Deschner
68327e577d build: Fix the build after prototype change.
Guenther
2008-05-28 00:53:04 +02:00
Michael Adam
0a24c038b7 Remove unused function is_trusted_domain_situation().
This combined check has been replaced by is_dc_trusted_domain_situation()
which does not check for lp_allow_trusted_domains().

Michael
2008-05-26 16:42:25 +02:00
Michael Adam
a284c88435 Add function is_dc_trusted_domain_situation().
This is like is_trusted_domain_situation() except that it does not
check for lp_allow_trusted_domains().

Michael
2008-05-26 16:42:24 +02:00
Volker Lendecke
2dbbd81677 Move ber_[read|write]_OID_String protypes to proto.h 2008-05-25 13:53:43 +02:00
Volker Lendecke
17b0db20d2 Remove the reference to current_user_info from share_access.c
This required to pass around the domain a bit
2008-05-25 11:43:57 +02:00
Gerald W. Carter
b78b14c88e Manually merge Steven Danneman's patch for SPNEGO auth to a trusted
Win2008 domain (merged from v3-0-test).

   commit 8dc4e97977
   Author: Steven Danneman <sdanneman@isilon.com>
   Date:   Wed May 7 13:34:26 2008 -0700

      spnego SPN fix when contacting trusted domains

      cli_session_setup_spnego() was not taking into consideration the situation
      where we're connecting to a trusted domain, specifically one (like W2K8)
      which doesn't return a SPN in the NegTokenInit.

      This caused two problems:

      1) When guessing the SPN using kerberos_get_default_realm_from_ccache() we
      were always using our default realm, not the realm of the domain we're
      connecting to.

      2) When falling back on NTLMSSP for authentication we were passing the name
      of the domain we're connecting to for use in our credentials when we should be
      passing our own workgroup name.

      The fix for both was to split the single "domain" parameter into
      "user_domain" and "dest_realm" parameters.  We use the "user_domain"
      parameter to pass into the NTLM call, and we used "dest_realm" to create an SPN
      if none was returned in the NegTokenInit2 packet.  If no "dest_realm" is
      provided we assume we're connecting to our own domain and use the credentials
      cache to build the SPN.

      Since we have a reasonable guess at the SPN, I removed the check that defaults
      us directly to NTLM when negHint is empty.
2008-05-23 16:01:45 -05:00
Michael Adam
9971118c23 rpc_client: make rpc_pipe_open_tcp_port and rpc_pipe_get_tcp_port static.
Slim the interface...

Michael
2008-05-22 11:30:04 +02:00
Michael Adam
f7db445c82 rpc_client: use endpoint mapper to get the port for rpc_pipe_open_tcp().
Michael
2008-05-22 11:29:57 +02:00
Volker Lendecke
24ac40518f Add client support for NCACN_UNIX_STREAM 2008-05-21 23:35:25 +02:00
Volker Lendecke
be5d54a363 rpccli_schannel_bind_data only needs the schannel key 2008-05-21 23:35:25 +02:00
Tim Prouty
6b189dabc5 Cleanup size_t return values in callers of convert_string_allocate
This patch is the second iteration of an inside-out conversion to cleanup
functions in charcnv.c returning size_t == -1 to indicate failure.
2008-05-20 22:40:13 +02:00
Jeremy Allison
54556df561 Remove conn_find_byname now it's no longer used in
the msdfs.c code.
Jeremy
2008-05-19 17:19:18 -07:00
Michael Adam
ff7f0cad2e build: freeze proto.h
Michael
2008-05-18 22:58:07 +02:00
Andrew Tridgell
8a37df73ec auto-build proto.h if its not there, but don't make it depend
on anything. Delete proto.h from CVS
-
Jeremy Allison
6b4a70cd82 Merging Gerry's spoolss changes.
Jeremy.
-
Andrew Tridgell
674ee2f1d1 next_token() was supposed to be a reentrant replacement for strtok(),
but the code suffered from bitrot and is not now reentrant. That means
we can get bizarre behaviour
i've fixed this by making next_token() reentrant and creating a
next_token_nr() that is a small non-reentrant wrapper for those lumps
of code (mostly smbclient) that have come to rely on the non-reentrant
behaviour
-
Andrew Tridgell
86613493a9 Added STR_NOALIGN flags to clistr and srvstr fns. Yes, NT actually does
send unaligned unicode strings sometimes!
Fixed our handling of the workgroup name tacked on the end of the
NT1 negprot response (a unaligned unicode)
fixed a couple of places where we should be using the message_end fns instead
of pre-calculated buffer lengths
-
Simo Sorce
e1572f85d6 initial support for paramter type P_LIST
it will avoid problems with lists being longer than 1024 bytes
just now only ip list parameters have been converted to the new type
(hosts allow, hosts deny, ssl hosts, ssl hosts resign)
-
Tim Potter
d0b37d1a62 make proto -
Andrew Tridgell
15b17a80db added a close-share smbcontrol message that forcibly closes a share in smbd (to allow unmount) -
Jeremy Allison
0fe11c329f INFO_24 sometimes has a 2 byte length, sometimes doesn't. Safer to not
depend on it...
Jeremy.
-
Jeremy Allison
db5b82e53a Added patches to remove Linux specific XFS ACLs. These are now handled by the
generic Linux ACL code.
rpc_server/srv_samr_nt.c: Don't delete a policy handle before it's created.
Jeremy.
-
Andrew Tridgell
3d4a3bfacd added a oplock break handler hook to the client code, this allows for more complete testing of oplocks from smbtorture and would also be essential if a client app ever really did want to use oplocks properly -
Tim Potter
720fea5360 Removed silly Get_Hostbyname() wrapper as DNS names are case-insensitive
and the use of this function only increased timeouts when Samba queries
a broken DNS server.
-
Jeremy Allison
5690ec77c8 Modified version of Jim's 0x27 and 0x28 Win9x Secdesc patch.
Jeremy.
-
Jeremy Allison
bc366f3153 Jim McDonough's parse patches for Win9x get SD calls.
Jeremy.
-
Tim Potter
402639926f Prototype update. -
Tim Potter
2ad921d126 Oops - proto.h contained junk from another workarea. -
Tim Potter
13df2304b3 Added some msdfs client routines. -
Jeremy Allison
d8807b1922 Make message receive fn static.
Jeremy.
-
Jeremy Allison
a8532b193d Added sys_acl_delete_def_file() - needed as part of NT ACL editing fix.
Will add changes for other supported ACL systems shortly (Herb, I may
need help with the IRIX one).
Jeremy.
-
Jeremy Allison
4338ee78c3 Extra stuff for large readwrite support.
Jeremy.
-
Tim Potter
6dfe98f602 Prototypes update. -
Tim Potter
bdb76938e2 Update prototype file. -
Tim Potter
9e1d9a3a44 Oops. -
Andrew Tridgell
823ba34342 new proto.h -
Simo Sorce
97dbb54a13 4 new functions to retrieve single linked list of group and passwd entries
+ a fix to an infinite loop in srv_samr_nt.c caused by misuse of
setgrent/getgrent/endgrent solved by these new functions
-
Jeremy Allison
cf5015f159 Added tdb_change_int_atomic() to allow atomic updates of a tdb int value.
Jeremy.
-
Tim Potter
0650f87000 Added structures for LOGON_CTRL rpc.
Make proto.
-
Jeremy Allison
d7aa42e459 Defensive brlock and locking database cleaning code.
Jeremy.
-
Gerald Carter
97a88ca86b make proto -