1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-03 12:58:35 +03:00

558 Commits

Author SHA1 Message Date
Andrew Tridgell
4d59c08c5e 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
-
Andrew Tridgell
86adbb0caf reverted richards cli_NetServerEnum changes - they broke lots of things -
Andrew Tridgell
cdf0316610 added support for a CLISTR_ASCII flag so we can use a uniform
interface for ascii-only fields
-
Andrew Tridgell
5b2ef8a1b9 yipee! client unicode now works well with nt -
Andrew Tridgell
f6b8d67304 converted a bunch more fns -
Andrew Tridgell
c40a1e4ebd converted nt_create and setatr -
Andrew Tridgell
0a8992e224 - neater setting of bcc
- converted cli_rename and cli_unlink
-
Andrew Tridgell
db60c0c262 converted cli_open() -
Andrew Tridgell
95268f5255 converted cli_chkpath() -
Andrew Tridgell
bdce09b778 converted cli_list() -
Andrew Tridgell
bce3ed01a9 converted cli_mkdir() -
Andrew Tridgell
ba3ce3404e pipe opening now works with unicode -
Andrew Tridgell
e1a04e621f initial client side unicode support (needed for netapp filer)
I've currently got this code disabled by default as it is
incomplete. You enable it by setting a USE_UNICODE environment
variable. Once the support is complete this check will be removed and
the CAP_UNICODE capability bit will be the sole determination of
whether the client library code uses unicode

right now I have converted session_setup and tconx. I will do more fns
over the next few days.

see clistr.c for the new client side string interface. Luckily it
tends to make the code smaller and neater while adding unicode
support.
-
Richard Sharpe
debb723194 Opps, last one did not commit the correct changes ... Here they are.
This now uses a lookup on <DOMAIN><1D> and then does a name status query to
the IP address returned to find the name of the server. Seems to work well
against Samba, Win9X, WinNT and Win2K.
-
Richard Sharpe
54b0fbe98b Change code around and add retry to deal with the occassional loss of NetBIOS datagrams responses, either via TDB or direct receive ... -
Richard Sharpe
620cc34015 Fixes to libsmbclient so it will work when browsing real Windows systems which
only respond to port 138 when dealing with NetBIOS datagrams.

We use the unexpected packed database.
-
Jeremy Allison
d938ad6963 Excise snprintf -> slprintf.
srv_samr.c: duplicate gid fix.
srv_spoolss_nt.c: Merge of JF's work.
uid.c: Fix for returning names when a PDC.
Jeremy.
-
Tim Potter
ec217eb8fc Merge of i18n password fix for smbclient. -
Tim Potter
79045bd72a Merge of i18n fixes from appliance branch. Samba can now talk to a network
with a PDC that has international netbios name and domain name.  There's
still quite a bit of i18n stuff to fix though...
-
Richard Sharpe
3c66114346 Added commented/documented version of libsmbclient.h and fixed up a small
problem in libsmbclient.c where we no longer pass the workgroup.
-
Richard Sharpe
7c50af3b71 Fix problems in libsmbclient with pring job struct plus add implementation
of last two print routines ...
-
Richard Sharpe
c19559a286 Implement two printing related functions and start the remaining two. -
Richard Sharpe
838cfad404 Fix some further small bugs in libsmbclient to make it pass the
Caldera test suite and start to add the printing routines.
-
Tim Potter
2eabb7c229 Convert netbios name to dos codepage in make_nmb_name(). This allows
nmblookup and smbclient to work with i18n netbios names.
-
Richard Sharpe
4ae7812353 Fix some bugs and prepare for some other bug fixes ... -
Richard Sharpe
bca6b7dd20 Add an extra error code translation to clierror.c so that libsmbclient
gets some more error codes correct ...
-
Richard Sharpe
09902d2d4a Remove an inet_aton so that this code will compile on Solaris ...
Ahhh, the sweet smell of portability.
-
Jeremy Allison
d04ed97eca Fixes from appliance-head for pdc searches.
Jeremy.
-
Richard Sharpe
68614bac5a Fix a problem with smbc_unlink on directories where it was returning EACCES
instead of EPERM and a problem with SMBC_OPEN where it ignored an error
from the underlying cli_open routine and cheerfully returned a bogus FD.
-
Tim Potter
13e4fd1d84 Added remaining samr functions needed by winbindd.
Added #define/#undef NEW_NTDOMAIN symbols.
-
Richard Sharpe
5629b097d4 Fixed bugs relating to Win2K and the need for a codepage so that unicode
strings can be handled correctly.
-
Richard Sharpe
66bb40153a Some more bug fixes plus implementations of smbc_mkdir and smbc_rmdir,
both tested ...

More later.
-
Richard Sharpe
7f559c1a73 Many bug fixes to the libsmbclient.c code plus
- an implementation of smbc_readdir
  - extensions to tree.c to show files in a second window
  - changes to auth_fn to provide buffers for username, password, etc
    from caller rather than callee
-
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.
-
Richard Sharpe
cc5a2db8a0 Add support for logging to wherever smb.conf specifies. -
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
991f6907ac More fixes and implementation bits and pieces for libsmbclient -
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
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 ... -
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.
-
Tim Potter
143006d32f Return EACCES for bad password. -
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.
-
Tim Potter
c4476c6315 Added a cli_nt_create_uni() to do a ntcreate&x with a unicode filename,
regardless of the settings negotiated in the flags2 smb field.
-