samba.git
25 years agodeclare ttarf as double, as in client.c
Alexandre Oliva [Tue, 30 Mar 1999 10:41:07 +0000 (10:41 +0000)]
declare ttarf as double, as in client.c
(This used to be commit dfcfeb743a7667c9dedf3d2b04587c497af12893)

25 years agouse double instead of SMB_BIG_UINT for dir_total and ttarf
Alexandre Oliva [Tue, 30 Mar 1999 10:25:20 +0000 (10:25 +0000)]
use double instead of SMB_BIG_UINT for dir_total and ttarf
(by tridge, merged from branch)
(This used to be commit b482ac8fc4948ead79be8dd08c8386449f12e5f6)

25 years agoadded SamrQueryDomainInfo call info level 0x3 for kix32.exe support
Luke Leighton [Mon, 29 Mar 1999 17:24:46 +0000 (17:24 +0000)]
added SamrQueryDomainInfo call info level 0x3 for kix32.exe support
(This used to be commit ac070dfd39bfa9b60680855585155ce528ab7691)

25 years ago"User Manager" - create user + change password now work.
Luke Leighton [Thu, 25 Mar 1999 21:32:04 +0000 (21:32 +0000)]
"User Manager" - create user + change password now work.
next problem: user group adding not supported so an "access denied"
message is reported instead of "ok" when a new user is created.
(This used to be commit f5f61bd477b4910cb90675c926381342c30a5b16)

25 years agoSMB_BIG_INT dir_total incompatible with %d: must use %llu (line 446)
Luke Leighton [Thu, 25 Mar 1999 21:01:08 +0000 (21:01 +0000)]
SMB_BIG_INT dir_total incompatible with %d: must use %llu (line 446)
(This used to be commit 1cece2124601fad6f5f9e3e16c4b0848ec9be249)

25 years agofixed issues with "Welcome to SAMBA Domain" for when admin user/pass is
Luke Leighton [Thu, 25 Mar 1999 20:56:28 +0000 (20:56 +0000)]
fixed issues with "Welcome to SAMBA Domain" for when admin user/pass is
used to add workstation to domain.  unix account db not modified: only
SAM password db is used.
(This used to be commit 129a9a4d4b74897ed753a697a3aed9b194c25568)

25 years ago* client/client.c (dir_total): use SMB_BIG_UINT
Alexandre Oliva [Thu, 25 Mar 1999 20:21:01 +0000 (20:21 +0000)]
* client/client.c (dir_total): use SMB_BIG_UINT
* client/clitar.c (ttarf): ditto
* * lib/snprintf.c: support long longs; adapted from Cloyce D. Spradling's
patch <cloyce@headgear.org>
(This used to be commit 29581f8486e221f41669c2ca268c282f36a496ce)

25 years agoadded SAMR_USER_INFO_24 info level to samr_set_userinfo. this is used
Luke Leighton [Thu, 25 Mar 1999 15:14:30 +0000 (15:14 +0000)]
added SAMR_USER_INFO_24 info level to samr_set_userinfo.  this is used
by "Welcome to SAMBA Domain".
(This used to be commit 4aed18b5e1e2309c0f6931fbfdd604b01cb9498a)

25 years agoSAM database "set user info".
Luke Leighton [Thu, 25 Mar 1999 13:54:31 +0000 (13:54 +0000)]
SAM database "set user info".
----------------------------

- removed DOM_RID4

- removed SAMR_UNKNOWN_32

- added SAMR_SET_USERINFO (opcode 0x32)

- added level 0x1 to SAMR_QUERY_DOM_INFO (needed for create user)

- fixed pwdb_gethexpwd() it was failing on XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

- added mod_sam21pwd_entry()

- preparing to call mod_sam21pwd_entry()

