kai/samba.git
21 years agomake the echo'ed command match the actual command run.
Andrew Bartlett [Tue, 18 Jun 2002 06:23:51 +0000 (06:23 +0000)]
make the echo'ed command match the actual command run.
(This used to be commit 3167ec8a49a8da58f77b7c4f202c865ef9f9414c)

21 years agocompile warngin fixes merged from 2.2
Gerald Carter [Mon, 17 Jun 2002 15:33:13 +0000 (15:33 +0000)]
compile warngin fixes merged from 2.2
(This used to be commit 29874f4b8fecdc7cbd84d656dafce54cca49e0b1)

21 years agoFixed typo in debug.
Tim Potter [Mon, 17 Jun 2002 07:39:43 +0000 (07:39 +0000)]
Fixed typo in debug.
(This used to be commit 41f036ab37274ce7cdd782ead764dd1a36ecba1d)

21 years agofix typo
Gerald Carter [Mon, 17 Jun 2002 03:55:54 +0000 (03:55 +0000)]
fix typo
(This used to be commit 27bba80c0e36f823e653439a829c285cc0663485)

21 years agoCope with the requirement for constant initialisers on some unix C compilers.
Andrew Bartlett [Sun, 16 Jun 2002 11:21:07 +0000 (11:21 +0000)]
Cope with the requirement for constant initialisers on some unix C compilers.

Andrew Bartlett
(This used to be commit 11b6d283d3c1408c89b03918f3a0c034411f5966)

21 years agoFurther updates to the service.c code. authorise_login() is now a bit simpiler
Andrew Bartlett [Sun, 16 Jun 2002 09:38:11 +0000 (09:38 +0000)]
Further updates to the service.c code.  authorise_login() is now a bit simpiler
and we seem to have eliminated the segfault.

Unfortunetly I'm still at a bit of a loss as to why it did segfault, but
the patch is correct in any case.

Andrew Bartlett
(This used to be commit 70c16188c7a267f9f3f8de0b6830f66c9e68a2c7)

21 years agoTwo things: Check how many paramaters that the LDAP libs take for the
Andrew Bartlett [Sun, 16 Jun 2002 05:03:11 +0000 (05:03 +0000)]
Two things:  Check how many paramaters that the LDAP libs take for the
rebind proc (some give an extra paramter to pass a void* paramater) and
some small changes for the SMB signing code to reset things when the
signing starts, and to 'turn off' signing if the session setup failed.

Andrew Bartlett
(This used to be commit a8805a34e5d96eeb5ffe15681b241d5a449a6144)

21 years agoFix up some of the SMB signing code:
Andrew Bartlett [Sun, 16 Jun 2002 04:21:56 +0000 (04:21 +0000)]
Fix up some of the SMB signing code:

The problem was that *all* packets were being signed, even packets before
signing was set up.  (This broke the session request).

This fixes it to be an 'opt in' measure - that is, we only attempt to sign
things after we have got a valid, non-guest session setup as per the CIFS spec.

I've not tested this against an MS server, becouse my VMware is down, but
at least it doesn't break the build farm any more.

Andrew Bartlett
(This used to be commit 1dc5a8765876c1ca822e454651f8fd4a551965e9)

21 years agoWhen adding popt to an application, you need to ensure it builds on non-popt
Andrew Bartlett [Sat, 15 Jun 2002 23:55:52 +0000 (23:55 +0000)]
When adding popt to an application, you need to ensure it builds on non-popt
platforms :-)
(This used to be commit bda8f12ff551f24a6f2a8e8f7a120b2e0e45a269)

21 years agoSimplify this code further. Just substitute %H, and let the normal code
Andrew Bartlett [Sat, 15 Jun 2002 13:05:37 +0000 (13:05 +0000)]
Simplify this code further.  Just substitute %H, and let the normal code
paths handle the rest later.

Andrew Bartlett
(This used to be commit 09754ec797c4232d2016c7eff2e74044f28ebb7c)

21 years agoUnsused function since last commit
Andrew Bartlett [Sat, 15 Jun 2002 12:40:37 +0000 (12:40 +0000)]
Unsused function since last commit
(This used to be commit 957c865cee7f799145f9f1d30dfd0d0a25d826cf)

21 years agoRework much of the service.c code:
Andrew Bartlett [Sat, 15 Jun 2002 12:38:13 +0000 (12:38 +0000)]
Rework much of the service.c code:

The aim of this execise is to give the 'security>=user' code a straight paper
path.  Security=share will sill call authorise_login(), but otherwise we avoid
that mess.

This allow *much* more accurate error code reporting, beocuse we don't start
pretending that we can use the (nonexistant) password etc.

Also in this patch is code to create the 'homes' share at session setup time
(as we have done in the past - been broken recently) and to record this on
the user's vuser struct for later reference.  The changes here should also
allow for much better use of %H (some more changes to come here).

