kai/samba.git
20 years agodebugging rpcclient spoolenum and spooljobs commands. oh, did i forget
Luke Leighton [Tue, 9 Nov 1999 19:35:30 +0000 (19:35 +0000)]
debugging rpcclient spoolenum and spooljobs commands.  oh, did i forget
to mention, there's a spooljobs <printer name> command, and it uses
command-line completion?  prints out NT print jobs really nicely, too.

20 years agoriccardo sibilia spotted line 1884 has uint32 group_rid[0] not group_rid[1]
Luke Leighton [Tue, 9 Nov 1999 17:39:21 +0000 (17:39 +0000)]
riccardo sibilia spotted line 1884 has uint32 group_rid[0] not group_rid[1]
oops!

20 years agopreparation for doing a spoolss enum jobs command. had to rewrite
Luke Leighton [Mon, 8 Nov 1999 22:00:41 +0000 (22:00 +0000)]
preparation for doing a spoolss enum jobs command.  had to rewrite
spoolss_enumjobs parsing code to do read / writes not just writes.

20 years agoconst feeding frenzy
Luke Leighton [Mon, 8 Nov 1999 20:58:06 +0000 (20:58 +0000)]
const feeding frenzy

20 years agoconst feeding frenzy
Luke Leighton [Mon, 8 Nov 1999 19:32:05 +0000 (19:32 +0000)]
const feeding frenzy

20 years agoFixed typo in automatic printer install share name.
Tim Potter [Mon, 8 Nov 1999 03:34:35 +0000 (03:34 +0000)]
Fixed typo in automatic printer install share name.

Removed confusing 'writeable = no' parameter from example [printers]
entry.

20 years agohorrible code to do SMBwriteX / SMBreadX for large MSRPC reads. ARGH!
Luke Leighton [Sat, 6 Nov 1999 22:45:31 +0000 (22:45 +0000)]
horrible code to do SMBwriteX / SMBreadX for large MSRPC reads.  ARGH!

20 years agomissed mem_grow_data call
Luke Leighton [Sat, 6 Nov 1999 21:25:52 +0000 (21:25 +0000)]
missed mem_grow_data call

20 years agoadded command-completion printer enum code.
Luke Leighton [Sat, 6 Nov 1999 21:08:35 +0000 (21:08 +0000)]
added command-completion printer enum code.

20 years agofixed string function for reading in printer_info_N.
Luke Leighton [Sat, 6 Nov 1999 20:36:07 +0000 (20:36 +0000)]
fixed string function for reading in printer_info_N.

20 years agoadded rpcclient spoolenum command. enumerates printers.
Luke Leighton [Sat, 6 Nov 1999 19:52:04 +0000 (19:52 +0000)]
added rpcclient spoolenum command.  enumerates printers.
spoolss_r_io_enumprinters doesn't decode strings correctly
as printer_info_1/2 code has only been written to write
structures, not read them.

20 years agospoolss openprinterex / closeprinter client-code.
Luke Leighton [Sat, 6 Nov 1999 18:11:19 +0000 (18:11 +0000)]
spoolss openprinterex / closeprinter client-code.
experimental spoolopen <printer name> command added.

jean-francois, f.y.i. i changed the #define for SPOOLSS_OPENPRINTEREX from
op code 0x44 to 0x45.

20 years agoexperimental spoolss rpcclient commands
Luke Leighton [Fri, 5 Nov 1999 18:40:38 +0000 (18:40 +0000)]
experimental spoolss rpcclient commands

20 years agoThis is an experimental program to shutdown a group of NTws in a
Luke Leighton [Fri, 5 Nov 1999 17:46:16 +0000 (17:46 +0000)]
This is an experimental program to shutdown a  group of NTws in a
Samba domain via rpcclient.

Copyright (c) David Bannon 1999
David Bannon, D.Bannon@latrobe.edu.au, 4th November, 1999

20 years agorpcclient example scripts / programs.
Luke Leighton [Fri, 5 Nov 1999 17:45:29 +0000 (17:45 +0000)]
rpcclient example scripts / programs.

