1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-21 01:59:07 +03:00

6250 Commits

Author SHA1 Message Date
Simo Sorce
77bdea1b95 move to SAFE_FREE()
(This used to be commit 29db6ef7a7c4df51adf964c0aecb1164e4ab7dee)
2001-09-17 00:52:47 +00:00
Simo Sorce
e2d393bd24 introduce SAFE_FREE() macro as suggested by andreas moroder.
(This used to be commit b7edd55885791f9aded11a0b0a131e02a819f374)
2001-09-17 00:47:40 +00:00
Andrew Bartlett
b0c3915d5e Fix compile warnings on IRIX's cc.
(This used to be commit 5b369bce69c2cbe01f938a643d3b9e71bc2075c4)
2001-09-16 08:29:03 +00:00
Andrew Bartlett
f7f0200210 Fix (I hope) for a number of little compile warnings found by the IRIX
compilers on the build farm.

Andrew Bartlett
(This used to be commit 0ff0a91a6baf7cf6b3ca59a2b4067cc07e3f2f88)
2001-09-16 08:24:44 +00:00
Andrew Bartlett
6ff605c283 Minor tidy-up.
(This used to be commit dbb21aedbf10ebc4ef0d549c4f919cf91459eef7)
2001-09-16 07:32:06 +00:00
Andrew Bartlett
dec3cbcaf0 Fix up workstaion and kickoff time checks, moved to auth_smbpasswd.c where
they can have general effect.

Fixed up workstaion support in the rest of samba, so that we can do these
checks.

Pass through the workstation for cli_net_logon(), if supplied.
(This used to be commit 7f04a139b2ee34b4c282590509cdf21395815a7a)
2001-09-16 06:35:35 +00:00
Andrew Tridgell
9bae3609ac fixed compilation error in smbw
(This used to be commit d1e9fb7778268a626b0550fa350d55d8eec7706e)
2001-09-16 03:49:15 +00:00
Andrew Bartlett
4d89a65a84 Start pushing the NTSTATUS stuff out to the wire for session setups.
Rework the 'map to guest' code, its now possible to follow what its trying
to do...

Add an NT_STATUS_EQUAL(x,y) macro to make this stuff sane to look at.

Andrew Bartlett
(This used to be commit d618880661976644a6ee713edf969ad561e82097)
2001-09-16 02:35:55 +00:00
Andrew Bartlett
41432074f5 Kill off the dangerous passwd program default, as its both very
system-dependent and can allow (when unix password sync = yes) the
'syncronisation' of root's password by a normal user :-(

Andrew Bartlett
(This used to be commit eecda11eef8bff73286c6a3c9f89ed0d1dcd7f73)
2001-09-16 00:07:04 +00:00
Andrew Bartlett
06ccf1e499 Looks like it missed these. make_connection now no longer takes a 'username'
argument.
(This used to be commit 0e1322227b0a91226b4b85c8e0ff838ebfd9e962)
2001-09-15 23:32:19 +00:00
Simo Sorce
13301415ca free memory before returning.
tx Andreas Moroder.
(This used to be commit 8d60a825f74a340beba11193a28fd83b0c4a8129)
2001-09-15 14:03:25 +00:00
Simo Sorce
72c35310b2 use variables _before_ freeing them!
thanks to Andreas Moroder for spotting these two.
(This used to be commit 01f30ca0ad472eaab8f80ec4278b1d391be3a1ae)
2001-09-15 13:21:54 +00:00
Andrew Bartlett
7892c494e7 Kill off the //server/share%user hack in share level security.
This should help make much of this code simpiler.

