1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

8678 Commits

Author SHA1 Message Date
Tim Potter
d706b5dc55 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)
2002-06-03 02:55:16 +00:00
Andrew Tridgell
d53b9f113a fixed a spelling mistake
(This used to be commit 5a04ea1f0c41965bc735f38f4892dc37571734d6)
2002-06-03 02:46:25 +00:00
Andrew Tridgell
bdc9de5daf 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)
2002-06-03 02:43:06 +00:00
Tim Potter
15e5ef6ce8 Added getdompwinfo function.
(This used to be commit b3b3e45583718e5b034f6c67609523f35753c1a8)
2002-06-03 02:24:22 +00:00
Tim Potter
b433a90f02 Added cli_samr_get_dom_pwinfo() function.
Some reformatting.
(This used to be commit d6dd7c7b14a4e3be4d7d435b6ac6bb8189070ff7)
2002-06-03 02:23:05 +00:00
Tim Potter
ef5e092bb9 Removed unused variable.
(This used to be commit a8b2e76c5b90d3dcd00f26462614f56936c13110)
2002-06-03 02:20:56 +00:00
Tim Potter
ee2ef50a74 Fixed bogus alignment in unmarshalling of SAMR_GET_DOM_PWINFO reply.
(This used to be commit 2e25b5c3099e48869e83a1e03943d3cc2a875f24)
2002-06-03 02:13:46 +00:00
Tim Potter
3940a2fec8 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)
2002-06-02 23:23:16 +00:00
Jim McDonough
125432c73a Add remainder of net rpc file subcommands, and autoselect transport on
net file
(This used to be commit fd938eca210602790c4d0e442f3aa9aa22b5fdf2)
2002-06-01 01:03:04 +00:00
Jim McDonough
f2d37f907c Update for new interface to netfileenum
(This used to be commit c3921e36071a70ab9534fe92286b361aae2336b6)
2002-06-01 01:02:23 +00:00
Jim McDonough
4caf48a700 Add rpc for file close, expand file enum to take username
(This used to be commit 4b18a94590a25882f06f88c3c7dd1a08bf990044)
2002-06-01 01:02:04 +00:00
Jeremy Allison
6542738568 More cleanup work preparing for SMB signing.
Jeremy.
(This used to be commit 3c05f7c06fc8c45307ea75128b160a5945fc5197)
2002-06-01 00:10:08 +00:00
Jeremy Allison
b5053d0a5f 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)
2002-05-31 22:18:07 +00:00
Jim McDonough
4e71eae06e Enable all net rpc share subcommands and autoselect transport.
(This used to be commit ebd07c3a295e3f8cd46441caac4dc8e8b178c2cc)
2002-05-31 21:10:49 +00:00
Jim McDonough
0f7e6fd0ec Add netshareadd and netsharedel client side rpc
(This used to be commit f37d85babf1061bb2b5ffdf96c72427f8ad5e832)
2002-05-31 21:09:58 +00:00
Jim McDonough
f5dc84c4cc Add fns for netshareadd and netsharedel rpcs
(This used to be commit 4e317163858d8a7f65984a8a8507a459ac1515cc)
2002-05-31 21:08:51 +00:00
Jim McDonough
90e630c4c2 Add error index to netshareadd rpc.
(This used to be commit ea55d470e485a0448428c60a12fbb4a42c6b2019)
2002-05-31 21:07:54 +00:00
Jim McDonough
1b9c519dc9 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)
2002-05-31 17:03:48 +00:00
Jim McDonough
e011750206 Update netfileenum to new api.
(This used to be commit 70f8adf297a3979230e425126cd5868972b1d17e)
2002-05-31 17:02:44 +00:00
Jim McDonough
e422b271da 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)
2002-05-31 17:02:09 +00:00
Tim Potter
8787088f2e Fixed crash bug in querydispinfo.
Some reformatting.
(This used to be commit 612eae45ef7b0289e0c67b331d96a351fc567e5c)
2002-05-31 04:25:00 +00:00
Tim Potter
c3fb0cd9ed Return access denied for net_share_enum when restrict anonymous > 0
(This used to be commit 5df1aa9f20ae2036848b7e46703bfd3a923d7b4f)
2002-05-31 00:48:40 +00:00
Tim Potter
abc6c4e77f 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)
2002-05-31 00:47:19 +00:00
Jim McDonough
a14fbf6763 netfileenum was missing the username filter.
(This used to be commit 8fc3dba8bd99c55bef9ac137976dd35134a49342)
2002-05-31 00:29:29 +00:00
Tim Potter
0e3260de6f Added netfileenum (sorry - no output though (-:) command.
(This used to be commit 099b750b4ed8f04a1fd8a018508d412691e37df6)
2002-05-30 07:12:32 +00:00
Tim Potter
4d693305fd Added some comments for NTLMSSP negotiation flags.
(This used to be commit 742413b2846af44ac43830f488c15c5c11c1cb27)
2002-05-30 02:07:38 +00:00
Gerald Carter
43a81faf30 merge from 2.2
(This used to be commit 65417ed341113a9624eada9a97ef0b9d66ca95c0)
2002-05-29 04:39:23 +00:00
Gerald Carter
5bbabf0ad2 merge from 2.2
(This used to be commit 612584f7d5383db28960e1ae9aaeaa9b8b47486c)
2002-05-29 02:08:46 +00:00
Tim Potter
568deecbf0 Added netremotetod to try and figure out which srvsvc commands are denied
when using restrictanonymous.
(This used to be commit 0c65978ed07903af808da5f32cc29531aef23225)
2002-05-29 01:43:44 +00:00
Tim Potter
43b35364ff Cleaned up srvsvc constants a bit.
(This used to be commit ca61f68d5ca8791bea34732bd358cfb63273fc5c)
2002-05-29 00:49:26 +00:00
Tim Potter
84a9a6a1be Spelling fixes.
(This used to be commit 3d0f4acad2f0c57d0a255e90e5f674ba582251e2)
2002-05-28 23:22:05 +00:00
Gerald Carter
2bba2d15c6 merge from 2.2
(This used to be commit e671b7fe9d6c963e20770944f29ea532293d2692)
2002-05-28 14:49:00 +00:00
Andrew Bartlett
e066e5e614 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)
2002-05-28 14:35:11 +00:00
Tim Potter
742ed34e47 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)
2002-05-28 08:43:22 +00:00
Tim Potter
78b4de02bb 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)
2002-05-28 08:41:50 +00:00
Tim Potter
65a31d8dd8 Added netshareenum command at level 1 and 2.
(This used to be commit 99ac1b339c2b4ec5b85ecc3a87efa2ef508ecab1)
2002-05-28 08:40:29 +00:00
Tim Potter
f00e292be9 Hmm - you can do NT_STATUS_IS_OK on a WERROR and not get a compile warning/error.
(This used to be commit 8d6270cadf7f99ee8ee441ee6c3e58eca623d519)
2002-05-28 08:39:12 +00:00
Tim Potter
3b464a1f8f 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)
2002-05-28 04:10:04 +00:00
Tim Potter
d80f078647 Separate error handling for cli_full_connection() and cli_nt_session_open()
(This used to be commit 6f269de03e91b823a30a2a12e41f25f1fa050870)
2002-05-28 03:15:09 +00:00
Tim Potter
6aaaa165b7 Raise a ValueError if server name isn't given in UNC format.
(This used to be commit 77be88668d9669a0aaa331c4bbb0faad978f0990)
2002-05-28 03:14:28 +00:00
Tim Potter
6aad72916a Raise a ValueError if server names aren't given in UNC format.
(This used to be commit f5a1a3190dc0d4ecdf55b870633a83ee125b816e)
2002-05-28 02:33:11 +00:00
Tim Potter
e99a265bad Allow None to be used as a valid credential for functions that take a
credential as a parameter.
(This used to be commit 166aee6cc2abb5f6e91ebf3d4ec37454034b8dcd)
2002-05-28 02:09:54 +00:00
Tim Potter
d21f10d3e6 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)
2002-05-28 02:08:39 +00:00
Tim Potter
d26bcfaf95 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)
2002-05-27 07:47:58 +00:00
Tim Potter
0f1de232c2 More automatically generated prototype madness.
(This used to be commit 8e1a15a625b72711bcfab77403e6a6b91e434756)
2002-05-27 06:39:10 +00:00
Tim Potter
fdf42114cd 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)
2002-05-27 06:38:36 +00:00
Tim Potter
de4e9824bd Use new version of open_pipe_creds() function.
(This used to be commit e4aff324c28bfc08e73b627a5c7941109a3c2c2f)
2002-05-27 06:36:30 +00:00
Tim Potter
c2f0e1638e Use new version of open_pipe_creds() function.
Server argument to enumprinterdrivers() must be in UNC format.
(This used to be commit 3b011eb65a45a2b919e0b759f426581100ac17fd)
2002-05-27 06:36:06 +00:00
Tim Potter
2fe386d9b9 Use new version of open_pipe_creds() function.
Fix memory leaks on error.
(This used to be commit b44e82667252c0ff4477d77487ff92b3af8ad418)
2002-05-27 06:35:30 +00:00
Tim Potter
343751ca95 Use new version of open_pipe_creds() function.
A compile fix for enumerating trusted domains.
(This used to be commit fc75c3ccc3bc45ab72db85d46dbedbbdb0e2dff7)
2002-05-27 06:34:13 +00:00