1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-28 17:47:29 +03:00

4730 Commits

Author SHA1 Message Date
David O'Neill
e2193c3a36 Changes from APPLIANCE_HEAD:
source/lib/smbpasswd.c
        - Only call load_interfaces() when doing a network related
          operation.  This means you can add, remove, enable or disable
          smbpasswd entries without a network.  Changing passwords always
          requires a network.
-
Tim Potter
fdf044c351 New makefile and proto for rpcclient. -
Tim Potter
fc16106e94 make proto -
Tim Potter
c292f4aa31 General clean up. Merge of access_mask fixes for some unknown fields from
tng.
-
Tim Potter
54b34517ce General clean up. Merged routines for parsing enum_trust_dom rpc call. -
Tim Potter
a6d4aad391 Merge of various fixes from the tng headers. -
Tim Potter
9a953514f2 Start of a rewrite of rpcclient based on the libsmb rpc client routines.
Currently there are a small selection of lsa, samr and spoolss functions
implemented.  More to follow...
-
Jeremy Allison
2300ac79f5 First compiling version of code that sets NT ACLs as POSIX ACLs.
Now the debugging starts.... :-).
Jeremy.
-
David O'Neill
3b9e68d680 Changes from APPLIANCE_HEAD:
source/nsswitch/winbindd_idmap.c
		- convert tdb key to unix code-page when generating
-
David O'Neill
376601d17d Changes from APPLIANCE_HEAD:
testsuite/printing/psec.c
        - Use lock directory from smb.conf parameter when peeking at the
          ntdrivers.tdb file.
    source/rpc_parse/parse_sec.c
        - fix typo in debug message
    source/script/installbin.sh
        - create private directory as part of 'make install'.
    source/nsswitch/winbindd_cache.c
    source/nsswitch/winbindd_idmap.c
    source/passdb/secrets.c
    source/smbd/connection.c
        - always convert tdb key to unix code-page when generating.
    source/printing/nt_printing.c
        - always convert tdb key to unix code-page when generating.
        - don't prepend path to a filename that is NULL in
          add_a_printer_driver_3().
    source/rpc_server/srv_spoolss_nt.c
        - always convert tdb key to unix code-page when generating.
        - don't prepend server name to a path/filename that is NULL in the
          fill_printer_driver_info functions.
    source/printing/printing.c
        - always convert tdb key to unix code-page when generating.
        - move access check for print_queue_purge() outside of job delete
          loop.
    source/smbd/unix_acls.c
        - fix for setting ACLs (this got missed earlier)
    source/lib/messages.c
        - trivial sync with appliance_head
-
Jeremy Allison
6dc83a8c66 Fix from John for growing messages.tdb.
Jeremy.
-
Jeremy Allison
7ba0a2192b rpc_server/srv_samr.c:
smbd/reply.c:
Added fix needed for appliances. When using winbindd - a new user may
exist (from winbind) but have no home directory. Extend add user script
so it is called with a %H substitution when a user exists but their home
directory does not. Thanks to Alex Win at VA Linux for finding this one
and testing the fix.
libsmb/clidgram.c: Fixed missing return statements.
smbd/uid.c: Fixed typo in debug.
Jeremy.
-
Tim Potter
84247ba7d7 Added init functions, cli_spoolss_open_printer_ex(),
cli_spoolss_closeprinter(), cli_spoolss_enum_printers(),
cli_spoolss_enum_ports() and cli_spoolss_getprinter()
-
Tim Potter
3858601073 Added init functions, cli_samr_connect(), cli_samr_close(),
cli_samr_open_{domain,user}() and cli_samr_query_userinfo()
-
Tim Potter
751483a155 Fixed authenticated pipe access.
Added cli_lsa_enum_trust_dom().

Misc other cosmetic changes.
-
David O'Neill
a578bdb669 Changes from APPLIANCE_HEAD:
source/docs/yodldocs/smb.conf.5.yo
    source/docs/manpages/smb.conf.5
    source/docs/htmldocs/smb.conf.5.html
		- add documentation for "hide local users" config option.
-
David O'Neill
44dc339fe7 Changes from APPLIANCE_HEAD:
source/include/proto.h
    source/param/loadparm.c
    source/passdb/passdb.c
    source/rpc_server/srv_samr.c
        - add support for "hide local users" option to HEAD.
-
Jeremy Allison
8abdf0e29f Fix from "B.V.Dean" <B.V.Dean@ukc.ac.uk> to add "dos filemode" parameter
to allow a chmod to be done if the user has write access to a file, just
like Windows allows. Off by default (compare with "dos filetimes" parameter).
Jeremy.
-
Jeremy Allison
48a3afcd47 Patch from Richard Bollinger for dead entries being left in connections tdb.
Jeremy.
-
David O'Neill
1c0ae957f8 Changes merged from APPLIANCE_HEAD:
source/printing/printing.c
    source/rpc_server/srv_spoolss_nt.c
        - convert args for print command to unix codepage.