- added "user session key" to user_struct.dc.  this is md4(nt#) and is
  needed to decode user's clear-text passwords in SAMR_SET_USERINFO.

- split code out in chgpasswd.c to decode 516 byte password buffers.
(This used to be commit 2e58ed742435befe419aa366c4052019fede8c23)

25 years agoNULL pointer handling in nt_lm_owf_gen
Luke Leighton [Wed, 24 Mar 1999 21:23:39 +0000 (21:23 +0000)]
NULL pointer handling in nt_lm_owf_gen
(This used to be commit 68841eeb64df5958a90a6471fd17e6e56fba7c67)

25 years agomatt, you had removed a "pointer" from DOM_R_REF structure which made it
Luke Leighton [Wed, 24 Mar 1999 21:09:34 +0000 (21:09 +0000)]
matt, you had removed a "pointer" from DOM_R_REF structure which made it
possible to fix lsa_r_lookup_names, but forgot to add that pointer in
to lsa_r_lookup_sids, where DOM_R_REF was also being used.
(This used to be commit 9092368af8adbf412c71af7216365e926593d54d)

25 years agoremoved 2 unnecessary args from make_uni_hdr.
Luke Leighton [Wed, 24 Mar 1999 17:26:08 +0000 (17:26 +0000)]
removed 2 unnecessary args from make_uni_hdr.
(This used to be commit f84dede27e16a5f02ee6d02fe2d16f2661c65470)

25 years agoFixed LSA Lookup Names. There were a few too many NULL pointers in a
Matthew Chapman [Wed, 24 Mar 1999 12:18:28 +0000 (12:18 +0000)]
Fixed LSA Lookup Names. There were a few too many NULL pointers in a
negative response, which tended to crash lsass.exe.
(This used to be commit 6d03f61d2536630968007958345cf44a42b03584)

25 years agodynamic memory allocation in samr enum dom users. works with 849 entries now.
Luke Leighton [Tue, 23 Mar 1999 20:43:44 +0000 (20:43 +0000)]
dynamic memory allocation in samr enum dom users.  works with 849 entries now.
(This used to be commit 103557e26b071bf1e65e025ef5a52ccdbf483d02)

25 years agoFixed a typo where the RPC header mem_buffer was initialised as 0x8 bytes long
Matthew Chapman [Tue, 23 Mar 1999 15:01:37 +0000 (15:01 +0000)]
Fixed a typo where the RPC header mem_buffer was initialised as 0x8 bytes long
rather than 0x18. Rather nasty, I doubt the client ever worked for multiple
PDU's.
(This used to be commit 90b6fce780c8dff37a389493be0568923b189ff0)

25 years agoERRmoredata is informational and should not be treated as a hard error
Matthew Chapman [Tue, 23 Mar 1999 14:58:26 +0000 (14:58 +0000)]
ERRmoredata is informational and should not be treated as a hard error
anywhere.
(This used to be commit 71b861f7468d7950bedb61dd18a4b9d830bf8628)

25 years agoSame infinite loop bug as I fixed in SAMBA_2_0, but I just spent half
Matthew Chapman [Tue, 23 Mar 1999 14:56:25 +0000 (14:56 +0000)]
Same infinite loop bug as I fixed in SAMBA_2_0, but I just spent half
an hour tracking it down in HEAD so I'm going to commit it here as well.
(This used to be commit 9a482aedb2c4eb7439e2edc092642d315d2a595b)

25 years ago#if defined(HAVE_MYSQL_H) || defined(WITH_MYSQLSAM)
Matthew Chapman [Tue, 23 Mar 1999 14:14:12 +0000 (14:14 +0000)]
#if defined(HAVE_MYSQL_H) || defined(WITH_MYSQLSAM)
should instead have &&.
(This used to be commit 1143fd4297b946d4ffd3c6ca104188cdcb48fac8)

25 years agoAnother UNICODE issue - this time BUFFER2 was being transmitted incorrectly.
Matthew Chapman [Tue, 23 Mar 1999 13:45:42 +0000 (13:45 +0000)]
Another UNICODE issue - this time BUFFER2 was being transmitted incorrectly.
(This used to be commit 73730f6004c7eca1d852a569dede94095a396dca)

25 years agoIf a buffer pointer is NULL then its length_is() attribute should not be
Matthew Chapman [Tue, 23 Mar 1999 02:31:34 +0000 (02:31 +0000)]
If a buffer pointer is NULL then its length_is() attribute should not be
transmitted.

Such a problem was crashing Server Manager.
(This used to be commit 402ed18188dd058ebed2ffc2af9840c04533dc8f)

25 years agoThe line:
Matthew Chapman [Sun, 21 Mar 1999 13:01:31 +0000 (13:01 +0000)]
The line:

    this_pdu_data_pos = data_pos - p->prev_pdu_file_offset;

is correct for first two PDU's only, after that it results in extra
garbage after each fragment and hence "Protocol Error" messages from
NT4 SP4. Changed to:

    this_pdu_data_pos = (pdu_data_sent == 0) ? 0 : (pdu_data_sent - 0x18);
(This used to be commit b9e8a3ef3a25a81c4bb125bdd4f4d8334a578c85)

25 years agoEnsuring return status is aligned in SAMR_QUERY_DISPINFO response.
Matthew Chapman [Sun, 21 Mar 1999 12:55:18 +0000 (12:55 +0000)]
Ensuring return status is aligned in SAMR_QUERY_DISPINFO response.
(This used to be commit 1e17c2529c5162ea79fe2331ca2162ffb98bd6c2)

25 years agoadded a "createuser" command.
Luke Leighton [Fri, 19 Mar 1999 21:20:19 +0000 (21:20 +0000)]
added a "createuser" command.
(This used to be commit fefb4bf19181714cb73414febd6ee2ec10356cbe)

25 years agovalue->enc_secret not value->secret
Luke Leighton [Fri, 19 Mar 1999 21:15:03 +0000 (21:15 +0000)]
value->enc_secret not value->secret
(This used to be commit d6cee14f8049471b14337681cbeac115958fbac0)

25 years agoconst char* instead of char* for input
Luke Leighton [Fri, 19 Mar 1999 20:58:24 +0000 (20:58 +0000)]
const char* instead of char* for input
(This used to be commit b51574174c5bbc554eb1c697cb22b2b73af44306)

25 years agoreturn type of nt_decrypt_string2 set to BOOL.
Luke Leighton [Fri, 19 Mar 1999 20:26:25 +0000 (20:26 +0000)]
return type of nt_decrypt_string2 set to BOOL.
(This used to be commit 674e4a3a73cd601c647a5069e2af943a6321ac06)

25 years agogoing to start adding inter-domain trust logons soon.
Luke Leighton [Fri, 19 Mar 1999 15:49:22 +0000 (15:49 +0000)]
going to start adding inter-domain trust logons soon.
(This used to be commit f9f594c03e220a0d902c5c3c5835948348b19fee)

25 years agovalid_pol in lsa_query_secret() needed to be initialised to False.
Luke Leighton [Fri, 19 Mar 1999 15:39:43 +0000 (15:39 +0000)]
valid_pol in lsa_query_secret() needed to be initialised to False.
(This used to be commit 96e358a2f00ac603c95bc922e488ea2b64aeb829)

25 years agoquerysecret now shows the real, fairdinkum, decrypted secret :-)
Matthew Chapman [Fri, 19 Mar 1999 15:11:07 +0000 (15:11 +0000)]
querysecret now shows the real, fairdinkum, decrypted secret :-)
(This used to be commit 5951e16a1134a559abefdd400e7a17627338f368)