The service.c changes move a lot of code around, but are not as drastric
as they look...

(Also included is a fix to srv_srvsvc_nt.c where 'total_entries' not
'*total_entries' was compared).

This code is needs testing, but passes my basic tests.

I expect we have lost some functionality, but the stuff I had expected
to loose was already broken before I started.  In particular, we don't 'fall
back' to guest if the user cannot access a share (for security=user).  If you
want this kind of stuff then you really want security=share anyway.

Andrew Bartlett
(This used to be commit 4c0cbcaed95231f8cf11edb43f6adbec9a0d0b5c)

21 years agoUpdate the netlogon code to better cope with trusted domains, where things
Andrew Bartlett [Sat, 15 Jun 2002 11:40:25 +0000 (11:40 +0000)]
Update the netlogon code to better cope with trusted domains, where things
like the domain name and SID come from the remote domain, not the local
one.  These are filled out by the code from the previous commit (auth_util.c,
the make_server_info_info3() fn) and read back here.

Andrew Bartlett
(This used to be commit 6872de2e5b27fd2de61ed14c85475a0eacd637ca)

21 years agoAdd the missing makefile from previous commit
Andrew Bartlett [Sat, 15 Jun 2002 11:25:00 +0000 (11:25 +0000)]
Add the missing makefile from previous commit
(This used to be commit a07f2c08ff145f414618165739fe7f2d203931e8)

21 years agoThis patch does 2 things:
Andrew Bartlett [Sat, 15 Jun 2002 11:15:31 +0000 (11:15 +0000)]
This patch does 2 things:

It extends the 'server mutex' to conver security=server, becouse the connection
race condition exists here too, and while people *should* use security=domain,
some sites don't....

(This probably should be done in 2.2 as well).

Also, start to actually extract and use the information that the remote
server returns in the info3 struct.

The server mutex code is now in a new file.

Andrew Bartlett
(This used to be commit 9b0dabdf4ec3bb45879caae76e03b57ccdad8b4b)

21 years agoAdd another 'trivial' built in authentication module - this one is a
Andrew Bartlett [Sat, 15 Jun 2002 11:08:46 +0000 (11:08 +0000)]
Add another 'trivial' built in authentication module - this one is a
deveopers hack to always send a fixed challange, for the benifit
of tutorials and packet sniffing etc.

Enabling this module removes all security, so its a --enable-developer
option.

Andrew Bartlett
(This used to be commit 622e6b64dfb0a2c53d2c9dbd7b8ff438492eaf02)

21 years agoIt appears that to match NT we should not use the 'samstrict' behaviour,
Andrew Bartlett [Sat, 15 Jun 2002 11:07:25 +0000 (11:07 +0000)]
It appears that to match NT we should not use the 'samstrict' behaviour,
and that local accounts are perfectly fine.
(This used to be commit 9fe8da6dd1b7fecfee0a2778fec0b7dd0fd40bfb)

21 years agox source path so this thing compiles.
John Terpstra [Sat, 15 Jun 2002 07:34:06 +0000 (07:34 +0000)]
x source path so this thing compiles.
(This used to be commit fb89be135575561f759a299048ed1eb5363183c3)

21 years agoAdd back sys_getpwnam() and freinds to the system.c interface, but don't
Andrew Bartlett [Sat, 15 Jun 2002 00:47:52 +0000 (00:47 +0000)]
Add back sys_getpwnam() and freinds to the system.c interface, but don't
use the silly cache any more.  Also add group functions and fix a few callers.

Andrew Bartlett
(This used to be commit 41d4b94077c118ecde2bf8792b9bb7ab71c6403e)

21 years agoFix spelling typo.
Jeremy Allison [Fri, 14 Jun 2002 23:16:00 +0000 (23:16 +0000)]
Fix spelling typo.
Jeremy.
(This used to be commit 0e7e8d44627ad9645a90e96001f8550b68b67a62)

21 years agoOk, now I can try my first client test...
Jeremy Allison [Fri, 14 Jun 2002 23:01:11 +0000 (23:01 +0000)]
Ok, now I can try my first client test...
Jeremy.
(This used to be commit 9d461933766f26ce772f6d5ea849ef9218c4d534)

21 years agoMore of SMB signing for client - not yet finished (should be harmless).
Jeremy Allison [Fri, 14 Jun 2002 22:38:43 +0000 (22:38 +0000)]
More of SMB signing for client - not yet finished (should be harmless).
Jeremy.
(This used to be commit c1b20db4bb4bb1ba485466f50b9795470027327c)

21 years agoMerge of csc termination fix.
Jeremy Allison [Fri, 14 Jun 2002 17:37:05 +0000 (17:37 +0000)]
Merge of csc termination fix.
Jeremy.
(This used to be commit 1f46dc9cbf7f2da2865ae2e10146d5976ed801ea)