20 years agosamuserset <username> -p password. YESSSSS :)
Luke Leighton [Thu, 4 Nov 1999 21:41:36 +0000 (21:41 +0000)]
samuserset <username> -p password.  YESSSSS :)
you have to use "ntlmv1" at the moment (i.e set client ntlmv2 = no).

20 years agoadding experimental set user password command to rpcclient, it returns
Luke Leighton [Thu, 4 Nov 1999 00:09:15 +0000 (00:09 +0000)]
adding experimental set user password command to rpcclient, it returns
error wrong password against nt.  ????

20 years agocreated msrpc_srv_enum_tprt() function by massaging cmd_srv_enum_tprt().
Luke Leighton [Wed, 3 Nov 1999 22:14:38 +0000 (22:14 +0000)]
created msrpc_srv_enum_tprt() function by massaging cmd_srv_enum_tprt().

20 years agodynamic mem allocation in net_srv_transport_enum() parsing.
Luke Leighton [Wed, 3 Nov 1999 21:51:29 +0000 (21:51 +0000)]
dynamic mem allocation in net_srv_transport_enum() parsing.

20 years agohad to move unistr2_dup(), unistr2_free() and unistr2_copy() into
Luke Leighton [Wed, 3 Nov 1999 20:01:07 +0000 (20:01 +0000)]
had to move unistr2_dup(), unistr2_free() and unistr2_copy() into
util_unistr.c in order to get bin/testparm to compile.

20 years agothree types of array-creation / array-deletion functions:
Luke Leighton [Wed, 3 Nov 1999 19:58:47 +0000 (19:58 +0000)]
three types of array-creation / array-deletion functions:

char*
UNISTR2*
SID*

decided to create a higher-order function set, add_item_to_array()
free_item_array().

higher-order support routines needed to add a new type:

type* item_dup(const type*)
void item_free(type*)

of course, strdup() and free() are perfect, pre-existing examples
of such functions, used in the implementation of add_chars_to_array()
and free_char_array().

sid_dup() and free() work for the add_sids_to_array() and free_sid_array()
implementations.

use unistr2_dup() and created unistr2_free() because the functionality
behind these may change into something horrible, like [horror] dynamic
memory allocation of the UNISTR2 character array.  argh!!!!

jean-francois, this function set implements what we talked about over...
a year ago, now :-)

20 years agoadded samalias <aliasname> rpcclient command (shows info on alias)
Luke Leighton [Tue, 2 Nov 1999 23:47:17 +0000 (23:47 +0000)]
added samalias <aliasname> rpcclient command (shows info on alias)
added samaliasmem <aliasname> rpcclient command (shows members in alias)

added tab command-completion to SAM alias related commands (inc 2 above).

20 years agofree up memory allocated by enum dom groups / aliases
Luke Leighton [Tue, 2 Nov 1999 23:32:16 +0000 (23:32 +0000)]
free up memory allocated by enum dom groups / aliases

20 years agodynamic mem allocation in enum dom groups and enum dom aliases
Luke Leighton [Tue, 2 Nov 1999 23:31:16 +0000 (23:31 +0000)]
dynamic mem allocation in enum dom groups and enum dom aliases

20 years agoyet another attempt to get lsaquerysecret working.
Luke Leighton [Tue, 2 Nov 1999 23:29:44 +0000 (23:29 +0000)]
yet another attempt to get lsaquerysecret working.

20 years agoconst char* issues
Luke Leighton [Mon, 1 Nov 1999 23:16:07 +0000 (23:16 +0000)]
const char* issues

20 years agoadded lsaenumdomains command.
Luke Leighton [Mon, 1 Nov 1999 22:25:38 +0000 (22:25 +0000)]
added lsaenumdomains command.
attempting to get blood out of a stone^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H
querysecret to work, it keeps returning access denied.

20 years agorewrote rpcclient enumaliases command.
Luke Leighton [Mon, 1 Nov 1999 21:09:24 +0000 (21:09 +0000)]
rewrote rpcclient enumaliases command.