25 years agoImplemented encryption algorithm used for a number of RPC buffers.
Matthew Chapman [Fri, 19 Mar 1999 15:09:25 +0000 (15:09 +0000)]
Implemented encryption algorithm used for a number of RPC buffers.
(actually, decryption only currently because I need to get some sleep).

Basically another Microsoft twist on DES; the "master key" is the user's
NT hash MD4'd and subsets of this are chosen as the 56-bit DES keys.
(This used to be commit f09388fa6f41a13ca035b5b2ff40be804608f619)

25 years agoBeau Kuiper: provided patch so that passwords could only be changed by
Luke Leighton [Fri, 19 Mar 1999 05:00:39 +0000 (05:00 +0000)]
Beau Kuiper: provided patch so that passwords could only be changed by
root if the ACB_PWLOCK bit is set (on a per-user basis).  he also added
an extra smbpasswd option so that this bit can be modified from
command-line.
(This used to be commit 534fe319d9de8da2ed7e911dbba3c7df08193efa)

25 years agodouble-checked the return results from new querysecret command, corrected
Luke Leighton [Thu, 18 Mar 1999 22:13:15 +0000 (22:13 +0000)]
double-checked the return results from new querysecret command, corrected
my corrections :)
(This used to be commit 082109369b981713f68c13053b6419686f69ef26)

25 years agomatt,
Luke Leighton [Thu, 18 Mar 1999 22:12:05 +0000 (22:12 +0000)]
matt,

remember: only close handles that you've previously opened.  if the
lsa_open_secret() succeeds then and only then can you close it.
if the lsa_open_policy2() succeeds then and only then can you close it.
(This used to be commit 60da0a12555a2e12e27ff2af24e1068a515469c0)

25 years agoAdded SVC_START_SERVICE rpc. An NT PDC will attempt to start the NETLOGON
Matthew Chapman [Thu, 18 Mar 1999 09:36:43 +0000 (09:36 +0000)]
Added SVC_START_SERVICE rpc. An NT PDC will attempt to start the NETLOGON
service on its BDC's prior to initiating SAM replication. For now just
return success.
(This used to be commit 113d03a38a34e5c4115dab59349078093bcd4888)

25 years agoChanged hard-coded number of users/groups in SAMR_QUERY_DOMAIN_INFO
Matthew Chapman [Thu, 18 Mar 1999 06:30:27 +0000 (06:30 +0000)]
Changed hard-coded number of users/groups in SAMR_QUERY_DOMAIN_INFO
to MAX_SAM_ENTRIES to prevent truncation of user lists.
A proper implementation is not important right now.
(This used to be commit 900238a66153c276d63780e3264651089291d185)

25 years agoAdding LSA_OPENSECRET (-> LsarOpenSecret) and LSA_QUERYSECRET
Matthew Chapman [Thu, 18 Mar 1999 05:16:59 +0000 (05:16 +0000)]
Adding LSA_OPENSECRET (-> LsarOpenSecret) and LSA_QUERYSECRET
(-> LsarQuerySecret) on client side, including rpcclient command
"querysecret" for others to play with.

The major obstacle is working out the encryption algorithm used
for the secret value. It definitely uses the NT hash as part of the
key, and it seems the block size is 64 bits - probably DES based -
but I can't work out what's done in between. Help required.
(This used to be commit 365fa3b5fbf551670acc91f593138a7e91a5f7fa)

25 years agoSAMLOGON query - alignment issue is beginning to get to me.
Luke Leighton [Wed, 17 Mar 1999 21:35:10 +0000 (21:35 +0000)]
SAMLOGON query - alignment issue is beginning to get to me.
(This used to be commit baf55934dc5118f8c423fe05c0e4b8d7c018fa14)