-
Richard Sharpe
cc5a2db8a0 Add support for logging to wherever smb.conf specifies. -
Tim Potter
5650c143a7 Codepages and stuff for Turkish language support. Contributed by
Deniz Akkus <akkus@alum.mit.edu>
-
Richard Sharpe
4c540393b3 Get rid of 10.0.0.6 and replace it with 0.0.0.0 as my_ip address prior to
sending datagrams in clidgram.c
-
Richard Sharpe
a13b5ef7bb More bug fixen ... -
Richard Sharpe
0490a0ed10 Update the tree.c GTK+ App so it can walk down directories etc ... -
Richard Sharpe
991f6907ac More fixes and implementation bits and pieces for libsmbclient -
Richard Sharpe
0219767c93 Fix proto.h ... -
Richard Sharpe
d6cef8877a Fix some more bugs in libsmbclient.c and add functionality to tree.c -
Richard Sharpe
606c4aecea Fix a minor problem with listing servers in a workgroup and add a
gtk+ test application that tests out some of this stuff ...
-
Richard Sharpe
807e2e1faa Fix a small type in libsmbclient.h ... -
Richard Sharpe
12639e2b36 Arrgh, forgot to update proto.h with all the changes I have been making.
Here is an updated one.
-
David O'Neill
33fc7f4527 Changes from APPLIANCE_HEAD:
source/rpc_server/srv_spoolss_nt.c
        - fixed printer policy handle leak in the allow MS printer wizard
          stuff.
        - mimic behaviour of NT on open_printer_ex() calls by not allowing
          call to succeed if connecting user doesn't have at least print
          permissions to the printer.  Unfortunately, this seems to trigger
          a anonymous connection re-using bug so subsequent connects to the
          printer by a different user from the same machine always fail.
          Blame Tim. =^)
-
David O'Neill
74dd0f5821 Sync up smb.conf.default with APPLIANCE_HEAD and SAMBA_2_2 -
David O'Neill
69f28a868a Add SuSE 7.1 packaging (from SAMBA_2_2). -
David O'Neill
c6f7358535 Sync up packaging updates that didn't make it to HEAD. -
David O'Neill
afad150bac Merge of documentation updates to HEAD. These got missed somewhere along
the way.
-
Richard Sharpe
38ff91c505 The latest changes to libsmbclient ...
It can now do a directory listing for workgroups, servers, and shares, and,
with a bit more effort, it will be able to list directories and files.

I also does not request a username and password for the IPC$ share, but it
should if the first attempt to connect fails.
-
Richard Sharpe
d45e667a74 Needed a callback arg on cli_list ... -
Tim Potter
d006e6adca Added extra argument to calls to smbw_share_add() -
David O'Neill
1dba9c5cd1 Changes from APPLIANCE_HEAD:
source/Makefile.in
        - changes to ctags and etags rules that somehow got lost along the way.

    source/include/proto.h
        - make proto

    source/smbd/sec_ctx.c
    source/smbd/password.c
        - merge debugs for debugging user groups and NT token stuff.

    source/lib/util_str.c
        - capitalise domain name returned from parse_domain_user()

    source/nsswitch/wb_client.c
        - fix broken conditional in debug statement.

    source/include/rpc_secdes.h
    source/include/rpc_spoolss.h
    source/printing/nt_printing.c
    source/lib/util_seaccess.c
        - fix printer permission bugs related to ACE masks for printers.
          This adds mapping of generic access rights to object specific
          rights for NT printers.  Still need to work out whether or not to
          ignore ACEs with certain flags set, though. See comments in
          util_seaccess.c:check_ace() for details.

    source/printing/nt_printing.c
    source/printing/printing.c
        - use PRINTER_ACCESS_ADMINISTER instead of JOB_ACCESS_ADMINISTER
          until we sort out printer/printjob permission stuff.
-
Richard Sharpe
7f862e387f I need a callback arg for cli_NetServerEnum and cli_RNetShareEnum, so I had
to modifiy any routine that calls it to pass NULL and so forth.

Should have no impact. It compiles OK.
-
Richard Sharpe
f7466ba67c Add a new file clidgram with routines that are used by the libsmbclient code.
These routines handle the sending of dgrams in ways that don't bind us to
the nmbd code, but we may merge the two routines at some stage.

Also fix Makefile.in so the new code is compiled ...

Let's see whether or not it compiles on other architectures ...

Seems OK under Linux.
-
Richard Sharpe
05e2dd5e85 We only want to mark mailslot packets as loopback packets if they are to
the DGRAM_PORT, since we want to actually send those to other ports.

They might be for the client library running on the Samba server!
-
Tim Potter
9255e52624 Return an empty directory for a stat on a share we aren't allowed to
connect to.  This gives a permission denied when a cd is attempted, but
not a permission denied in the directory listing one level up.
-
Tim Potter
143006d32f Return EACCES for bad password. -
Richard Sharpe
46a3a56ecf Make the use of generate_name_trn_id conform to the usage elsewhere ... -
Richard Sharpe
fb5798e1d9 Comment out unused generate_name_trn_id ... -
Tim Potter
44c5eb4def Fixed -d option for rpcclient. -
Christopher R. Hertel
e651d1d642 The line was:
struct tdb_traverse_lock tl = { tdb->travlocks.next, 0, 0 };

The IRIX compiler complained that the first initialization value was not a
constant and errored out.  Here's what it looks like now:

        struct tdb_traverse_lock tl = { NULL, 0, 0 };
        int ret, count = 0;

        /* This was in the initializaton, above, but the IRIX compiler
         * did not like it.  crh
         */
        tl.next = tdb->travlocks.next;

That worked.

Chris -)-----
-
Richard Sharpe
51c0436a50 First pass at the libsmbclient code ...
This code handles the basic stuff and compiles and links under Linux, but
I do not know about any other operating systems. Now onto directory
listing routines, including those that list workgroups, servers, etc.

Nothing is built automatically yet, you have to make client/testsmbc to build
the library and test program. Also, no make install targets are defined for
libsmbclient.so as yet, either.

Would be good if people test on operating systems other than Linux.
-