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

2777 Commits

Author SHA1 Message Date
Matthew Chapman
c518cef78d Incorrect length (number of unicode characters rather than buffer size)
passed to ascii_to_unibuf in make_buffer2 was breaking User Manager.
-
Tim Potter
d04c530836 Modification to compile under egcs 2.91.63. -
John Terpstra
5feb10ef13 Put this back after it dropped off. -
Matthew Chapman
6f2b37bfc5 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.
-
Matthew Chapman
ca540c21f7 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.
-
Matthew Chapman
7b830350eb 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.
-
Matthew Chapman
74d6dec25d 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.
-
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
0f37e900fa Always do a compile before CVS commit! )-: -
Tim Potter
c1cbe07c03 Forgot about closedir() function for VFS. Hoo embarassing. -
Tim Potter
2d2c5ae7cd Changed calls to strncat() to safe_strcat(). Fix from SAMBA_2_0 branch. -
Luke Leighton
2f02a083b2 Dejan Ilic: spotted "NETLOGON" bug, failure of NT_STATUS WRONG_PASSWORD. -
Tim Potter
e15da68824 Under IRIX, a void function may return a value, even if that value is
void!
-
Tim Potter
abf31ca66f 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().
-
Tim Potter
5ece1fcffb Use VFS I/O for stat_cache_lookup() -
Tim Potter
cbfd8a8990 Disable VFS routines if no libdl available. -
Tim Potter
753596246c Documentation for VFS construction. -
Tim Potter
e8fa4fbf8b Fixed spelling typo in Kerberos configure option. -
Tim Potter
f40a133962 Updated for VFS merge. -
Tim Potter
17d007daa3 Fixed up incorrect calls to read_file(). -
Tim Potter
7ced7fd395 Use VFS operations for file I/O.
Modified args to read_predict to pass in fsp.

Renamed sync_file() function to sys_sync_file().
-
Tim Potter
ef24fcb7b2 Use VFS operations for file I/O.
Modified invocations of fd_attempt_close as it now takes a fsp instead
of a fd.
-
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.
-
Tim Potter
db60aa209c Added smbd/vfs.o and smbd/vfs-wrap.o to object list for smbd. -
Tim Potter
ddde0ab9a1 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.
-
Tim Potter
6e607ef760 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.  (-:
-
Tim Potter
cfddbdb624 Use VFS operations for file I/O. -
Tim Potter
15805164fe 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.
-
Tim Potter
c40124bc9a Use VFS operations for file I/O.
Changed arg to fd_attempt_close() from fd to fsp_struct.
-
Tim Potter
6479abc5b9 Use VFS operations for file I/O.
Pass files_struct and connection_struct to read_predict() and
do_read_prediction() functions, respectively.
-
Tim Potter
5051a21061 Use VFS operations for file I/O.
Changed calls to dos_{opendir,readdir} to vfs_{opendir,readdir}
equivalents.
-
Tim Potter
20bfa71c95 Use VFS operations for file I/O. -
Tim Potter
6998bdbfa8 Added struct vfs_ops describing virtual filesystem operations.
Created constants for pstring and fstring lengths.
-
Tim Potter
a7af7193e3 Added configuration parameter 'vfs object' to specify loadable object
file containing a VFS implementation.
-
Andrew Tridgell
cae71af453 new files needed by profiling code -
Andrew Tridgell
ef3d61a80a 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.
-
Alexandre Oliva
dfcfeb743a declare ttarf as double, as in client.c -
Alexandre Oliva
b482ac8fc4 use double instead of SMB_BIG_UINT for dir_total and ttarf
(by tridge, merged from branch)
-
Luke Leighton
ac070dfd39 added SamrQueryDomainInfo call info level 0x3 for kix32.exe support -
Luke Leighton
f5f61bd477 "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.
-
Luke Leighton
1cece21246 SMB_BIG_INT dir_total incompatible with %d: must use %llu (line 446) -
Luke Leighton
129a9a4d4b 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.
-
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>
-
Luke Leighton
4aed18b5e1 added SAMR_USER_INFO_24 info level to samr_set_userinfo. this is used
by "Welcome to SAMBA Domain".
-
Luke Leighton
2e58ed7424 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.
-
Luke Leighton
68841eeb64 NULL pointer handling in nt_lm_owf_gen -
Luke Leighton
9092368af8 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.
-
Luke Leighton
f84dede27e removed 2 unnecessary args from make_uni_hdr. -
Matthew Chapman
6d03f61d25 Fixed LSA Lookup Names. There were a few too many NULL pointers in a
negative response, which tended to crash lsass.exe.
-
Luke Leighton
103557e26b dynamic memory allocation in samr enum dom users. works with 849 entries now. -