1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-17 15:17:09 +03:00

45 Commits

Author SHA1 Message Date
Günther Deschner
836877c400 mailslot: Also pick domain name and pdc name from type 15 cldap reply.
Guenther
2008-05-14 09:45:39 +02:00
Günther Deschner
fe904ee77a dsgetdcname: mailslot replies are identical to the cldap ones, use cldap everywhere.
Guenther
2008-05-09 14:59:19 +02:00
Volker Lendecke
e7a4027acf Fix a C++ warning 2008-05-05 18:28:59 +02:00
Günther Deschner
2b178dcae6 mailslot: allow to give back struct nbt_ntlogon_packet.
Guenther
2008-04-24 22:01:52 +02:00
Günther Deschner
c6ce07fdf5 mailslot: make sure we are looking at the correct reply structure.
Guenther
2008-04-24 22:01:51 +02:00
Günther Deschner
ce3728191b mailslot: allow to define nt_version in send_getdc_request().
Guenther
2008-04-24 22:01:51 +02:00
Günther Deschner
675bf42cff winbind: pass down existing talloc context.
Guenther
2008-04-21 20:21:39 +02:00
Günther Deschner
2d6a1c5da6 winbind: Use libnbt for NTLOGON SAMLOGON mailslot request and reply.
Guenther
2008-04-21 11:03:32 +02:00
Günther Deschner
b003ba65e3 Move GETDC mailslot out of winbindd.
Guenther
2008-04-17 15:17:29 +02:00
Jeremy Allison
d78045601a Add SMB encryption. Still fixing client decrypt but
negotiation works.
Jeremy.
2007-12-26 17:12:36 -08:00
Jeremy Allison
6b1246c29a Arg. The fix for CVE-2007-6015 hadn't been merged into 3.2.
Do so now....
Jeremy.
2007-12-13 16:44:24 -08:00
Jeremy Allison
a261a61226 Remove unused code (and pstring).
Jeremy.
2007-11-28 14:08:49 -08:00
Jeremy Allison
17ea899f39 Fix cast typo - would have broken all dgram sends.
Jeremy.
2007-10-25 18:15:02 -07:00
Jeremy Allison
98e154c312 This is a large patch (sorry). Migrate from struct in_addr
to struct sockaddr_storage in most places that matter (ie.
not the nmbd and NetBIOS lookups). This passes make test
on an IPv4 box, but I'll have to do more work/testing on
IPv6 enabled boxes. This should now give us a framework
for testing and finishing the IPv6 migration. It's at
the state where someone with a working IPv6 setup should
(theorecically) be able to type :
smbclient //ipv6-address/share
and have it work.
Jeremy.
2007-10-24 14:16:54 -07:00
Jeremy Allison
f35a266b3c RIP BOOL. Convert BOOL -> bool. I found a few interesting
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
2007-10-18 17:40:25 -07:00
Gerald (Jerry) Carter
5c6c8e1fe9 [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch. 2007-10-10 15:34:30 -05:00
Andrew Tridgell
b0132e94fc r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text 2007-10-10 12:28:22 -05:00
Jeremy Allison
407e6e695b r23779: Change from v2 or later to v3 or later.
Jeremy.
2007-10-10 12:28:20 -05:00
Volker Lendecke
330946ad23 r22908: All callers of message_init now also call messaging_init. Unify those. 2007-10-10 12:22:07 -05:00
Volker Lendecke
3fdfb5b7cd r22905: cli_send_mailslot had a message_send_pid inside 2007-10-10 12:22:06 -05:00
Jeremy Allison
2d80a96120 r22391: Looks bigger than it is. Make "inbuf" available
to all callers of smb_setlen (via set_message()
calls). This will allow the server to reflect back
the correct encryption context.
Jeremy.
2007-10-10 12:19:30 -05:00
Jeremy Allison
140881cfbb r22045: As Volker noticed, skip_string's last argument is
redundent. Remove it.
Jeremy.
2007-10-10 12:19:05 -05:00
Jeremy Allison
c3a565081d r22014: Make us pass RANDOMIPC test again :-(. This is an ugly check-in,
but I've no option.
Jeremy.
2007-10-10 12:19:01 -05:00
Volker Lendecke
3f620d181d r21115: notify_internal.c needs to remove the table entry if a process has crashed. So
it needs the specific error message.

Make messages.c return NTSTATUS and specificially NT_STATUS_INVALID_HANDLE if
sending to a non-existent process.

Volker
2007-10-10 12:17:39 -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
Gerald Carter
a0ac9a8ffd r7415: * big change -- volker's new async winbindd from trunk 2007-10-10 10:57:08 -05:00
Volker Lendecke
530e7f09ae r1560: Not that anybody uses this stuff (yet...), but at least get it correct :-)
When sending a mailslot datagram, get the packet length correction correct.

Volker
2007-10-10 10:52:14 -05:00
Jeremy Allison
29413db303 Fix coredump in cli_get_backup_list.
Jeremy.
-
Andrew Bartlett
3a7458f947 Merge from HEAD - make Samba compile with -Wwrite-strings without additional
warnings.  (Adds a lot of const).

Andrew Bartlett
-
Jeremy Allison
f7c980d614 Fixed dumb typo caught by Herb.
Jeremy.
-
Jeremy Allison
330b0df960 bcopy must DIE ! Stop people creeping use of bcopy back into the code
(and yes I know who you are..... :-).
Jeremy.
-
Tim Potter
6a58c9bd06 Removed version number from file header.
Changed "SMB/Netbios" to "SMB/CIFS" in file header.
-
Tim Potter
e69a22290e Removed fprintf(stderr, ...); calls which should not be present in library
functions.
-
Jeremy Allison
01ff6ce496 Same fix as went into 2.2 (I'm waiting for jerry to finish some code).
Jeremy.
-
Jeremy Allison
b1930abb35 Got serious about const again.
REMOVED BZERO CALLS YET AGAIN !!! Why do these keep creeping back in....
They are *NOT* POSIX. I'm also thinking of removing strncpy as I'm sure
it's not being used correctly....
Jeremy.
-
Andrew Tridgell
e2ecff419f fixed usage of socklen_t and also tidied up SIG_ATOMIC_T, using a typedef instead of a define -
Richard Sharpe
b0ba25e22d Further recasts to sockaddr * rather than sockaddr_in * -
Richard Sharpe
44986f397a Fix some errors uncovered in libsmbclient by the test suite
Fix some problems with unused variables and reaching the end of a
  nonvoid function
-
Richard Sharpe
54b0fbe98b Change code around and add retry to deal with the occassional loss of NetBIOS datagrams responses, either via TDB or direct receive ... -
Richard Sharpe
620cc34015 Fixes to libsmbclient so it will work when browsing real Windows systems which
only respond to port 138 when dealing with NetBIOS datagrams.

We use the unexpected packed database.
-
Jeremy Allison
d938ad6963 Excise snprintf -> slprintf.
srv_samr.c: duplicate gid fix.
srv_spoolss_nt.c: Merge of JF's work.
uid.c: Fix for returning names when a PDC.
Jeremy.
-
Richard Sharpe
09902d2d4a Remove an inet_aton so that this code will compile on Solaris ...
Ahhh, the sweet smell of portability.
-
Jeremy Allison
7ba0a2192b rpc_server/srv_samr.c:
smbd/reply.c:
Added fix needed for appliances. When using winbindd - a new user may
exist (from winbind) but have no home directory. Extend add user script
so it is called with a %H substitution when a user exists but their home
directory does not. Thanks to Alex Win at VA Linux for finding this one
and testing the fix.
libsmb/clidgram.c: Fixed missing return statements.
smbd/uid.c: Fixed typo in debug.
Jeremy.
-
Richard Sharpe
4c540393b3 Get rid of 10.0.0.6 and replace it with 0.0.0.0 as my_ip address prior to
sending datagrams in clidgram.c
-
Richard Sharpe
f7466ba67c Add a new file clidgram with routines that are used by the libsmbclient code.
These routines handle the sending of dgrams in ways that don't bind us to
the nmbd code, but we may merge the two routines at some stage.

Also fix Makefile.in so the new code is compiled ...

Let's see whether or not it compiles on other architectures ...

Seems OK under Linux.
-