25 years agoStefan Walters: purify spotted rverf should be alloc'd to 16 bytes not 8.
Luke Leighton [Wed, 17 Mar 1999 19:49:14 +0000 (19:49 +0000)]
Stefan Walters: purify spotted rverf should be alloc'd to 16 bytes not 8.
(This used to be commit 4bb74fcc714fccac791ce86c8882d19d704b17a1)

25 years agoalignment issue for UDP SAMLOGON response.
Luke Leighton [Wed, 17 Mar 1999 19:48:29 +0000 (19:48 +0000)]
alignment issue for UDP SAMLOGON response.
(This used to be commit 9d01e9d86a8d22a283a8377a12bb175398547d78)

25 years agoAdded SVC_QUERY_DISP_NAME (corresponding to the GetServiceDisplayName API).
Matthew Chapman [Tue, 16 Mar 1999 06:24:24 +0000 (06:24 +0000)]
Added SVC_QUERY_DISP_NAME (corresponding to the GetServiceDisplayName API).
Needed during preliminary part of SAM replication.
(This used to be commit 03e722cdf502491d09d4c5eb9024d837ae10ab32)

25 years agoDon't forget to make proto.
Matthew Chapman [Sun, 14 Mar 1999 01:25:11 +0000 (01:25 +0000)]
Don't forget to make proto.
(This used to be commit c95520eae9eecc2ec0a347dc0212d6983c5c7f2c)

25 years agoStefan Walter: spotted *p_group == NULL which should be p_group == NULL.Stefan Walter...
Luke Leighton [Fri, 12 Mar 1999 19:53:28 +0000 (19:53 +0000)]
Stefan Walter: spotted *p_group == NULL which should be p_group == NULL.Stefan Walter: spotted *p_group == NULL which should be p_group == NULL.Stefan Walter: spotted *p_group == NULL which should be p_group == NULL.Stefan Walter: spotted *p_group == NULL which should be p_group == NULL.Stefan Walter: spotted *p_group == NULL which should be p_group == NULL.Stefan Walter: spotted *p_group == NULL which should be p_group == NULL.Stefan Walter: spotted *p_group == NULL which should be p_group == NULL.
(This used to be commit 81b5304fe5ea518680b2516e2da39f31c1d05afb)

25 years agocli_setup_creds new arguments added.
Luke Leighton [Fri, 12 Mar 1999 19:37:40 +0000 (19:37 +0000)]
cli_setup_creds new arguments added.
(This used to be commit 5fa3a3f710cfd3a51641d560a96bd08f92afca32)

25 years agonew "domtrust" test command. r&d into inter-domain trust accounts.
Luke Leighton [Fri, 12 Mar 1999 05:47:06 +0000 (05:47 +0000)]
new "domtrust" test command.  r&d into inter-domain trust accounts.
(This used to be commit 65b0abe8b7594ff6c662da86dc2e35bd83a2d13d)

25 years agocheck for exactly _one_ key: for USRMGR.EXE.
Luke Leighton [Fri, 12 Mar 1999 05:46:10 +0000 (05:46 +0000)]
check for exactly _one_ key: for USRMGR.EXE.
(This used to be commit 478d9ddfcf59e3d847d83947c8d4f0bf84f26833)

25 years agostatic password space needed.
Luke Leighton [Wed, 10 Mar 1999 17:32:41 +0000 (17:32 +0000)]
static password space needed.
(This used to be commit 5b1d0789007bfcb09326643eb271746cee386846)

25 years agoGreg Dickie: spotted bug where smb_nt_passwd could be NULL.
Luke Leighton [Wed, 10 Mar 1999 17:06:07 +0000 (17:06 +0000)]
Greg Dickie: spotted bug where smb_nt_passwd could be NULL.
(This used to be commit d8946f1cc7b77b06f346344ffdb4772e6d225396)

25 years agoGreg Dickie spotted some wierd memory corruption problem with group
Luke Leighton [Tue, 9 Mar 1999 23:22:36 +0000 (23:22 +0000)]
Greg Dickie spotted some wierd memory corruption problem with group
database enumeration.
(This used to be commit b0381bb262f51fca916fb951fc0c7e54a58e2dd3)

25 years agoalignment issue in UDP SAMLOGON response.
Luke Leighton [Tue, 9 Mar 1999 02:03:39 +0000 (02:03 +0000)]
alignment issue in UDP SAMLOGON response.
(This used to be commit de290627f06915d420d37d2a3ac2f736c4cf8d74)

25 years agomods to allow inter-domain trust accounts to be added to SAM database
Luke Leighton [Tue, 9 Mar 1999 01:21:57 +0000 (01:21 +0000)]
mods to allow inter-domain trust accounts to be added to SAM database
using smbpasswd command.
(This used to be commit 62d499f83256c6e8b3308dc4bd8e9f5df873b14b)

25 years agooh dear, it's this one again. removed check for MAILSLOT\NTLOGON because
Luke Leighton [Tue, 9 Mar 1999 01:20:08 +0000 (01:20 +0000)]
oh dear, it's this one again.  removed check for MAILSLOT\NTLOGON because
it's wrong.  i've seen a packet from nt client on MAILSLOT\NETLOGON
with appended undocumented unicode tacked on the end and the response
contained undocumented unicode tacked on the end.
(This used to be commit 74c7d626cd85189c902489d220c3eca30a4b1bb1)

