1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-05 09:18:06 +03:00
Commit Graph

747 Commits

Author SHA1 Message Date
Jeremy Allison
16fd4337f7 ipc.c: Adding Andrews become_root code to the main branch.
locking.c: Adding Andrews become_root code to the main branch.
pipes.c: Fixing the close_file issue.
proto.h: The usual.
reply.c: Move smb_pass into NTDOMAIN defined code. Fixing the close_file issue.
server.c: Fixing the close_file issue.
trans2.c: Fixing the close_file issue.
uid.c: Adding Andrews become_root code to the main branch.
Jeremy (jallison@whistle.com)
0001-01-01 00:00:00 +00:00
Luke Leighton
ed606bc7d4 smb.h smbparse.c pipenetlog.c :
whoops, the SAM Logon structure was wrong.  updated this, and
	cifsntdomain.txt.  more debug info in pipenetlog.c.  the crash
	is somewhere around deal_with_credentials().

byteorder.h :

	put in uint8, uint16 and uint32 typecasts around debug info, because
	sign extending was resulting in ffffffe8 being displayed instead of e8.

credentials.c :

	some debugging info, because i'm tracking a coredump.  without gdb.
	nothing like making things difficult.

reply.c :

	whoops, missed this (important) bit from paul's code, which tells
	the NT workstation that the MACHINE$ entry doesn't already exist,
	and we're going to create a default entry with a password "machine"
	right now.

proto.h:

	the usual.
0001-01-01 00:00:00 +00:00
Christopher R. Hertel
e55a3dc94a Added ubi_sLinkList module which manages simple singly-linked lists. 0001-01-01 00:00:00 +00:00
Luke Leighton
96b17b829f added srvsvc basic pipe, straight from paul's code. does NETSHAREENUM
and NETSERVERGETINFO.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
bdf3155418 the usual proto.h update 0001-01-01 00:00:00 +00:00
Andrew Tridgell
97d06dd05e add the port number to a debug statement 0001-01-01 00:00:00 +00:00
Andrew Tridgell
eb76fea411 added loopback_ip. This is used to detect packets from ourselves 0001-01-01 00:00:00 +00:00
Andrew Tridgell
e1e86c1a16 fixed the freeze on logout bug. The fix has several parts:
1) add a new parameter to queue_netbios_packet(), the "reply_id", this
is the id that should be used when sending a further response to the
packet (such as a response after we get back a reply to a name query
after senidnga  WACK). reply_id is 0 (meaning unused) in most cases.

2) fix the id used in the reply in add_name_respond() from
response_name_query_register()

3) remember to remove the response record at the end of
response_name_query_register()

4) get the right IP address (it was 0.0.0.0) in
response_name_query_register()

5) add a new field reply_id to struct response_record
0001-01-01 00:00:00 +00:00
Andrew Tridgell
708edc348f fixed a stack overflow bug in api_lsa_req_chal()
changed the order of arguments to smbhash() in credentials.c. Luke,
when you changed from E1() to smbhash() you didn't notice that the
arguments are in a different order. This is why your new code was
failing.

NT logon still fails, but now gets to SAMLOGON. It shouldn't take much
to get it working now.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
45f4ae4327 force the salt to be a maximum of 2 characters long in calls
to crypt()

This might solve some password problems, particulary on HPUX
0001-01-01 00:00:00 +00:00
Christopher R. Hertel
2181d929d1 These are the ubiqx modules, as included with the Samba distribution.
Updated the linked list module, which has new and changed macros.
0001-01-01 00:00:00 +00:00
Christopher R. Hertel
df3bafd0c4 First draft of a README file to explain the origins of the "ubiqx" code. 0001-01-01 00:00:00 +00:00
Christopher R. Hertel
781be1daac Added a very small piece of documentation to describe the binary tree
modules.
0001-01-01 00:00:00 +00:00
Luke Leighton
93879ac8a5 pipentlsa.c :
lsa close odd bug.

smbparse.c :

	smb_io_dom_sid() _does_ need 4-byte alignment before it.