Andrew Bartlett
(This used to be commit fb0c3629c360fd0c57129500474960e6da6f9ef0)
2001-09-15 12:55:59 +00:00
Andrew Bartlett
cde3f0fae1 update for .proto.stamp
(This used to be commit d3a731a3d52a0cc297404b74e74cc9376ddd597f)
2001-09-15 12:24:09 +00:00
Andrew Bartlett
eb8a3778d0 Oops... For reference, NTLMv2 passwords are > 24 chars in length, while
NTLMv1 passwords (and old LM passwords) are exactly 24 in lenghth.
(This used to be commit 51baa1614d1a338f50dbf8eaa5ea31ab58c11409)
2001-09-15 12:20:21 +00:00
Andrew Bartlett
90b5a6279e This looked suspicious now we are attempting to to NTLMv2.
Andrew Bartlett
(This used to be commit 21baa33946a24159ebe873ac37cf30581437aa1a)
2001-09-15 12:16:22 +00:00
Andrew Bartlett
1c6b0ff99e Fix up NTSTATUS stuff in rpcclient's help function
(This used to be commit 512e9a5f94ba71bdea2bdecb8f21f9daad51ef3a)
2001-09-15 03:57:12 +00:00
Andrew Bartlett
9a846daf44 Restore the profiling data shmem parinoia. This whole area needs to be
fixed - an mmaped file or the like would be a good idea.
(This used to be commit bc1385fc5e55eeed626615fad92877296064a27e)
2001-09-15 02:10:22 +00:00
Andrew Bartlett
1c8c7c558b Actually fill in the status for sainity checks
Andrew Bartlett
(This used to be commit d47016de52e9e5c468edf4c87dc60535a9796b99)
2001-09-15 01:59:44 +00:00
Jeremy Allison
ab35704cc0 Fixed up Solaris 64 bit configure.
Jeremy.
(This used to be commit 36516b2ca97e8644a29055dfab868aced644f9aa)
2001-09-15 00:29:54 +00:00
Gerald Carter
a3203a7b16 merges from 2.2
(This used to be commit b619458dde158c37a4420a28a7e1e1f70e7a18d1)
2001-09-14 15:33:09 +00:00
Gerald Carter
bd7595ec37 merge from appliance_head
(This used to be commit f70b1707e42b3f7aaa38cc5637fcc5cbcdd5a26a)
2001-09-14 15:22:49 +00:00
Gerald Carter
c045bd74cb merge from 2.2
(This used to be commit 0e4d2384dee905c730d011595337ff5ecc260a13)
2001-09-14 15:19:15 +00:00
Andrew Bartlett
d7dc065a91 Update manpage for new 'add machine script' paramater
(This used to be commit 68dc525e8e7906a8618b6d28c5543ce89768563d)
2001-09-14 12:30:14 +00:00
Andrew Bartlett
b7a0c13289 Now that we always get back an NTSTATUS code actually pass it on to the
auth subsytem.  Also kill off the (unneeded) wrapper fuction.

Andrew Bartlett
(This used to be commit 96f06b490ac5e9fd86debccf8d41675fa41f7726)
2001-09-14 10:38:40 +00:00
Andrew Bartlett
cbd99a13c5 Finally commit my fix to this little mess...
The same function that adds machines to the system also adds users, and the
new 'add user script'/'add machine script' distinction needs to be made
correctly.  Also introduces a sainity check for correct $ termination.