21 years agomoved lp_list_* functions away from param/loadparm.c, put int lib/util_str.c
Simo Sorce [Fri, 14 Jun 2002 16:02:59 +0000 (16:02 +0000)]
moved lp_list_* functions away from param/loadparm.c, put int lib/util_str.c
and renamed to str_list_* as it is a better name.
Elrond should be satisfied now :)
(This used to be commit 4ae260adb9505384fcccfb4c9929cb60a45f2e84)

21 years agoAdd a touch of const to this - helps with some yet-to-be-commited changes
Andrew Bartlett [Fri, 14 Jun 2002 14:13:41 +0000 (14:13 +0000)]
Add a touch of const to this - helps with some yet-to-be-commited changes
(This used to be commit a2c791c0bbce1d505e5ef2150384ad5d54ae7117)

21 years agoAllow non unix accounts to be added to an ldap directory without NUA accounts
Andrew Bartlett [Fri, 14 Jun 2002 14:12:27 +0000 (14:12 +0000)]
Allow non unix accounts to be added to an ldap directory without NUA accounts
already.

Andrew Bartlett
(This used to be commit a5d5b4cf2555b9bbded31b556d4fc74c00c6c490)

21 years agoPatch from ctrlsoft to use the pdb_sethexpwd function in smbpasswd - instead
Andrew Bartlett [Fri, 14 Jun 2002 06:43:51 +0000 (06:43 +0000)]
Patch from ctrlsoft to use the pdb_sethexpwd function in smbpasswd - instead
of implementing it twice inline.

This code is complex - but occasionally I get the feeling that people made
it more complext than it really needed to be...

Andrew Bartlett
(This used to be commit 273d518e52a83eca466c134531dd12825fe3cbdb)

21 years agoIt looks like we never tested the 'cleanup' code, so when I triggered it
Andrew Bartlett [Fri, 14 Jun 2002 06:23:42 +0000 (06:23 +0000)]
It looks like we never tested the 'cleanup' code, so when I triggered it
(invalid passdb backends smb.conf entry) we picked up a few things :-).

Andrew Bartlett
(This used to be commit dfa98ae0ac195956490ca2f4140a8eff1566095e)

21 years agoSome updates from ctrlsoft <jelmer@nl.linux.org> to return failure if *any* of
Andrew Bartlett [Fri, 14 Jun 2002 04:45:04 +0000 (04:45 +0000)]
Some updates from ctrlsoft <jelmer@nl.linux.org> to return failure if *any* of
the passdb backends fail to load (is this the right way? - I think so).

Also, I've added some more comments, cleaned up some style etc.
(This used to be commit c8c490bcb84df43be38bdcb48067fec12331e358)

21 years agoDebug fixes from ctrlsoft
Andrew Bartlett [Fri, 14 Jun 2002 04:26:23 +0000 (04:26 +0000)]
Debug fixes from ctrlsoft
(This used to be commit 27e34d4e63adc6d6ad63857d2a17595b7cff52db)

21 years agoKill useless cast
Andrew Bartlett [Fri, 14 Jun 2002 04:02:28 +0000 (04:02 +0000)]
Kill useless cast
(This used to be commit e2f9dd8b65063a276569d9c33aaf06606003b85c)

21 years agoConvenience function to allow a SID to be specified as a string.
Andrew Bartlett [Fri, 14 Jun 2002 03:44:38 +0000 (03:44 +0000)]
Convenience function to allow a SID to be specified as a string.

(for use in passdb modules like pdb_xml or a new pdb_ldap that stores sids etc.)

Andrew Bartlett
(This used to be commit c70b2c4fb72f251a14e0fc88b6520d69a0889bc2)

21 years agoAdd some comments on writing new pdb modules. (from ctrlsoft)
Andrew Bartlett [Fri, 14 Jun 2002 02:58:43 +0000 (02:58 +0000)]
Add some comments on writing new pdb modules. (from ctrlsoft)

Andrew Bartlett
(This used to be commit 0a64ff4c9984c751ed6bd9e9bc8d16c70abec02d)

21 years agoPatch from ctrlsoft to make the pluggable passdb subsystem use an lp_list
Andrew Bartlett [Fri, 14 Jun 2002 02:58:03 +0000 (02:58 +0000)]
Patch from ctrlsoft to make the pluggable passdb subsystem use an lp_list
rather than a string when configuring mulitple backends.

