1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00
Commit Graph

1082 Commits

Author SHA1 Message Date
Jeremy Allison
cc447fbe3c (Correct) fix for desired_access being zero in map_share_mode().
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
e1b1b6fb67 Luke, I am moving the code back into passdb/passdb.c, this the correct
place to do this, not in smbd/passwd.c

Please don't change this without asking first, I have run this past
Andrew so talk to him (I'm on vacation next week).

I also removed the g_newXXX macros. There are essentially a private C extension,
not used anywhere else in the code, and add no functionality over malloc(XX)
and make the code harder to understand (everyone knows what malloc does).

Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
70dcc791b4 clean up oplock capability code ready for Linux code 0001-01-01 00:00:00 +00:00
Andrew Tridgell
6b888d600d split some of the irix kernel oplocks code into a function 0001-01-01 00:00:00 +00:00
Luke Leighton
2f056c2aad free NET_USER_INFO_3 gids when vuser invalidated. 0001-01-01 00:00:00 +00:00
Luke Leighton
bd34f65239 dynamic allocation of NET_USER_INFO_3 gids.
jeremy, the intent is to call se_access_check() with usr-sid, grp-sid,
array-of-group-rids (but array-of-group-sids would do).

please do look at smbd/lanman.c's api_NetWkstaGetInfo, it will show you
that we really do need to store the entire NET_USER_INFO_3 structure.

then again, api_NetWkstaGetInfo is only used by win9x so who cares :)
0001-01-01 00:00:00 +00:00
Luke Leighton
86d440a88c reverted jeremy's changes that removed NET_USER_INFO_3. will you please
not just undercut work in progress, thank you.
0001-01-01 00:00:00 +00:00
Jeremy Allison
7afb68461f Change from "David S. Chappell" <David.Chappell@mail.cc.trincoll.edu>
to make "printer driver file" a share parameter. This fits better with
the new NT printing subsystem.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
b0242080fe Fix for map_share_mode to allow desired access of zero map to stat open.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
425f4ad9a5 include/smb.h: Removed NET_USER_3 struct from user struct. It doesn't belong there (yet)
as there is no infrastructure for it. Replaced it with a dynamic array
				of group SIDs plus a user.
passdb/passdb.c: Added setup_user_sids() function. This is where the lookup should be done,
				eventually calling winbind.
smbd/password.c: Changed to call setup_user_sids(). Removed spurious DEBUG(0) statements.
smbd/reply.c: Removed extra parameter to register_vuid().

Jeremy.
0001-01-01 00:00:00 +00:00
Luke Leighton
b1889e4334 added a NET_USER_INFO_3 struct to user_struct.
register_vuid fills it with constructed info.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
0368f68529 - changed HAVE_KERNEL_OPLOCKS to HAVE_KERNEL_OPLOCKS_IRIX
- added autoconf test for HAVE_KERNEL_OPLOCKS_LINUX
0001-01-01 00:00:00 +00:00
Jeremy Allison
341d07c516 Cause printer SD's to be displayed correctly (full control).
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
8ef41f31c5 Fixing get/set of security descriptors.
Removed ugly hack for NT printing.
Fixed up tdb parse stuff memory leaks.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
f890bcf067 moved secrets fns into secrets.c 0001-01-01 00:00:00 +00:00
Jeremy Allison
f0a7540831 rpc_client/cli_lsarpc.c: Removed unused variable.
rpc_server/srv_spoolss_nt.c: Fixed more memory leaks.
smbd/nttrans.c: Fixed shadow variable problem.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
d175d3ebef param/loadparm.c: Looks like someone ran indent on this !
passdb/smbpass.c: Insure uninitialized memory reference fix.
printing/nt_printing.c:
rpc_server/srv_spoolss_nt.c: Insure memory leak fixes.
smbd/unix_acls.c: Shadow ref fix.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
c2099cfb03 Getting back to a compilable state (not there yet but close).
Added patches for random -> sys_random.
Added set_effective_xxx patches for AFS code.
Memory allocation changes in spoolss code.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
4534eae405 Changed interface to set_nt_acl slightly.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
f09c53f6b1 Working UNIX -> NT ACL mapper.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
400263245b Fixed interface between new ACLS and nttrans code.
Jeremy.
0001-01-01 00:00:00 +00:00
Luke Leighton
f9077e50cb debug output to /tmp. 0001-01-01 00:00:00 +00:00
Luke Leighton
9805e17cd0 prs_give_memory in wrong place, also poss. was losing mem. 0001-01-01 00:00:00 +00:00
Luke Leighton
06cd46b0ec fixed nttrans.c 0001-01-01 00:00:00 +00:00
Shirish Kalele
e0965a80bd Changed MS_DFS to WITH_MSDFS throughout.
Fixed trans2 calls on IPC$ to let dfs referral calls through.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
8dea95e62c got rid of lp_revalidate() 0001-01-01 00:00:00 +00:00
Jeremy Allison
8142e27c9c Did a proper fix for the file access on IPC$. Denied all pipe opens on
trans2 open calls as we don't have the pipe open response coded up yet.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
420d6bc480 Fixed bug where file access was allowed on IPC$ share.
Return correct error codes on invalid share name.
Jeremy.
0001-01-01 00:00:00 +00:00
Shirish Kalele
15e7d8f6c5 Added the NETDFS pipe to allow remote administration of the msdfs symlinks
on the samba server.
0001-01-01 00:00:00 +00:00
Shirish Kalele
6803d2574f The new msdfs implementation that uses symlinks to point to other
servers. Very intuitive.

Removed the dfs map parsing code and tdb maintenance code (files
msdfs/parse_dfs_map.c & msdfs/msdfs_tdb.c), dfs map loading and unloading
calls (param/loadparm.c smbd/server.c).

Added code to display msdfs format symlinks as directories in a
transact2_findfirst/findnext. (smbd/trans2.c)