0001-01-01 00:00:00 +00:00
Christopher R. Hertel
28de393878 Added a copy of the LGPL to the samba/ubiqx/ directory. 0001-01-01 00:00:00 +00:00
Luke Leighton
eafd6e9e79 byteorder.h:
created a RW_PIVAL macro which was missing.

smbparse.c:

	smb_io_dom_sid() was storing its sub-authorities as uint16s instead
	of uint32s.  used the DBG_RW_PIVAL macro instead of DBG_RW_PSVAL.

pipentlsa.c:

	not sure.  something to do with the Query Info reply.

pipeutil.c:

	make_rpc_reply() had the packed representation field set to 0x0100 0000
	instead of 0x1000 0000, which had the interesting result of turning all
	uint32 and uint16 field byte ordering the other way round!
0001-01-01 00:00:00 +00:00
Luke Leighton
9b095887df credentials, query info reply. 0001-01-01 00:00:00 +00:00
John Terpstra
1f9eb49202 docs/DIAGNOSIS.txt:
Added comment right up front about "your server is being unfriendly"
	type error messages.

source/Makefile:
	Added compile options for RedHat Linux 5.0 series.
0001-01-01 00:00:00 +00:00
Luke Leighton
0056b15443 changed *(uint32*)(clnt_cred) to SIVAL(clnt_cred, ....) 0001-01-01 00:00:00 +00:00
Jeremy Allison
9fd056c911 Broke my own rule about checking in uncompiled source :-(.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
08afa51f5c Added fixes for become_user braindamage.
Jeremy (jallison@whistle.com)
0001-01-01 00:00:00 +00:00
Luke Leighton
3db1fe79c3 another alignment of client challenge: this one in lsa_io_q_auth_2().
there are going to be a few of these...
0001-01-01 00:00:00 +00:00
Luke Leighton
717bcd6e34 lsa_io_r_req_chal() - challenge is not 4-byte aligned after the unicode
strings.
0001-01-01 00:00:00 +00:00
Luke Leighton
14f0c2ddb0 put a check around become_user(). doesn't authenticate the user, but doesn't
quit the whole pipe, either...
0001-01-01 00:00:00 +00:00
Luke Leighton
9d1f45ca6b resolving some of the confusion over credentials. 0001-01-01 00:00:00 +00:00
Luke Leighton
8fe02c239d split pipes.c down into util, netlog and ntlsa. 0001-01-01 00:00:00 +00:00
Luke Leighton
d7a9a02e0a debugging... no idea what i'm doing. 0001-01-01 00:00:00 +00:00
Andrew Tridgell
3fc48246ee reverted a change made by Luke at his request.
Luke, when you don't know what has been changed in the CVS tree I
highly recommend you point your browser at:

	http://samba.anu.edu.au/cgi-bin/cvsweb/samba/source

If you click on a filename you can then see all the commits and
changes that have been made to it over time. You can also download any
version of the file or find the differences between any two versions.

All of this is not dependent on the state of your local CVS sandbox,
so it can be used to find out the "true" state of the tree at any
time.

If you suspect some sort of CVS problem (like a change getting
reverted) then please use the above URL to work out what has
happened. You should be able to see exactly who made what changes and
when.
0001-01-01 00:00:00 +00:00
Luke Leighton
a3f96555b4 debug info added 0001-01-01 00:00:00 +00:00
John Terpstra
69fad04198 JHT ==> Getting ready for 1.9.18alpha1.
examples/smb.conf.default:
	added line "share modes = no" to netlogon share parameter list

packaging/redhat:
	updated RedHat RPM build files.
	added smbadduser script (modified for RHL).
0001-01-01 00:00:00 +00:00
Luke Leighton
28d96c7e6d checked in a file with a compile error. oops! 0001-01-01 00:00:00 +00:00
Luke Leighton
9fdd697d17 byteorder.h :
debugging output wasn't (still isn't) perfect.

credentials.c lsaparse.c smbparse.c :

	added DEBUG strings.

pipes.c :

	lost some changes, to do with setup of RPC headers.  arg.
