1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-22 05:57:43 +03:00

2768 Commits

Author SHA1 Message Date
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. -
Matthew Chapman
90b6fce780 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.
-
Matthew Chapman
71b861f746 ERRmoredata is informational and should not be treated as a hard error
anywhere.
-
Matthew Chapman
9a482aedb2 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.
-
Matthew Chapman
1143fd4297 #if defined(HAVE_MYSQL_H) || defined(WITH_MYSQLSAM)
should instead have &&.
-
Matthew Chapman
73730f6004 Another UNICODE issue - this time BUFFER2 was being transmitted incorrectly. -
Matthew Chapman
402ed18188 If a buffer pointer is NULL then its length_is() attribute should not be
transmitted.

Such a problem was crashing Server Manager.
-
Matthew Chapman
b9e8a3ef3a 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);
-
Matthew Chapman
1e17c2529c Ensuring return status is aligned in SAMR_QUERY_DISPINFO response. -
Luke Leighton
fefb4bf191 added a "createuser" command. -