Modified msdfs/msdfs.c to use the msdfs symlinks to
create dfs referrals.

Changed msdfs/README to reflect new operability.
0001-01-01 00:00:00 +00:00
Jeremy Allison
eba825ff03 passdb/secrets.c: Fix typo in comment.
rpc_server/srv_pipe.c: Use accessor functions rather than diddling with structure
internals directly.
smbd/process.c:
smbd/reply.c: Remove READ_PREDICTION #ifdefs.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
974813f0d4 added spool_io_printer_driver_info_level_6()
thsi function and the associated header structure were autogenerated
using a little awk based code geerator I wroe ths evening. I'll commit
that next ...
0001-01-01 00:00:00 +00:00
Andrew Tridgell
6cbb826b15 use "winbind separator" option for domain/user separator character 0001-01-01 00:00:00 +00:00
Andrew Tridgell
a0a556a36b fixed error code for buffer_too_large in trans reply 0001-01-01 00:00:00 +00:00
Andrew Tridgell
acf9286e82 fixed a problem with appliance operation 0001-01-01 00:00:00 +00:00
Andrew Tridgell
db90a4b960 use our primary domain trust account for trusted domain authentication 0001-01-01 00:00:00 +00:00
Jeremy Allison
c54e77b1f9 Check fstat return for error.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
1ed146467e lib/util_unistr.c:
libsmb/clilist.c:
rpc_server/srv_spoolss_nt.c:
smbd/trans2.c: Changed unistr_to_ascii to unistr_to_dos - do codepage conversion.
msdfs/msdfs.c: Removed stub unistr_to_dos.
libsmb/pwd_cache.c: Removed obfuscation functions as they don't do anything and
					don't add any security.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
ada483cb56 - changed smb_getpwnam() to use winbind style usernames
- finished ntdom -> winbind rename in head
0001-01-01 00:00:00 +00:00
Andrew Tridgell
5a617c013c treat a blank "password server =" line as a "*" if in domain security 0001-01-01 00:00:00 +00:00
Andrew Tridgell
0fb4ba4e03 check for sighup on each packet - otherwise it can take a _long_ time
to reload services
0001-01-01 00:00:00 +00:00
Andrew Tridgell
3e710f6602 formatting fix 0001-01-01 00:00:00 +00:00
Andrew Tridgell
9c598e571d patch from Dominik Kubla <dominik.kubla@uni-mainz.de> 0001-01-01 00:00:00 +00:00
Andrew Tridgell
92109d7b3c more merging voodoo
this adds "#define OLD_NTDOMAIN 1" in lots of places. Don't panic -
this isn't permanent, it should go after another few merge steps have
been done
0001-01-01 00:00:00 +00:00
Andrew Tridgell
d178c00aae more merging
it is now at the stage that winbindd can compile in the head branch,
but not link
0001-01-01 00:00:00 +00:00
Herb Lewis
f9a52cadbf Fix for misunderstanding of fsync added when vfs layer
was done. Samba was doing fsync's (bleagh).
Jeremy.
0001-01-01 00:00:00 +00:00
Herb Lewis
6bf74da8b8 Fix for check_kernel_oplocks looking for the var directory
before it may need to be created.
Jeremy.
0001-01-01 00:00:00 +00:00
Herb Lewis
ebb4f76550 This is reall Jeremy commiting as Herb at SGI labs. Fix
for "socket operation on non-socket" error in log.smb
on HEAD branch startup (server_fd not initialized to -1).
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
43860215d4 - use smb_gwtpwnam() in another couple of places
- don't call add/del user if the scripts are empty
0001-01-01 00:00:00 +00:00
Andrew Tridgell
88ad00b82a added secrets.tdb and changed storage of trust account password to use
it
0001-01-01 00:00:00 +00:00
Andrew Tridgell
76da586396 fixed a vfs crash bug 0001-01-01 00:00:00 +00:00
Jeremy Allison
1152f2ed00 Fix for dual unix_to_dos conversion in readdir from A.V.Shutko <AVShutko@mail.khstu.ru>
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
b899943658 Fix for read_file() returning -1.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
e8ff6d3fb5 rpc_server/srv_lsa.c: Bring into sync with 2.0.x.
rpc_server/srv_pipe_hnd.c: Bring into sync with 2.0.x.
smbd/blocking.c: Improve blocking debug reporting.
utils/torture.c: Added check for NT locking bug.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
8b7a10febe a minimal change to get appliance mode to work with winbindd
we needed to accept usernames of the form DOMAIN/user, which means we
needed to pass the domain to a getpwnam() like routine in certain
critical spots.

What I'd rather do is get rid of "char *user" everywhere and use the
new userdom_struct, but that will have to wait a few days.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
8e53f781d3 - use full_name instead of real_name
- got rid of guest map code in lpq parser
0001-01-01 00:00:00 +00:00
Andrew Tridgell
cd5dcd9e65 if the stat cache is off then don't initialise it 0001-01-01 00:00:00 +00:00
Jeremy Allison
577ddbfbec Insure uninitialized memory read fixes.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
ee8546342d split the username in the vuser structure into a separate
userdom_struct. As the name implies this also contains a domain
(unused at the moment).