20 years agoadded rpcclient svcstop <service name> command. gnu readline
Luke Leighton [Mon, 1 Nov 1999 17:52:11 +0000 (17:52 +0000)]
added rpcclient svcstop <service name> command.  gnu readline
command-completion works.

20 years agoFixed typo which was preventing the omission of seconds in the 'at' command.
Matthew Chapman [Mon, 1 Nov 1999 12:11:05 +0000 (12:11 +0000)]
Fixed typo which was preventing the omission of seconds in the 'at' command.
I *love* this scheduler stuff, it's so useful!

20 years agoadded yet another rpcclient command: svcstart <service name> [arg0] [arg1] ...
Luke Leighton [Sun, 31 Oct 1999 05:23:32 +0000 (05:23 +0000)]
added yet another rpcclient command: svcstart <service name> [arg0] [arg1] ...

works with command-line completion on the service name (ohh yesss, this
is becoming my favourite bit of functionality-on-the-side hee hee :)

had to fix the svc_io_q_start_service() code which was missing the
ptr_argv[] array in between the array-size and the UNISTR2-array.
i.e it's actually an array of _pointers_ to unicode strings...

20 years agocommand-line completion for new svcinfo command
Luke Leighton [Sun, 31 Oct 1999 04:19:58 +0000 (04:19 +0000)]
command-line completion for new svcinfo command

20 years agoadded svcinfo <service name> command.
Luke Leighton [Sun, 31 Oct 1999 04:11:17 +0000 (04:11 +0000)]
added svcinfo <service name> command.

20 years agoconnection info level renamed to transport info level
Luke Leighton [Sat, 30 Oct 1999 22:35:44 +0000 (22:35 +0000)]
connection info level renamed to transport info level

20 years agoNetServerTransportEnum parsing, client-side and rpcclient "srvtransports" added.
Luke Leighton [Sat, 30 Oct 1999 22:34:38 +0000 (22:34 +0000)]
NetServerTransportEnum parsing, client-side and rpcclient "srvtransports" added.

20 years agogeneral, drastic improvements to rpcclient.
Luke Leighton [Sat, 30 Oct 1999 20:32:40 +0000 (20:32 +0000)]
general, drastic improvements to rpcclient.

added samgroup <groupname> command
added samgroupmem <groupname> command

added proper registry key completion

added sam command user-completion (e.g samuser [tab])

added sam command group-completion (e.g samgroup [tab])

20 years agoUpdating build specs for TurboLinux 6.0 and later
John Terpstra [Sat, 30 Oct 1999 02:33:12 +0000 (02:33 +0000)]
Updating build specs for TurboLinux 6.0 and later

20 years agomessing with command-line completion. it sort-of works to be able
Luke Leighton [Fri, 29 Oct 1999 23:15:10 +0000 (23:15 +0000)]
messing with command-line completion.  it sort-of works to be able
to enumerate down a key tree, but it's a serious fudge.  oops.

20 years agoadded gnu readline command-line completion to the regenum command.
Luke Leighton [Fri, 29 Oct 1999 21:31:19 +0000 (21:31 +0000)]
added gnu readline command-line completion to the regenum command.

20 years agorpcclient regenum key client code rewritten to use higher order functions.
Luke Leighton [Fri, 29 Oct 1999 20:24:18 +0000 (20:24 +0000)]
rpcclient regenum key client code rewritten to use higher order functions.

20 years agorewrite rpcclient sam enum user code to use higher order functions.
Luke Leighton [Fri, 29 Oct 1999 19:31:32 +0000 (19:31 +0000)]
rewrite rpcclient sam enum user code to use higher order functions.

20 years agousing #defines for function prototypes
Luke Leighton [Fri, 29 Oct 1999 18:57:22 +0000 (18:57 +0000)]
using #defines for function prototypes

20 years agomore reshuffling of enum groups code. more higher order functions.
Luke Leighton [Fri, 29 Oct 1999 17:37:27 +0000 (17:37 +0000)]
more reshuffling of enum groups code.  more higher order functions.

