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

17 years agoAllow None to be used as a valid credential in open_policy.
Tim Potter [Tue, 28 May 2002 02:08:39 +0000 (02:08 +0000)]
Allow None to be used as a valid credential in open_policy.

Added {get,set}_debuglevel() and setup_logging() functions.
(This used to be commit b6e860546a622e6da238faf56d7c1567c6cf63a5)

17 years agoUse a fixed size font for displaying tdb values.
Tim Potter [Mon, 27 May 2002 07:47:58 +0000 (07:47 +0000)]
Use a fixed size font for displaying tdb values.

Added a (regexp, function) pair to register display functions for keys
matching regular expressions.

Expand the size of the value scrolling window.

Added hex dump function and some regexps to display DRIVERS, SECDESC and
PRINTERS keys in hex instead of ascii.
(This used to be commit 7d10dc5f7bd12e25ea3e64b380a029c89929156f)

17 years agoMore automatically generated prototype madness.
Tim Potter [Mon, 27 May 2002 06:39:10 +0000 (06:39 +0000)]
More automatically generated prototype madness.
(This used to be commit 8e1a15a625b72711bcfab77403e6a6b91e434756)

17 years agoUse new version of open_pipe_creds() function.
Tim Potter [Mon, 27 May 2002 06:38:36 +0000 (06:38 +0000)]
Use new version of open_pipe_creds() function.

Don't attempt to free client state returned by cli_full_connection()

Fix memory leaks on error.

Allow setprinter level 1 - doesn't work though.

Extended interface to enumprinters().  The name value passed in the RPC
request can be different from the server name in which case lots of weird
and wonderful information is returned.  Defaults to the server name.
(This used to be commit c75bbda1021838074ff0f2e54edd68c69acccee0)

17 years agoUse new version of open_pipe_creds() function.
Tim Potter [Mon, 27 May 2002 06:36:30 +0000 (06:36 +0000)]
Use new version of open_pipe_creds() function.
(This used to be commit e4aff324c28bfc08e73b627a5c7941109a3c2c2f)

17 years agoUse new version of open_pipe_creds() function.
Tim Potter [Mon, 27 May 2002 06:36:06 +0000 (06:36 +0000)]
Use new version of open_pipe_creds() function.

Server argument to enumprinterdrivers() must be in UNC format.
(This used to be commit 3b011eb65a45a2b919e0b759f426581100ac17fd)

17 years agoUse new version of open_pipe_creds() function.
Tim Potter [Mon, 27 May 2002 06:35:30 +0000 (06:35 +0000)]
Use new version of open_pipe_creds() function.

Fix memory leaks on error.
(This used to be commit b44e82667252c0ff4477d77487ff92b3af8ad418)

17 years agoUse new version of open_pipe_creds() function.
Tim Potter [Mon, 27 May 2002 06:34:13 +0000 (06:34 +0000)]
Use new version of open_pipe_creds() function.

A compile fix for enumerating trusted domains.
(This used to be commit fc75c3ccc3bc45ab72db85d46dbedbbdb0e2dff7)

17 years agoCheck types of dictionary elements in to_struct()
Tim Potter [Mon, 27 May 2002 06:33:33 +0000 (06:33 +0000)]
Check types of dictionary elements in to_struct()
(This used to be commit 793f1042f153bd6ca3f75bebf719d47744ffecde)

17 years agoConvert open_pipe_creds() to use new cli_full_connection() interface.
Tim Potter [Mon, 27 May 2002 06:32:11 +0000 (06:32 +0000)]
Convert open_pipe_creds() to use new cli_full_connection() interface.

Initialise global_myname in py_samba_init() function.
(This used to be commit e5dcd3c7ccf0060d86a484b8307f747805b20c5f)

17 years agoHonour return value of to_struct() when converting to Samba structures.
Tim Potter [Mon, 27 May 2002 06:29:58 +0000 (06:29 +0000)]
Honour return value of to_struct() when converting to Samba structures.
(This used to be commit 1ef99e76632f6f6b866de491db8722c94f75a8c2)

17 years agoFixed compiler warning.
Tim Potter [Mon, 27 May 2002 06:28:45 +0000 (06:28 +0000)]
Fixed compiler warning.
(This used to be commit 736eb3c7485c0e65a463f14f27ada55a1a3fd453)

17 years agoFixed dodgy arguments to PyArg_ParseTupleAndKeywords()
Tim Potter [Mon, 27 May 2002 06:28:18 +0000 (06:28 +0000)]
Fixed dodgy arguments to PyArg_ParseTupleAndKeywords()
(This used to be commit 45562b86039ec1b2f6d1cf3e9a5aa57cf87a796a)

17 years agoSome rearrangement of header files.
Tim Potter [Mon, 27 May 2002 06:23:30 +0000 (06:23 +0000)]
Some rearrangement of header files.
(This used to be commit 0b2bd0a2290315056789f6aa1421678583086fc6)