This will be important shortly, as operation in appliance mode needs
the domain to be always carried with the username.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
610fcef4d3 fixed a memory leak (calling hash_table_init twice) 0001-01-01 00:00:00 +00:00
Jeremy Allison
46092ee141 Moved uglyness needed in fcntl locking (64->32 bit mapping, NFS
errors etc.) into locking/posix.c, where it is needed. fcntl_lock in lib/util.c
is now very small and clean.
Added (*lock) op to vfs layer.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
148628b616 Added sys_fork() and sys_getpid() functions to stop the overhead
of doing a system call every time we want to just get our pid.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
09355fcd50 - added some error checking
- removed the VTP hook in smbd
0001-01-01 00:00:00 +00:00
Andrew Tridgell
0bab030074 fixed dptr_wcard handling (need to use strdup) 0001-01-01 00:00:00 +00:00
Andrew Tridgell
4a15924ffe removed more cruft from our old wildcard matching code 0001-01-01 00:00:00 +00:00
Andrew Tridgell
85d634974f go back to ascii in SMB_FIND_FILE_BOTH_DIRECTORY_INFO
NT gives out unicode, but NT clients can't handle a unicode response!
0001-01-01 00:00:00 +00:00
Andrew Tridgell
38f5e13367 fixed our smbsearch code. We now store the mask with the dptr, this
turns out to be essential for a correct implementation (there ins't
enough room to store all possible masks in the status return
structure!)
0001-01-01 00:00:00 +00:00
Andrew Tridgell
03e9cea004 - removed all our old wildcard matching code and replaced it with a
call to ms_fnmatch(). This also removes all the Win9X semantics stuff
and a bunch of other associated cruft.

- moved the stat cache code into statcache.c

- fixed the uint16 alignment requirements of ascii_to_unistr() and
  unistr_to_ascii()

- trans2 SMB_FIND_FILE_BOTH_DIRECTORY_INFO returns the short name as
  unicode always (at least thats what NT4 does)

- fixed some errors in the in-memory tdb code. Still ugly, but doesn't
  crash as much
0001-01-01 00:00:00 +00:00
Jeremy Allison
858eb53dc5 Moved deletion of vfs handle into smbd/conn.c as it was being done too
soon in smbd/service.c (file operations were being done after the
handle was closed).

It looks cleaner in smbd/conn.c as it is part of the closing of a conn
struct anyway.

Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
239abd48f0 Made changes suggested by Andrew review.
fd_close now calls fd_close_posix() directly.
set_posix_lock/release_posix_lock() now handle the reference counting.
More changes due when this gets moved to the file locking/posix.c
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
6baa96bb46 Ok - this is more subtle than it looks :-).
When a file is being closed, once it passes the fnum and tid tests then
the locking context should be ignored when removing all locks. This is
what is done in the brl close case, but when you have outstanding
POSIX locks, then you cannot remove all the brl locks in one go, you
have to get the lock list and call do_unlock individually. As this
uses global_smbpid as the locking context, you need to make sure
that this is set correctly for the specific lock being removed. I
now do this by storing the smbpid in each entry in the unlock list returned from
the query call. I removed the smbpid from fsp (not needed) and
things seem ok (even with the stupid smbpid tricks that smbtorture plays :-).

Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
2746e5602e Fixed subtle unlocking bug when a file is closed. We need to store the
smbpid used when a file was opened in the files_struct. Else we use
the wrong global_smbpid when we are closing the file and trying to
remove the brl locks - this causes the brl locks to be left when the
file is closed as the samba_context check fails.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
0487841120 Did the rewrite Andrew wanted where all knowledge of POSIX locking is
removed from the smbd/open.c code.
We now use a dlink list of structures indexed by dev/inode to store
all pending fd's for close. This could be rewritten to use lib/hash.c
if this is discovered to be too slow in use.
Andrew, please take a look and let me know if this is what you
had in mind.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
5278ec016c Fixed crash bugs Andrew pointed out with LOCK4 smbtorture
test. Was miscounting posix locks, plus was not taking into account
the case where other_fsp == fsp in the 'move locks' case. DOH ! This
code will be re-written anyway :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
9cde198108 Fixed range check on writeX.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
4a4b7a994b Tidyup of smbecho.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
d7cd7c88fd moved trans2.h and nterr.h into includes.h with all our other includes 0001-01-01 00:00:00 +00:00
Jeremy Allison
1df48ed55e Added the code that keeps fd's open across a close if there are other fsp's
open on the same dev/inode pair with existing POSIX locks.

This is done at the smbd/open layer, so smbd just calls fd_close() and
the transfer of any open fd's is done under the covers of fd_close().
When an fsp is closed and no other fsp's open on the same dev/inode
pair have existing POSIX locks then all fd's associated with this fsp
are closed.

