1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

479 Commits

Author SHA1 Message Date
Luke Leighton
a8801942f7 set "key does not exist" response to reg_query_val() (win32 status code
of 0x2).  [p.s. getting REALLY bored of this nt5rc2->samba domain stuff].
-
Luke Leighton
71f1213867 added two new params: "trusted domains" and "trusting domains".
these _may_ not actually ever get used, as trust relationships
really need to be established with shared secrets, and you need
to get the SID of the trusted and trusting domains, so this
may have to go in a private/xxx.mac file.
-
Luke Leighton
60b0840106 added server-side samr enum domains. fixed some parsing issues, server-side. -
Luke Leighton
cc2ce2b755 split array-handling functions into separate module. -
Luke Leighton
bc659a09f9 preparation for doing a spoolss enum jobs command. had to rewrite
spoolss_enumjobs parsing code to do read / writes not just writes.
-
Luke Leighton
e0eb390ab3 const feeding frenzy -
Luke Leighton
6d27c5f32d const feeding frenzy -
Luke Leighton
135eaa9773 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.
-
Luke Leighton
f52504c553 samuserset <username> -p password. YESSSSS :)
you have to use "ntlmv1" at the moment (i.e set client ntlmv2 = no).
-
Luke Leighton
e718ce9c4a had to move unistr2_dup(), unistr2_free() and unistr2_copy() into
util_unistr.c in order to get bin/testparm to compile.
-
Luke Leighton
a80ea2eb47 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 :-)
-
Luke Leighton
492fdaaf20 rewrote rpcclient enumaliases command. -
Luke Leighton
37f4aac06f NetServerTransportEnum parsing, client-side and rpcclient "srvtransports" added. -
Luke Leighton
bc5d021916 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])
-
Luke Leighton
6a759c57dc rpcclient regenum key client code rewritten to use higher order functions. -
Luke Leighton
b0aa933ef4 added HKEY_CLASSES_ROOT MSRPC open call. reg_open_hkcr etc. supported
in rpcclient, regenum HKEY_CLASSES_ROOT or regenum HKCR to test.
-
Luke Leighton
c8fd555179 - typecast malloc / Realloc issues.
- signed / unsigned issues.
-
Luke Leighton
134b20e2a7 the dynamic memory alloc blood-fest goes on... -
Luke Leighton
4b06f30323 turning some of the rpcclient functions dynamic. this is likely to
break a few things...
-
Luke Leighton
e5b80bd2f7 - 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*.
-
Luke Leighton
727e1421b2 bertl <bs@niggard.org> patch for making samba listen on port 445, just like
nt 5 does.  cool!
-
Luke Leighton
e90e38c66d patch from michael glauche to add session enum code into smbd. -
Luke Leighton
5c974cc4a4 debug info display (netbios layer). -
Luke Leighton
6218d986c7 added back test to exclude unused connections. -
Luke Leighton
b1025d499b use read() instead of fread() as fread() fails on redhat 6. -
Luke Leighton
91a66dd5c3 patch from Michael Glauche to list connections from STATUS..LCK. -
Luke Leighton
b2d9cbef6f reverted jeremy's c++-like security descriptor modifications as the
simplest method to get rpcclient's reggetsec command working.  the
buffers passed as arguments in do_reg_get_key_sec() do need to be
locally allocated not dynamically allocated, as two calls to
reg_get_key_sec() are needed.  on the first, the server fills in the
size of the security descriptor buffer needed.  on the second, the
server fills in the security descriptor buffer.
-
Luke Leighton
717af2d55d Jean-Francois spotted bug in use of file_modified() routine submitted
recently.
-
Luke Leighton
2331aa32ab BDC support. -
Luke Leighton
0d1f5e5a6d check to see if copy_passwd_struct() ever receives its own internal
buffer as an argument :-) :-)
-
Luke Leighton
80d3677843 code from bertl to allow remap of default built-in names to anything.
parameter is "builtin rid file".
Copyright 1999 Bertl <bp@vpnet.at>
-
Luke Leighton
ef6df590fd renamed getfilepwent() and endfilepwent() to getfileent() and endfileent()
as they are generic "file line-by-line" reading routines.  lines with
"#" at the front are ignored (as comments).  this code started out as
the password file reading code.
-
Luke Leighton
47e54d049a allow safe_strcpy() to pass 0 for max length of string, resulting in no
effect.
-
Luke Leighton
16371d8fe1 use of dos_mkdir() in generate_sam_sid() should be unix mkdir -
Luke Leighton
baab308152 added debug reporting to pwdb_sam_map_names() and pwdb_smb_map_names() -
Luke Leighton
436a891455 using jeremy's sys_getpwnam() call in the more critical area: Get_Pwnam().
made sure that hashed_getpwnam() has the copy-passwd-struct-wrapper
around it, too.
TODO: replace all calls of getpwnam() with sys_getpwnam().
-
Luke Leighton
df756f3723 added jeremy's sys_getpwnam() and sys_getpwuid() routines from 2_0 tree. -
Luke Leighton
41f071642d patch from michael stockman <pgmtekn-micke@algonet.se> to provide a static
struct passwd in _Get_Pwnam().  _Get_Pwnam() is responsible for malloc/
freeing the string pointers to this struct passwd, NOT the callers of
_Get_Pwnam().
-
Luke Leighton
ab1a6aa42d improving authentication code (tidyup). -
Luke Leighton
1d2557cc27 #ifdef'd out hashed_getpwnam. -
Tim Potter
36d7cb4ccc Moved code that changes the pw_passwd entry (i.e shadow password and
weird unixware stuff) into _Get_Pwnam() to fix a memory allocation bug.

Note that the Get_Pwnam() function now returns a const struct passwd *
as a hint to other developers not to change entries in the struct
passwd.
-
Luke Leighton
8c80742e4e had to move day display names into lib/util, to get rpctorture to compile. -
Luke Leighton
06fce76e53 clean-up of cache-getpw-hash code needed (make proto showed up loads
of functions that should be static).
-
Luke Leighton
899fc053c5 Jani Jaakkola's "getpwuid() / getpwnam()" hash-cache-hack -
Luke Leighton
5777c1fb12 md5 and hmac_md5 -
Andrew Tridgell
d48e452915 use /dev/urandom not /dev/random in head branch.
also got rid of /tmp time based random source. I saw a system with a
huge number of files in /tmp and logging in was taking a _long_ time.
-
Tim Potter
deb6dfb4e0 Fix compile warning in nametouid(). -
Matthew Chapman
7ef76320b7 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.
-
Tim Potter
666afcdf1d #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.
-
Alexandre Oliva
29581f8486 * 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>
-