ira/wip.git
25 years agoTrying to improve DC location & browsing performance for the average user
Matthew Chapman [Sun, 11 Apr 1999 10:23:19 +0000 (10:23 +0000)]
Trying to improve DC location & browsing performance for the average user
who doesn't know what an LMB or DMB is.

* check_master_browser_exists now performs the check the first time
around, so if there is indeed no master browser then Samba takes up the job
much faster.

* Upped default OS level to 32. There is no reason why some stupid little
Windows box should become LMB instead of a Samba *server*.

* "domain master" now defaults to "auto". Currently this attempts to
become DMB iff Samba is the PDC (ala Windows NT). "preferred master" also
defaults to "auto", which enables preferred master iff Samba is DMB.

* lp_server_role now just returns the predetermined role, rather than
working it out each time, since the server role is becoming very heavily
used (esp for the BDC code).

25 years agoFixed rpcclient's samuser command.
Matthew Chapman [Sun, 11 Apr 1999 02:34:44 +0000 (02:34 +0000)]
Fixed rpcclient's samuser command.

25 years agoIncorrect length (number of unicode characters rather than buffer size)
Matthew Chapman [Sun, 11 Apr 1999 01:39:16 +0000 (01:39 +0000)]
Incorrect length (number of unicode characters rather than buffer size)
passed to ascii_to_unibuf in make_buffer2 was breaking User Manager.

25 years agoModification to compile under egcs 2.91.63.
Tim Potter [Sun, 11 Apr 1999 00:27:43 +0000 (00:27 +0000)]
Modification to compile under egcs 2.91.63.

25 years agoPut this back after it dropped off.
John Terpstra [Fri, 9 Apr 1999 13:30:36 +0000 (13:30 +0000)]
Put this back after it dropped off.

25 years agoMainly BDC-related changes.
Matthew Chapman [Thu, 8 Apr 1999 05:37:15 +0000 (05:37 +0000)]
Mainly BDC-related changes.

* Added SEC_CHAN_BDC
* Added -b switch to smbpasswd (for a BDC (server) trust account).
* Propagate sec_chan into the various functions which change trust account
  passwords, so they can be used for domain control and inter-domain
  trusts.

25 years agoMainly BDC-related changes.
Matthew Chapman [Thu, 8 Apr 1999 05:36:39 +0000 (05:36 +0000)]
Mainly BDC-related changes.

* Added SEC_CHAN_BDC
* Propagate sec_chan into the various functions which change trust account
  passwords, so they can be used for domain control and inter-domain
  trusts.

25 years agoMainly BDC-related changes.
Matthew Chapman [Thu, 8 Apr 1999 05:36:15 +0000 (05:36 +0000)]
Mainly BDC-related changes.

* Added SEC_CHAN_BDC
* Propagate sec_chan into the various functions which change trust account
  passwords, so they can be used for domain control and inter-domain
  trusts.
* Fix for endianness problem reported by Edan Idzerda <edan@mtu.edu>. A
  BUFFER2 is really a "unibuf" in my terminology and we should treat it as
  such.
* Added some more common NT structures (BIGINT, BUFHDR2, BUFFER4).
* Added NET_SAM_SYNC (-> NetDatabaseSync2) RPC for account replication.
  Still experimental and incomplete, with a few too many NULL security
  descriptors lying around (must go look at Jeremy's SD code). Haven't
  worked out password encryption yet either.
  However, the XXX_INFO structures I've added to rpc_netlogon.h are quite
  nice as they give some insight into how these objects are stored in the
  SAM.

25 years agoMainly BDC-related changes.
Matthew Chapman [Thu, 8 Apr 1999 05:35:53 +0000 (05:35 +0000)]
Mainly BDC-related changes.

* Added SEC_CHAN_BDC
* Fix for endianness problem reported by Edan Idzerda <edan@mtu.edu>. A
  BUFFER2 is really a "unibuf" in my terminology and we should treat it as
  such.
* Added some more common NT structures (BIGINT, BUFHDR2, BUFFER4).
* Added NET_SAM_SYNC (-> NetDatabaseSync2) RPC for account replication.
  Still experimental and incomplete, with a few too many NULL security
  descriptors lying around (must go look at Jeremy's SD code). Haven't
  worked out password encryption yet either.
  However, the XXX_INFO structures I've added to rpc_netlogon.h are quite
  nice as they give some insight into how these objects are stored in the
  SAM.

25 years agoFix for endianness problem reported by Edan Idzerda <edan@mtu.edu>. A
Matthew Chapman [Thu, 8 Apr 1999 05:34:11 +0000 (05:34 +0000)]
Fix for endianness problem reported by Edan Idzerda <edan@mtu.edu>. A
BUFFER2 is really a "unibuf" in my terminology and we should treat it as
such.

25 years agoAlways do a compile before CVS commit! )-:
Tim Potter [Thu, 8 Apr 1999 03:13:33 +0000 (03:13 +0000)]
Always do a compile before CVS commit!  )-:

