Andrew Bartlett
14811e7d0a
Try to fix up the shell syntax
...
(This used to be commit f57b1085b3
)
2001-09-19 13:29:33 +00:00
Andrew Bartlett
e121186392
Reran autoconf, autoheader
...
(This used to be commit 26e523bf6e
)
2001-09-19 12:47:59 +00:00
Andrew Bartlett
b882efea35
typo
...
(This used to be commit 7a47e0fceb
)
2001-09-19 11:44:00 +00:00
Andrew Bartlett
31c44c4744
Adding the appropirate files might help...
...
(These are part of the build_options patch).
Andrew Bartlett
(This used to be commit 4e5c7724b4
)
2001-09-19 10:45:33 +00:00
Andrew Bartlett
6794b58a8c
Add the ability to display Samba's build options with smbd -b and as a level 4
...
DEBUG(). Also included are details like build date/time, location and
compiler.
This should get most of the options we set, except those that don't affect
smbd, like WITH_PAM_SMBPASSWD or WITH_WINBINDD.
This work due to Vance Lankhaar <vlankhaar@hotmail.com>
Some work needs to be done to make it only rebuild when needed (ie smbd being
rebuilt) but its in pretty good shape already.
Also fix up some printf() -> d_printf().
Andrew Bartlett
(This used to be commit beff1d2bea
)
2001-09-19 09:44:12 +00:00
Andrew Bartlett
ebe02a7e87
printf() -> d_printf()
...
(This used to be commit e8bd42edc0
)
2001-09-19 09:37:33 +00:00
Andrew Bartlett
adb3579822
This isn't used anymore
...
(This used to be commit c6df98a1e3
)
2001-09-19 08:37:05 +00:00
Andrew Bartlett
03b0f3b106
Use lp_private_dir() not magic on the lp_smb_passwd_file() output.
...
(This used to be commit 65ae05ce63
)
2001-09-19 08:21:12 +00:00
Jeremy Allison
79a9902d39
Removed unneeded variable, added comment on deadlock prevention.
...
Jeremy.
(This used to be commit 3f52632ac9
)
2001-09-19 07:06:34 +00:00
Jeremy Allison
0ef1acbabb
Put pwrite code back in expand_file.
...
Jeremy.
(This used to be commit a3267551d8
)
2001-09-19 06:55:25 +00:00
Jeremy Allison
8c8b9c69e5
Removed test code that got added by accident.
...
Jeremy.
(This used to be commit fc91ecc236
)
2001-09-19 06:49:02 +00:00
Andrew Tridgell
01bb01b3ca
removed anti-race code that could cause a classic ABBA deadlock
...
I'd rather get the connection count wrong with a small probability
than deadlock
(This used to be commit d4e4e81328
)
2001-09-19 06:46:35 +00:00
Andrew Bartlett
6a7e334ea3
passdb/pampass.c and passdb/pass_check.c are not passdb related at all,
...
so don't link them as such.
(This used to be commit 3afad9ae01
)
2001-09-19 06:01:35 +00:00
Andrew Tridgell
2bc9ef3846
added a hook to reopen all tdb's after the server fork
...
this prevents the fd seek pointer problem
(This used to be commit f49518e497
)
2001-09-19 05:43:15 +00:00
Andrew Tridgell
d9c1da5b0c
*llist being NULL is not an error
...
(This used to be commit c4d8ad2c2e
)
2001-09-19 05:41:51 +00:00
Andrew Bartlett
6adafe50d4
Remove the ugly hacks to get around the Get_Pwnam() calls in pass_check.c by
...
simply not doing Get_Pwnam() calls in pass_check.c
We now make *one* sys_getpnam() call in cgi.c and we always call PAM no matter
what it returns. We also no longer run the password cracker for these logins.
The truly parinod will note the slight difference in call paths, in that we only
call crypt for valid password structs (if not --with-pam). The truly parinoid
don't run SWAT either, so I don't think this is an issue.
Andrew Bartlett
(This used to be commit 9020d88493
)
2001-09-19 05:26:11 +00:00
Andrew Bartlett
2309cd7f64
Fix (I hope) compile on HP-UX. Found by the build farm.
...
(This used to be commit fd5c67d35a
)
2001-09-19 04:16:35 +00:00
Andrew Tridgell
56aa0a274d
got rid of bogus write list substitution error messages
...
(This used to be commit 0deae6c407
)
2001-09-19 04:11:23 +00:00
Jeremy Allison
af0d86a9fc
Fix based on Andrew's insight as re-using a tdb after fork means
...
parent and child share seek pointer. Damn....
Jeremy.
(This used to be commit 0e75c0fc1a
)
2001-09-19 03:33:47 +00:00
Andrew Tridgell
3e9bcd111d
don't try to initgroups in non root mode
...
(This used to be commit 1a04ea2476
)
2001-09-19 03:30:20 +00:00
Andrew Bartlett
01529e340c
fix debug
...
(This used to be commit d103371e80
)
2001-09-19 02:53:14 +00:00
Andrew Bartlett
36939fcd24
Reverse some of the breakage I commited a day or two ago, as we need to
...
fill out the user_info struct (otherwise we don't have a vuid for
make_connection()).
Also add a become_user() call, becouse it really looks like it was missing
(we must pass it anyway to finish make_connection()).
Is there any reason not to be the user when reading an ACL?
Finally, fix up some formatting to show that the two functions are almost
identical.
Andrew Bartlett
(This used to be commit 00c667c0ad
)
2001-09-19 02:28:15 +00:00
Jeremy Allison
e9479e8d8a
Return correct error code on lock fail in tdb_expand.
...
Jeremy.
(This used to be commit b45793ec3f
)
2001-09-19 00:02:28 +00:00
Jeremy Allison
a27509937c
Roll back earlier fix after talking with Andrew. The write_lock_record and
...
unlock are explicitly non-blocking. I will add a comment to this effect later.
Jeremy.
(This used to be commit e4b41a8f31
)
2001-09-18 22:59:12 +00:00
Jeremy Allison
c64cd552c4
Fixed a couple of nasty bugs only easily seen with no mmap. Firstly,
...
map_ptr not neccessarily set to NULL if no mmap, secondly, iterating
through a tdb was using SETLK, instead of SETLKW - would almost never
fail with mmap as the time holding the lock was so short, but was
easily seen with read/write. One finaly bug needs tracking down w.r.t.
traversal......
Jeremy.
(This used to be commit 313c2e8652
)
2001-09-18 21:17:58 +00:00
Jeremy Allison
5bc82e443b
Correct fix for unaligned memcpy - malloc'ed memory incremented by sizeof(struct locking_data)
...
was not forced to be 8 byte aligned. Use union to force it to be correctly aligned
for memcpy and use void *, to tell compiler not to optimize aligned copy (this last fix
suggested by Trond @ RedHat). The first fix should be sufficient, but this provides a
"belt and braces" fix.
Jeremy.
(This used to be commit 22c5915bb4
)
2001-09-18 06:41:29 +00:00
Jeremy Allison
36a6611da2
Use structure copy to fix unaligned accesses on 64bit architectures on
...
Linux.
Jeremy.
(This used to be commit b4b891279b
)
2001-09-18 06:20:28 +00:00
Tim Potter
15a6649c01
Converted cli_net_auth2() and cli_nt_setup_creds() to return NTSTATUS.
...
(This used to be commit e0bdcbc599
)
2001-09-18 02:49:35 +00:00
Simo Sorce
c0ef0e113e
move to SAFE_FREE()
...
(This used to be commit 67db8f03c5
)
2001-09-17 11:48:29 +00:00
Simo Sorce
2d6a3079b8
move to SAFE_FREE()
...
(This used to be commit fc71962409
)
2001-09-17 11:37:57 +00:00
Simo Sorce
61b2794968
move to SAFE_FREE()
...
(This used to be commit a95943fde0
)
2001-09-17 11:25:41 +00:00
Simo Sorce
87945989c0
move to SAFE_FREE()
...
(This used to be commit 5ceecc7bef
)
2001-09-17 10:26:23 +00:00
Simo Sorce
e7db47bffb
move to SAFE_FREE()
...
(This used to be commit 94b0fde8a8
)
2001-09-17 10:00:29 +00:00
Simo Sorce
941a3a5d3a
move to SAFE_FREE()
...
(This used to be commit 549fe42bd4
)
2001-09-17 09:41:30 +00:00
Simo Sorce
091dbaa00b
move to SAFE_FREE()
...
(This used to be commit 09bf442549
)
2001-09-17 09:25:57 +00:00
Simo Sorce
4561e8a8ea
move to SAFE_FREE()
...
(This used to be commit 64d35e94fe
)
2001-09-17 05:04:17 +00:00
Simo Sorce
84ab9d2cb3
move to SAFE_FREE()
...
(This used to be commit fb0984e60f
)
2001-09-17 04:58:38 +00:00
Simo Sorce
b50d10c2a3
move to SAFE_FREE()
...
(This used to be commit 03dc67788f
)
2001-09-17 04:52:45 +00:00
Simo Sorce
1f312492ec
move to SAFE_FREE()
...
(This used to be commit 1446a1562b
)
2001-09-17 04:35:51 +00:00
Andrew Tridgell
23af074326
fixed ctemp in server and client. It turns out that ctemp on NT is completely broken, and it's pointless to emulate their brokenness completely in this case, but at least this makes us use approximately the same packet format. The spec is complelet wrong in this case
...
(This used to be commit 2d507ec669
)
2001-09-17 04:23:48 +00:00
Simo Sorce
81fdc3c3f7
move to SAFE_FREE()
...
(This used to be commit e61aec84ed
)
2001-09-17 04:16:35 +00:00
Simo Sorce
acc3732971
typo
...
(This used to be commit 23dc3fc700
)
2001-09-17 03:44:52 +00:00
Andrew Tridgell
7f641b4676
fixed compilation of groupdb
...
(This used to be commit 23e2561a1c
)
2001-09-17 03:40:55 +00:00
Simo Sorce
bcbd75f7ad
move to SAFE_FREE()
...
(This used to be commit 48fc6a6cd5
)
2001-09-17 03:33:37 +00:00
Simo Sorce
484a7c0341
move to SAFE_FREE()
...
(This used to be commit 60e907b7e8
)
2001-09-17 02:19:44 +00:00
Simo Sorce
31c3f7a8b2
move to SAFE_FREE()
...
(This used to be commit 89833bbbd8
)
2001-09-17 00:58:15 +00:00
Simo Sorce
77bdea1b95
move to SAFE_FREE()
...
(This used to be commit 29db6ef7a7
)
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 b7edd55885
)
2001-09-17 00:47:40 +00:00
Andrew Bartlett
b0c3915d5e
Fix compile warnings on IRIX's cc.
...
(This used to be commit 5b369bce69
)
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 0ff0a91a6b
)
2001-09-16 08:24:44 +00:00
Andrew Bartlett
6ff605c283
Minor tidy-up.
...
(This used to be commit dbb21aedbf
)
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 7f04a139b2
)
2001-09-16 06:35:35 +00:00
Andrew Tridgell
9bae3609ac
fixed compilation error in smbw
...
(This used to be commit d1e9fb7778
)
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 d618880661
)
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 eecda11eef
)
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 0e1322227b
)
2001-09-15 23:32:19 +00:00
Simo Sorce
13301415ca
free memory before returning.
...
tx Andreas Moroder.
(This used to be commit 8d60a825f7
)
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 01f30ca0ad
)
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 fb0c3629c3
)
2001-09-15 12:55:59 +00:00
Andrew Bartlett
cde3f0fae1
update for .proto.stamp
...
(This used to be commit d3a731a3d5
)
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 51baa1614d
)
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 21baa33946
)
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 512e9a5f94
)
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 bc1385fc5e
)
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 d47016de52
)
2001-09-15 01:59:44 +00:00
Jeremy Allison
ab35704cc0
Fixed up Solaris 64 bit configure.
...
Jeremy.
(This used to be commit 36516b2ca9
)
2001-09-15 00:29:54 +00:00
Gerald Carter
a3203a7b16
merges from 2.2
...
(This used to be commit b619458dde
)
2001-09-14 15:33:09 +00:00
Gerald Carter
bd7595ec37
merge from appliance_head
...
(This used to be commit f70b1707e4
)
2001-09-14 15:22:49 +00:00
Gerald Carter
c045bd74cb
merge from 2.2
...
(This used to be commit 0e4d2384de
)
2001-09-14 15:19:15 +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 96f06b490a
)
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 ef377ea0cc
)
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 5da9862002
)
2001-09-14 04:37:49 +00:00
Tim Potter
504eff41b3
Merge prs_hash1() function from tng.
...
(This used to be commit 3245714243
)
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 0f041597f8
)
2001-09-14 04:35:48 +00:00
Tim Potter
82a8f8a171
Merge of sam_pwd_hash() function from tng.
...
(This used to be commit b6cb6b837a
)
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 e4a3231a07
)
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 06c619b395
)
2001-09-14 04:31:15 +00:00
Tim Potter
22be9b68fd
Oops.
...
(This used to be commit 4c92d82bdb
)
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 f0ef301cff
)
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 a83061ef3e
)
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 2b83ad0396
)
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 95df7ede46
)
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 6399cf490d
)
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 ec7296d6e9
)
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 42417a425b
)
2001-09-12 11:48:22 +00:00
Tim Potter
2f824ec474
Ignore torture test binaries.
...
(This used to be commit c5a94780dc
)
2001-09-12 07:36:27 +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 d34fd8ec07
)
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 b8651acb9c
)
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 5686a2cfe8
)
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 97286570ef
)
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 dbfd50d447
)
2001-09-12 01:11:43 +00:00
Richard Sharpe
8e80cb0e34
Tweak the building rules under Solaris with CC.
...
(This used to be commit d3758404d4
)
2001-09-11 04:29:25 +00:00
Tim Potter
a94843061a
Added a string for NT_STATUS_OK, m'kay?
...
(This used to be commit ff14930834
)
2001-09-11 04:14:26 +00:00
Richard Sharpe
03afeaecfc
Make sure to commit configure
...
(This used to be commit a3f5139beb
)
2001-09-11 03:11:06 +00:00
Richard Sharpe
4353ea7d25
Some small changes to configure to remove things like -X4 etc on compiles.
...
(This used to be commit ec6c5da124
)
2001-09-11 03:10:29 +00:00
Jeremy Allison
45706091f3
Fix for second logic bug when handing oplock breaks and client messages
...
simultaneously.
Jeremy.
(This used to be commit 227325b2d6
)
2001-09-10 23:03:14 +00:00
Herb Lewis
866598e430
left out {
...
(This used to be commit 70bd17473a
)
2001-09-10 22:40:15 +00:00
Herb Lewis
c5dd2c8271
prevent segv by not calling tdb_traverse and tdb_close if tdb_open_log
...
returns NULL.
(This used to be commit afdf93836b
)
2001-09-10 22:31:59 +00:00
Gerald Carter
cae476a1a2
cut-n-paste error
...
(This used to be commit b2ed211df0
)
2001-09-10 19:30:34 +00:00
Gerald Carter
c113b5196f
merge from APPLIANCE_HEAD
...
(This used to be commit 55bd514c45
)
2001-09-10 19:29:00 +00:00
Andrew Tridgell
4d65bc0949
convert more code to use XFILE
...
(This used to be commit fd24265c06
)
2001-09-10 13:09:54 +00:00
Andrew Tridgell
79139fe8d8
convert more code to use XFILE
...
(This used to be commit fe6679dffb
)
2001-09-10 12:46:42 +00:00
Andrew Tridgell
b12a4dd9b6
declare dbf in one spot
...
(This used to be commit f41c3bb80f
)
2001-09-10 12:14:18 +00:00
Andrew Tridgell
162e975514
more static/dead fns
...
(This used to be commit f59826c0c9
)
2001-09-10 11:45:09 +00:00
Andrew Tridgell
12752486db
kill a dead fn and make a local one static
...
(This used to be commit 1e9815105e
)
2001-09-10 11:34:32 +00:00
Andrew Tridgell
11bd06e99c
made a couple of local fns static
...
(This used to be commit f0851202a8
)
2001-09-10 11:23:41 +00:00
Andrew Tridgell
39b24e4865
passdb/smbpassfile ain't needed any more - it only provided migration from an ancient file format, not relevant for Samba 3.0
...
(This used to be commit 954adb630d
)
2001-09-10 11:16:18 +00:00
Andrew Tridgell
f096ba37af
added xfile
...
(This used to be commit 7c2fe172c3
)
2001-09-10 11:09:36 +00:00
Andrew Tridgell
b30e75692d
replaced stdio in many parts of samba with a XFILE. XFILE is a cut-down
...
replacemnt of stdio that doesn't suffer from the 8-bit filedescriptor
limit that we hit with nasty consequences on some systems
I would eventually prefer us to have a configure test to see if we need
to replace stdio, but for now this code needs to be tested widely so
I'm enabling it by default.
(This used to be commit 1af8bf34f1
)
2001-09-10 11:08:57 +00:00
Richard Sharpe
ba8e3e0343
Make sure that if there are no interfaces, name_register_wins does not
...
segfault.
(This used to be commit a7842fac94
)
2001-09-09 09:59:33 +00:00
Andrew Tridgell
381b245d79
fixed typo
...
(This used to be commit 160906b57d
)
2001-09-09 03:18:23 +00:00
Andrew Tridgell
444a01d265
removed pointless parameter from readfile()
...
(This used to be commit 0742342ec4
)
2001-09-09 02:43:30 +00:00
Andrew Tridgell
eb7b28759a
fixed missing const on d_printf declaration
...
(This used to be commit 865e0507e6
)
2001-09-09 02:37:10 +00:00
Andrew Tridgell
65c5a1c0ba
convert more code to using d_printf
...
(This used to be commit 60d2973034
)
2001-09-08 02:59:23 +00:00
Andrew Bartlett
ed8883c5dd
Change the description on --with-pam_smbpass to make it clearer - some peope
...
seem to think you need this module for normal samba/PAM operation.
rerun autoconf
rerun autoheader
(Note that --with-pam_smbpass still doesn't build, but at least when it does
again only people who actually need it will select it).
(This used to be commit bbda3dd742
)
2001-09-07 23:56:54 +00:00
Jeremy Allison
84cca75739
Don't fail if no owner/group owner set. Use existing owners.
...
Jeremy.
(This used to be commit 9961c4c1a3
)
2001-09-07 20:08:16 +00:00
Jeremy Allison
0135666934
#ifdef out function when not used.
...
Jeremy.
(This used to be commit fa8d626a27
)
2001-09-07 20:01:19 +00:00
Andrew Tridgell
5573a1c739
added "display charset" option in smb.conf, along with d_printf()
...
which should now be used instead of DEBUG(0) or printf() for
interactive messages
I have only converted client.c to use d_printf(), and the code hasn't
had much testing yet. Eventually we want all interactive code to use
d_printf(), plus SWAT
(This used to be commit 266d8e6766
)
2001-09-07 14:14:57 +00:00
Jeremy Allison
83ebf2b6b2
Fix the 62bit locking onto 32 bit NFS mounts problem generically for HPUX.
...
Don. please check this out.
Jeremy.
(This used to be commit ce9f959964
)
2001-09-06 22:43:21 +00:00
Andrew Tridgell
9a9ac2739b
got rid of USE_TDB_MMAP_FLAG as its not needed any more
...
(This used to be commit c26e0d3f27
)
2001-09-06 22:08:19 +00:00
Jeremy Allison
a92f02a0a0
Fixed O(N^2) talloc loop when allocating printer name memory - fix from
...
Richard Bollinger <rabollinger@home.com>.
Jeremy.
(This used to be commit 408c0595bb
)
2001-09-06 15:48:29 +00:00
Andrew Tridgell
fc07eb5eef
- fixed proto.h build on systems using a parallel make
...
- changed DENY1 and DENY2 tests to only report errors
(This used to be commit 9341e5534d
)
2001-09-06 10:37:21 +00:00
Tim Potter
f9f31ba33c
Converted to NTSTATUS return codes.
...
Started on producing smbpasswd output from user account information.
Doesn't work yet.
Added -U option so samsync can be run interactively.
(This used to be commit 842fcd94fa
)
2001-09-06 09:15:57 +00:00
Tim Potter
65e35d5d4b
Started a cleanup of smbpasswd related stuff. I've created a new file
...
lib/smbpasswd.c which will contain routines related to manipulating
smbpasswd entries.
- renamed and moved pdb_{get,set}hexpwd() functions
- renamed and moved pdb_{decode,encode}acct_ctrl() functions
- started hiding references to the cruftalicious
NEW_PW_FORMAT_SPACE_PADDED_LEN constant
- started gradual rename of references to acct_ctrl to acb_info which is
the nomenclature used in MSDN and header files
There's still more work to be done. Currently there are several places
where smbpasswd entries are iterated etc. Ideally this should all happen
through the passdb system.
(This used to be commit 4a01e24030
)
2001-09-06 09:10:26 +00:00
Tim Potter
5661d1c82f
Removed 18 duplicate #undef entries.
...
(This used to be commit 7a7b13940e
)
2001-09-06 08:57:41 +00:00
Tim Potter
c7a951eae3
Annotated definition of NEW_PW_FORMAT_SPACE_PADDED_LEN constant.
...
(This used to be commit e3ec6197ed
)
2001-09-06 08:56:30 +00:00
Andrew Tridgell
75a8b24ed9
flush stdout in test logging fns
...
(This used to be commit d32ac363a5
)
2001-09-06 05:59:32 +00:00
Andrew Tridgell
fef37db972
use a different test tdb name for tdbtest and tdbtorture
...
(This used to be commit 931bded1c9
)
2001-09-06 05:58:05 +00:00
Andrew Tridgell
1772584c35
actually obey the "use mmap" smb.conf option
...
(This used to be commit b36c98036b
)
2001-09-06 05:45:07 +00:00
Tim Potter
b31055fa74
Logon workstation checks from Toomas Soome <tsoome@ut.ee>
...
Fixed compile warning.
(This used to be commit 3eee665165
)
2001-09-06 05:24:37 +00:00
Andrew Tridgell
e3d79bb0c8
enable strict locking by default. This will be slow, so now we just
...
need to fiind a way to make it fast
(This used to be commit 42b147d1f2
)
2001-09-06 01:22:17 +00:00
Andrew Tridgell
dd9b2f3b2f
it turns out that XP agrees with the samba head branch over the right
...
error codes for locking, so fix the test rather than fixing samba
(This used to be commit a583af3c2f
)
2001-09-06 01:21:09 +00:00
Andrew Tridgell
9ef7a6c786
use NTSTATUS not BOOL in do_lock()
...
(This used to be commit b1b2a5fa5d
)
2001-09-06 01:19:35 +00:00
Jeremy Allison
851e60c382
Removed unneeded set of delete on close in fsp->share_mode.
...
Jeremy.
(This used to be commit 7816f79075
)
2001-09-05 23:34:41 +00:00
Jeremy Allison
11f0402a74
Fix I think for the fcntl spinning problem. Re-prioritize so
...
that oplock break messages get priority over incoming client messages.
Jeremy.
(This used to be commit 1779f6a223
)
2001-09-05 22:45:48 +00:00
Andrew Tridgell
4f0509aeeb
2nd DELETE_ON_CLOSE_FLAG fix ...
...
we set the DELETE_ON_CLOSE_FLAG on all share modes on the file, which
means the share mode in the fsp will not match the one in the tdb when
we come to close for other file handles, which means we end up with
share modes on files after all handles are closed
fixed by making the comparison function that says if two shares modes
are equal ignore the DELETE_ON_CLOSE_FLAG
(This used to be commit 7b39c4c598
)
2001-09-05 21:39:43 +00:00
Andrew Tridgell
627b1d0a61
when you update the share mode in the db you must also update
...
fsp->share_mode otherwise the check to see if the fsp share mode
matches the one in the db will fail when you come to delete it,
thus leaving us with a share mode on a file that isn't even open!
(This used to be commit 2020738b88
)
2001-09-05 21:13:58 +00:00
Andrew Tridgell
387f1fd09c
fixed formatting to make the code vaguely readable. It's still a dogs
...
breakfast, but at least you can follow the indents
(This used to be commit 9955ea0aaa
)
2001-09-05 21:11:52 +00:00
Herb Lewis
afd0ba9d92
add PROFILE_OBJ to nmbd now
...
(This used to be commit 99b773217c
)
2001-09-05 20:06:33 +00:00
Herb Lewis
7528728071
merge profile data changes from 2.2
...
(This used to be commit c105859304
)
2001-09-05 18:43:55 +00:00
Herb Lewis
dff3c815e2
always include profile support so you do not need a different binary of
...
smbstatus to dump profile stats.
(This used to be commit fc048955b8
)
2001-09-05 18:01:48 +00:00
Herb Lewis
283b15bcd7
add profiling stats from 2.2
...
(This used to be commit 6c333e9d92
)
2001-09-05 17:58:24 +00:00
Herb Lewis
c36dd96b90
variable name changed to --with-profiling-data
...
(This used to be commit 28fba1ba48
)
2001-09-05 17:39:51 +00:00
Jeremy Allison
00973eb50e
When sending a message via a tdb, it must be open read/write.
...
Jeremy.
(This used to be commit f35887c7d4
)
2001-09-05 17:23:51 +00:00
Andrew Tridgell
d53d5beeb2
use cli_is_error() instead of looking in smb_rcls, otherwise NT status
...
codes don't work correctly
(This used to be commit 55d5828e60
)
2001-09-05 11:32:59 +00:00
Andrew Tridgell
851a06e1fd
added filename to error_packet()
...
(This used to be commit 2c424788de
)
2001-09-05 10:18:58 +00:00
Andrew Tridgell
fbe6685a79
fixed some compilation errors in cli_netlogon.c - tim, you need to rerun configure to get the new NTSTATUS stuff right
...
(This used to be commit 9bae57cfe3
)
2001-09-05 08:54:04 +00:00
Andrew Tridgell
7844aa868b
more warning fixes on solaris
...
(This used to be commit c04c67fec8
)
2001-09-05 08:11:17 +00:00
Andrew Tridgell
7deed93dd7
fixed a bunch of compilation errors on Solaris, mostly people getting NSS_STATUS and WINBINDD error codes mixed up
...
(This used to be commit 66698d6b84
)
2001-09-05 07:55:54 +00:00
Tim Potter
f6b531895e
Merged cli_net_req_chal() and cli_net_auth2() from rpc_client/cli_login.c
...
except they are called new_cli_net_req_chal() and new_cli_net_auth2()
until they are working properly.
(This used to be commit 4ca085f253
)
2001-09-05 04:46:21 +00:00