17 years agochange: pdb_getsampwrid() ->pdb_getsampwsid()
Simo Sorce [Sun, 26 May 2002 19:11:52 +0000 (19:11 +0000)]
change: pdb_getsampwrid() ->pdb_getsampwsid()

passdb interface change, now the passdb modules will be asked for SID not for rid, the modules have been updated with a passthrough function that calls the old getsampwrid() functions.

srv_samr_nt.c functions that made use of the pdb_getsampwrid funcion has been updated to use the SID one.
(This used to be commit f5c6496c33fa7f5c2826540ffb4a49d8a5790fb3)

17 years agoAdd support for NTLMv2 (tested!) with NTLMSSP.
Andrew Bartlett [Sun, 26 May 2002 14:59:57 +0000 (14:59 +0000)]
Add support for NTLMv2 (tested!) with NTLMSSP.

The problem was the NTLMv2 uses extra data in order to make reply/lookup
more difficult.  That extra data includes the hostname, and the domain.

This matches Win2k (sort of) by sending this information.

Win2k connects with LMCompatibilityLevel=5 without a problem.

We can change the negotiation bits if we want, this should allow us to make
NTLMv2 the default for other clients as well.

Some of the extra #defines were found in the squid source.

Andrew Bartlett
(This used to be commit 17a5f67b3d1935baf6197ae967624eb847b66ac8)

17 years agomove debug stuff from messages.c to debug.c (Elrond)
Simo Sorce [Sun, 26 May 2002 11:28:38 +0000 (11:28 +0000)]
move debug stuff from messages.c to debug.c (Elrond)
(This used to be commit 44df5a13bc83dc331caa6788cf0805333ed79f8d)

17 years agoUpdate some of the LM hash code to better respect the seperation between
Andrew Bartlett [Sat, 25 May 2002 08:24:24 +0000 (08:24 +0000)]
Update some of the LM hash code to better respect the seperation between
unix and DOS strings.

This pushes all the 'have to uppercase, must be 14 chars' stuff behind the
the interface.

Andrew Bartlett
(This used to be commit dec650efa8ab1466114c2e6d469320a319499ea0)

17 years agoClean up a few unused functions, add a bit of static etc.
Andrew Bartlett [Sat, 25 May 2002 07:37:44 +0000 (07:37 +0000)]
Clean up a few unused functions, add a bit of static etc.

Importantly:

The removal of the silly 'delete user script' behaviour when secuity=domain.

I have left the name the same - as it still does the (previously documented,
but not in smb.conf(5)) sane behaviour of deleting users on request.

When we decide what to do with the 'add user' functionality, we might
rename it.

Andrew Bartlett
(This used to be commit cdcfe3671eb7570e15649b77f708e6579055e7bc)

17 years agoOnly reterive the attributes we are actually going to use - rather than
Andrew Bartlett [Sat, 25 May 2002 07:17:38 +0000 (07:17 +0000)]
Only reterive the attributes we are actually going to use - rather than
the whole record which could include things like photos's etc.

Andrew Bartlett
(This used to be commit bbc69545516f29cc4e05ba6238b03eb504f28226)

17 years agoRemove unused variable, fix functions to match prototypes in the various
Andrew Bartlett [Sat, 25 May 2002 07:00:33 +0000 (07:00 +0000)]
Remove unused variable, fix functions to match prototypes in the various
structs.

Andrew Bartlett
(This used to be commit 57097bf1ba10566389266a4863899a7f25cdbb43)

17 years agomerge from SAMBA_2_2
Gerald Carter [Fri, 24 May 2002 19:17:27 +0000 (19:17 +0000)]
merge from SAMBA_2_2
(This used to be commit f0226a1d836b69d179a1a2eda79fa26911b78096)

17 years agomerge from SAMBA_2_2.
Gerald Carter [Fri, 24 May 2002 16:27:54 +0000 (16:27 +0000)]
merge from SAMBA_2_2.

Tim, please check the prs_align() removed from sec_io_desc()
and make sure it doesn't break anything else.  I know it is
right for the printing needs and I have tested some other
general things like viewing acls on directories, but I would
feel more comfortable if you would have a look as well.

jerry
(This used to be commit 83f109c940f30d9b35176540d8bdccbb22ffa3a1)

17 years agoName the authentication modules, and therfore fix up both the build farm
Andrew Bartlett [Fri, 24 May 2002 13:55:05 +0000 (13:55 +0000)]
Name the authentication modules, and therfore fix up both the build farm
and secuirty=server.

I *love* automated testing...

Andrew Bartlett
(This used to be commit c92f4f4d72ffd307ca2d4d792b5e4154f1b85b91)

17 years agoSome grammar fixes picked up from the bugs.debian.org, submitted by
Andrew Bartlett [Fri, 24 May 2002 13:24:58 +0000 (13:24 +0000)]
Some grammar fixes picked up from the bugs.debian.org, submitted by
jrv@vanzandt.mv.com

Most of them didn't apply any more, but the bits that did I've commited.

Andrew Bartlett
(This used to be commit 1022a176e5af25872f34147d6f8b38601134915c)