1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

4208 Commits

Author SHA1 Message Date
Jeremy Allison
dbc5cace14 Hmmm. I thought I'd added these files to CVS head.....
Jeremy.
(This used to be commit d573700a9218bce8efd21f0be70afec6b460f8b9)
2001-02-27 18:22:39 +00:00
Andrew Tridgell
1d67fe4dbe better handling of '.'
better verbose print
(This used to be commit 1f8b8a7189fb8c142801d679cf53c586aee74740)
2001-02-27 12:04:49 +00:00
Andrew Tridgell
acaf04b7cc remove some test code
(This used to be commit 2c509c9860fdcf4d2b3bb35e12f9fedbb77bd17e)
2001-02-27 06:13:32 +00:00
Andrew Tridgell
dccf44d752 almost there with lanman1 wildcards. We now seem to correctly handle
'<', '>', '"' and '?' when combined with '.'. The '*' character is
proving troublesome.
(This used to be commit 0a55d9a17b5d98c7e151bb2ee014cfb0b3660400)
2001-02-27 06:11:59 +00:00
Andrew Tridgell
54f5661b43 I have now found that despite initial appearences the lanman1 wildcard
algorithm does *not* match separately on base and extension.

I also added a -v option to masktest for verbose output
(This used to be commit 76c8fa5cd1ce9095583f818d100cd0f2116ddc62)
2001-02-27 04:18:12 +00:00
Jeremy Allison
61b28a3aba Added patch from Urban Widmark <urban@teststation.com> modified by me to
enable large file support on Linux if glibc >= 2.2 and kernel >= 2.4.
Jeremy.
(This used to be commit c59a5db9c21d5642aa9ea2a5270343c7a52cf779)
2001-02-27 03:37:29 +00:00
Jeremy Allison
538fbb7ad0 As prs_alloc_mem now zeros memory, remove superfluous memsets after it.
Jeremy.
(This used to be commit 94fdffb3557fa68d634d6c402751f5bcb1f6a656)
2001-02-27 02:18:37 +00:00
Jeremy Allison
ef2de912f2 Separated dfs pipe into implementation and interface modules.
rpc_parse/parse_dfs.c: Had to add buffer overrun checking ! HOW DID THIS GET IN HERE !
rpc_parse/parse_prs.c: Ensure prs_alloc_mem does a memset of zero before returning.
Jeremy.
(This used to be commit c9a6a17025f4a6850cd2b9a9ddb48bdeec8b3ffe)
2001-02-27 02:09:50 +00:00
Jeremy Allison
d4a28325f1 Implementation module for netlog pipe. Can't be easily integrated into
HEAD right now due to passdb changes - placeholder added.
Jeremy.
(This used to be commit eb88512cff67200f95213db5c1340ceb448af57c)
2001-02-27 00:32:11 +00:00
Jeremy Allison
de187df10c Split srvsvc pipe into interface and implementation modules.
Jeremy.
(This used to be commit e14c88ddf466f17a710724fb4fc273d37a244d77)
2001-02-26 22:05:41 +00:00
Jeremy Allison
95731132dc Split wks pipe into interface and implementation modules.
Jeremy.
(This used to be commit 6a16b3850fdc4d6750ef2046f1db934f1ef92f17)
2001-02-26 20:06:25 +00:00
Jeremy Allison
d757d61abf Separated lsa code into interface and implementation.
Jeremy.
(This used to be commit 1cc96e0340b9e3ac343d6a28211bf0cc5bc6573b)
2001-02-26 19:45:00 +00:00
Jeremy Allison
e1951d75fc Added implementation file for lsa.
Jeremy.
(This used to be commit 72e7c261e85b9cad19b93fb160168531290a5404)
2001-02-26 19:31:07 +00:00
Richard Sharpe
00e4feec00 Fix some errors uncovered in libsmbclient by the test suite
Fix some problems with unused variables and reaching the end of a
  nonvoid function