20 years agoadded HKEY_CLASSES_ROOT MSRPC open call. reg_open_hkcr etc. supported
Luke Leighton [Fri, 29 Oct 1999 16:24:11 +0000 (16:24 +0000)]
added HKEY_CLASSES_ROOT MSRPC open call.  reg_open_hkcr etc.  supported
in rpcclient, regenum HKEY_CLASSES_ROOT or regenum HKCR to test.

20 years agousing higher-order-function in enum groups as a test. makes it really
Luke Leighton [Fri, 29 Oct 1999 16:19:17 +0000 (16:19 +0000)]
using higher-order-function in enum groups as a test.  makes it really
useful for doing things _other_ than just "print me".

20 years agocli_nt_setup_creds() returns uint32 NT status code not a BOOL.
Luke Leighton [Fri, 29 Oct 1999 15:53:18 +0000 (15:53 +0000)]
cli_nt_setup_creds() returns uint32 NT status code not a BOOL.

removed all comparisons to if (fn() == False), replaced with if (!fn()).

20 years agorestructuring sam enum dom groups code to do multiple calls to
Luke Leighton [Thu, 28 Oct 1999 20:34:28 +0000 (20:34 +0000)]
restructuring sam enum dom groups code to do multiple calls to
sam_enum_dom_groups.  enum dom aliases is still left to do (dom users
already done).

20 years agorestructuring samr client code.
Luke Leighton [Thu, 28 Oct 1999 20:02:29 +0000 (20:02 +0000)]
restructuring samr client code.

20 years agoremoved samr_* variables from info struct.
Luke Leighton [Thu, 28 Oct 1999 19:02:23 +0000 (19:02 +0000)]
removed samr_* variables from info struct.

20 years agorewrote samr enum groups code a bit.
Luke Leighton [Thu, 28 Oct 1999 17:52:12 +0000 (17:52 +0000)]
rewrote samr enum groups code a bit.

20 years agorewrote api_net_sam_logon() to be a little clearer.
Luke Leighton [Wed, 27 Oct 1999 17:20:55 +0000 (17:20 +0000)]
rewrote api_net_sam_logon() to be a little clearer.

20 years agono CLIX, no !HAVE_READLINE blah blah. argh.
Luke Leighton [Wed, 27 Oct 1999 16:58:35 +0000 (16:58 +0000)]
no CLIX, no !HAVE_READLINE blah blah.  argh.

20 years agocreated samr_query_groupmem() function from existing code.
Luke Leighton [Tue, 26 Oct 1999 20:03:48 +0000 (20:03 +0000)]
created samr_query_groupmem() function from existing code.

20 years agoadding extra parameter back in to trust account functions (trust account name).
Luke Leighton [Tue, 26 Oct 1999 16:46:45 +0000 (16:46 +0000)]
adding extra parameter back in to trust account functions (trust account name).
restoring opening S-1-5-20 in sam enum users code.

20 years agocut/paste code from smbclient for wait_keyboard() function. oops.
Luke Leighton [Tue, 26 Oct 1999 14:27:46 +0000 (14:27 +0000)]
cut/paste code from smbclient for wait_keyboard() function.  oops.

20 years ago- typecast malloc / Realloc issues.
Luke Leighton [Mon, 25 Oct 1999 19:03:27 +0000 (19:03 +0000)]
- typecast malloc / Realloc issues.

- signed / unsigned issues.

20 years agosigned / unsigned and typecast issues
Luke Leighton [Mon, 25 Oct 1999 17:10:54 +0000 (17:10 +0000)]
signed / unsigned and typecast issues

20 years agothe new CAP_EXTENDED_SECURITY code needed to support NTLMv2. also removed
Luke Leighton [Mon, 25 Oct 1999 16:23:42 +0000 (16:23 +0000)]
the new CAP_EXTENDED_SECURITY code needed to support NTLMv2.  also removed
switching on CAP_STATUS32 from non-CAP_EXTENDED_SECURITY code (enabled
for test purposes only)