25 years agoForgot about closedir() function for VFS. Hoo embarassing.
Tim Potter [Thu, 8 Apr 1999 03:01:18 +0000 (03:01 +0000)]
Forgot about closedir() function for VFS.  Hoo embarassing.

25 years agoChanged calls to strncat() to safe_strcat(). Fix from SAMBA_2_0 branch.
Tim Potter [Wed, 7 Apr 1999 04:20:00 +0000 (04:20 +0000)]
Changed calls to strncat() to safe_strcat().  Fix from SAMBA_2_0 branch.

25 years agoDejan Ilic: spotted "NETLOGON" bug, failure of NT_STATUS WRONG_PASSWORD.
Luke Leighton [Tue, 6 Apr 1999 16:36:52 +0000 (16:36 +0000)]
Dejan Ilic: spotted "NETLOGON" bug, failure of NT_STATUS WRONG_PASSWORD.

25 years agoUnder IRIX, a void function may return a value, even if that value is
Tim Potter [Mon, 5 Apr 1999 23:35:50 +0000 (23:35 +0000)]
Under IRIX, a void function may return a value, even if that value is
void!

25 years agoFix incorrect conversion of fd_attempt_open() calls to vfs_ops.open().
Tim Potter [Mon, 5 Apr 1999 05:19:34 +0000 (05:19 +0000)]
Fix incorrect conversion of fd_attempt_open() calls to vfs_ops.open().

Use VFS I/O for fd_attempt_open() and check_access_allowed_for_current_user().

25 years agoUse VFS I/O for stat_cache_lookup()
Tim Potter [Mon, 5 Apr 1999 05:18:44 +0000 (05:18 +0000)]
Use VFS I/O for stat_cache_lookup()

25 years agoDisable VFS routines if no libdl available.
Tim Potter [Mon, 5 Apr 1999 05:18:07 +0000 (05:18 +0000)]
Disable VFS routines if no libdl available.

25 years agoDocumentation for VFS construction.
Tim Potter [Mon, 5 Apr 1999 05:14:47 +0000 (05:14 +0000)]
Documentation for VFS construction.

25 years agoFixed spelling typo in Kerberos configure option.
Tim Potter [Sun, 4 Apr 1999 22:58:44 +0000 (22:58 +0000)]
Fixed spelling typo in Kerberos configure option.

25 years agoUpdated for VFS merge.
Tim Potter [Sun, 4 Apr 1999 07:24:14 +0000 (07:24 +0000)]
Updated for VFS merge.

25 years agoFixed up incorrect calls to read_file().
Tim Potter [Sun, 4 Apr 1999 07:18:38 +0000 (07:18 +0000)]
Fixed up incorrect calls to read_file().

25 years agoUse VFS operations for file I/O.
Tim Potter [Sun, 4 Apr 1999 07:05:03 +0000 (07:05 +0000)]
Use VFS operations for file I/O.

Modified args to read_predict to pass in fsp.

Renamed sync_file() function to sys_sync_file().

25 years agoUse VFS operations for file I/O.
Tim Potter [Sun, 4 Apr 1999 07:03:47 +0000 (07:03 +0000)]
Use VFS operations for file I/O.

Modified invocations of fd_attempt_close as it now takes a fsp instead
of a fd.

25 years ago#ifdef'ed out functions obsoleted by VFS:
Tim Potter [Sun, 4 Apr 1999 06:53:46 +0000 (06:53 +0000)]
#ifdef'ed out functions obsoleted by VFS:

dos_opendir
dos_readdirname
dos_file_exist

Added warning comments to dos_mkdir() as it's used in client code.

25 years agoAdded smbd/vfs.o and smbd/vfs-wrap.o to object list for smbd.
Tim Potter [Sun, 4 Apr 1999 06:47:57 +0000 (06:47 +0000)]
Added smbd/vfs.o and smbd/vfs-wrap.o to object list for smbd.

