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

2327 Commits

Author SHA1 Message Date
Matthew Chapman
a1d6f07e54 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.
(This used to be commit 6f2b37bfc5fc8d56b275883d0ed2c5179aa60ccd)
1999-04-08 05:37:15 +00:00
Matthew Chapman
68e1888fd3 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.
(This used to be commit ca540c21f78b4bc8ca36ac3d5af2b8f67cf716c3)
1999-04-08 05:36:39 +00:00
Matthew Chapman
373ea639e0 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.
(This used to be commit 7b830350eb54dc9d357c115e12ddf9a0633527ac)
1999-04-08 05:36:15 +00:00
Matthew Chapman
53f0cd990c 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.
(This used to be commit 74d6dec25d6b44e26d3895f789f1958d5f4639ee)
1999-04-08 05:35:53 +00:00
Matthew Chapman
e6ea3cc463 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.
(This used to be commit 7ef76320b79b3ca4e04dcf809ac6388b6c47a3d8)
1999-04-08 05:34:11 +00:00
Tim Potter
ab0d0a6f4e Always do a compile before CVS commit! )-:
(This used to be commit 0f37e900fa0744573754796916abf967fee05ea2)
1999-04-08 03:13:33 +00:00
Tim Potter
06c7ec8485 Forgot about closedir() function for VFS. Hoo embarassing.
(This used to be commit c1cbe07c0391c36066b068fdd42bf1aa40259a5c)
1999-04-08 03:01:18 +00:00
Tim Potter
bc40376caa Changed calls to strncat() to safe_strcat(). Fix from SAMBA_2_0 branch.
(This used to be commit 2d2c5ae7cd610b0d97151f90ad5ac7f4e41e514d)
1999-04-07 04:20:00 +00:00
Luke Leighton
bc973ffbdd Dejan Ilic: spotted "NETLOGON" bug, failure of NT_STATUS WRONG_PASSWORD.
(This used to be commit 2f02a083b2f766d2f3d3f410377da7f552739345)
1999-04-06 16:36:52 +00:00
Tim Potter
44784f69e0 Under IRIX, a void function may return a value, even if that value is
void!
(This used to be commit e15da6882426edd39ff7fdcd47f1be30c053d4ec)
1999-04-05 23:35:50 +00:00
Tim Potter
4085fb08fd 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().
(This used to be commit abf31ca66f3dab1b8bd7772f83e736e41afb4b1e)
1999-04-05 05:19:34 +00:00
Tim Potter
a4194191ce Use VFS I/O for stat_cache_lookup()
(This used to be commit 5ece1fcffbc5a5062c02edf6f2ecb405c2a2f43e)
1999-04-05 05:18:44 +00:00
Tim Potter
69ae7902bb Disable VFS routines if no libdl available.
(This used to be commit cbfd8a8990b4d06d0c866274e7d28e4a5e384686)
1999-04-05 05:18:07 +00:00
Tim Potter
06ab791616 Fixed spelling typo in Kerberos configure option.
(This used to be commit e8fa4fbf8b5a0d5c76745f51751e85f2ec462b41)
1999-04-04 22:58:44 +00:00
Tim Potter
51c4b55c5c Updated for VFS merge.
(This used to be commit f40a1339620f50a6127362b8156cc738dc9da5f5)
1999-04-04 07:24:14 +00:00
Tim Potter
0ca4ce887c Fixed up incorrect calls to read_file().
(This used to be commit 17d007daa3d1fa60501eae1eecfc2d0f88c1692e)
1999-04-04 07:18:38 +00:00
Tim Potter
5cf21e60c8 Use VFS operations for file I/O.
Modified args to read_predict to pass in fsp.

