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

379 Commits

Author SHA1 Message Date
Tim Potter
5a0e2f1957 Added remaining samr functions needed by winbindd.
Added #define/#undef NEW_NTDOMAIN symbols.
(This used to be commit 13e4fd1d84ab1150446530b11c47c4d6617014cb)
2001-01-15 23:34:32 +00:00
Richard Sharpe
552d6bce08 Fixed bugs relating to Win2K and the need for a codepage so that unicode
strings can be handled correctly.
(This used to be commit 5629b097d4f04ad45c66f270bd58f08d7c717353)
2001-01-14 00:11:29 +00:00
Richard Sharpe
338fd23290 Some more bug fixes plus implementations of smbc_mkdir and smbc_rmdir,
both tested ...

More later.
(This used to be commit 66bb40153a9ff38692356cadfad89cf91439032e)
2001-01-12 12:48:55 +00:00
Richard Sharpe
fb40134446 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
(This used to be commit 7f559c1a7307b91218d5984f48f65e7dc0ab66b9)
2001-01-12 05:10:45 +00:00
Jeremy Allison
adb91565b5 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.
(This used to be commit 7ba0a2192b89954604dd793c537b4a17c2d1ac07)
2001-01-11 18:38:55 +00:00
Tim Potter
3ab2ea5406 Added init functions, cli_spoolss_open_printer_ex(),
cli_spoolss_closeprinter(), cli_spoolss_enum_printers(),
cli_spoolss_enum_ports() and cli_spoolss_getprinter()
(This used to be commit 84247ba7d7048cc828edad282313bfd21bbc6b5d)
2001-01-10 18:48:02 +00:00
Tim Potter
5688f5292a Added init functions, cli_samr_connect(), cli_samr_close(),
cli_samr_open_{domain,user}() and cli_samr_query_userinfo()
(This used to be commit 385860107346de26b4bcbd33d5f131a0670f6f93)
2001-01-10 18:46:24 +00:00
Tim Potter
51a37d1960 Fixed authenticated pipe access.
Added cli_lsa_enum_trust_dom().

Misc other cosmetic changes.
(This used to be commit 751483a155723581f987d46605b59cdeba34ad72)
2001-01-10 18:44:39 +00:00
Richard Sharpe
8788aea643 Add support for logging to wherever smb.conf specifies.
(This used to be commit cc5a2db8a0c195b328b93fff566bc1120aeef54a)
2001-01-08 02:47:30 +00:00
Richard Sharpe
24bf82f306 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
(This used to be commit 4c540393b33a5c49adafcc9320f591490b97192a)
2001-01-07 13:38:24 +00:00
Richard Sharpe
bdb2c12d2e More bug fixen ...
(This used to be commit a13b5ef7bba86d42df98b4f493aa2ea9e1caa6c3)
2001-01-07 13:07:26 +00:00
Richard Sharpe
c6d5280a54 More fixes and implementation bits and pieces for libsmbclient
(This used to be commit 991f6907ac200d53b95a206d65844a0c0830caae)
2001-01-07 07:10:50 +00:00
Richard Sharpe
34fea75f35 Fix some more bugs in libsmbclient.c and add functionality to tree.c
(This used to be commit d6cef8877a7ed80329b3ba67231a94601fcfd060)
2001-01-06 14:48:55 +00:00
Richard Sharpe
a0feaf62b7 Fix a minor problem with listing servers in a workgroup and add a
gtk+ test application that tests out some of this stuff ...
(This used to be commit 606c4aeceac0bd1823ec6376df3ca5016007ab38)
2001-01-06 12:15:46 +00:00
Richard Sharpe
b6e811b90b 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.
(This used to be commit 38ff91c5059a32c7ad2fd6074697c7c7f68a878c)
2001-01-05 13:43:19 +00:00
Richard Sharpe
dca808cbc4 Needed a callback arg on cli_list ...
(This used to be commit d45e667a74fc2fcbf69c4819d480269c03dbfae4)
2001-01-05 13:11:29 +00:00
Richard Sharpe
92ebc81734 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.
(This used to be commit 7f862e387f935a2125481338eee850afcb8d82ba)
2001-01-04 11:35:55 +00:00
Richard Sharpe
b6cb83d0d1 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.
(This used to be commit f7466ba67cb6f863ee495e6de884e9b7a2e49430)
2001-01-03 05:19:21 +00:00
Tim Potter
e86cbff0a9 Return EACCES for bad password.
(This used to be commit 143006d32f0a0d339b870741b811ec49795b7099)
2001-01-02 23:41:15 +00:00
Richard Sharpe
b87c484051 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.
(This used to be commit 51c0436a50e9f9274cee9de043bbefc93aff8011)
2000-12-26 05:57:10 +00:00
Tim Potter
8fd4d9fab4 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.
(This used to be commit c4476c6315a6e99dd4a1d0e3185a0d17c073205d)
2000-12-21 05:22:15 +00:00
Tim Potter
b37ac378cf Replace magic number with constant.
(This used to be commit 1a228868cf14418894b798f19955df3276bd1089)
2000-12-21 00:30:32 +00:00
Andrew Tridgell
abb9a2de72 implemented a much nicer name_status() interface. It now returns a
list of structures rather than the dodgy parsing code we had before