25 years agoWrote VFS initialisation routines.
Tim Potter [Sun, 4 Apr 1999 06:39:45 +0000 (06:39 +0000)]
Wrote VFS initialisation routines.

Converted some useful routines from doscalls.c and changed them to use
VFS I/O functions:

dos_file_exist
dos_read_data
dos_write_data
dos_transfer_file
dos_readdirname

Some of these functions have been #ifdef'ed out of doscalls.c as they
are not used anywhere else.  Not sure whether they should be deleted
or not.  The remaining dos_* calls seem to be used by clients and for
locking stuff.  This should be cleaned up sometime.

25 years agoWrapped up all VFS disk I/O functions for portability. I remember
Tim Potter [Sun, 4 Apr 1999 06:37:07 +0000 (06:37 +0000)]
Wrapped up all VFS disk I/O functions for portability.  I remember
tridge telling me why this needed to be done but I have since
forgotten.  (-:

25 years agoUse VFS operations for file I/O.
Tim Potter [Sun, 4 Apr 1999 06:25:13 +0000 (06:25 +0000)]
Use VFS operations for file I/O.

25 years agoCall VFS initialisation, share connect and share disconnect functions.
Tim Potter [Sun, 4 Apr 1999 06:22:22 +0000 (06:22 +0000)]
Call VFS initialisation, share connect and share disconnect functions.

Initialise VFS function pointers with symbols from the 'vfs object'
file, use disk pointers otherwise.

Added a hook to check for a 'default' VFS share (like the [homes]
section).  Currently empty - I'm unsure whether this will be useful or
not.

25 years agoUse VFS operations for file I/O.
Tim Potter [Sun, 4 Apr 1999 05:57:16 +0000 (05:57 +0000)]
Use VFS operations for file I/O.

Changed arg to fd_attempt_close() from fd to fsp_struct.

25 years agoUse VFS operations for file I/O.
Tim Potter [Sun, 4 Apr 1999 05:46:40 +0000 (05:46 +0000)]
Use VFS operations for file I/O.

Pass files_struct and connection_struct to read_predict() and
do_read_prediction() functions, respectively.

25 years agoUse VFS operations for file I/O.
Tim Potter [Sun, 4 Apr 1999 05:40:28 +0000 (05:40 +0000)]
Use VFS operations for file I/O.

Changed calls to dos_{opendir,readdir} to vfs_{opendir,readdir}
equivalents.

25 years agoUse VFS operations for file I/O.
Tim Potter [Sun, 4 Apr 1999 05:32:42 +0000 (05:32 +0000)]
Use VFS operations for file I/O.

25 years agoAdded struct vfs_ops describing virtual filesystem operations.
Tim Potter [Sun, 4 Apr 1999 05:29:41 +0000 (05:29 +0000)]
Added struct vfs_ops describing virtual filesystem operations.

Created constants for pstring and fstring lengths.

25 years agoAdded configuration parameter 'vfs object' to specify loadable object
Tim Potter [Sun, 4 Apr 1999 04:54:50 +0000 (04:54 +0000)]
Added configuration parameter 'vfs object' to specify loadable object
file containing a VFS implementation.

25 years agonew files needed by profiling code
Andrew Tridgell [Thu, 1 Apr 1999 05:35:22 +0000 (05:35 +0000)]
new files needed by profiling code

25 years agoKen McDonell from SGI was interested in adding some profiling
Andrew Tridgell [Thu, 1 Apr 1999 05:22:58 +0000 (05:22 +0000)]
Ken McDonell from SGI was interested in adding some profiling
capabilities to Samba so that Samba could talk to the SGI PCP
(Performance Co-Pilot) apps.

This change adds a profiling shared memory area and uses it to count
two fairly trivial things, the number of uid switches and the number
of SMB packets processes. To add more just edit include/profile.h and
then increment it at the right place.

I've also added a -P switch to smbstatus to dump the profile area.

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

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)

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

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.

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)

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.

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>

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".

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.

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

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.

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.

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.

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.

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.

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.

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.

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 &&.

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.

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.

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);

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.

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

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

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

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.

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.

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.

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 :-)

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.

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.

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 :)

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

25 years agostatic password space needed.
Luke Leighton [Wed, 10 Mar 1999 17:32:41 +0000 (17:32 +0000)]
static password space needed.

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.

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.

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.

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.

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.

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!

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.

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.

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.

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.

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.

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!)

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.

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

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.

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.