Renamed sync_file() function to sys_sync_file().
(This used to be commit 7ced7fd3958c76303e4b6019b5d54eda666d7b33)
1999-04-04 07:05:03 +00:00
Tim Potter
6001bd4c46 Use VFS operations for file I/O.
Modified invocations of fd_attempt_close as it now takes a fsp instead
of a fd.
(This used to be commit ef24fcb7b2248aae9c3f1fb4df7466b5ae35f5ce)
1999-04-04 07:03:47 +00:00
Tim Potter
2cda53ba68 #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.
(This used to be commit 666afcdf1d794959ea0de75205bb8024c95753b8)
1999-04-04 06:53:46 +00:00
Tim Potter
bbff2fad2f Added smbd/vfs.o and smbd/vfs-wrap.o to object list for smbd.
(This used to be commit db60aa209c43126d61a798dec69d4f4f5cbcaf37)
1999-04-04 06:47:57 +00:00
Tim Potter
e2cd60b4e1 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.
(This used to be commit ddde0ab9a1e1b90c2a96103721056eb035dcd49d)
1999-04-04 06:39:45 +00:00
Tim Potter
a107d80596 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.  (-:
(This used to be commit 6e607ef760bd2c0eb3ac31252601ab30de626270)
1999-04-04 06:37:07 +00:00
Tim Potter
6d5ef2e929 Use VFS operations for file I/O.
(This used to be commit cfddbdb62485256a947a30e04c753200451cbe1c)
1999-04-04 06:25:13 +00:00
Tim Potter
afc00dbd6f 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.
(This used to be commit 15805164fe77b127372eba1ec51c70758467adee)
1999-04-04 06:22:22 +00:00
Tim Potter
10858bba8e Use VFS operations for file I/O.
Changed arg to fd_attempt_close() from fd to fsp_struct.
(This used to be commit c40124bc9a2ebccf0bb56b1fafa81a551d934aa5)
1999-04-04 05:57:16 +00:00
Tim Potter
5bdddf2462 Use VFS operations for file I/O.
Pass files_struct and connection_struct to read_predict() and
do_read_prediction() functions, respectively.
(This used to be commit 6479abc5b985981f571cb1ee16a0dbb843fcd270)
1999-04-04 05:46:40 +00:00
Tim Potter
d4ba8a3fb3 Use VFS operations for file I/O.
Changed calls to dos_{opendir,readdir} to vfs_{opendir,readdir}
equivalents.
(This used to be commit 5051a210619374639121124e32d24217255e992e)
1999-04-04 05:40:28 +00:00
Tim Potter
9d4b57069c Use VFS operations for file I/O.
(This used to be commit 20bfa71c951a6e6018aafbd43946d1e0669feacb)
1999-04-04 05:32:42 +00:00
Tim Potter
9e071506a1 Added struct vfs_ops describing virtual filesystem operations.
Created constants for pstring and fstring lengths.
(This used to be commit 6998bdbfa886de7feda96a6913024deb723ff13b)
1999-04-04 05:29:41 +00:00
Tim Potter
0309a98851 Added configuration parameter 'vfs object' to specify loadable object
file containing a VFS implementation.
(This used to be commit a7af7193e3c38d1303919b31a73eea77d0dfa92f)
1999-04-04 04:54:50 +00:00
Andrew Tridgell
4c4d72ee17 new files needed by profiling code
(This used to be commit cae71af4536ff8bd15080f22f9a559f72ff44c68)
1999-04-01 05:35:22 +00:00
Andrew Tridgell
d330c907bd 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.
(This used to be commit ef3d61a80ad0b87c196a63ef2bd4fe8fc3863bd0)
1999-04-01 05:22:58 +00:00
Alexandre Oliva
a8aff598f4 declare ttarf as double, as in client.c
(This used to be commit dfcfeb743a7667c9dedf3d2b04587c497af12893)
1999-03-30 10:41:07 +00:00
Alexandre Oliva
d963fb524c use double instead of SMB_BIG_UINT for dir_total and ttarf
(by tridge, merged from branch)
(This used to be commit b482ac8fc4948ead79be8dd08c8386449f12e5f6)
1999-03-30 10:25:20 +00:00
Luke Leighton
6ce4aaad2b added SamrQueryDomainInfo call info level 0x3 for kix32.exe support
(This used to be commit ac070dfd39bfa9b60680855585155ce528ab7691)
1999-03-29 17:24:46 +00:00
Luke Leighton
068e77c861 "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.
(This used to be commit f5f61bd477b4910cb90675c926381342c30a5b16)
1999-03-25 21:32:04 +00:00
Luke Leighton
754be76bde SMB_BIG_INT dir_total incompatible with %d: must use %llu (line 446)
(This used to be commit 1cece2124601fad6f5f9e3e16c4b0848ec9be249)
1999-03-25 21:01:08 +00:00
Luke Leighton
3b07eff9ea 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.
(This used to be commit 129a9a4d4b74897ed753a697a3aed9b194c25568)
1999-03-25 20:56:28 +00:00
Alexandre Oliva
1db113b0a2 * 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>
(This used to be commit 29581f8486e221f41669c2ca268c282f36a496ce)
1999-03-25 20:21:01 +00:00
Luke Leighton
fa01e8764c added SAMR_USER_INFO_24 info level to samr_set_userinfo. this is used
by "Welcome to SAMBA Domain".
(This used to be commit 4aed18b5e1e2309c0f6931fbfdd604b01cb9498a)
1999-03-25 15:14:30 +00:00
Luke Leighton
43a460075a 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.
(This used to be commit 2e58ed742435befe419aa366c4052019fede8c23)
1999-03-25 13:54:31 +00:00
Luke Leighton
1ad002b749 NULL pointer handling in nt_lm_owf_gen
(This used to be commit 68841eeb64df5958a90a6471fd17e6e56fba7c67)
1999-03-24 21:23:39 +00:00
Luke Leighton
d4de2b0ae3 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.
(This used to be commit 9092368af8adbf412c71af7216365e926593d54d)
1999-03-24 21:09:34 +00:00
Luke Leighton
cd7c530f56 removed 2 unnecessary args from make_uni_hdr.
(This used to be commit f84dede27e16a5f02ee6d02fe2d16f2661c65470)
1999-03-24 17:26:08 +00:00
Matthew Chapman
22ab15823f Fixed LSA Lookup Names. There were a few too many NULL pointers in a
negative response, which tended to crash lsass.exe.
(This used to be commit 6d03f61d2536630968007958345cf44a42b03584)
1999-03-24 12:18:28 +00:00
Luke Leighton
6b9cb3a254 dynamic memory allocation in samr enum dom users. works with 849 entries now.
(This used to be commit 103557e26b071bf1e65e025ef5a52ccdbf483d02)
1999-03-23 20:43:44 +00:00
Matthew Chapman
877db70926 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.
(This used to be commit 90b6fce780c8dff37a389493be0568923b189ff0)
1999-03-23 15:01:37 +00:00
Matthew Chapman
99020c9b09 ERRmoredata is informational and should not be treated as a hard error
anywhere.
(This used to be commit 71b861f7468d7950bedb61dd18a4b9d830bf8628)
1999-03-23 14:58:26 +00:00
Matthew Chapman
f7f718911b 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.
(This used to be commit 9a482aedb2c4eb7439e2edc092642d315d2a595b)
1999-03-23 14:56:25 +00:00
Matthew Chapman
3fa7f643f2 #if defined(HAVE_MYSQL_H) || defined(WITH_MYSQLSAM)
should instead have &&.
(This used to be commit 1143fd4297b946d4ffd3c6ca104188cdcb48fac8)
1999-03-23 14:14:12 +00:00