20 years agoone of those wonderful moments when running against a different MSRPC
Luke Leighton [Mon, 25 Oct 1999 16:22:08 +0000 (16:22 +0000)]
one of those wonderful moments when running against a different MSRPC
implementation (NT5) when you discover that your code is trash.
samr_enum_dom_users(), samr_enum_dom_aliases() and samr_enum_dom_groups()
all take a HANDLE for multiple-call enumeration purposes.

20 years agothe dynamic memory alloc blood-fest goes on...
Luke Leighton [Thu, 21 Oct 1999 19:02:57 +0000 (19:02 +0000)]
the dynamic memory alloc blood-fest goes on...

20 years agoturning some of the rpcclient functions dynamic. this is likely to
Luke Leighton [Thu, 21 Oct 1999 18:25:12 +0000 (18:25 +0000)]
turning some of the rpcclient functions dynamic.  this is likely to
break a few things...

20 years agovarious. debug levels changed. nmbd doesn't need libsmb/clienttrust.c.
Luke Leighton [Thu, 21 Oct 1999 16:53:50 +0000 (16:53 +0000)]
various.  debug levels changed.  nmbd doesn't need libsmb/clienttrust.c.
samr_lookup_rids() moved to a dynamic memory structure not a
static one limited to 32 RIDs.  cli_pipe.c reading wasn't checking
ERRmoredata when DOS error codes negotiated (this terminates
MSRPC code with prejudice).

20 years agosplit modify_trust_account_password into a separate module.
Luke Leighton [Thu, 21 Oct 1999 15:38:59 +0000 (15:38 +0000)]
split modify_trust_account_password into a separate module.

20 years agouse DEBUGADD instead of DEBUG: clears up some of the more verbose trash.
Luke Leighton [Thu, 21 Oct 1999 15:22:30 +0000 (15:22 +0000)]
use DEBUGADD instead of DEBUG: clears up some of the more verbose trash.

20 years agoneed status codes from cli_net_req_chal() and cli_net_auth2().
Luke Leighton [Tue, 19 Oct 1999 19:55:43 +0000 (19:55 +0000)]
need status codes from cli_net_req_chal() and cli_net_auth2().
this format is what i would like _all_ these functions to be
(returning status codes, not BOOL) but that's a horrendous
amount of work at the moment :)

20 years agooops, added wait_keyboard back, but _this_ time wrapped it with
Luke Leighton [Tue, 19 Oct 1999 19:54:01 +0000 (19:54 +0000)]
oops, added wait_keyboard back, but _this_ time wrapped it with
HAVE_READLINE

20 years agoinitialising enum dom users mem and account name ptrs to NULL.
Luke Leighton [Mon, 18 Oct 1999 16:26:55 +0000 (16:26 +0000)]
initialising enum dom users mem and account name ptrs to NULL.

20 years agoBringing samba-2.1.x samba2.spec.tmpl file into line with samba-2.0.x release tree.
John Terpstra [Sun, 17 Oct 1999 17:40:49 +0000 (17:40 +0000)]
Bringing samba-2.1.x samba2.spec.tmpl file into line with samba-2.0.x release tree.

20 years agoadded prs_struct "error" member, set and checked when prs_struct
Luke Leighton [Fri, 15 Oct 1999 20:10:46 +0000 (20:10 +0000)]
added prs_struct "error" member, set and checked when prs_struct
data is handled.

20 years agoadding error checking in parsing code
Luke Leighton [Fri, 15 Oct 1999 20:00:30 +0000 (20:00 +0000)]
adding error checking in parsing code

20 years agorenamed "class" local variable to avoid global clash
Luke Leighton [Fri, 15 Oct 1999 19:23:48 +0000 (19:23 +0000)]
renamed "class" local variable to avoid global clash

20 years agooops! srvinfo 2 command caught bug where strings in containers assumed
Luke Leighton [Fri, 15 Oct 1999 19:21:18 +0000 (19:21 +0000)]
oops!  srvinfo 2 command caught bug where strings in containers assumed
to exist.  not good!