this also gets smbw working correctly with no initial workgroup (using
name_status_find on __MSBROWSE__ returns)
(This used to be commit f2be88a8738a39ca5c98936edb7537cd701348a1)
2000-12-20 03:22:51 +00:00
Jeremy Allison
7bf9d8ce4b Fixed bug found by Gerald. If a Samba server joins a domain and is set
to search for a DC to authenticate to using the "*" syntax than ensure
that for the first hour after the password change is searches for the
PDC using the 1B name not the 1C name as domain replication may not
have occured.
Jeremy.
(This used to be commit c25533de9918ed9b0c79fd039e11d1b79f513db0)
2000-12-19 23:57:48 +00:00
Tim Potter
cc4870aa0e Added query info policy call.
(This used to be commit dcea2a4bc0503822667b73d19c4f0a59b15715a5)
2000-12-18 06:09:40 +00:00
Tim Potter
862b835040 Streamlined exit path.
Allow NULL to be passed to cli_lsa_initialise() which creates an anonymous
connection to the server.
(This used to be commit 8ccd06ee9635e81bdefa8ae58a88c39f132b371c)
2000-12-18 05:27:44 +00:00
Jeremy Allison
369f5fd1d7 Fixed memory leaks in lsa_XX calls. Fixed memory leaks in smbcacls. Merged
in fixes from appliance-head and 2.2. Fixed multiple connection.tdb open
problem.
Jeremy.
(This used to be commit 0a40bc83e14c69a09948ec09bb6fc5026c4f4c14)
2000-12-15 01:02:11 +00:00
Tim Potter
16e05346e5 Lightweight rpc client library. Uses only routines in libsmb and
rpc_client/cli_pipe.c

Only cli_lsa_open_policy(), cli_lsa_close(), cli_lsa_lookup_names()
and cli_lsa_lookup_sids() implemented so far.
(This used to be commit 129d5a155a73d926868d74f8447c1e93b429388d)
2000-12-13 12:52:21 +00:00
Andrew Tridgell
2364d59cdc exposed the broadcast name resolution routine outside namequery.c
(This used to be commit 7d1d867acdc0f316d8de787e1f7fa27667ec4a6a)
2000-12-11 00:08:17 +00:00
Tim Potter
2e79da814d Removed compiler warning.
(This used to be commit 6d3bd1d80635d91e9590bcf093662259090ea6da)
2000-12-08 02:45:51 +00:00
Andrew Tridgell
d931013008 pass the desired access into cli_nt_create()
(This used to be commit a2d07994e0376a8d530d262573c96710bdff2236)
2000-12-04 07:26:56 +00:00
Andrew Tridgell
3a01ece497 fixed indentation
(This used to be commit b7a1c00bed5f0650783c8d7397c11aa2ac59aa04)
2000-12-04 06:39:14 +00:00
Andrew Tridgell
5092ad82ba removed SACL support (as it doesn't work with w2k if you ask for
SACLs)
(This used to be commit 52b27d75e12eeeb52b3a93952900809c2ee0b992)
2000-12-04 04:58:40 +00:00
Andrew Tridgell
ca784bb028 in cli_session_setup() accept usernames of the form DOMAIN/USER or
DOMAIN\USER

this means all our tools can now put the domain name in the -U option
(This used to be commit bac1c76f03b6b848fa2e942b12c646aed58bee12)
2000-12-04 04:26:22 +00:00
Andrew Tridgell
1fac52f9f0 changed an error message
(This used to be commit f9f14a4293cecb738f733c6c845275619f7bec40)
2000-12-03 11:04:45 +00:00
Andrew Tridgell
4fee254d67 getting/setting acls now works. The SIDs are still numeric, the next
step is to support usernames etc
(This used to be commit 6cea1647fcbc6f5a903c691273dcec44fcda1fc4)
2000-12-03 07:36:15 +00:00
Andrew Tridgell
0f1713068f - added client support for nttrans calls
- added a cli_ function for querying a security descriptor on a remote file
(This used to be commit e21994ff9d512d1c9d6d360e930809b135df4cf7)
2000-12-03 02:18:14 +00:00
Jeremy Allison
6f58dd5871 Ok - fixed a bug in our levelII oplock code. We need to break a level II on
a byte range lock (write lock only, but Win2k breaks on read lock also so I
do the same) - if you think about why, this is obvious. Also fixed our client
code to do level II oplocks, if requested, and fixed the code where we would
assume the client wanted level II if it advertised itself as being level II
capable - it may not want that.
Jeremy.
(This used to be commit 213cd0b5192307cd4b0026cae94b2f52fb1b0c02)
2000-11-16 00:59:18 +00:00
Jeremy Allison
e2d1dd47d8 Another patch to fix cli_reestablish_connection from Kenichi Okuyama@Tokyo Research Lab. IBM-Japan. Co. Jp.
Jeremy.
(This used to be commit 06f5da5d4bf044969364afe0298347811fb4ae91)
2000-10-28 20:54:45 +00:00
Jeremy Allison
2e62e34fe4 Rolled back find NetBIOS name of PDC/BDC code as a temp fix. This
code works :-).
Jeremy.
(This used to be commit 4f66eda11e0dc15ff04893da7b7d6e578a30c4dc)
2000-10-27 03:02:22 +00:00
Jean-François Micouleau
85643cd72c last part of W2K support.
the trust domain list reply on netlogon pipe was wrong, interim hack until
we have full trust relationships.