Now only the hard part of doing the POSIX range unlock code when read
locks overlap remains for full POSIX/SMB lock integration....

Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
389b700a26 Now that fsp's are created on successful file open, the structure member
fsp->open is no longer needed (if an fsp pointer is valid, then it's open :-).

NB for Luke, this patch also did not apply to TNG. TNG is not yet
identical w.r.t file serving with HEAD. This makes it impossible for
me to help maintain TNG. Please fix asap.

lib/substitute.c: Removed unused variable (pidstr).

Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
2fba24ef0e moved INSURE hook into util.c 0001-01-01 00:00:00 +00:00
Andrew Tridgell
e4ddd1a4a9 fixed two uninitialised memory references 0001-01-01 00:00:00 +00:00
Andrew Tridgell
bb9b3e03de trick to get full stack trace when using the free version of insure 0001-01-01 00:00:00 +00:00
Andrew Tridgell
53077295b7 insure caught an uninitialised memory reference - ensure it starts as
zero
0001-01-01 00:00:00 +00:00
Andrew Tridgell
062d79bf8b avoided a memory leak in the ubi code by deleting a mangled cache
entry before adding to ensure that we don't ever add a duplicate entry

this code can be removed when ubi gets fixed
0001-01-01 00:00:00 +00:00
Andrew Tridgell
d0fc1675df don't copy a null groups list 0001-01-01 00:00:00 +00:00
Andrew Tridgell
1106fa7f24 fixed overlapping strcpy() found by insure 0001-01-01 00:00:00 +00:00
Andrew Tridgell
14251aab2e fixed uninitialised snum 0001-01-01 00:00:00 +00:00
Jeremy Allison
ab0ecc39d6 This is a *big* checkin that may break some things, but implements the
new open mechanism Andrew & I discussed.

config.sub:
configure: Included the QNX patch.

include/vfs.h:
smbd/vfs-wrap.c:
smbd/vfs.c: Added ftruncate vfs call (needed).

Note that we will also need locking calls in the vfs (to be added).

lib/util_unistr.c:
nmbd/nmbd_processlogon.c: Fix for NT domain logons causing nmbd to core dump.
                          Also fix for sidsize DOS bug.

locking/locking.c: Check value of ret before using it for memdup.

printing/printing.c: Convert print_fsp_open to return an allocated fsp.

rpc_server/srv_lsa.c: Fix for NT domain logons.

I have removed all use of lp_share_modes() from the code (although I
left the parameter in the table for backwards compatibility). It no longer makes
sense for this to exist.

smbd/close.c: Removed lp_share_modes().
smbd/fileio.c: Fixed parameters to unlock_share_entry call in panic code.
smbd/files.c: Correctly set the unix_ERR_code to ERRnofids on fsp allocation fail.

smbd/nttrans.c:
smbd/reply.c:
smbd/trans2.c: Changed all occurrences of open_file_shared/open_directory/
               open_file_stat to return an fsp from the call.

smbd/open.c: Changed all occurrences of open_file_shared/open_directory/
             open_file_stat to return an fsp from the call.

In addition I have fixed a long standing race condition in the deny mode
processing w.r.t. two smbd's creating a file. Andrew, please note that
your original idea of using open with O_EXCL in this case would not work
(I went over the races very carefully) and so we must re-check deny modes
*after* the open() call returns. This is because there is a race between
the open with O_EXCL and the lock of the share mode entry. Imagine the
case where the first smbd does the open with O_EXCL and a deny mode of DENY_ALL,
but is pre-empted before it locks the share modes and creates the deny
mode entry for DENY_ALL. A second smbd could then come in with O_RDONLY
and a deny mode of DENY_NONE and the two opens would be allowed.

The *only* way to fix this race is to lock the share modes after the
open and then do the deny mode checks *after* this lock in the case
where the file did not originally exist.

This code will need extensive testing but seems to initially work.

Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
e2eacdd74c split fsusage() into a separate module (to fix linking problems with
spoolssd in tng)
0001-01-01 00:00:00 +00:00
Andrew Tridgell
95246a8432 patch from luke to split out lanman code from ipc.c into lanman.c 0001-01-01 00:00:00 +00:00
Andrew Tridgell
2c2d95d77d - got rid of the "passive" option
- cleaned up the standard_sub_*() calls a lot
0001-01-01 00:00:00 +00:00
Jeremy Allison
204ca1195c locking/locking.c: Fixed placeholder code for POSIX locking.
printing/printing.c: Cast tdb_delete to (tdb_traverse_func) to stop warning.
                     tmpfile gives mirror warning.
smbd/groupname.c: Remember to file_lines_free() on exit.
tdb/tdb.h: Add tdb_traverse_func typedef.
Jeremy
0001-01-01 00:00:00 +00:00
Luke Leighton
a0afe0d5f8 ReadDirName calls vfs->readdirname calls dos_readdirname.
replaced with readdirname.  ditto for OpenDir and CloseDir.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
384ecd9d66 converted a couple more functions to use a fd instead of a FILE*
added a new utility fn file_lines_slashcont() which is used to handle
files that treat a \ followed by a newline as a blank
0001-01-01 00:00:00 +00:00
Andrew Tridgell
a09470817c converted a bunch more functions to use a fd instead of a FILE*
to support some of this I added the following functions in util_file.c

file_lines_pload : load lines from a pipe
file_pload : load a pipe into memory
0001-01-01 00:00:00 +00:00
Andrew Tridgell
9f49d17d4c removed old comments 0001-01-01 00:00:00 +00:00
Andrew Tridgell
e8418ab736 use some symbolic names for print queue status 0001-01-01 00:00:00 +00:00
Andrew Tridgell
8af879b3f5 added helper fns to change from internal status codes to nt spoolss codes 0001-01-01 00:00:00 +00:00
Andrew Tridgell
d870542c28 the changes to the main smb code
------------
The following series of commits are for the new tdb based printing
backend. This completely replaces our old printing backend.

Major changes include:

- all print ops are now done in printing/*.c rather than scattered all
  over the place
- system job ids are decoupled from SMB job ids
- the lpq parsers don't need to be nearly so smart, they only need to
  parse the filename, the status and system job id
- we can store lots more info about a job, including the full job name
- the queue cache control is much better

I also added a new utility routine file_lines_load() that loads a text
file and parses it into lines. This is used in out lpq parsing and I
also want to use it to replace all of our fgets() based code in other
places.
0001-01-01 00:00:00 +00:00
Jeremy Allison
c3794fd29f Log file check patch from Mattias Gronlund <Mattias.Gronlund@sa.erisoft.se>.
Modified to do checks in timeout processing not in main loop. This (IMHO)
is the correct place as (a) we are already root, and (b) it is guarenteed
to be called every 200 smb requests.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
9c3b9146a3 Implmented mapping of lock offset/count from 64 bit MS ranges
to either 63 or 31 bit POSIX ranges. Code to get these locks
not yet added.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
db96f83e34 Code to map tdb locks onto POSIX. Mainly placeholder code at the moment,
but the structure is done enough so that Andrew can look it over and give
a yea/nay decision.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
fbfe94a799 Roll back to using static MACHINE.SID after consultation with Andrew. This
code will be removed soon and a SID auto-generated from (probably) primary
hostname and never stored in a file will replace it.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
df4302f391 The latest open() code changes broke the NT directory opens. Detect if a
read-only open on a directory was done and return an EISDIR from open_file().
Changed interface to fd_close to return error.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
491eea8a20 include/byteorder.h: ALIGN4/ALIGN2 macros.
include/includes.h: Added SMB_BIG_UINT_BITS.
lib/util.c: Removed align2/align4 - use macros.
libsmb/namequery.c: Use ALIGN2.
locking/locking.c: Replace do_lock, do_unlock, args with SMB_BIG_UINT, not SMB_OFF_T.
                   Needed to move to hiding POSIX locks at a lower layer.
nmbd/nmbd_processlogon.c: Use ALIGN2/ALIGN4 macros.
smbd/blocking.c: Replace do_lock, do_unlock, args with SMB_BIG_UINT, not SMB_OFF_T.
smbd/reply.c: Replace do_lock, do_unlock, args with SMB_BIG_UINT, not SMB_OFF_T.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
5937ab14d2 finally got sick of the "extern int Client" code and the stupid
assumption that we have one socket everywhere

while doing so I discovered a few bugs!

1) the clientgen session retarget code if used from smbd or nmbd would
cause a crash as it called close_sockets() which closed our main
socket! fixed by removing close_sockets() completely - it is unnecessary

2) the caching in client_addr() and client_name() was bogus - it could
easily get fooled and give the wrong result. fixed.

3) the retarget could could recurse, allowing an easy denial of
service attack on nmbd. fixed.
0001-01-01 00:00:00 +00:00
Jeremy Allison
5480ecf24b Fix for soft quotas not being set from
Norbert Pschel <Pueschel.Norbert@Walzbarren-VAW.ne.uunet.de>
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
5257ff5d67 initialise fsp->fd to -1 0001-01-01 00:00:00 +00:00
Andrew Tridgell
d1827a3648 the bulk of the changes to get rid of fd_ptr and move print open
handling to printing/printing.c

most of this was just replacing things like fsp->fd_ptr->fd with fsp->fd

the changes in open.c are quite dramatic. Most of it is removing all
the functions that handled the fd multiplexing
0001-01-01 00:00:00 +00:00
Andrew Tridgell
c0562a02c3 utmp compile fix from peter@cadcamlab.org 0001-01-01 00:00:00 +00:00
Jeremy Allison
6c442d68af Change to vfs API. POSIX states fsync should return an int, not a void.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
7325059a09 Removed strange optimisation (paranoia fix maybe ?) that stopped smbd
from returning '.' and '..' in a top level listing of a trans2 directory
scan. NT does return these entries.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
1c9d2c016a Fixed bug found by JF where if the amount of data to return in the prs_struct
was small enough to pass the SMBtrans max data test we weren't setting the
"more data needed" error. I was fogetting the RPC_HEADER_LEN.... I now
check the correct length (current pdu staging area length). More printer
spool enum stuff works now. This bug does not affect TNG.
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
a9b628ebaa More Japanese filename fixes wrt VFS code from
Tomoki AONO <aono@cc.osaka-kyoiku.ac.jp>
0001-01-01 00:00:00 +00:00
Jeremy Allison
676db02f1c Win2k will only accept volume labels in UNICODE. Fixed.... :-(.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
f15ca0d927 Moved common code to set parameter offset field correctly oout of 'if'
statement into main function code path.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
426c904333 changed the definition of dos_PutUniCode
the previous definition could result is us overflowing a buffer. The
null termination was always added yet the size returned did not
include the null termination.

the new function takes a BOOL null_terminate, and always returns the
total number of bytes consumed by the string.
0001-01-01 00:00:00 +00:00
Jeremy Allison
53721fbc7d rpc_parse/parse_spoolss.c: Added checks on mallocs/overflow checks on all prs_xx
calls.
smbd/connection.c: Fix from David Lee <T.D.Lee@durham.ac.uk>.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
90134dd137 Correctly convert from little-endian UNICODE to dos_codepage when doing
secure file create.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
f02999dbf7 acconfig.h configure configure.in: Added check for UT_SYSLEN for utmp code.
include/byteorder.h: Added alignment macros.
include/nameserv.h: Added defines for msg_type field options - from rfc1002.
lib/time.c: Typo fix.
lib/util_unistr.c: Updates from UNICODE branch.
printing/nt_printing.c: bzero -> memset.
smbd/connection.c: Added check for UT_SYSLEN for utmp code.

Other fixes : Rollback of unapproved commit from Luke.
Please *ask* next time before doing large changes to HEAD.

Jeremy.
0001-01-01 00:00:00 +00:00
Luke Leighton
96717211ed indent update to make t easier to see setuid mods in TNG. some
code from these modules i had to leave out (nothing to do withj setuid)
0001-01-01 00:00:00 +00:00
Jeremy Allison
3b8cbb10de Fixes to add "paranoid" option to popen. Checks some basic things.
Jeremy
0001-01-01 00:00:00 +00:00
Jeremy Allison
bb100352ab include/smb.h:
smbd/negprot.c:
smbd/reply.c: Fixes to recognise Win2k.
param/loadparm.c: Put debug timestamp parameter back to correct default.
smbd/nttrans.c: Fix to detect Win2k unicode bug with transact create.
Jeremy.
0001-01-01 00:00:00 +00:00
Shirish Kalele
b5a489fbb8 Cleaning up call_trans2getdfsreferral.
Instead of a #ifdef MS_DFS in call_trans2getdfsreferral()... , now using a generic call leading to some #define problems.. hopefully I've corrected the last of them.
0001-01-01 00:00:00 +00:00
Shirish Kalele
2b99318341 Cleaned up call_trans2getdfsreferral for when MS_DFS is not defined. 0001-01-01 00:00:00 +00:00
Jean-François Micouleau
b534fb03b1 moved #endif to end of function to compile when dfs is disabled.
J.F.
0001-01-01 00:00:00 +00:00
Jeremy Allison
8315583694 Fix stupid logic bug in detecting start-of-pdu in writeX on pipe.
Found by JF.
Jeremy.
0001-01-01 00:00:00 +00:00
Shirish Kalele
ca02d9f821 Cleaning up the warnings from configure.developer.
Found that Jeremy had already made some of the changes.
0001-01-01 00:00:00 +00:00
Jeremy Allison
a462191698 Fixups for compiles with gcc flags -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual
Partially implemented rpc daemon redirect (needs more work).
Jeremy.
0001-01-01 00:00:00 +00:00
Luke Leighton
c51e38214a you know, when you do a cvs commit, you _really_ expect it to actually work.
this explains why j-f wasn't happy.
0001-01-01 00:00:00 +00:00
Jean-François Micouleau
87da4404ab getprinter level 0: was to short, found most of the fields, undocumented,
undecoded, nothing in MSDN, but now it works :-)

cleanup of error codes.
fixed some dfs declarations function.

	J.F.
0001-01-01 00:00:00 +00:00
Jean-François Micouleau
e2557ae551 removed unused variable
J.F.
0001-01-01 00:00:00 +00:00
Jeremy Allison
833cd9fba9 Big update moving the multi-pdu support from 2.0.x into HEAD for JF
and the printer functions.
Also tidied up some header includes and got the order right so you
can now do a :

make proto
make clean
make

Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
d22d4482b5 Fixups for Win2K security descriptors from the 2.0.x branch.
Jeremy.
0001-01-01 00:00:00 +00:00
Shirish Kalele
4684b4a188 dded Microsoft Dfs services.
* added a new msdfs/ directory under source/
* added msdfs sources under this directory.
* modified configure setup to add a --with-msdfs configure time option

 Modified Files:
 	Makefile.in acconfig.h configure configure.in
 	include/config.h.in include/includes.h include/proto.h
 	include/smb.h include/smb_macros.h param/loadparm.c
 	smbd/negprot.c smbd/nttrans.c smbd/process.c smbd/reply.c
 	smbd/server.c smbd/trans2.c
 Added Files:
 	include/msdfs.h msdfs/README msdfs/msdfs.c msdfs/msdfs_tdb.c
 	msdfs/parse_dfs_map.c
 ----------------------------------------------------------------------
0001-01-01 00:00:00 +00:00
Jeremy Allison
4971e8b44a Off by one error in detecting Win2k unicode bug.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
ccddf4d92e Fix for Win2k unicode bug where doing SMB_NT_TRANSACT_CREATE it uses
unicode filenames whilst *not* bothering to set the unicode bit. Nice :-(.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
41e37c5181 Fixes for strange Win2K attempts to auto-inherit ACLs.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
9f879ec396 lib/system.c: Fixed gcc warnings.
nmbd/nmbd_processlogon.c: Use "True" and "False" instead of 1 and 0.
Others - preparing for multiple pdu write code.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
801ed2389b Fix for reporting file system attributes correctly.
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
02f845e543 Don't assume that the (files_struct *) passed to fd_attempt_close()
will be non-NULL.
0001-01-01 00:00:00 +00:00
Jeremy Allison
b52e92b09d Added replacement functions sys_popen and sys_pclose. These are based
on the glibc source code and are safer than the traditional popen as
they don't use a shell to exec the requested command. Now we have
these functions they can be tightened up (environment etc.) as required
to make a safe popen. It should now be safe to add the environement
variable loading code to loadparm.c
Jeremy.
0001-01-01 00:00:00 +00:00
Jean-François Micouleau
b81dc7b7f8 Jeremy can you check lib/util_unistr.c for codepages support ?
I added 2 UNICODE <-> ASCII functions which _don't_ honor codepage
support.

	J.F.
0001-01-01 00:00:00 +00:00
Tim Potter
507624dbc0 Fix some more compile warnings. 0001-01-01 00:00:00 +00:00
Tim Potter
ccbd936211 Fix some compile warnings. 0001-01-01 00:00:00 +00:00
Tim Potter
176c405d27 Put back lots of missing calls to dos_to_unix(). Thanks to
aono@cc.osaka-kyoiku.ac.jp (Tomoki AONO)
0001-01-01 00:00:00 +00:00
Tim Potter
3aad500c0f Mega-VFS merge. Yeah baby!
Synopsis: change every disk access function to work through a vfs_ops
structure contained in the connection_struct.
0001-01-01 00:00:00 +00:00
Tim Potter
b55f63da7e Comments to use vfs_* functions instead of dos_* unless really
accessing files on local disk.
0001-01-01 00:00:00 +00:00
Jeremy Allison
94c075faee Wrapped popen calls in HAVE_POPEN - needed if we are to add the
env patch.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
84b045cbc8 Fixed code page conversions of messages outgoing/incoming.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
b62a1bd632 Added hash-based stat cache code from Ying Chen.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
e5a3deba46 Second set of inline optimisation fixes from Ying Chen <ying@almaden.ibm.com>.
Stop makeing function calls for every use of skip_multibyte_char. This function
is called several *million* times during a NetBench run :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
fc0219c7cc First set of speed improvements from Ying Chen <ying@almaden.ibm.com>.
Inline several commonly used functions as macros.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
9e28b7220b fixed some typos in access_table() which, amaziingly enough, make no
difference to the result.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
0ad62f128d made access_table() a pure logic function - makes it simpler to apply
maths to
0001-01-01 00:00:00 +00:00
Andrew Tridgell
31a5857ce4 as obelix would say "these romans are crazy"
I've finally got the access table code right for the case where the
two opens are on the same connection. It is _incredibly_ complex, but
now all 1296 test cases pass.

I'll be very surprised if anyone by MS and us gets this right at
CIFS2000
0001-01-01 00:00:00 +00:00
Andrew Tridgell
5b9be3feca rewrote the access_table() code to get it right for *.exe, *.dll,
*.sym and *.com files. I still find it incredible that SMB treats file
locking differently depending on the file name - that is so ugly it
stinks.

anyway, we now behave the same way as NT, except for the
same-connection case which I'm still working on.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
070f49397f use string_set() instead of string_init()
bug pointed out by Richard
0001-01-01 00:00:00 +00:00
Jeremy Allison
eb06c19916 useable_space does not include the alignment offset calculations.
Bugfix from Marc_Jacobsen@hp.com.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
1b54cb4a33 we now pass all byte range locking tests
the last piece was to use a smb timeout slightly larger than the
locking timeout in bloking locks to prevent a race
0001-01-01 00:00:00 +00:00
Jeremy Allison
38dffd360d Added "inherit permissions" patch.
Fixed locking bug found by Andrew.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
f8bebf91ab some more work on the byte range locking
note the ugly global_smbpid - I hope that won't bethere for long, I
just didn't want to do two lots of major surgery at the one time.
Using global_smbpid avoids the big change of getting rid of our
inbuf/outbuf interface to reply routines. I'll do that once the
locking stuff passes all tests.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
44117df2c9 changes to reflect the new syntax of the locking calls. 0001-01-01 00:00:00 +00:00
Jeremy Allison
95d37a1d25 Added utmp fix from David Lee <T.D.Lee@durham.ac.uk>.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
b0a5ba9e01 Use slprintf not snprintf.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
3f7fea58e8 fix a error in access_table revealed by the new deny test in smbtorture. We now exactly match NT for normal files. We still don't match for *.exe files though 0001-01-01 00:00:00 +00:00
Jeremy Allison
d120f22fef smbd/mangle.c
smbd/negprot.c: Tidyup of static initializers.
smbd/server.c: Fix -l option.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
974af581fe Fixed deny mode bug :
: If a file is resident on NT and the first user opens it read/write with DENY_READ then a subsequent
: attempt by a second user (running under Windows 95) to open it read/write DENY_NONE fails.
: Under samba 2.0.5a the second open succeeds but the file is write only.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
b563be824b this looks like a big commit, but it isn't really :)
This fixes our netbios scope handling. We now have a 'netbios scope' option
in smb.conf and the scope option is removed from make_nmb_name()

this was prompted by a bug in our PDC finding code where it didn't append
the scope to the query of the '*' name.
0001-01-01 00:00:00 +00:00
Jeremy Allison
f4898a1f16 Re-added "dfree command" functionality that was described in the man pages
but was not in the code.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
210d61db08 Moved check_plaintext_password() into smbd/chgpasswd.c from smbd/ipc.c.
configure configure.in include/config.h.in: Added <sys/un.h> autoconf
code for Luke's UNIX domain sockets code.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
9e90122afd client/client.c: I18N fixes.
smbd/dir.c: Reformatting comments.
smbd/ipc.c: New password change code for Win98.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
aa7f815525 implemented talloc() as described on samba-technical. This fixes the
lp_string() bug properly.

we still need to add lp_talloc_free() calls in all the main event
loops, I've only put it in smbd and nmbd thus far.
0001-01-01 00:00:00 +00:00
Jeremy Allison
b5420f6152 Fixed getgrent() recurse problem.
Jeremy.
0001-01-01 00:00:00 +00:00
Luke Leighton
8976e26d46 simple mods to add msrpc pipe redirection. default behaviour: fall back
to using internal msrpc code in smbd.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
32f66f4ea6 added suppport for unexpected udp/138 packets
I also fixed up the lookup_pdc_name() code so that it now works, even
with a NT server that insists on replying to udp/138.

The method I used to match packets was to use the mailslot string as a
datagram ID. The true dgm_id doesn't work as NT doesn't set it
correctly. uggh.

PS: Jeremy, I had to change your code quite a bit, are you sure this
worked with a Samba PDC?? The code looked broken, it got the offsets
wrong in the SMB portion of the packet and filled in the IP
incorrectly.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
25b13f8b79 got rid of mem_man
yamd is much better, and doesn't require any source code changes
if you haven't seen yamd then take a look at
	http://www3.hmc.edu/~neldredge/yamd/
its excellent!
0001-01-01 00:00:00 +00:00
Andrew Tridgell
d5ceb2972b don't close the database after each claim_connection() 0001-01-01 00:00:00 +00:00
Andrew Tridgell
00e9da3ca5 - added tdb_flags option to tdb_open()
- added TDB_CLEAR_IF_FIRST flag to clear the database if this is the
  first attached process. Useful for non-persistent databases like our
  locking area (this will also make upgrades to new database layouts easier)
- use lock_path() in a couple of places
- leave connections database open while smbd running
- cleaned up some tdb code a little, using macros for constants
0001-01-01 00:00:00 +00:00
Jeremy Allison
2cf408772f Changed MAX to MIN in SET_FILE_BASIC_INFO as recommended by "Michael C. Adler" <Michael.Adler@compaq.com>
as this breaks the least number of programs.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
e48c2d9937 converted all our existing shared memory code to use a tdb database
instead of either sysv or mmap shared memory or lock files.

this means we can now completely remove
	locking_shm.c
	locking_slow.c
	shmem.c
	shmem_sysv.c
and lots of other things also got simpler

locking.c got a bit larger, but is much better compartmentalised now
0001-01-01 00:00:00 +00:00
Andrew Tridgell
4951755413 first cut at using the tdb code for the connections structure, the
SWAT status page and smbstatus. It made the code _much_ simpler, I
wish we'd done a database module a long time ago!
0001-01-01 00:00:00 +00:00
Jeremy Allison
886ad59d79 Fix from tulipant-gergely@dbrt.hu for returning incorrect error code
on user auth fail.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
8f93c08881 *Finally*. Correct patch to fix timestamp problems from Paul Eggert <eggert@twinsun.com>.
I wish I had written this one :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
d7b2087865 2nd phase of head branch sync with SAMBA_2_0 - this delets all the files that were in the head branch but weren't in SAMBA_2_0 0001-01-01 00:00:00 +00:00
Andrew Tridgell
453a822a76 first pass at updating head branch to be to be the same as the SAMBA_2_0 branch 0001-01-01 00:00:00 +00:00
Luke Leighton
054195df9b changed function name of get_home_dir() to get_unixhome_dir(), to stop
clash with gnu readline library.

fixed issue with [homes] service not being there - call lp_add_home()
just before starting the msrpc processing.
0001-01-01 00:00:00 +00:00
Luke Leighton
caa5052522 final part of "first" phase converting over to msrpc daemon architecture.
done a minimal amout of clean-up in the Makefile, removing unnecessary
modules from the link stage.  this is not complete, yet, and will
involve some changes, for example to smbd, to remove dependencies on
the password database API that shouldn't be there.  for example,
smbd should not ever call getsmbpwXXX() it should call the Samr or Lsa
API.

this first implementation has minor problems with not reinstantiating
the same services as the caller.  the "homes" service is a good example.
0001-01-01 00:00:00 +00:00
Luke Leighton
aa3c659a8d delineation between smb and msrpc more marked. smbd now constructs
pdus, and then feeds them over either a "local" function call or a "remote"
function call to an msrpc service.  the "remote" msrpc daemon, on the
other side of a unix socket, then calls the same "local" function that
smbd would, if the msrpc service were being run from inside smbd.

this allows a transition from local msrpc services (inside the same smbd
process) to remote (over a unix socket).

removed reference to pipes_struct in msrpc services.  all msrpc processing
functions take rpcsrv_struct which is a structure containing state info
for the msrpc functions to decode and create pdus.

created become_vuser() which does everything not related to connection_struct
that become_user() does.

removed, as best i could, connection_struct dependencies from the nt spoolss
printing code.

todo: remove dcinfo from rpcsrv_struct because this stores NETLOGON-specific
info on a per-connection basis, and if the connection dies then so does
the info, and that's a fairly serious problem.

had to put pretty much everything that is in user_struct into parse_creds.c
to feed unix user info over to the msrpc daemons.  why?  because it's
expensive to do unix password/group database lookups, and it's definitely
expensive to do nt user profile lookups, not to mention pretty difficult
and if you did either of these it would introduce a complication /
unnecessary interdependency.  so, send uid/gid/num_groups/gid_t* +
SID+num_rids+domain_group_rids* + unix username + nt username + nt domain
+ user session key etc.  this is the MINIMUM info identified so far that's
actually implemented.  missing bits include the called and calling
netbios names etc.  (basically, anything that can be loaded into
standard_sub() and standard_sub_basic()...)
0001-01-01 00:00:00 +00:00
Luke Leighton
30c7fdd6ef ABOUT TIME!!!!!!!!
damn, this one is bad.

started, at least two days ago, to add an authentication mechanism to
the smbd<->msrpc redirector/relay, such that sufficient unix / nt
information could be transferred across the unix socket to do a
become_user() on the other side of the socket.

it is necessary that the msrpc daemon inherit the same unix and nt
credentials as the smbd process from which it was spawned, until
such time as the msrpc daemon receives an authentication request
of its own, whereupon the msrpc daemon is responsible for authenticating
the new credentials and doing yet another become_user() etc sequence.
0001-01-01 00:00:00 +00:00
Luke Leighton
2245b0c6d1 the first independent msrpc daemon - lsarpcd.
one horrible cut / paste job from smbd, plus a code split of shared
components between the two.

the job is not _yet_ complete, as i need to be able to do a become_user()
call for security reasons.  i picked lsarpcd first because you don't
_need_ security on it (microsoft botched so badly on this one, it's not
real.  at least they fixed this in nt5 with restrictanonymous=0x2).
fixing this involves sending the current smb and unix credentials down
the unix pipe so that the daemon it eventually goes to can pick them
up at the other end.

i can't believe this all worked!!!
0001-01-01 00:00:00 +00:00
Luke Leighton
e21367c0eb domain_client_validate() no longer takes serverlist, it calls
get_any_dc_name().
0001-01-01 00:00:00 +00:00
Luke Leighton
9df973fe71 need a domain resolving function, but get_trusted_serverlist() will do.
this is horrible.
0001-01-01 00:00:00 +00:00
Luke Leighton
fa054c96c6 cli_session_setup() now takes an extra argument (host name). hey, what
the heck is a cli_session_setup() call doing in here???  this should use
cli_establish_connection()server!
0001-01-01 00:00:00 +00:00
Luke Leighton
e4d92ff9df sys_select added one more argument (read, write selectors). 0001-01-01 00:00:00 +00:00
Luke Leighton
d1986ade30 attempting to resolve the issue that multiple servers often specified in
parameters to connect to \PIPE\NETLOGON.
0001-01-01 00:00:00 +00:00
Luke Leighton
c26e8a6ac5 WARNING! MOVED rpc_server/srv_lsa_hnd.c TO lib/util_hnd.c
CVS UPDATE MAY ISSUE WARNING ABOUT lib/util_hnd.c MODIFICATION
DATE BEING IN THE FUTURE.  CVS CHECKOUT A NEW REPOSITORY MAY BE
SAFER.
0001-01-01 00:00:00 +00:00
Luke Leighton
eaac0923e0 rewrote policy handle code to be generic (it's needed for client-side too)
attempted to fix regsetsec command
0001-01-01 00:00:00 +00:00
Luke Leighton
1092b4f6fb implement server-side generation of NTLMv2 session key. YESSS :-) 0001-01-01 00:00:00 +00:00
Luke Leighton
be6a6b1393 hmmm... have to add client-side support in domain_client_validate() to
_use_ user session key.
0001-01-01 00:00:00 +00:00