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

1596 Commits

Author SHA1 Message Date
Gerald Carter
8bead2d282 r11661: Store the INFO3 in the PAC data into the netsamlogon_cache.
Also remove the mem_ctx from the netsamlogon_cache_store() API.

Guenther, what should we be doing with the other fields in
the PAC_LOGON_INFO?
2007-10-10 11:05:23 -05:00
Gerald Carter
0c2bb5ba7b r11652: Reinstate the netsamlogon_cache in order to work
around failed query_user calls.  This fixes
logons to a member of a Samba domain as a user from a
trusted AD domain.

As per comments on samba-technical, I still need to add

(a) cache the PAC info as werll as NTLM net_user_info_3
(b) expire the cache when the SMB session goes away

Both Jeremy and Guenther have signed off on the idea.
2007-10-10 11:05:23 -05:00
Volker Lendecke
d92c83aa42 r11551: Add a few more initialize_krb5_error_table 2007-10-10 11:05:20 -05:00
Jeremy Allison
414303bc02 r11511: A classic "friday night check-in" :-). This moves much
of the Samba4 timezone handling code back into Samba3.
Gets rid of "kludge-gmt" and removes the effectiveness
of the parameter "time offset" (I can add this back
in very easily if needed) - it's no longer being
looked at. I'm hoping this will fix the problems people
have been having with DST transitions. I'll start comprehensive
testing tomorrow, but for now all modifications are done.
Splits time get/set functions into srv_XXX and cli_XXX
as they need to look at different timezone offsets.
Get rid of much of the "efficiency" cruft that was
added to Samba back in the day when the C library
timezone handling functions were slow.
Jeremy.
2007-10-10 11:05:19 -05:00
Jeremy Allison
37e6ef9389 r11492: Fix bug #3224 (I hope). Correctly use machine_account_name
and client_name when doing netlogon credential setup.
Jeremy.
2007-10-10 11:05:18 -05:00
Jeremy Allison
4cd8e2a96b r11420: Fix issue pointed out by Dina Fine <dina@exanet.com>. We can
only tell at parse time from the wire if an incoming name
has wildcards or not. If it's a mangled name and we demangle
the demangled name may contain wildcard characters. Ensure
these are ignored.
Jeremy.
2007-10-10 11:05:15 -05:00
Jeremy Allison
7fb0587261 r11379: Remove external dependencies from sharemodes library.
Jeremy.
2007-10-10 11:05:14 -05:00
Jeremy Allison
f46d847065 r11256: Remove use of long long and strtoll in libsmbclient (we
can't assume long long is always there). Removed unused
var in new a/c rename code.
long long still used in eventlog code but Jerry has promised
to fix that.
Jeremy.
2007-10-10 11:05:09 -05:00
Gerald Carter
18400f9662 r11240: * fix invalid read reported by valgrind in the
spoolss backchannel connection by rewriting
  spoolss_connect_to_client().  Ensure that we
  save the cli_state* in the rpc_pipe_client struct.

* fix typo in debug message in cli_start_connection"
2007-10-10 11:05:09 -05:00
Jeremy Allison
d720867a78 r11137: Compile with only 2 warnings (I'm still working on that code) on a gcc4
x86_64 box.
Jeremy.
2007-10-10 11:05:02 -05:00
Gerald Carter
d3a52900ec r11124: Commit Chris' fixes for libmsrpc after the rpc_client
rewrite.  His comments:

        I've gotten the libmsrpc code to work with TRUNK.
        I've put the patch at:
        www.uoguelph.ca/~cnicholl/libmsrpc_trunk_v1.patch.gz

        It is from revision 11093.

        I also fixed a minor bug in the svcctl code, the timeout
        parameter for all the control functions was working
        in milliseconds instead of seconds.

Also fixed bug in Makefile when building libmsrpc.a
2007-10-10 11:05:01 -05:00
Jeremy Allison
e15b758f5f r11079: Narrowing down on the #1828 PPC bug. The PPC client sends an
initial NTLMSSP negotiate blob of only 16 bytes - no strings
added ! (So don't try parsing them).
Jeremy.
2007-10-10 11:05:00 -05:00
Jeremy Allison
458da8987e r11075: Still working on bug #1828, PPC hell. The PPC client sends the
NTLMSSP client and domain strings as Unicode, even when setting
flags as OEM. Cope with this.
Jeremy.
2007-10-10 11:05:00 -05:00
Jeremy Allison
e2639ac9ff r10970: Fix bug #3166 - null pointer dereference if $HOME not
defined. Also clarified confusing error messages.
Jeremy.
2007-10-10 11:04:58 -05:00
Jim McDonough
8075b99b44 r10909: Give better shutdown messages 2007-10-10 11:04:56 -05:00
Günther Deschner
48d8a9dd9f r10907: Handle the case when we can't verify the PAC signature because the
ticket was encrypted using a DES key (and the Windows KDC still puts
CKSUMTYPE_HMAC_MD5_ARCFOUR in the PAC).

In that case, return to old behaviour and ignore the PAC.

Thanks to Chengjie Liu <chengjie.liu@datadomain.com>.

Guenther
2007-10-10 11:04:55 -05:00
Volker Lendecke
cb816e65a9 r10671: Attempt to fix the build on machines without kerberos headers.
Volker
2007-10-10 11:04:49 -05:00
Gerald Carter
939c3cb5d7 r10656: BIG merge from trunk. Features not copied over
* \PIPE\unixinfo
* winbindd's {group,alias}membership new functions
* winbindd's lookupsids() functionality
* swat (trunk changes to be reverted as per discussion with Deryck)
2007-10-10 11:04:48 -05:00
Jeremy Allison
e1c9813d63 r10269: Server-side fix for creds change - revert jcmd's change.
Jeremy.
2007-10-10 11:03:40 -05:00
Jeremy Allison
142c84eb31 r10217: Remember to exit correctly when we find a matching entry to change.
Jeremy.
2007-10-10 11:03:38 -05:00
Jeremy Allison
3d1207aaf6 r10215: Fix several memory corruption bugs now we're testing this.
Jeremy.
2007-10-10 11:03:38 -05:00
Günther Deschner
10358d16d7 r10210: Fix memleak.
Guenther
2007-10-10 11:03:37 -05:00
Jeremy Allison
b406a20212 r10204: I love valgrind :-). Found stupid missing parantheses :-).
Jeremy.
2007-10-10 11:03:36 -05:00
Gerald Carter
79fcc3bb7b r10176: adding smbctool from Kalim's SoC project; requires make bin/smbctool 2007-10-10 11:03:35 -05:00
Jeremy Allison
08de726172 r10150: Fix from Steve Williams <steve@celineandsteve.com> to make the args
consistent (uint64_t).
Jeremy.
2007-10-10 11:03:34 -05:00
Jeremy Allison
2521ae826f r10135: Remove external dependencies for libsmbsharemodes.so
Jeremy.
2007-10-10 11:03:33 -05:00
Jeremy Allison
ac7cf320df r10054: Actually use the given db path (:-)
Jeremy.
2007-10-10 11:03:31 -05:00
Jeremy Allison
7cc70ae633 r10042: Add in external LGPL library for accessing the share mode db. Allow
others to examine & test. May not end up here eventually...
Jeremy.
2007-10-10 11:03:31 -05:00
Gerald Carter
e813de1e52 r10001: adding in libmsrpc from Chris Nicholls (SoC project). not built by default per conversation with Jeremy until the rpc changes from trunk are merged back 2007-10-10 11:03:30 -05:00
Günther Deschner
351c783295 r9958: revert last commit.
Guenther
2007-10-10 11:03:29 -05:00
Günther Deschner
0c3b7499d4 r9955: Fix misleading comments.
Guenther
2007-10-10 11:03:29 -05:00
Gerald Carter
74f8718438 r9590: forget to remove this from the 3.0 tree 2007-10-10 11:03:22 -05:00
Gerald Carter
e1de6f238f r9588: remove netsamlogon_cache interface...everything seems to work fine. Will deal with any fallout from special environments using a non-cache solution 2007-10-10 11:03:22 -05:00
Jim McDonough
b01a3a4111 r9112: Fix #2953 - credentials chain on DC gets out of sync with client when
NT_STATUS_NO_USER returned.  We were moving to the next step in the
chain when the client wasn't.  Only update when the user logs on.
2007-10-10 11:00:26 -05:00
Tim Potter
985dbb47d9 r8572: Remove crufty #define NO_SYSLOG as it's not used at all anymore. 2007-10-10 11:00:11 -05:00
Gerald Carter
f1763c5dec r8475: BUG 2872: fix cut-n-paste error when checking pointer value in ntlmssp_set_workstation() 2007-10-10 11:00:06 -05:00
Jeremy Allison
c7fe18761e r8219: Merge the new open code from HEAD to 3.0. Haven't yet run the torture
tests on this as it's very late NY time (just wanted to get this work
into the tree). I'll test this over the weekend....
Jerry - in looking at the difference between the two trees there
seem to be some printing/ntprinting.c and registry changes we might
want to examine to try keep in sync.
Jeremy.
2007-10-10 10:58:18 -05:00
Gerald Carter
137d270ee3 r8184: fix build issue on Solaris in smbclient 2007-10-10 10:58:15 -05:00
Volker Lendecke
25cbcfba30 r8093: Next round. Now it compiles with --enable-socket-wrapper.
Volker
2007-10-10 10:58:11 -05:00
Gerald Carter
89f17b41ce r8064: * add the REG_XXX error codes to the pretty error messages
* more work on the store_values() functions for the Printers key
* add Control\Print\Monitors key to list for reg_db
2007-10-10 10:58:10 -05:00
Jeremy Allison
0da60e9954 r7954: Fix from tridge from Samba4 (same code exists here) :
fixed handling of ASN.1 objects bigger than 64k
Jeremy.
2007-10-10 10:58:04 -05:00
Jeremy Allison
9506b8e145 r7882: Looks like a large patch - but what it actually does is make Samba
safe for using our headers and linking with C++ modules. Stops us
from using C++ reserved keywords in our code.
Jeremy
2007-10-10 10:58:00 -05:00
Derrell Lipman
513ea79b2e r7817: Eliminate use of ctime_r() in libsmbclient DEBUG statement. It seems that
ctime_r() takes different parameters on Solaris than it does on Linux, and
it's easier to just eliminate the use of it than to write a configure test.
2007-10-10 10:57:21 -05:00
Günther Deschner
2e5cb531ab r7606: add WERR_NET_NAME_NOT_FOUND. This is what windows returns when
trying to manipulate non-existing shares.

