kai/samba.git
17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

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

17 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)

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

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

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

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

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

17 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)

17 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)

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

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 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)

17 years agoMore cleanup work preparing for SMB signing.
Jeremy Allison [Sat, 1 Jun 2002 00:10:08 +0000 (00:10 +0000)]
More cleanup work preparing for SMB signing.
Jeremy.
(This used to be commit 3c05f7c06fc8c45307ea75128b160a5945fc5197)

17 years agoRemoved some unused variables - tidy up some formating, add struct to
Jeremy Allison [Fri, 31 May 2002 22:18:07 +0000 (22:18 +0000)]
Removed some unused variables - tidy up some formating, add struct to
client state to implement smb signing - this is a test at present.
Jeremy.
(This used to be commit a234e303558a25c4ea26b7f6788006e4fee651bf)

17 years agoEnable all net rpc share subcommands and autoselect transport.
Jim McDonough [Fri, 31 May 2002 21:10:49 +0000 (21:10 +0000)]
Enable all net rpc share subcommands and autoselect transport.
(This used to be commit ebd07c3a295e3f8cd46441caac4dc8e8b178c2cc)

17 years agoAdd netshareadd and netsharedel client side rpc
Jim McDonough [Fri, 31 May 2002 21:09:58 +0000 (21:09 +0000)]
Add netshareadd and netsharedel client side rpc
(This used to be commit f37d85babf1061bb2b5ffdf96c72427f8ad5e832)

17 years agoAdd fns for netshareadd and netsharedel rpcs
Jim McDonough [Fri, 31 May 2002 21:08:51 +0000 (21:08 +0000)]
Add fns for netshareadd and netsharedel rpcs
(This used to be commit 4e317163858d8a7f65984a8a8507a459ac1515cc)

17 years agoAdd error index to netshareadd rpc.
Jim McDonough [Fri, 31 May 2002 21:07:54 +0000 (21:07 +0000)]
Add error index to netshareadd rpc.
(This used to be commit ea55d470e485a0448428c60a12fbb4a42c6b2019)

17 years agoEnable net rpc share and net rpc file commands (list subcommands only), and
Jim McDonough [Fri, 31 May 2002 17:03:48 +0000 (17:03 +0000)]
Enable net rpc share and net rpc file commands (list subcommands only), and
autoselect for this subcommand when appropriate.
(This used to be commit 77418256d3162b41a672a25f7e512999f1193926)

17 years agoUpdate netfileenum to new api.
Jim McDonough [Fri, 31 May 2002 17:02:44 +0000 (17:02 +0000)]
Update netfileenum to new api.
(This used to be commit 70f8adf297a3979230e425126cd5868972b1d17e)

17 years agoUpdate netfileenum on both client and server sides to do an arbitrary number
Jim McDonough [Fri, 31 May 2002 17:02:09 +0000 (17:02 +0000)]
Update netfileenum on both client and server sides to do an arbitrary number
of files.  This was done to better enable net rpc file.  Perhaps we can start
giving back real info this way, too.
(This used to be commit b3fea72ee9abd2441a49c35442c54819e4ba16ba)

17 years agoFixed crash bug in querydispinfo.
Tim Potter [Fri, 31 May 2002 04:25:00 +0000 (04:25 +0000)]
Fixed crash bug in querydispinfo.

Some reformatting.
(This used to be commit 612eae45ef7b0289e0c67b331d96a351fc567e5c)

17 years agoReturn access denied for net_share_enum when restrict anonymous > 0
Tim Potter [Fri, 31 May 2002 00:48:40 +0000 (00:48 +0000)]
Return access denied for net_share_enum when restrict anonymous > 0
(This used to be commit 5df1aa9f20ae2036848b7e46703bfd3a923d7b4f)

17 years agoResurrect the 'restrict anonymous' parameter but make it an integer.
Tim Potter [Fri, 31 May 2002 00:47:19 +0000 (00:47 +0000)]
Resurrect the 'restrict anonymous' parameter but make it an integer.
It will have the same meaning as the RestrictAnonymous registry
setting.

See Q143474 and Q246261 for more details.
(This used to be commit 2d2f6fcc559e90a5c7a761ec2860551f5eb86423)

17 years agonetfileenum was missing the username filter.
Jim McDonough [Fri, 31 May 2002 00:29:29 +0000 (00:29 +0000)]
netfileenum was missing the username filter.
(This used to be commit 8fc3dba8bd99c55bef9ac137976dd35134a49342)

