1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00
Commit Graph

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 8bbdc674af)
2002-06-03 02:55:16 +00:00
Andrew Tridgell
d53b9f113a fixed a spelling mistake
(This used to be commit 5a04ea1f0c)
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 55cad87424)
2002-06-03 02:43:06 +00:00
Tim Potter
15e5ef6ce8 Added getdompwinfo function.
(This used to be commit b3b3e45583)
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 d6dd7c7b14)
2002-06-03 02:23:05 +00:00
Tim Potter
ef5e092bb9 Removed unused variable.
(This used to be commit a8b2e76c5b)
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 2e25b5c309)
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 b6119f5835)
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 fd938eca21)
2002-06-01 01:03:04 +00:00
Jim McDonough
f2d37f907c Update for new interface to netfileenum
(This used to be commit c3921e3607)
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 4b18a94590)
2002-06-01 01:02:04 +00:00
Jeremy Allison
6542738568 More cleanup work preparing for SMB signing.
Jeremy.
(This used to be commit 3c05f7c06f)
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 a234e30355)
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 ebd07c3a29)
2002-05-31 21:10:49 +00:00
Jim McDonough
0f7e6fd0ec Add netshareadd and netsharedel client side rpc
(This used to be commit f37d85babf)
2002-05-31 21:09:58 +00:00
Jim McDonough
f5dc84c4cc Add fns for netshareadd and netsharedel rpcs
(This used to be commit 4e31716385)
2002-05-31 21:08:51 +00:00
Jim McDonough
90e630c4c2 Add error index to netshareadd rpc.
(This used to be commit ea55d470e4)
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 77418256d3)
2002-05-31 17:03:48 +00:00
Jim McDonough
e011750206 Update netfileenum to new api.
(This used to be commit 70f8adf297)
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 b3fea72ee9)
2002-05-31 17:02:09 +00:00
Tim Potter
8787088f2e Fixed crash bug in querydispinfo.
Some reformatting.
(This used to be commit 612eae45ef)
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 5df1aa9f20)
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 2d2f6fcc55)
2002-05-31 00:47:19 +00:00
Jim McDonough
a14fbf6763 netfileenum was missing the username filter.
(This used to be commit 8fc3dba8bd)
2002-05-31 00:29:29 +00:00
Tim Potter
0e3260de6f Added netfileenum (sorry - no output though (-:) command.
(This used to be commit 099b750b4e)
2002-05-30 07:12:32 +00:00
Tim Potter
4d693305fd Added some comments for NTLMSSP negotiation flags.
(This used to be commit 742413b284)
2002-05-30 02:07:38 +00:00
Gerald Carter
43a81faf30 merge from 2.2
(This used to be commit 65417ed341)
2002-05-29 04:39:23 +00:00
Gerald Carter
5bbabf0ad2 merge from 2.2
(This used to be commit 612584f7d5)
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 0c65978ed0)
2002-05-29 01:43:44 +00:00
Tim Potter
43b35364ff Cleaned up srvsvc constants a bit.
(This used to be commit ca61f68d5c)
2002-05-29 00:49:26 +00:00
Tim Potter
84a9a6a1be Spelling fixes.
(This used to be commit 3d0f4acad2)
2002-05-28 23:22:05 +00:00
Gerald Carter
2bba2d15c6 merge from 2.2
(This used to be commit e671b7fe9d)
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 2b78d49300)
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 496d3cf02c)
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 c7214baa05)
2002-05-28 08:41:50 +00:00
Tim Potter
65a31d8dd8 Added netshareenum command at level 1 and 2.
(This used to be commit 99ac1b339c)
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 8d6270cadf)
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 a48f362ca7)
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 6f269de03e)
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 77be88668d)
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 f5a1a3190d)
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 166aee6cc2)
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 b6e860546a)
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 7d10dc5f7b)
2002-05-27 07:47:58 +00:00
Tim Potter
0f1de232c2 More automatically generated prototype madness.
(This used to be commit 8e1a15a625)
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 c75bbda102)
2002-05-27 06:38:36 +00:00
Tim Potter
de4e9824bd Use new version of open_pipe_creds() function.
(This used to be commit e4aff324c2)
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 3b011eb65a)
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 b44e826672)
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 fc75c3ccc3)
2002-05-27 06:34:13 +00:00