Guenther
2007-10-10 10:57:15 -05:00
Jeremy Allison
cbd7578e7c r7554: Refactor very messy code in util_sock.c Remove write_socket_data/read_socket_data
as they do nothing that write_socket/read_socket don't do. Add a more useful
error message when read_socket/write_socket error out on the main client fd
for a process (ie. try and list the IP of the client that errored).
Jeremy.
2007-10-10 10:57:13 -05:00
Gerald Carter
a48ff479dd r7472: fix smbpasswd user password change (still worked by bad error messages) due to trying to strdup a NULL pointer 2007-10-10 10:57:10 -05:00
Gerald Carter
a0ac9a8ffd r7415: * big change -- volker's new async winbindd from trunk 2007-10-10 10:57:08 -05:00
Günther Deschner
5125852939 r7391: - Added client-support for various lsa_query_trust_dom_info-calls and a
rpcclient-tester for some info-levels.

  Jerry, I tried to adopt to prs_pointer() where possible and to not
  interfere with your work for usrmgr.

- Add "net rpc trustdom vampire"-tool.

  This allows to retrieve Interdomain Trust(ed)-Relationships from
  NT4-Servers including cleartext-passwords (still stored in the local
  secrets.tdb).

  The net-hook was done in cooperation with Lars Mueller
  <lmuelle@suse.de>.

  To vampire trusted domains simply call:

        net rpc trustdom vampire -S nt4dc -Uadmin%pass

Guenther
2007-10-10 10:57:07 -05:00
Gerald Carter
9e93244fa5 r7339: only check for dfs proxy referrals when the server supports dfs 2007-10-10 10:57:06 -05:00
Derrell Lipman
bf33902c05 r7245: bug fixes in libsmbclient, setting time attributes 2007-10-10 10:57:05 -05:00