Andrew Bartlett
(This used to be commit ef377ea0cc55cb6647ecd7a634cf5983e11cfe99)
2001-09-14 10:31:39 +00:00
Tim Potter
b031544207 Produce correct lanman and nt hashes in samsync smbpasswd output. The
output from samsync -p produces the same output as running PWDUMP.EXE on
the domain controller except it happens via the sam synchronisation protocol.
(This used to be commit 5da98620021cda92d4752e7388f0e0cdfcd0e8cd)
2001-09-14 04:37:49 +00:00
Tim Potter
504eff41b3 Merge prs_hash1() function from tng.
(This used to be commit 3245714243d15160b9e0e27c413fef65ea91f455)
2001-09-14 04:36:19 +00:00
Tim Potter
c849bd3196 Decode 68-byte password blocks using sam replication password key (which
is actually the user session key).
(This used to be commit 0f041597f8afa378fc3177264f1e52e014e6cf00)
2001-09-14 04:35:48 +00:00
Tim Potter
82a8f8a171 Merge of sam_pwd_hash() function from tng.
(This used to be commit b6cb6b837ac06d8b9cb898668e69236b64a8b698)
2001-09-14 04:34:06 +00:00
Tim Potter
0dab2c3e31 Use session key from cli_state struct rather than the uninitialised one
when calling cli_netlogon_sam_sync().  (-:
(This used to be commit e4a3231a074b01cb1d6c4bf42e0a8e687e584413)
2001-09-14 04:32:52 +00:00
Tim Potter
27cbee1b4e Removed CHECK_STRUCT macro - it isn't used anywhere.
(This used to be commit 06c619b395f212ec3122cf1c804b27afba04e79d)
2001-09-14 04:31:15 +00:00
Tim Potter
22be9b68fd Oops.
(This used to be commit 4c92d82bdb35db3e01a162fb0aa00a6fe7486c70)
2001-09-14 00:20:38 +00:00
Tim Potter
8b67689feb Discovered a whole lot more opcodes on the LSA pipe while writing a rpc
scanner.  There's lots of quota, privilege, and trusted domain goodness
waiting to be reverse engineered here!

Unfortunately the scanner can crash LSASS.EXE on NT4 just by writing
packets containing 0xdeadbeef.  )-:
(This used to be commit f0ef301cff57c9bf07694e0675eec67c61367afb)
2001-09-13 07:15:35 +00:00
Tim Potter
f04f28a622 Fixed return value for cli_dfs_exist() - nt4 returns 1, w2k returns 2.
Use werror_to_ntstatus() to convert error returns from dfs client functions
into nt errors.
(This used to be commit a83061ef3e4933c52e7206270b455a3888fa63a8)
2001-09-13 01:00:46 +00:00
Andrew Tridgell
5366c4c542 added a new global option "hostname lookups = yes/no"
This should finally kill off the remaining places where we
attempt reverse lookups of the IP of the client. It may be that some
pam modules called via the session code will need "hostname lookups = yes"
but I've left it off by default as most sites don't need it and so
many sites have broken reverse maps
(This used to be commit 2b83ad03965d00bba88fe56452d2990099b75ef1)
2001-09-13 00:30:47 +00:00
Tim Potter
544d0cf829 Terminate dfs referral alternate path string. DFS now works again in head
- hooray!
(This used to be commit 95df7ede465d835eb8ca1d1466c5153caf1a0d71)
2001-09-13 00:30:16 +00:00
Jeremy Allison
31e8101ea2 Fixed problems with arg parsing as root with smbpasswd.
Jeremy.
(This used to be commit 6399cf490dffbd162afa06f18cdd6e0364db567d)
2001-09-12 20:00:42 +00:00
Tim Potter
45762a62ce Converted msdfs referral server code to use rpcstr_push() functions. Still
doesn't work though.  )-:
(This used to be commit ec7296d6e9b5b61bac778c2093ee0cd0e23a2344)
2001-09-12 12:20:14 +00:00
Tim Potter
ad719ccbd6 String length fix from Toomas Soome <tsoome@ut.ee>
(This used to be commit 42417a425b524bc74360fdf6f1a16bfad38b9818)
2001-09-12 11:48:22 +00:00
Tim Potter
2f824ec474 Ignore torture test binaries.
(This used to be commit c5a94780dc653260cf6abd09f6a321b93806529a)
2001-09-12 07:36:27 +00:00
Tim Potter
ab4ebf4dd6 Fixed typo.
(This used to be commit 2138c4461921b8ac3141231169af1eaa6e85f9ba)
2001-09-12 07:22:55 +00:00
Tim Potter
b800a36b1c Some patches to authentication:
- the usersupplied_info now contains a smb_username (as it comes across on
   the wire) and a unix_username (after being passed through mapping
   functions)

 - when doing security={server,domain} use the smb_username, otherwise use
   the unix_username
(This used to be commit d34fd8ec0716127c7a68eeb8e77d1ae8cc07b547)
2001-09-12 06:39:50 +00:00
Andrew Tridgell
39d7983a47 - enable MSDFS by default, there seems no reason not to have it enabled
by default in Samba 3.x

- got rid of some unused parameters in Makefile.in

- declare DEBUGLEVEL in debug.h rather than in each file
(This used to be commit b8651acb9c0d7248a6a2e82c33b1e43633fd83fd)
2001-09-12 03:08:51 +00:00
Tim Potter
e041c15c53 Hmm - needs to be converted to pull/push unistr routines. But at least it
compiles now which should keep the build farm happy.
(This used to be commit 5686a2cfe874e8b30bcb2781fa4bfe7ae0cefb17)
2001-09-12 01:15:24 +00:00
Tim Potter
a39d4c052c Converted DFS error returns to WERROR instead of uint32.
(This used to be commit 97286570ef6f9151b5fe0be32aa4b294e7db9ab8)
2001-09-12 01:14:03 +00:00
Tim Potter
db9ba1f875 Moved and renamed DFS error constants from include/rpc_dfs.h to doserr.h to
fit in with new error reporting subsystem.
(This used to be commit dbfd50d447e4166a4233034885666d985ca6beb8)
2001-09-12 01:11:43 +00:00
Tim Potter
91bd0d7e9b Update from sgml source.
(This used to be commit e101e945b78fbe53b6bdcf6ddaa9355547af09fd)
2001-09-11 05:28:56 +00:00
Tim Potter
11ad75cf8a Fixed some bad markup.
(This used to be commit f66899965ea3d9677ba75dff56df2319b3e4b7c0)
2001-09-11 05:26:44 +00:00
Tim Potter
1ca1751862 Standardised on 'var = value' when referencing smb.conf parameters, rather
than 'var=value'.

Fixed up some dodgy quoting on the way.
(This used to be commit 0606c194d6e3aba0c1aac883fe04e0c6e9e9a578)
2001-09-11 05:19:10 +00:00