(This used to be commit 44986f397ae647aa790422737a839443efb99920)
2001-02-26 11:53:22 +00:00
Jeremy Allison
683ccef0bd Started conversion of lsa server code to canonical format (as srv_reg and
srv_samr have been).
Jeremy.
(This used to be commit f434cda9774b4864321b37b0f8f42e6e8dee8d5b)
2001-02-26 08:10:51 +00:00
Andrew Tridgell
0d54de536c made some LANMAN1 wildcard progress
it now handles -M LANMAN1 -f '.x' -m '?x' nicely
(This used to be commit e7ccb9be6da9b1426eb136b4a0a1171232471768)
2001-02-26 06:53:42 +00:00
Andrew Tridgell
8cfc745339 updated prototypes
(This used to be commit 2a94e8e02d5550359e47e37adc0ef9a616354eab)
2001-02-26 05:14:57 +00:00
Andrew Tridgell
571a04613b made some progress in masktest
it now handles the server renaming files on create
(This used to be commit 85ce14f36da4f5a3fb3029634279bb473873bbd5)
2001-02-26 05:13:19 +00:00
Andrew Tridgell
d33b294b9a fixed a bug in non-terminated unicode strings with clistr_pull()
(This used to be commit 339bcfd05d3260a123ccf3c06429da6bfe621f74)
2001-02-26 05:11:06 +00:00
Andrew Tridgell
f9405ab8f9 add cli_list_new() for forced new protocol listing
(This used to be commit a5407366b77f2bec2c21e1f36dd007813d33f75e)
2001-02-26 05:10:44 +00:00
Andrew Tridgell
f7602aaaa6 a snapshot of my attempts to get wildcard matching right for LANMAN1
clients. This is not complete and not correct - expect some more work
on this soon
(This used to be commit 06d158d5e91a222e6bf8d22f02107c60da383f82)
2001-02-25 23:47:27 +00:00
Andrew Tridgell
96e791eb11 use cli_list_old() when negotiating the older protocols
(This used to be commit 735f29319b8d81df203c8ddbcea5349b11f2195d)
2001-02-25 23:46:28 +00:00
Andrew Tridgell
57467a9f60 neater negprot code using the new cli_setup_bcc() call
(This used to be commit 5b1728426531785d37b4fac0684114f8a84dacb2)
2001-02-25 23:46:02 +00:00
Andrew Tridgell
4d6e45e41b the -m option to the client is back
(This used to be commit 69c13434f68b642bdf1a4974849e8a38da02d6c9)
2001-02-25 23:45:06 +00:00
Jeremy Allison
1c8eb37534 Separated reg code into interface & implementation.
libsmb/namequery.c: Removed ununsed variables.
Jeremy.
(This used to be commit b857113f400551c57ac400a9cdc3c752085d107d)
2001-02-25 02:14:49 +00:00
Jeremy Allison
f93bb0801c rpc_client/cli_netlogon.c: Fixed incorrect printf.
Added Solaris ACL support.
Jeremy.
(This used to be commit f0d11b6997cc46a0210adef8cf572cf8b7e2467a)
2001-02-25 00:24:54 +00:00
Jeremy Allison
3699948e97 This patch (donated by Marc Jacobsen of HP) should make Sun and HP very happy :-).
Probably Veritas too... :-).
It allows Samba as a domain member to authenticate against an AS/U server such
as the older HP PDC product or PD Netlink. It does this by trying a netlogon
with info level 3 and then falling back to info level 2 if the PDC returns
invalid info level.
Jeremy.
(This used to be commit bda1d6d4a4b3d2cfc260549280a2ce3e57fd0f86)
2001-02-24 00:42:41 +00:00
Gerald Carter
53a2d8ce88 removed wrong patch to get_dir_entry(). This was left over from the
wildcard stuff....
(This used to be commit f77fa6a0e510fe5ad54d20eaabd345e6ee0526dc)
2001-02-23 16:06:18 +00:00
Andrew Tridgell
7082b61c4b make sure denied aces are first
(This used to be commit b0b49a4b28891f3e2ec8e8e221af713250cc8e17)
2001-02-23 07:25:49 +00:00
Andrew Tridgell
46807bd187 cast the qsort
(This used to be commit 703d9f5cb32ca4131051c50646fd833fb1ae7d76)
2001-02-23 07:21:50 +00:00
Andrew Tridgell
8d070c60fc - fixed the sort_acl bug, sorting now works right
- don't allow setting of duplicate ACEs
- fixed a ACE delete bug
(This used to be commit 61293979ce2aded58a5ef2a54b3b05d1d278f7cf)
2001-02-23 07:20:11 +00:00
Jeremy Allison
ed77fca199 include/rpc_spoolss.h: Added JOB_STATUS_XXX defines.
include/smb.h: Added LPQ_xx enums to correspond with the NT JOB_STATUS_XXX. We
                need these to be different as we're storing LPQ_xx enums in the tdb
                already.
rpc_server/srv_spoolss_nt.c: Don't need to return status strings as we're now
                            returning status codes.
smbd/lanman.c: Change the RAP status codes to have "RAP" in the name.
printing/printing.c: Keep track of the status of a job. Allow a job to be
                deleted from one smbd when being submitted by another.
                Made logic in mutex clearer.