25 years agooops, IS_BITS_CLR_ALL() macro was wrong!
Luke Leighton [Tue, 9 Mar 1999 01:17:42 +0000 (01:17 +0000)]
oops, IS_BITS_CLR_ALL() macro was wrong!
(This used to be commit a32a6f64b187e82f88eaccb6a2a88902be5cc4e0)

25 years agoreverted access control flags in enum commands.
Luke Leighton [Tue, 9 Mar 1999 01:17:16 +0000 (01:17 +0000)]
reverted access control flags in enum commands.
(This used to be commit 97a0b24955b45e434e34510f65afdde7bfdf3183)

25 years ago- todd sabin spotted bugs in samr enum dom users / groups / aliases code:
Luke Leighton [Mon, 8 Mar 1999 19:19:01 +0000 (19:19 +0000)]
- todd sabin spotted bugs in samr enum dom users / groups / aliases code:
  last count (probably an ENUM / resume handle) should always be returned
  even if there are no items being returned.

- got fed up of seven intendation levels in cmd_samr.c, maximum recommended
  in *any* code is three!  made some sub-fns instead.
(This used to be commit 1c330d568225759950401cfb98fe9e99db81419c)

25 years agopass_check.c could receive encrypted password: printing it out as a %s
Luke Leighton [Mon, 8 Mar 1999 18:43:50 +0000 (18:43 +0000)]
pass_check.c could receive encrypted password: printing it out as a %s
results in garbage.  with no password length argument doing dump_data(
100, password, strlen(password)) is the next best alternative.
(This used to be commit 073c8652c13408b883fc73203e5558b1a9a64d62)

25 years agooops, accidentally committed clear-text password reading last week.
Luke Leighton [Mon, 8 Mar 1999 18:42:43 +0000 (18:42 +0000)]
oops, accidentally committed clear-text password reading last week.
(This used to be commit e0b5a866ce2628a5e152af3ef817ee3124e60500)

25 years agoBejamin Kuit. #define MYSQL and MYSQL_ROW to void iff <mysql.h> not found.
Luke Leighton [Mon, 8 Mar 1999 18:41:58 +0000 (18:41 +0000)]
Bejamin Kuit.  #define MYSQL and MYSQL_ROW to void iff <mysql.h> not found.
(This used to be commit 188d9a75edb41e8a0cc0ea6e17c9497771cf3b96)

25 years agospelling mistake, #ifdef'd out for non-developers (oops!)
Luke Leighton [Fri, 5 Mar 1999 22:37:02 +0000 (22:37 +0000)]
spelling mistake, #ifdef'd out for non-developers (oops!)
(This used to be commit 167b0b20e33bef4af5deaff961937dd5fadf481d)

25 years agooops, put -DDEBUG_PASSWORD in wrong place.
Luke Leighton [Fri, 5 Mar 1999 22:33:32 +0000 (22:33 +0000)]
oops, put -DDEBUG_PASSWORD in wrong place.
(This used to be commit 4e89fbb7d9c2c8e776ab0a819cbf1a1294f07c1b)

25 years agoBenjamin Kuit's mods.
Luke Leighton [Fri, 5 Mar 1999 22:03:04 +0000 (22:03 +0000)]
Benjamin Kuit's mods.
(This used to be commit eb63fbdb68f1189593e68272e05d7ebf76652c4c)

25 years agoBenjamin Kuit's latest mysql mods. issue with "make proto" needs to be
Luke Leighton [Wed, 3 Mar 1999 20:48:48 +0000 (20:48 +0000)]
Benjamin Kuit's latest mysql mods.  issue with "make proto" needs to be
resolved.
(This used to be commit d59a2e669aed7ee33fdca8b8ec126b1c0a984981)

25 years agoadded <mysql.h> autoconf test.
Luke Leighton [Tue, 2 Mar 1999 16:43:27 +0000 (16:43 +0000)]
added <mysql.h> autoconf test.
(This used to be commit 511ef8a58ccfc04d0744f28753bb48d848851980)

25 years agoBenjamin Kuit's MYSQL SAM Database implementation.
Luke Leighton [Mon, 1 Mar 1999 16:31:14 +0000 (16:31 +0000)]
Benjamin Kuit's MYSQL SAM Database implementation.
Copyright (C) Benjamin Kuit <bj@mcs.uts.edu.au> 1999.
(This used to be commit fdf61e1dabc2c977ee5cf1e9d60e3380f19840da)

25 years agoimproving syntax / useability of rpcclient "shutdown" command:
Luke Leighton [Mon, 1 Mar 1999 16:01:45 +0000 (16:01 +0000)]
improving syntax / useability of rpcclient "shutdown" command:
rpcclient [-m messsage] [-t timeout] [-r or --reboot].
(This used to be commit 8b859797aaa1b88cb1a932fed97b4c3ea2dbdde2)