20 years agorenamed args due to global "class" variable
Luke Leighton [Fri, 15 Oct 1999 19:20:30 +0000 (19:20 +0000)]
renamed args due to global "class" variable

20 years agoreturn results on prs_xxxxx() and all xxx_io_xxx() routines.
Luke Leighton [Fri, 15 Oct 1999 18:46:22 +0000 (18:46 +0000)]
return results on prs_xxxxx() and all xxx_io_xxx() routines.
the whole task is not complete, yet.  xxx_io_xxx() routines that
_call_ xxx_io_xxx() routines not done.

prs_xxxx() covered by macros.  considering doing xxx_io_xxxx in the same way.

20 years agoremoved unused static wait_keyboard()
Luke Leighton [Fri, 15 Oct 1999 18:44:33 +0000 (18:44 +0000)]
removed unused static wait_keyboard()

20 years agoAccording to params/loadparm.c, the "case sensitive", "casesignames",
Tim Potter [Fri, 15 Oct 1999 00:12:39 +0000 (00:12 +0000)]
According to params/loadparm.c, the "case sensitive", "casesignames",
and "short preserve case" name mangling parameters are local options
but the documentation says they are globals.

20 years agoconst issues
Luke Leighton [Thu, 14 Oct 1999 19:45:52 +0000 (19:45 +0000)]
const issues

20 years agostop over-runs in reading / writing data stream.
Luke Leighton [Thu, 14 Oct 1999 19:21:23 +0000 (19:21 +0000)]
stop over-runs in reading / writing data stream.

20 years agoadding CAP_EXTENDED_SECURITY support in a hurry last week. forgot to
Luke Leighton [Thu, 14 Oct 1999 18:49:24 +0000 (18:49 +0000)]
adding CAP_EXTENDED_SECURITY support in a hurry last week.  forgot to
deal with linking issues in other binaries

20 years ago- added rudimentary CAP_UNICODE support because i thought it was part of
Luke Leighton [Thu, 7 Oct 1999 22:10:29 +0000 (22:10 +0000)]
- added rudimentary CAP_UNICODE support because i thought it was part of
a problem i was having.

- added rudimentary CAP_STATUS32 support for same reason.

- added hard-coded, copy-the-same-data-from-over-the-wire version of
CAP_EXTENDED_SECURITY, which is a security-blob to encapsulate
GSSAPI which encodes
SPNEGO which is used to negotiate
Kerberos or NTLMSSP.  i have implemented
NTLMSSP which negotiates
NTLMv1 or NTLMv2 and 40-bit or 128-bit etc.  i have implemented
NTLMv1 / 40-bit.

*whew*.

20 years agoDavid van Geyn spotted that ulong is not defined on FREEBSD, not supposed
Luke Leighton [Tue, 5 Oct 1999 21:35:17 +0000 (21:35 +0000)]
David van Geyn spotted that ulong is not defined on FREEBSD, not supposed
to use ulong use uint32 instead.

20 years agosplitting dom info into sam_query_dominfo function
Luke Leighton [Fri, 1 Oct 1999 18:44:33 +0000 (18:44 +0000)]
splitting dom info into sam_query_dominfo function

20 years agopermissions on SamrConnect changed to 0x02000000 (maximum allowed)
Luke Leighton [Fri, 1 Oct 1999 18:27:29 +0000 (18:27 +0000)]
permissions on SamrConnect changed to 0x02000000 (maximum allowed)

20 years agoerror-code checking in lsa_lookup_sids. anonymous connections for
Luke Leighton [Fri, 1 Oct 1999 18:11:57 +0000 (18:11 +0000)]
error-code checking in lsa_lookup_sids.  anonymous connections for
domain info.  adjusting net_srv_get_info function.

20 years agomemory problems associated with when lsalookupsids returns
Luke Leighton [Tue, 28 Sep 1999 20:54:58 +0000 (20:54 +0000)]
memory problems associated with when lsalookupsids returns
NT_STATUS_NONE_MAPPED.