Also adjust some of the users of get_global_sam_sid() to cope with the fact
that it just might not exist (uninitialised, can't access secrets.tdb).

More places need conversion.

Add some const and remove silly casts.

Andrew Bartlett
(This used to be commit c264bf2ec93037d2a9927c00295fa60c88b7219d)

21 years agoPatch (from ctrlsoft <jelmer@nl.linux.org>) to poptify testparm, and the
Andrew Bartlett [Fri, 14 Jun 2002 02:06:58 +0000 (02:06 +0000)]
Patch (from ctrlsoft <jelmer@nl.linux.org>) to poptify testparm, and the
modifications required to suppress the const warnings.

Andrew Bartlett
(This used to be commit ec4f1e9e2f6c162a475b424d63b9802387ad905e)

21 years agoAdd const, kill of useless casts and therefore eliminate warnings.
Andrew Bartlett [Fri, 14 Jun 2002 00:47:08 +0000 (00:47 +0000)]
Add const, kill of useless casts and therefore eliminate warnings.

Andrew Bartlett
(This used to be commit 29490f214750acd44cee6c4ab1354722d82d853a)

21 years agoEnsure we save any older SIGALRM signal handler.
Jeremy Allison [Thu, 13 Jun 2002 22:49:13 +0000 (22:49 +0000)]
Ensure we save any older SIGALRM signal handler.
Jeremy.
(This used to be commit aa0a6f5532a2689409426eef9a4b66a28fb97635)

21 years agoVeto files fix.
Jeremy Allison [Thu, 13 Jun 2002 21:20:51 +0000 (21:20 +0000)]
Veto files fix.
Jeremy.
(This used to be commit 1712a7b34a73ad89965961c0db4dd198d6b257c6)

21 years agoMerge in mangle fixes from 2.2.
Jeremy Allison [Thu, 13 Jun 2002 19:29:02 +0000 (19:29 +0000)]
Merge in mangle fixes from 2.2.
Jeremy.
(This used to be commit 5e2571f424a40df4d67fe279517a9b21184b78e1)

21 years agoLatest patch from metze <metze@metzemix.de> to move most of samba across
Andrew Bartlett [Thu, 13 Jun 2002 14:06:08 +0000 (14:06 +0000)]
Latest patch from metze <metze@metzemix.de> to move most of samba across
to using SIDs instead of RIDs.

The new funciton sid_peek_check_rid() takes an 'expected domain sid' argument.

The idea here is to prevent mistakes where the SID is implict, but isn't
the same one that we have in the struct.

Andrew Bartlett
(This used to be commit 04f9a8ff4c7982f6597c0f6748f85d66d4784901)

21 years agoa useful script for finding global variables or functions that could
Andrew Tridgell [Thu, 13 Jun 2002 07:06:19 +0000 (07:06 +0000)]
a useful script for finding global variables or functions that could
be static

very very slow ... I leave it as an exercise for the reader to make
this O(n) instead of O(n^2)
(This used to be commit 7c035d473c7175163ad5db0373ed2fe6c739b968)

21 years agoSpelling.
Tim Potter [Wed, 12 Jun 2002 05:50:03 +0000 (05:50 +0000)]
Spelling.
(This used to be commit bfd8a33c68a3747cbad21667d7515aebd61ec537)

21 years agoIgnore winbindd_proto.h
Tim Potter [Wed, 12 Jun 2002 05:27:13 +0000 (05:27 +0000)]
Ignore winbindd_proto.h
(This used to be commit 8e51081333ae0b81a2aa2c609aa7a3ff8bf7f4ec)

21 years agoSpelling fixes.
Tim Potter [Wed, 12 Jun 2002 05:10:19 +0000 (05:10 +0000)]
Spelling fixes.
(This used to be commit de18c785ab9a253cc8bf8d7e4066de0133225c6c)

21 years agoRemoved eff_name field from cli_struct as it wasn't being used anywhere.
Tim Potter [Wed, 12 Jun 2002 01:33:30 +0000 (01:33 +0000)]
Removed eff_name field from cli_struct as it wasn't being used anywhere.
(This used to be commit aff65bf6c9f339ae1d3122d12114005c017b9b5d)

21 years agofew fixes from Elrond(elrond@samba-tng.org) and Billy O'Connor(billy@oconnoronline...
Simo Sorce [Tue, 11 Jun 2002 22:54:06 +0000 (22:54 +0000)]
few fixes from Elrond(elrond@samba-tng.org) and Billy O'Connor(billy@oconnoronline.net)
(This used to be commit 88718883e031a3249152861300432dfc895ac587)

21 years agomerge from 2.2
Gerald Carter [Tue, 11 Jun 2002 03:22:32 +0000 (03:22 +0000)]
merge from 2.2
(This used to be commit 30a0e72572b25ddd99438b92b8ddf7f06e9ad819)

21 years agoMerge of Jerry's fix from 2.2.
Jeremy Allison [Mon, 10 Jun 2002 21:49:18 +0000 (21:49 +0000)]
Merge of Jerry's fix from 2.2.
Jeremy.
(This used to be commit 64af68924b8fc36caac3f978dc0f9deccc41e059)

21 years agoRemove "sids.h" as it really wasn't being used anywhere, and was exporting
Andrew Bartlett [Mon, 10 Jun 2002 12:27:05 +0000 (12:27 +0000)]
Remove "sids.h" as it really wasn't being used anywhere, and was exporting
the (now static) global_sam_sid.

The only place it was being used was to return global_sid_NULL to some
uid->sid functions - and I'm not convinced this is correct in any case.

Andrew Bartlett
(This used to be commit e2a76a7fc94dd59c09bba3cda91446fad9f8c0e0)

21 years agoWith this file being automaticly regenerated, and cleaned up with 'make clean'
Andrew Bartlett [Mon, 10 Jun 2002 09:40:58 +0000 (09:40 +0000)]
With this file being automaticly regenerated, and cleaned up with 'make clean'
I think it should be removed from CVS.  This matches the other proto files.

Andrew Bartlett
(This used to be commit 5a8d573f1784b037fd848d85a96dabfebfad63fd)

21 years agoFix up comment on netbios scopes, and remove paragraph about international
Andrew Bartlett [Sun, 9 Jun 2002 13:31:23 +0000 (13:31 +0000)]
Fix up comment on netbios scopes, and remove paragraph about international
charsets, becouse it really don't apply well with Samba 3.0 and unicode.

Andrew Bartlett
(This used to be commit 43fdd20386a45587e7b739f5c48c9cddc5c98da3)

21 years agoThis paragraph is irrelevent and misleading (needs fix for 2.2 as well)
Andrew Bartlett [Sun, 9 Jun 2002 13:16:45 +0000 (13:16 +0000)]
This paragraph is irrelevent and misleading  (needs fix for 2.2 as well)
(This used to be commit 3dd7fa7c57bb1c1d47b2c70a0dd4b5f14c1ddeb2)

21 years agoThis (hopefully) fixes a bug reported by Kai Krueger <kai@kruegernetz.de>
Andrew Bartlett [Sun, 9 Jun 2002 08:45:35 +0000 (08:45 +0000)]
This (hopefully) fixes a bug reported by Kai Krueger <kai@kruegernetz.de>
involving the use of lp_winbind_gid() without checking if they have been
set.

Also revert the 'clashing user' check back to a Get_Pwnam() - I probably should
never have changed it.

Andrew Bartlett
(This used to be commit 1d6ba405589cee4e1582bc91cf659b89564899d4)

21 years agoEnsure when allowing fchown with write access and dos filemodes that
Jeremy Allison [Fri, 7 Jun 2002 23:18:03 +0000 (23:18 +0000)]
Ensure when allowing fchown with write access and dos filemodes that
we leave the gid alone.
Jeremy.
(This used to be commit 3f72910cf954b127c0cc06d6616ca2b8cd0d41ad)

21 years agoMerge pidfile fix.
Jeremy Allison [Fri, 7 Jun 2002 17:49:12 +0000 (17:49 +0000)]
Merge pidfile fix.
Jeremy.
(This used to be commit 2c1e78702423ba17993975eb7f158058cc7f229f)

21 years agoFix comment
Andrew Bartlett [Fri, 7 Jun 2002 14:36:41 +0000 (14:36 +0000)]
Fix comment
(This used to be commit 1996bcbe6acae49e191363ee122b30e4e5d5e8a9)

21 years agoGlobally replace 'global_sam_sid' with get_global_sam_sid(), a self
Andrew Bartlett [Fri, 7 Jun 2002 14:33:33 +0000 (14:33 +0000)]
Globally replace 'global_sam_sid' with get_global_sam_sid(), a self
initialising function.  This patch thanks to the work of
"Stefan (metze) Metzmacher" <metze@metzemix.de>

This is partly to enable the transition to SIDs in the the passdb.

Andrew Bartlett
(This used to be commit 96afea638e15d4cbadc57023a511094a770c6adc)

21 years agoMove the code from lib/util_sid.c that deals with the global_sam_sid into
Andrew Bartlett [Fri, 7 Jun 2002 12:45:51 +0000 (12:45 +0000)]
Move the code from lib/util_sid.c that deals with the global_sam_sid into
a file that is linked with the passdb.

This is to avoid linking insanity when this global becomes a self-initing
function.
(This used to be commit 743afd96cb54b4966e3afad11ea987f968b98651)

21 years agoAdd flags2 for security signitures
Andrew Bartlett [Fri, 7 Jun 2002 12:42:25 +0000 (12:42 +0000)]
Add flags2 for security signitures
(This used to be commit 39c3f245f5e5d5e7532f9097683e6af3190dc872)

21 years agoA couple of updates for the SmbEncrypt code, and some of its users.
Andrew Bartlett [Fri, 7 Jun 2002 12:41:04 +0000 (12:41 +0000)]
A couple of updates for the SmbEncrypt code, and some of its users.

(const, takes unix string as arg)

Also update cli_full_connection to take NULL pointers as 'undefined' correctly,
and therefore do its own lookup etc.  This what was intended, but previously
you needed to supply a 0.0.0.0 IP address.

Andrew Bartlett
(This used to be commit 8fb1a9c6ba07dbf04a6aa1e30fa7bbd4c676ed28)

21 years agoAllow sd_len to be zero on NT_TRANSACT_CREATE but not for set sd (helps
Jeremy Allison [Fri, 7 Jun 2002 01:39:26 +0000 (01:39 +0000)]
Allow sd_len to be zero on NT_TRANSACT_CREATE but not for set sd (helps
Novell client).
Jeremy.
(This used to be commit ac49fd297acf27384a5e133a5fd7a32c1ba27ca6)

21 years agoOverly complex but neccessary fix for kernel oplock problems. The issue
Jeremy Allison [Thu, 6 Jun 2002 23:55:41 +0000 (23:55 +0000)]
Overly complex but neccessary fix for kernel oplock problems. The issue
is that there are some times when we should return an EINTR from a select,
some times when we should not. As we can take a signal at any time, we
have to eat EINTR's in some selects. This means we need to check for
kernel oplock breaks more often in the main loop, as well as add the
queuing mechanism needed for the changenotify code (due to the mistake
in understanding POSIX semantics w.r.t. setting a signal mask in a
signal handler). This code now passes all my tests.
However, (and IMHO and I know tridge disagrees) - the correct way to
fix this is to run with RT signals blocked and explicitly unblock
them just before the main select, block them after and then process
them all in one place. Just my 2cents :-).
Jeremy.
(This used to be commit a8c85372e2826a07117c89b39270cde8641ce55d)

21 years agoenable building of shared libsmbclient
Gerald Carter [Thu, 6 Jun 2002 14:01:19 +0000 (14:01 +0000)]
enable building of shared libsmbclient
(This used to be commit 24f127a58f66de9b8733bc3261212d01926d0a87)

21 years agoFix compile error - doh!
Tim Potter [Thu, 6 Jun 2002 01:34:04 +0000 (01:34 +0000)]
Fix compile error - doh!
(This used to be commit e80e6637064a39635faba5311f774a90b1d5ab43)

21 years agoMoved some notify related constants into srv_spoolss_nt.c since
Tim Potter [Thu, 6 Jun 2002 01:19:56 +0000 (01:19 +0000)]
Moved some notify related constants into srv_spoolss_nt.c since
they're only used there.

Added a PRINTER_NOTIFY_VERSION constant.
(This used to be commit 9d3933a59219388c209d8be4ae6decfa337d229f)

21 years agoFixed out of date comment for _spoolss_rffpcnex()
Tim Potter [Thu, 6 Jun 2002 00:59:52 +0000 (00:59 +0000)]
Fixed out of date comment for _spoolss_rffpcnex()
(This used to be commit 7d9b8c58a63cf20d00dd7cf88cfb82aed3a47d12)

21 years agoFix typo.
Shirish Kalele [Wed, 5 Jun 2002 18:37:15 +0000 (18:37 +0000)]
Fix typo.
(This used to be commit b874c14a1d3cd333aada5ee93da7a83c24c7b3d6)

21 years agomerge from 2.2
Gerald Carter [Wed, 5 Jun 2002 18:30:07 +0000 (18:30 +0000)]
merge from 2.2
(This used to be commit ce2ddb70411b30a0d6b2d6dded13c3b94895c1dd)

21 years agomerge 390 kernel workaround from SAMBA_2_2.
Jim McDonough [Wed, 5 Jun 2002 14:30:20 +0000 (14:30 +0000)]
merge 390 kernel workaround from SAMBA_2_2.
(This used to be commit df78e76e0b8e90430af37ce997bfc6b73c9d01d7)

21 years agoSpelling fix.
Tim Potter [Wed, 5 Jun 2002 07:11:22 +0000 (07:11 +0000)]
Spelling fix.
(This used to be commit 39ec94bffe536de5950611d6e4b28621b6aff844)

21 years agoStore cache entry keys that have RID values in decimal to be
Tim Potter [Wed, 5 Jun 2002 04:23:37 +0000 (04:23 +0000)]
Store cache entry keys that have RID values in decimal to be
consistent with other keys.
(This used to be commit 1e5bdf974fb1e64b5f5b82e0e24eb97aeb229584)

21 years agoRemove blocksignals call as it's never going to bloody work right...
Jeremy Allison [Wed, 5 Jun 2002 01:47:28 +0000 (01:47 +0000)]
Remove blocksignals call as it's never going to bloody work right...
Jeremy.
(This used to be commit db8932c297096e6e957677c4ed944e4c319db1d8)

21 years agoFix for Linux kernel bug where signal mask set within a signal handler
Jeremy Allison [Wed, 5 Jun 2002 00:05:05 +0000 (00:05 +0000)]
Fix for Linux kernel bug where signal mask set within a signal handler
is being ignored on sighandler exit. This means we have to have a small
array of fd's, not a single one.
Jeremy.
(This used to be commit b06862e2de8d3bafbc10a9807501ef5bf148a61c)

21 years agoUpdate the SAMR pipe for more use of NTSTATUS and to talloc the stored list of
Andrew Bartlett [Tue, 4 Jun 2002 23:10:02 +0000 (23:10 +0000)]
Update the SAMR pipe for more use of NTSTATUS and to talloc the stored list of
users/groups for better memory accounting.

Andrew Bartlett
(This used to be commit fe7c5efe91ab77784af9dbb56716170f4c6fd057)

21 years agoStore the key for a name to sid cache entry in upper case rather than
Tim Potter [Tue, 4 Jun 2002 03:44:04 +0000 (03:44 +0000)]
Store the key for a name to sid cache entry in upper case rather than
whatever case the request was made in.  This gets rid of duplicate
cache entries.

Also when doing a sid to name, prime the cache with the name to sid
mapping result.  We can't do the reverse as we don't know the correct
case of the name to store in the cache.
(This used to be commit f268b0d5fb811b364578b11a66ca69973717eea8)

21 years agoFixed compiler warning.
Tim Potter [Tue, 4 Jun 2002 03:19:20 +0000 (03:19 +0000)]
Fixed compiler warning.
(This used to be commit 361afd241beeda033068c7f3a976f3f69fa2ac33)

21 years agoFixed some formatting.
Tim Potter [Tue, 4 Jun 2002 01:45:59 +0000 (01:45 +0000)]
Fixed some formatting.
(This used to be commit 25554b46ded273e8f4070f14661b691ccc9ddd17)

21 years agoFix long list scrolling bug.
Tim Potter [Tue, 4 Jun 2002 01:41:44 +0000 (01:41 +0000)]
Fix long list scrolling bug.

Added some padding around the filter entry to make it look nicer.

When resizing the window the scrolling list should get bigger/smaller
not the filter entry widget.
(This used to be commit f504be133cd9659163a609eb11a09a36e56166ee)

21 years agoMove session gathering routine back into session.c so it can be called either
Jim McDonough [Mon, 3 Jun 2002 22:15:46 +0000 (22:15 +0000)]
Move session gathering routine back into session.c so it can be called either
in RAP or RPC environment.
(This used to be commit 3eec0d64c7c4592d4f0d74108fb0be2b7a22bde6)

21 years agoFix netsessenum RPC. Correctly respond with as much info as we can.
Jim McDonough [Mon, 3 Jun 2002 22:14:43 +0000 (22:14 +0000)]
Fix netsessenum RPC.  Correctly respond with as much info as we can.
(This used to be commit c8781a3fdaa4d8cb81233582f29159ace7e436ac)

21 years agoAdd user name to netsessenum RPC to stop 1783 messages. Also fix where username...
Jim McDonough [Mon, 3 Jun 2002 22:13:41 +0000 (22:13 +0000)]
Add user name to netsessenum RPC to stop 1783 messages.  Also fix where username was sent as machine name.
(This used to be commit 2b4a5b56664cf3c99682b64c0fc5e2ebebb749b7)

21 years agoAdd user name to netsessenum RPC to stop 1783 messages
Jim McDonough [Mon, 3 Jun 2002 22:12:44 +0000 (22:12 +0000)]
Add user name to netsessenum RPC to stop 1783 messages
(This used to be commit 18854bcd2df88ab49c263c86d111a50d83411885)

21 years agoSince includes.h isn't included here, VA_COPY has to be defined here. I don't
Jim McDonough [Mon, 3 Jun 2002 13:37:52 +0000 (13:37 +0000)]
Since includes.h isn't included here, VA_COPY has to be defined here.  I don't
see any include file that is guaranteed to be here, so I'm defining it
locally.  Fixes AIX and Solaris builds.
(This used to be commit ca6bb47c22385a2c32be6ac3f8d9ffbfda45359b)

21 years agoAdded tdb_delete_by_string() function.
Tim Potter [Mon, 3 Jun 2002 06:04:14 +0000 (06:04 +0000)]
Added tdb_delete_by_string() function.
(This used to be commit 0cd3952f408e2fcd2c833b9039dff4392ac16cf7)

21 years agoAdd VFS Support
John Terpstra [Mon, 3 Jun 2002 05:59:58 +0000 (05:59 +0000)]
Add VFS Support
(This used to be commit c28343fd033c7a805fad451dca39dfc627cee2c4)

21 years agoRemoved unused function.
Tim Potter [Mon, 3 Jun 2002 04:28:53 +0000 (04:28 +0000)]
Removed unused function.
(This used to be commit f7e75952306296b11a859f425ff5ec7082239dc2)

21 years agoput the ifdef for HAVE_VA_COPY in one place rather than in lots of
Andrew Tridgell [Mon, 3 Jun 2002 03:07:24 +0000 (03:07 +0000)]
put the ifdef for HAVE_VA_COPY in one place rather than in lots of
functions
(This used to be commit 1cf3228fdc20f0314d1f8e71ad710a5e548b3f72)

21 years agofixed some debug messages
Andrew Tridgell [Mon, 3 Jun 2002 03:04:35 +0000 (03:04 +0000)]
fixed some debug messages
(This used to be commit 8b5ac00ac60135f83145c65425d7b33a751a15b4)

21 years agoRestrict anonymous checks for the SAMR pipe. This is done by
Tim Potter [Mon, 3 Jun 2002 03:02:39 +0000 (03:02 +0000)]
Restrict anonymous checks for the SAMR pipe.  This is done by
returning access denied for a SAMR_CONNECT by an anonymous user which
seems to be the way 2K does it rather than blocking individual RPC
calls like NT.

Also checked is the SAMR_GET_DOM_PWINFO rpc which for some reason
doesn't require a policy handle to return information.  No idea what
it's actually used.
(This used to be commit 40c68fa85c31c1baf7ba2c8ed62cd06c34711913)

21 years agoMove restrict anonymous checks into a general function called
Tim Potter [Mon, 3 Jun 2002 02:55:16 +0000 (02:55 +0000)]
Move restrict anonymous checks into a general function called
pipe_access_check().  Eventually this can take a security descriptor
as an argument as well.
(This used to be commit 8bbdc674afef32621bf473ba1af76bae7270b818)

21 years agofixed a spelling mistake
Andrew Tridgell [Mon, 3 Jun 2002 02:46:25 +0000 (02:46 +0000)]
fixed a spelling mistake
(This used to be commit 5a04ea1f0c41965bc735f38f4892dc37571734d6)

21 years agoadded a 'net ads search' command, similar to 'ldapsearch' but using the
Andrew Tridgell [Mon, 3 Jun 2002 02:43:06 +0000 (02:43 +0000)]
added a 'net ads search' command, similar to 'ldapsearch' but using the
Samba LDAP code.

I have found using 'ldapsearch' rather frustrating, particularly with
kerberos authentication. Using 'net ads search' makes it easier to
track down ADS problems.
(This used to be commit 55cad87424787fc5f140d307888f4c557dc2b345)

21 years agoAdded getdompwinfo function.
Tim Potter [Mon, 3 Jun 2002 02:24:22 +0000 (02:24 +0000)]
Added getdompwinfo function.
(This used to be commit b3b3e45583718e5b034f6c67609523f35753c1a8)

21 years agoAdded cli_samr_get_dom_pwinfo() function.
Tim Potter [Mon, 3 Jun 2002 02:23:05 +0000 (02:23 +0000)]
Added cli_samr_get_dom_pwinfo() function.

Some reformatting.
(This used to be commit d6dd7c7b14a4e3be4d7d435b6ac6bb8189070ff7)

21 years agoRemoved unused variable.
Tim Potter [Mon, 3 Jun 2002 02:20:56 +0000 (02:20 +0000)]
Removed unused variable.
(This used to be commit a8b2e76c5b90d3dcd00f26462614f56936c13110)

21 years agoFixed bogus alignment in unmarshalling of SAMR_GET_DOM_PWINFO reply.
Tim Potter [Mon, 3 Jun 2002 02:13:46 +0000 (02:13 +0000)]
Fixed bogus alignment in unmarshalling of SAMR_GET_DOM_PWINFO reply.
(This used to be commit 2e25b5c3099e48869e83a1e03943d3cc2a875f24)

21 years agoThe last element of the definitions of enums can't have a trailing
Tim Potter [Sun, 2 Jun 2002 23:23:16 +0000 (23:23 +0000)]
The last element of the definitions of enums can't have a trailing
comma.  Only initialisers can have this in ANSI C.
(This used to be commit b6119f583552425c2be30662e9325270a5dbf096)

21 years agoAdd remainder of net rpc file subcommands, and autoselect transport on
Jim McDonough [Sat, 1 Jun 2002 01:03:04 +0000 (01:03 +0000)]
Add remainder of net rpc file subcommands, and autoselect transport on
net file
(This used to be commit fd938eca210602790c4d0e442f3aa9aa22b5fdf2)

21 years agoUpdate for new interface to netfileenum
Jim McDonough [Sat, 1 Jun 2002 01:02:23 +0000 (01:02 +0000)]
Update for new interface to netfileenum
(This used to be commit c3921e36071a70ab9534fe92286b361aae2336b6)

21 years agoAdd rpc for file close, expand file enum to take username
Jim McDonough [Sat, 1 Jun 2002 01:02:04 +0000 (01:02 +0000)]
Add rpc for file close, expand file enum to take username
(This used to be commit 4b18a94590a25882f06f88c3c7dd1a08bf990044)