25 years agoreferred reader to NT Domain FAQ for more info (copy of update to 2.0)
Gerald Carter [Thu, 25 Feb 1999 15:00:24 +0000 (15:00 +0000)]
referred reader to NT Domain FAQ for more info (copy of update to 2.0)
(This used to be commit 644cda5d807d875c956e71a6e49d65c2d7f0d61e)

25 years agoReturn either STATUS_BUFFER_OVERFLOW or ERRDOS/ERRmoredata depending on
Matthew Chapman [Wed, 24 Feb 1999 19:08:43 +0000 (19:08 +0000)]
Return either STATUS_BUFFER_OVERFLOW or ERRDOS/ERRmoredata depending on
whether the client supports 32-bit error codes.
(This used to be commit cb5428308d6978f7bd76c1b878dd4a43135a274d)

25 years agoAdded "lookupdomain" rpcclient command. Not particularly useful currently
Matthew Chapman [Wed, 24 Feb 1999 01:58:08 +0000 (01:58 +0000)]
Added "lookupdomain" rpcclient command. Not particularly useful currently
(you can do "lookupdomain MYDOMAIN" and "lookupdomain BUILTIN" and the
results won't be too surprising), but it will come in useful testing the
new password database code I'm working on.
(This used to be commit d1cc33bcb61305cc9a6e21886237fa291eda9427)

25 years agoWin9x user level security.
Matthew Chapman [Wed, 24 Feb 1999 01:52:30 +0000 (01:52 +0000)]
Win9x user level security.

* Added SAMR_LOOKUP_DOMAIN (-> SamrLookupDomainInSamServer)

* Added real SAMR_ENUM_DOM_GROUPS (corresponding to
SamrEnumerateGroupsInDomain). The existing one is just an alias for
SamrQueryDisplayInformation (see below).

* Added three extra info levels to SAMR_QUERY_DISPINFO. Info level 3 is
what was previously SAMR_ENUM_DOM_GROUPS; info levels 4 and 5 are
simple user/group list requests used by Win9x and I suspect (haven't
checked) the "low speed connection" User Manager.

* Added another two aliases for SAMR_QUERY_DISPINFO, opcodes 0x30 and
0x33. Usually the first is with info level 3 and the second 4 but there is
some overlap so indeed these should be implemented as just aliases.

* Return ERRDOS/ERRmoredata on extra data instead of
STATUS_BUFFER_OVERFLOW for Win95's benefit. On a named pipe this results
in an SMBreadX as usual.

Still need to fix SAMR_QUERY_DOMAIN_INFO which has a hard-coded number of
users and groups - which Win95 proceeds to truncate at.
(This used to be commit 7d03e6e21908f3a759a4e65c5edd850622335e3e)

25 years agoadded jeremy's new c++-like code for parsing of security descriptors.
Luke Leighton [Tue, 23 Feb 1999 22:39:54 +0000 (22:39 +0000)]
added jeremy's new c++-like code for parsing of security descriptors.
(This used to be commit ec1b7000fd88c5a08e438c7033f60e49b9ec44a8)

25 years agosamr_lookup_names "none found" error needed corrections with empty lists.
Luke Leighton [Fri, 19 Feb 1999 17:41:05 +0000 (17:41 +0000)]
samr_lookup_names "none found" error needed corrections with empty lists.
(This used to be commit e164b5080ca966de4227277f7ac031bc96d056ad)

25 years agolast unix group not being listed. spotted by jacques sansdrap.
Luke Leighton [Fri, 19 Feb 1999 15:46:38 +0000 (15:46 +0000)]
last unix group not being listed.  spotted by jacques sansdrap.
(This used to be commit 2d5fc5c7cf2086c396c853c13a3409bfac77d05c)

25 years agoproblem been there for months: reg_r_info not aligning after string buffer.
Luke Leighton [Thu, 18 Feb 1999 18:50:44 +0000 (18:50 +0000)]
problem been there for months: reg_r_info not aligning after string buffer.
(This used to be commit 66e2787ab7db72fb654b995280b294738e77e50a)

25 years agoGot to the bottom of another weird one...
Michael Warfield [Thu, 18 Feb 1999 04:33:06 +0000 (04:33 +0000)]
Got to the bottom of another weird one...

Piping the output of smbmount back to autofs/automount was causing the
automount process to hang.  Reason was that automount was depending
on the pipe to close to continue on, rather than detecting the child
signal.  This occured with debug enabled and the daemon process was not
closing the stdout process.  Disabling debuging avoids the problem.
Debugging is turned off in the cvs repository and a warning placed over
the debugging option.
(This used to be commit 329ceaee49fa0175f78873433bd942865309f633)

25 years agorpcclient shutdown command
Luke Leighton [Tue, 16 Feb 1999 18:04:21 +0000 (18:04 +0000)]
rpcclient shutdown command
(This used to be commit 59f081069a58f6a070ed6016c06153d5e695da93)

25 years agobitmap to strings
Luke Leighton [Tue, 16 Feb 1999 18:02:50 +0000 (18:02 +0000)]
bitmap to strings
(This used to be commit ba5919bcaefa792bae503c7ab19d4b7bbf9bb954)

25 years agoAlways null-terminate strings.
Matthew Chapman [Mon, 15 Feb 1999 05:33:30 +0000 (05:33 +0000)]
Always null-terminate strings.
Also some string length and sizeof(pointer) corrections.
(This used to be commit ce24191939b82985d09eabe945199f38b0fea486)

25 years agoAlways null-terminate strings.
Matthew Chapman [Mon, 15 Feb 1999 05:31:52 +0000 (05:31 +0000)]
Always null-terminate strings.
(This used to be commit b314430b2102e47529b093b1b98b5b6f3b6ea74f)

25 years agoAdded caching of user password if it was entered via getpass. We were already
Michael Warfield [Sun, 14 Feb 1999 23:15:54 +0000 (23:15 +0000)]
Added caching of user password if it was entered via getpass.  We were already
caching the password if it came from the command line or from the environment.
This completes the set and deals with the bloody nusance when reconnecting
a connection after we have gone daemon...  Grrr...

Added code to clean up the mount point following a catastrophic failure
during reconnect.  The smbmount daemon was exiting but leaving the mount
point in an unusable state.  If smbmount must exit following a reconnect
failure, we "unmount" the mount point and clean up mnttab.  Currently,
the unmount works, fixing some really ugly I/O errors and failure when
trying to remount.  The cleanup on mnttab still has problems.  This
is better than what it was and doesn't break anything that wasn't broken
before, so I'm committing this in even with the mnttab problem.  Will
commit the fix to that when I figure out what is busted there...

-mhw-
(This used to be commit ad8389804cec6c6bf04601a1d7bb3fb7aa8c2274)

25 years agoFolding into Samba-2.1.X tree documents added to 2.0.3.
John Terpstra [Sun, 14 Feb 1999 04:40:05 +0000 (04:40 +0000)]
Folding into Samba-2.1.X tree documents added to 2.0.3.
(This used to be commit 1041d53ec246debac0050bdc7e9a6cd72e9ecf49)

25 years ago Fixed a glibc glitch in smbumount.c and reenabled some debugging
Michael Warfield [Sat, 13 Feb 1999 18:36:49 +0000 (18:36 +0000)]
Fixed a glibc glitch in smbumount.c and reenabled some debugging
in smbmount.c
(This used to be commit 4b4a706213032ad49a0653e80721bac5f6284f90)

25 years agoconst cast issues. [p.s - tidy work, matt!]
Luke Leighton [Fri, 12 Feb 1999 15:35:27 +0000 (15:35 +0000)]
const cast issues.  [p.s - tidy work, matt!]
(This used to be commit dad5baef194b18c674c0d908a0e0714c0a1aefa4)

25 years agoconst issues with byte mod / byte read macros.
Luke Leighton [Fri, 12 Feb 1999 15:34:57 +0000 (15:34 +0000)]
const issues with byte mod / byte read macros.
(This used to be commit 98ecb88704c3db26de8b548f4f1526f23401a161)

25 years agoCut and paste error.
Matthew Chapman [Fri, 12 Feb 1999 03:09:24 +0000 (03:09 +0000)]
Cut and paste error.
(This used to be commit 9ea91d89d2a1baa67f5143ecc08eb60c93213242)

25 years agoUNICODE cleanup (see lib/util_unistr.c).
Matthew Chapman [Fri, 12 Feb 1999 00:16:09 +0000 (00:16 +0000)]
UNICODE cleanup (see lib/util_unistr.c).

No more ugly static library buffers and all functions take a destination
string length (especially unistrcpy was rather dangerous; we were only
saved by the fact that datagrams are limited in size).
(This used to be commit a1d39af1ce1d451b811dbd7c2ba391214851b87e)

25 years agoUNICODE issues.
Luke Leighton [Thu, 11 Feb 1999 22:12:49 +0000 (22:12 +0000)]
UNICODE issues.
(This used to be commit 6a437cfb33f24913e0c1f8484c0b08ef317e513b)

25 years agothe UNICODE issue...
Luke Leighton [Thu, 11 Feb 1999 18:50:13 +0000 (18:50 +0000)]
the UNICODE issue...
(This used to be commit 73db80f34183324845407b00f58462ff2d7b47ea)

25 years agoenum dom users buffer was 0x80 not 0x8000. must fix "enumeration" code
Luke Leighton [Thu, 11 Feb 1999 18:48:18 +0000 (18:48 +0000)]
enum dom users buffer was 0x80 not 0x8000.  must fix "enumeration" code
as you need to make multiple enum dom users calls.
(This used to be commit b5396d3c6de4b8cb0e981bab10367e5838f78a53)

25 years agorefinement of random ipc$ SMBtrans torture test. send requests, and
Luke Leighton [Thu, 11 Feb 1999 18:35:26 +0000 (18:35 +0000)]
refinement of random ipc$ SMBtrans torture test.  send requests, and
don't wait for responses :-)
(This used to be commit c1d65e906054297e42d6d177194d3b9ab16c7e35)

25 years agouninitialised pointer being freed if lookupnames failed. oops.
Luke Leighton [Thu, 11 Feb 1999 17:25:26 +0000 (17:25 +0000)]
uninitialised pointer being freed if lookupnames failed.  oops.
(This used to be commit d77de868588b6291353fa7a426b6e5da4b5f2c49)

25 years agouse jeremy's versions of the UNICODE routines.
Luke Leighton [Wed, 10 Feb 1999 22:30:47 +0000 (22:30 +0000)]
use jeremy's versions of the UNICODE routines.
(This used to be commit c5109ff782be8774db47a92b48ca6335ec8d6065)

25 years agoHaving Well-known Domain Groups ("Domain Admins/Guests/Users") returned
Luke Leighton [Tue, 9 Feb 1999 22:13:20 +0000 (22:13 +0000)]
Having Well-known Domain Groups ("Domain Admins/Guests/Users") returned
under SID_NAME_ENUM 0x5 instead of 0x2 (Well-known group instead of
Domain Group) was making it impossible to view these groups from USRMGR.EXE.
(This used to be commit 3072044134eadbf46350b32c1ed0703681b0d590)

25 years agogroups and aliases being "manually" added which do not necessarily have
Luke Leighton [Tue, 9 Feb 1999 21:56:06 +0000 (21:56 +0000)]
groups and aliases being "manually" added which do not necessarily have
representation in the underlying database: removed this code.

for example, with the nt->unix mapping system (don't know about the ldap
one) if you want "Domain Admins" to appear you _must_ put it in the
domaingroup.map file.

the previous code was adding builtin aliases and well-known groups even
if they weren't in the domain maps.  bad idea.
(This used to be commit 56469578a1af0fbcf6edddf94c498c7bbfb385c6)

25 years agowhen multiple independent large rpc calls come in on the same pipe,
Luke Leighton [Tue, 9 Feb 1999 21:42:39 +0000 (21:42 +0000)]
when multiple independent large rpc calls come in on the same pipe,
prev_pdu_file_offset was not being re-initialised to zero.
(This used to be commit fcaa1214412f5a417a648d4da5c4332f75f59f57)

25 years agoremoval of the use of unistrn2 function: replace it with unistr2_to_str
Luke Leighton [Tue, 9 Feb 1999 19:51:44 +0000 (19:51 +0000)]
removal of the use of unistrn2 function: replace it with unistr2_to_str
which is more appropriate.
(This used to be commit ac72fe1ab3d10f64a5945ccbd4ed3817e30f9f7b)

25 years agopwdb_smb_to_sam was not returning NULL for nt name so that
Luke Leighton [Tue, 9 Feb 1999 16:01:28 +0000 (16:01 +0000)]
pwdb_smb_to_sam was not returning NULL for nt name so that
pwdb_sam_map_names() was using a "blank" static string instead of
a NULL pointer for nt names.  NULL means over-ride, so the nt name
got left as "blank".

this causes nt clients to terminate with extreme prejudice.
(This used to be commit ddd350198202d6a1d2c715b3dce7db3a5d76a63a)

25 years agoFix for NT BSOD problem. There's no reason to have two "NT usernames" running
Matthew Chapman [Tue, 9 Feb 1999 03:57:10 +0000 (03:57 +0000)]
Fix for NT BSOD problem. There's no reason to have two "NT usernames" running
around anyway.

The real problem is, once again, the brokenness of pwdb_sam_map_names et al.
This time it is deciding to return blank NT usernames, which NT's redirector
objects to.

I'm currently working on improving the pwdb/mapping code, should be ready in a
couple of weeks.
(This used to be commit 30a085bf80982c619cd78aee9ad410ece5f88679)

25 years agoUNICODE byte ordering issue: typecast to uint16* replaced with SSVAL()
Luke Leighton [Mon, 8 Feb 1999 23:40:49 +0000 (23:40 +0000)]
UNICODE byte ordering issue: typecast to uint16* replaced with SSVAL()
(This used to be commit 9084b7e33dfe717bd8d5604ee71d137e3baef0f5)

25 years agoreload_services needs to be called prior to init_files but after
Luke Leighton [Mon, 8 Feb 1999 01:46:46 +0000 (01:46 +0000)]
reload_services needs to be called prior to init_files but after
get_myname.
(This used to be commit 9ab81caa065a0e08368fc9137d42ed810fd4b817)

25 years agoiteration of sam passwd entries was an order n-cubed algorithm due
Luke Leighton [Mon, 8 Feb 1999 00:24:57 +0000 (00:24 +0000)]
iteration of sam passwd entries was an order n-cubed algorithm due
to resolution of unix name to nt name being unnecessarily _inside_
another loop.
(This used to be commit d455c9d2c9f60289d78d0331228f5922152070bf)

25 years agoinitialise my name (used in %h) prior to loading smb.conf files.
Luke Leighton [Wed, 3 Feb 1999 17:10:44 +0000 (17:10 +0000)]
initialise my name (used in %h) prior to loading smb.conf files.
(This used to be commit ed128c38a88746ec7822d598e72f0106a30a4af7)