20 years agoadd description of -P option
Herb Lewis [Tue, 28 Sep 1999 15:10:38 +0000 (15:10 +0000)]
add description of -P option

20 years agodon't leak printer handles,
Jean-François Micouleau [Mon, 27 Sep 1999 13:12:55 +0000 (13:12 +0000)]
don't leak printer handles,
don't coredump when adding forms,
and a small non obvious memory leak in the rpc buffers

J.F.

20 years agoDon't duplicate forms anymore, just update the definition.
Jean-François Micouleau [Sat, 25 Sep 1999 14:18:48 +0000 (14:18 +0000)]
Don't duplicate forms anymore, just update the definition.
Many memory leaks fixed.

J.F.

20 years agoCorrectly handle the dependent files in the printer_driver_info_3 struct
Jean-François Micouleau [Fri, 24 Sep 1999 14:45:21 +0000 (14:45 +0000)]
Correctly handle the dependent files in the printer_driver_info_3 struct

It means complex printer drivers should now download fine.

J.F.

20 years agoAlan (alanh@pinacl.co.uk) found a nasty bug
Jean-François Micouleau [Fri, 24 Sep 1999 10:13:38 +0000 (10:13 +0000)]
Alan (alanh@pinacl.co.uk) found a nasty bug

J.F.

20 years agoWhoops ! Being over-paranoid is not good.
Jean-François Micouleau [Fri, 24 Sep 1999 07:28:46 +0000 (07:28 +0000)]
Whoops ! Being over-paranoid is not good.

J.F.

20 years agouse gecos field to fill the full_name
Jean-François Micouleau [Thu, 23 Sep 1999 15:59:20 +0000 (15:59 +0000)]
use gecos field to fill the full_name
don't overwrite backend values with defaults values.

J.F.

20 years agoFixed an annoying bug in the LDAP code. Attributes not present in the
Matthew Chapman [Wed, 22 Sep 1999 04:32:19 +0000 (04:32 +0000)]
Fixed an annoying bug in the LDAP code. Attributes not present in the
LDAP database were being initialised using unix_to_nt_time on -1, rather
than -1 as an NTTIME (which is very different).

Problems solved (hopefully):
* "Access Denied" when accessing an NT share in a Samba controlled domain.
* "Your password has expired" sometimes when logging in.

20 years agosplit matthew's sync command (only currently called from smbpasswd)
Luke Leighton [Tue, 21 Sep 1999 21:28:27 +0000 (21:28 +0000)]
split matthew's sync command (only currently called from smbpasswd)
into a separate module

20 years agotesting for attempts to get more info levels into samr_query_userinfo
Luke Leighton [Tue, 21 Sep 1999 21:04:03 +0000 (21:04 +0000)]
testing for attempts to get more info levels into samr_query_userinfo

20 years agoreading in smb server domain name from SMBnegprot response
Luke Leighton [Thu, 16 Sep 1999 22:46:45 +0000 (22:46 +0000)]
reading in smb server domain name from SMBnegprot response

20 years ago#defines for port 445 to SMB_PORT2
Luke Leighton [Wed, 15 Sep 1999 17:30:02 +0000 (17:30 +0000)]
#defines for port 445 to SMB_PORT2

20 years agouse DEBUGLEVEL not DEBUGLVL()
Luke Leighton [Wed, 15 Sep 1999 17:12:55 +0000 (17:12 +0000)]
use DEBUGLEVEL not DEBUGLVL()

20 years agowow!!!! this one's been here for two years!!!! alignment issues
Luke Leighton [Tue, 14 Sep 1999 21:42:49 +0000 (21:42 +0000)]
wow!!!! this one's been here for two years!!!! alignment issues
in smb_io_dom_query() where the string name could mis-align!
added a call to prs_align() after the domain string name.

20 years agooops.
Luke Leighton [Tue, 14 Sep 1999 21:15:39 +0000 (21:15 +0000)]
oops.