Jeremy.
(This used to be commit 71029da7dd74eb91dd6953752bdf238f319d985d)
2001-02-23 03:59:37 +00:00
Jeremy Allison
37d190817e Always increment even if the read fails (otherwise we spin if we hit the kernel bug...).
Jeremy
(This used to be commit d388dfa53b3a7a2dcce6d5591531d6ade0cbab62)
2001-02-23 00:46:28 +00:00
Jeremy Allison
ffa09ecfc1 lib/select.c: Fix for Linux 2.0.x kernel that causes select to return true on a pipe
and then a blocking read to fail. Make the pipe read/write non blocking.
printing/printing.c: Added a mutex around the code that enumerates all the jobs in a
                    print queue. Allows only one smbd to be doing this at any one time.
                    This fixes a capacity problem discovered at HP with <10,000 jobs in
                    a print queue.
Jeremy.
(This used to be commit 0d3ae603a2b86d476458ee2a7d4f7d22636c3f66)
2001-02-22 17:39:36 +00:00
Andrew Tridgell
b4096748dd don't crash on null acl sort
(This used to be commit 59341377413fcbf30c090a3763608d23ac2bff95)
2001-02-22 06:35:54 +00:00
Andrew Tridgell
6022747b5b fixed character set init in smbw_sample
(This used to be commit c43593ad069670fb47b8e98248254c739bb7ab18)
2001-02-22 06:24:28 +00:00
Andrew Tridgell
4e1de143b3 - workaround filer lsa lookup bug for unknown sids
- add \ at start of name if not needed (another filer workaround)
(This used to be commit 48ab6297a1b462e03f70a4d90d50b21982d0d90d)
2001-02-22 06:22:20 +00:00
Andrew Tridgell
9ccbc1de06 cope with filer/NT/samba all in one binary. yeah.
we now don't open rw for acls
(This used to be commit c0f57c3fe636c5a5885c6b2ed4723252597533eb)
2001-02-22 03:40:01 +00:00
Andrew Tridgell
1239b92c73 make sure we don't free non-allocated data
(This used to be commit 4a620f7037378dc042b6388ede6356c6db5d58fb)
2001-02-22 03:38:48 +00:00
Andrew Tridgell
21b1ab0a76 cope better with broken filer expectations
(This used to be commit 847de3b4adfb00a98032e478b2663d09e240380e)
2001-02-22 03:38:21 +00:00
Jeremy Allison
201753ddc6 Fixed file descriptor leak in error processing of print jobs.
NT sends "delete on close" to cancel a print job copied from the command line.
Deal with this. Merged JohnR's fixes for print job errors.
Jeremy.
(This used to be commit 2060d74e48d62c99a1689ee02ac435b71918ddf0)
2001-02-22 01:31:55 +00:00
Andrew Tridgell
3c270604c1 but it is needed for linking ...
(This used to be commit e7108a18b2ba5754d402d72492cbcfded2713472)
2001-02-21 06:03:16 +00:00
Andrew Tridgell
63e6ffbe0d rpc_parse_samr.c doesn't exist in head ...
(This used to be commit ea81a3ec88501194b7853a7c71a622b3fc0cf6f1)
2001-02-21 05:58:00 +00:00
Andrew Tridgell
e5f60ce0b3 make ascii_to_unistr always use little-endian. This fn is never used
except in my code so I know this is safe.

otherwise unicode client lib doesn't work on big-endian hosts
(This used to be commit 18ede716d10de1ac774cca82b4b8ff5ea1a9650d)
2001-02-21 05:50:29 +00:00
Andrew Tridgell
d689f00026 converted the last couple of functions in libsmb to be unicode
the whole of libsmb should now do unicode where appropriate
(This used to be commit ac7529d2b69826f8214d5632c31778cc87216653)
2001-02-21 04:14:28 +00:00
Andrew Tridgell
7fb8d5a00b fixed a crash bug in smbpasswd
(the user can come from optarg, so we can't free it)
(This used to be commit 56ffb58effe80f7c62a9de6ba4f634d995fbc4e6)
2001-02-21 04:13:47 +00:00
Andrew Tridgell
a8ab984078 the unicode conversion of our client code is complete enough to be
enabled by default

you can disable it by setting the environment variable CLI_FORCE_ASCII
(This used to be commit 4d59c08c5e6f54c0d6ced7650750cb987e77b6c9)
2001-02-21 03:40:20 +00:00
Andrew Tridgell
518f2fc391 reverted richards cli_NetServerEnum changes - they broke lots of things
(This used to be commit 86adbb0caf26a8c2fc4d3748b965c0ce79360c1a)
2001-02-21 02:52:41 +00:00
Andrew Tridgell
3910d7baca added support for a CLISTR_ASCII flag so we can use a uniform
interface for ascii-only fields
(This used to be commit cdf0316610803e6743936b29f232b32f9ec81422)
2001-02-21 02:51:22 +00:00
Andrew Tridgell
6cb19fbd3a don't need _uni hack now
(This used to be commit f191271986d085cc73b62c8d3de8ab7b326c19c0)
2001-02-20 23:53:06 +00:00