0001-01-01 00:00:00 +00:00
John Terpstra
534b4c6d37 JHT ==> Removed linefeed that caused problems. 0001-01-01 00:00:00 +00:00
Luke Leighton
ba28678e3f align_offset() adjusted pointer to wrong location. oops. 0001-01-01 00:00:00 +00:00
Andrew Tridgell
60bb523c8a updated the "comment =" entry a bit
updated the fake oplocks entry a bit
0001-01-01 00:00:00 +00:00
Luke Leighton
e02aa88e25 getting somewhere.
ipc.c :

	removed srvsvc pipe reference: have to do that.

pipes.c lsaparse.c smbparse.c :

	more debugging info.  looks a bit like netmon output.
0001-01-01 00:00:00 +00:00
Luke Leighton
0cf67955f0 updated rpc header reply: callid wrong; alloc hint a uint32 not a uint16.
still doesn't get rid of the netlogon trans2 request with zero data.
0001-01-01 00:00:00 +00:00
Luke Leighton
a6f8de6815 ipc.c:
debugging info.  found that data = NULL because of short packet length
	indicated from the ntlsaRPC pipe _royally_ stuffs NT's packet handling.
	maybe this should go down as a service denial bug to the ntbugtraq list.

pipes.c lsaparse.c smbparse.c :

	added more debug stuff.  added length of header to data_len in MSRPC
	fragment_length field (0x18 bytes short) which caused the above bug
	from NT 4.0.  oops.
0001-01-01 00:00:00 +00:00
Luke Leighton
946d73cf83 added debugging macros (suitable eventually for use in tcpdump, hopefully) 0001-01-01 00:00:00 +00:00
Samba Release Account
b1ba290f2e Added Finland ftp mirror (PR#175) (Paul) 0001-01-01 00:00:00 +00:00
Andrew Tridgell
d2ac9e6fb6 remove { and } from the list of illegal characters in filenames. The
CIFS3 spec does not list them as illegal.

This allows things like the control panel icon to be placed on a Samba
drive.
0001-01-01 00:00:00 +00:00
John Terpstra
1e2fe7c0db JHT ==> Luke, your forgot to change the modified date! 0001-01-01 00:00:00 +00:00
Luke Leighton
1eaad1c994 namelogon.c :
added NTLOGON.  (fixed the case 0:)

namepacket.c:

	call to NTLOGON mailslot

nameserv.h

	defines for NETLOGON and NTLOGON mailslot

util.c:

	added andrew's dump_data() function.
0001-01-01 00:00:00 +00:00
Samba Release Account
15a987b9b8 updated Sunsite UK. (Paul) 0001-01-01 00:00:00 +00:00
Samba Release Account
453a543f2a Updated mirrors, combined Sources and Sources&Binaries as our binaries
are now with our sources.
Have requested that mirror sites remove the old 'binaries' tree.
Paul.
0001-01-01 00:00:00 +00:00
Luke Leighton
2ade5b2706 the usual 0001-01-01 00:00:00 +00:00
Luke Leighton
75f32987d8 added api_lsa_sam_logon() and api_sam_logoff(). that's it. lots of
run-time debugging, now.
0001-01-01 00:00:00 +00:00
Luke Leighton
0d043cfef2 added lsa_reply_srv_pwset() 0001-01-01 00:00:00 +00:00
Luke Leighton
e2e1979b62 ipc.c :
#if NTDOMAIN
		call to api_netlogRPC
	#endif

lsaparse.c :

	renamed lsa_io_q_auth2 to lsa_io_q_auth_2.

pipes.c :

	added api_lsa_reply_auth_2() and api_netlogRPC.

proto.h :

	the usual.
0001-01-01 00:00:00 +00:00
Christopher R. Hertel
5e52143829 I have to admit that I'm not very good at writing Makefiles.
This one will simply create an object file from each of the .c files
in the directory.  These could be linked into a static library, but
I'm not sure that this is worthwhile.  If anyone wants to improved on
what I've got here, please do!  crh -)-----
0001-01-01 00:00:00 +00:00