17 years agoAdded netfileenum (sorry - no output though (-:) command.
Tim Potter [Thu, 30 May 2002 07:12:32 +0000 (07:12 +0000)]
Added netfileenum (sorry - no output though (-:) command.
(This used to be commit 099b750b4ed8f04a1fd8a018508d412691e37df6)

17 years agoAdded some comments for NTLMSSP negotiation flags.
Tim Potter [Thu, 30 May 2002 02:07:38 +0000 (02:07 +0000)]
Added some comments for NTLMSSP negotiation flags.
(This used to be commit 742413b2846af44ac43830f488c15c5c11c1cb27)

17 years agomerge from 2.2
Gerald Carter [Wed, 29 May 2002 04:39:23 +0000 (04:39 +0000)]
merge from 2.2
(This used to be commit 65417ed341113a9624eada9a97ef0b9d66ca95c0)

17 years agomerge from 2.2
Gerald Carter [Wed, 29 May 2002 02:08:46 +0000 (02:08 +0000)]
merge from 2.2
(This used to be commit 612584f7d5383db28960e1ae9aaeaa9b8b47486c)

17 years agoAdded netremotetod to try and figure out which srvsvc commands are denied
Tim Potter [Wed, 29 May 2002 01:43:44 +0000 (01:43 +0000)]
Added netremotetod to try and figure out which srvsvc commands are denied
when using restrictanonymous.
(This used to be commit 0c65978ed07903af808da5f32cc29531aef23225)

17 years agoCleaned up srvsvc constants a bit.
Tim Potter [Wed, 29 May 2002 00:49:26 +0000 (00:49 +0000)]
Cleaned up srvsvc constants a bit.
(This used to be commit ca61f68d5ca8791bea34732bd358cfb63273fc5c)

17 years agoSpelling fixes.
Tim Potter [Tue, 28 May 2002 23:22:05 +0000 (23:22 +0000)]
Spelling fixes.
(This used to be commit 3d0f4acad2f0c57d0a255e90e5f674ba582251e2)

17 years agomerge from 2.2
Gerald Carter [Tue, 28 May 2002 14:49:00 +0000 (14:49 +0000)]
merge from 2.2
(This used to be commit e671b7fe9d6c963e20770944f29ea532293d2692)

17 years agoUpdates to better report some NTSTATUS errors into PAM, and update to PAM
Andrew Bartlett [Tue, 28 May 2002 14:35:11 +0000 (14:35 +0000)]
Updates to better report some NTSTATUS errors into PAM, and update to PAM
to correctly allow password changes on expired passwords.  (No security
implications, as its just a 'will I let you talk to the server' check).

pam_winbind checks the password prior to changing it, so that users don't
have to make up and type their new password when they havn't even got the
old one right.  This also helps with stacking etc.

Andrew Bartlett
(This used to be commit 2b78d493002a3ba13533429c6a14f5c0a92f43d1)

17 years agoAdded netshareenum cli command - the rpc structures here are really bizzare
Tim Potter [Tue, 28 May 2002 08:43:22 +0000 (08:43 +0000)]
Added netshareenum cli command - the rpc structures here are really bizzare
so muchos dodgy code is required to copy the results out of the parse
buffer into the client's talloc context.
(This used to be commit 496d3cf02c15ece7e13fa023deea740ee00486a8)

17 years agoWhen marshalling a netshareenum request the share ctr has to be initialised
Tim Potter [Tue, 28 May 2002 08:41:50 +0000 (08:41 +0000)]
When marshalling a netshareenum request the share ctr has to be initialised
to an empty value instead of a null pointer otherwise the server service
crashes on NT.
(This used to be commit c7214baa0540a0c7d23d3023b2c2ff4cde0f9f7f)

17 years agoAdded netshareenum command at level 1 and 2.
Tim Potter [Tue, 28 May 2002 08:40:29 +0000 (08:40 +0000)]
Added netshareenum command at level 1 and 2.
(This used to be commit 99ac1b339c2b4ec5b85ecc3a87efa2ef508ecab1)

17 years agoHmm - you can do NT_STATUS_IS_OK on a WERROR and not get a compile warning/error.
Tim Potter [Tue, 28 May 2002 08:39:12 +0000 (08:39 +0000)]
Hmm - you can do NT_STATUS_IS_OK on a WERROR and not get a compile warning/error.
(This used to be commit 8d6270cadf7f99ee8ee441ee6c3e58eca623d519)

17 years agoSome fixes for enumerating domain groups and aliases:
Tim Potter [Tue, 28 May 2002 04:10:04 +0000 (04:10 +0000)]
Some fixes for enumerating domain groups and aliases:

 - close down connect and domain policy handles when exiting
 - allow enumeration of > 65535 groups or aliases
 - error handling for non-zero return value from enumeration functions
(This used to be commit a48f362ca7ff6477d3064bc2c5c888eeb095d2ce)

17 years agoSeparate error handling for cli_full_connection() and cli_nt_session_open()
Tim Potter [Tue, 28 May 2002 03:15:09 +0000 (03:15 +0000)]
Separate error handling for cli_full_connection() and cli_nt_session_open()
(This used to be commit 6f269de03e91b823a30a2a12e41f25f1fa050870)

17 years agoRaise a ValueError if server name isn't given in UNC format.
Tim Potter [Tue, 28 May 2002 03:14:28 +0000 (03:14 +0000)]
Raise a ValueError if server name isn't given in UNC format.
(This used to be commit 77be88668d9669a0aaa331c4bbb0faad978f0990)

17 years agoRaise a ValueError if server names aren't given in UNC format.
Tim Potter [Tue, 28 May 2002 02:33:11 +0000 (02:33 +0000)]
Raise a ValueError if server names aren't given in UNC format.
(This used to be commit f5a1a3190dc0d4ecdf55b870633a83ee125b816e)

17 years agoAllow None to be used as a valid credential for functions that take a
Tim Potter [Tue, 28 May 2002 02:09:54 +0000 (02:09 +0000)]
Allow None to be used as a valid credential for functions that take a
credential as a parameter.
(This used to be commit 166aee6cc2abb5f6e91ebf3d4ec37454034b8dcd)