changed some unistr2 to parse the ending NULL char.

added a prs_align_needed() function. much like a prs_align but with a
condition. needed for the unistr2 parsing.

	J.F.
(This used to be commit d8bf81553c17d9ee3419d8150b96119ebb0b8fa9)
2000-10-13 14:02:01 +00:00
Jeremy Allison
330d678fba Fix to allow smbd to call winbindd if it is running for all group enumeration,
falling back to the UNIX calls on error. This should fix all problems with
smbd enumerating all users in all groups in all trusted domains via winbindd.
Also changed GETDC to query 1C name rather than 1b name as only the PDC
registers 1b.
Jeremy.
(This used to be commit 5b0038a2afd8abbd6fd4a58f5477a40d1926d498)
2000-10-13 01:59:14 +00:00
Herb Lewis
8719c27726 changes to sync with 2.2. tree
.cvsignore              remove config.h - not in this directory
include/profile.h       profile changes
lib/messages.c          added message to return debug level
libsmb/clierror.c       cast to get rid of compiler warning
libsmb/smbencrypt.c     cast to get rid of compiler warning
profile/profile.c       add flush profile stats changes for profile struct
rpc_parse/parse_samr.c  fix for compiler warning
rpc_server/srv_samr.c   cast to get rid of compiler warning
smbd/ipc.c              profile stats
message.c               profile stats
smbd/negprot.c          profile stats
smbd/nttrans.c          profile stats
smbd/trans2.c           profile stats
utils/smbcontrol.c      new flush stats command
(This used to be commit bbb24daa25dca4e4b6b1f8942cd84ee3aa1bed8e)
2000-10-11 05:31:39 +00:00
Jean-François Micouleau
75c346e70c added samr_set_user_info and info_2.
cleanup of create_user
cleanup of rid/sid mix in samr. now we only have sid.

some prs_align() missing in parse_samr.c

a small debug change in srv_pipe.c

You still can't change a user's password in this commit.
Will be availble in the next one.

	J.F.
(This used to be commit b655bc281fa183b1827a946ada1fcf500fb93aea)
2000-10-07 15:56:36 +00:00
Jeremy Allison
8582d42646 Ensure browse.dat is written and read in UNIX character set format.
Jeremy.
(This used to be commit 279d0ec656b03f9266e38b013f16b69e7571c0d5)
2000-10-07 01:15:07 +00:00
Jeremy Allison
9c6acf4595 Fix from RFritz@lbl.gov for Linux ECONREFUSED async errors on Linux.
Jeremy.
(This used to be commit dd804fdb96ff49645647787c197a61a6515a474d)
2000-10-06 22:37:42 +00:00
Andrew Tridgell
3f35a785b1 added cli_lock64() and cli_unlock64()
(This used to be commit 91f0a3cc2f59a49f6ce8550e7d07b9b01e0b285f)
2000-09-29 04:41:52 +00:00
Luke Leighton
dda54bcd7d added NEGNOWAIT. sent to secure@microsoft.com
(This used to be commit b21179331802aace566671dcff6db22cdf4b3e81)
2000-09-26 05:44:42 +00:00
Tim Potter
c79b92bbd8 Replaced "\\MAILSLOT\\NET\\NETLOGON" with NET_LOGON_MAILSLOT constant.
(This used to be commit 5764e84c0e01fa4d6ecba410542f6f5c63b9eae6)
2000-08-25 04:18:50 +00:00
Christopher R. Hertel
726e7e256e First shot at actually *doing* WINS failover.
If libsmb/namequery.c:name_query() times out while doing a non-broadcast
query, I mark that WINS server 'dead'.  Note that I don't try the new
WINS server.  I think I can get that working too.

This is only for queries, not registrations.  The biggest problem is that
I may have to fiddle with the UNICAST SUBNET, but I need to check talk
that over with someone (Jeremy?) before I hack at it.

I can't actually test the above change, I'm 'fraid.  I'm getting:

4 errors detected in the compilation of "rpc_server/srv_spoolss_nt.c".

in head branch.

Chris -)-----
(This used to be commit 40ae638866e3d826ccd5d827672634959c31b039)
2000-08-11 22:29:44 +00:00