summaryrefslogtreecommitdiff
path: root/source/libsmb
Commit message (Collapse)AuthorAgeFilesLines
* adding debug warning if cli_ulogoff attempted to be called with a fd of -1Luke Leighton2000-04-091-0/+5
|
* merge of smbd and related files, from cvs main.Luke Leighton2000-04-034-140/+99
|
* moving code around to the right places: create_ntlmssp_resp() was inLuke Leighton2000-03-312-39/+16
| | | | the wrong place in smbencrypt.c.
* make diffs on cvs main easier to compare!Luke Leighton2000-03-311-88/+89
|
* series of perl scripts (thanks tim!) to replace all calls to bzero:Luke Leighton2000-03-311-42/+42
| | | | | | | perl -e 's/bzero\((.*),\s*sizeof\(\*\1\)\)/ZERO_STRUCTP($1)/g' -pi */*.c perl -e 's/bzero\((.*),\s*sizeof\(\1\)\)/ZERO_STRUCT($1)/g' -pi */*.c perl -e 's/bzero\(&(.*),\s*sizeof\(\1\)\)/ZERO_STRUCT($1)/g' -pi */*.c perl -e 's/bzero\((.*),(.*)\)/memset($1, 0, $2)/g' -pi */*.c
* oops...Luke Leighton2000-03-301-12/+12
|
* ZERO_STRUCT not bzeroLuke Leighton2000-03-301-3/+3
|
* memset not bzeroLuke Leighton2000-03-301-46/+4
|
* modules is a leaf-node, does not require includes.hLuke Leighton2000-03-301-3/+1
|
* cannot use snprintf, must use slprintfLuke Leighton2000-03-301-1/+1
|
* uid_t cast to int.Luke Leighton2000-03-291-1/+1
|
* From Elrond@Wunder-Nett.org Tue Mar 28 09:28:32 2000Luke Leighton2000-03-272-3/+4
| | | | | | | | | | | | | | | | | | | | | | Date: Mon, 27 Mar 2000 20:37:20 +0200 From: Elrond <Elrond@Wunder-Nett.org> To: Luke Kenneth Casson Leighton <lkcl@samba.org> Subject: lsarpcd: more lookupsids - lib/set_uid.c some reindenting. - libsmb/clientgen.c:get_any_dc_name(): "We" are also responsible for "Builtin", right? - parse_lsa, cli_lsa.c: The dom_refs were marshalled incorrectly (the names and sids were put in the wrong slot.) - minor cleanup - lib/util_sid.c: minor try to merge from HEAD, please don't indent it! Elrond
* nmbd merge, all the bits that were needed from andrew's mergingLuke Leighton2000-03-273-617/+795
| | | | nmbd/*.c over. a few issues left to deal with...
* compile errorLuke Leighton2000-03-271-1/+1
|
* removed client's server name from cli_session_setup, it can be set toLuke Leighton2000-03-273-4/+17
| | | | global_myname
* 1) logon hours _is_ a 32-bit not a 16-bit. oopsLuke Leighton2000-03-081-0/+8
| | | | | | 2) logon to local workstation when it is a member of a domain is also allowed, by making domain_client_validate accept our own localservername as the domain name (a la MYSERVERNAME\user)
* more of those wonderful connection-related issues, found by rpctortureLuke Leighton2000-03-071-17/+13
|
* fascinating: may be the answer to some of the login problems: byte orderingLuke Leighton2000-03-061-13/+10
| | | | in passwords. AAGH!
* turns out that POLICY_HND actually contains an RPC_UUID. only found thisLuke Leighton2000-03-061-0/+1
| | | | | out by receiving little-endian DCE/RPC packets and sending big-endian DCE/RPC packets, of course the POLICY_HND was wrong...
* testing password change showed up some bugs in NTLMSSP calcs, plus one inLuke Leighton2000-02-271-1/+2
| | | | | cli_samr.c. from the NetrSamLogon the first 8 bytes of the LM# are received, i forgot to pass this over.
* set_secret_data() parameter typecast constant (16) to a pointer. nggggh!Luke Leighton2000-02-252-4/+4
| | | | | | added decls for setresuid. const issues.
* From Elrond@Wunder-Nett.org Thu Feb 24 08:11:57 2000Luke Leighton2000-02-231-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Date: Wed, 23 Feb 2000 19:28:08 +0100 From: Elrond <Elrond@Wunder-Nett.org> To: Luke Kenneth Casson Leighton <lkcl@samba.org> Subject: receiving multiple pdus Hi Luke, Someone ran rpcclients enumusers against a 2500 user domain yesterday... and it crashed... The code to receive multiple pdus is broken... I fixed most of the things, I could find out myself, but in rpc_client/cli_connect.c:rpc_api_rcv_pdu() in the MSRPC_LOCAL-case, I don't know, what you wanted there. (ret = ...; ret = ...;) What I did: - fixed receiving of multiple pdus (now you should be able to run rpcclient against your favorite 2500 user domain) - fixed some possible problem in become_guest (I realy should write something to samba-technical, this one is possibly interesting for HEAD/2.0 too) - fixed up some copyrights (I know, I modified those) Elrond [lkcl: the code that elrond fixed was to read a dce/rpc header of 0x18 bytes. i _thought_ i'd removed this code and replaced it with read-an-entire-pdu. it _is_ ok to do this, because the last pdu turns up short when using SMBs. you request 0x1630 bytes and you only get... say.... 0x40, 0x18 of which is the header and the rest is the last part of the last PDU]
* trying to track down why createuser -j option doesn't work on nt5, itLuke Leighton2000-02-221-1/+2
| | | | | | | turns out that they use a different format for the $MACHINE.ACC secrets. AGH!
* fixed HAVE_SETUID autoconf problems.Luke Leighton2000-02-221-2/+2
| | | | | | const issues in credentials.c / cli_login. make proto
* ZERO_STRUCT instead of memset.Luke Leighton2000-02-201-9/+9
|
* updating trust account password in idle-loop of lsarpcd not smbd.Luke Leighton2000-02-191-129/+1
|
* removed memsets, they are redundant and causing an exception in gcc (!!!)Luke Leighton2000-02-161-3/+0
|
* hooray, i think i finally have it. couple of bugs (like forgetting toLuke Leighton2000-02-131-126/+128
| | | | | store the pipe name in the ncacn_np struct so that the re-use search could FIND the damn thing to actually reuse it).
* yess! rpcclient no longer links with libsmbpw.so, which was so grosslyLuke Leighton2000-02-101-2/+2
| | | | unnecessary.
* added _lsa_set_secret implementation. fixed nt_decrypt_string() itLuke Leighton2000-02-101-11/+14
| | | | shouldn't be leaving out the length bit, that's kinda-needed!
* finally got it. lsa_set_secret(). now only need lsa_create_secret().Luke Leighton2000-02-101-2/+4
|
* finally getting somewhere with querysecret, setsecretLuke Leighton2000-02-102-15/+11
|
* attempting to add an lsa_set_secret(), client-side. consequently,Luke Leighton2000-02-101-0/+42
| | | | found a bug in lsa_open_pol2().
* tracking down memory leaks with yamd.Luke Leighton2000-02-101-1/+1
|
* This commit was manufactured by cvs2svn to create branch 'SAMBA_TNG'.cvs2svn Import User2000-02-091-0/+167
|\
| * 1) added void* state argument to tdb_traverse. guess what! there wereLuke Leighton2000-02-041-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | two places i found where it was appropriate to _use_ that third argument, in locking.c and brlock.c! there was a static traverse_function and i removed the static variable, typecast it to a void*, passed it to tdb_traverse and re-cast it back to the traverse_function inside the tdb_traverse function. this makes the use of tdb_traverse() reentrant, which is never going to happen, i know, i just don't like to see statics lying about when there's no need for them. as i had to do in samba-tng, all uses of tdb_traverse modified to take the new void* state argument. 2) disabled rpcclient: referring people to use SAMBA_TNG rpcclient. i don't know how the other samba team members would react if i deleted rpcclient from cvs main. damn, that code's so old, it's unreal. 20 rpcclient commands, instead of about 70 in SAMBA_TNG.
| * fixed a formatting errorAndrew Tridgell2000-01-161-1/+1
| |
| * damn, Solaris already has a "enum lock_type"Andrew Tridgell2000-01-141-1/+1
| | | | | | | | changed it to "enum brl_type"
| * we now pass all byte range locking testsAndrew Tridgell2000-01-141-4/+3
| | | | | | | | | | the last piece was to use a smb timeout slightly larger than the locking timeout in bloking locks to prevent a race
| * the lock routines now take a enumerated type for read/write locks, andAndrew Tridgell2000-01-131-4/+4
| | | | | | | | | | | | | | | | we now don't pass the lock type at all for unlocks. I was surprised to discover that NT totally ignores the lock type in unlocks. It unlocks a matching write lock if there is one, otherwise it removes the first matching read lock.
| * I'm currently designing a new locking system (using a tdb database!)Andrew Tridgell2000-01-101-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | that will make us match NT semantics exactly and do away with the horrible fd multiplexing in smbd. this is some diag stuff to get me started. - added the ability to do read or write locks in clientgen.c - added a LOCK4 test to smbtorture. This produces a report on the server and its locking capabilities. For example, NT4 gives this: the same process cannot set overlapping write locks the same process can set overlapping read locks a different connection cannot set overlapping write locks a different connection can set overlapping read locks a different pid cannot set overlapping write locks a different pid can set overlapping read locks the same process can set the same read lock twice the same process cannot set the same write lock twice the same process cannot override a read lock with a write lock the same process can override a write lock with a read lock a different pid cannot override a write lock with a read lock the same process cannot coalesce read locks this server does strict write locking this server does strict read locking whereas Samba currently gives this: the same process can set overlapping write locks the same process can set overlapping read locks a different connection cannot set overlapping write locks a different connection can set overlapping read locks a different pid can set overlapping write locks a different pid can set overlapping read locks the same process can set the same read lock twice the same process can set the same write lock twice the same process can override a read lock with a write lock the same process can override a write lock with a read lock a different pid can override a write lock with a read lock the same process can coalesce read locks this server does strict write locking this server does strict read locking win95 gives this - I don't understand why! the same process cannot set overlapping write locks the same process cannot set overlapping read locks a different connection cannot set overlapping write locks a different connection cannot set overlapping read locks a different pid cannot set overlapping write locks a different pid cannot set overlapping read locks the same process cannot set the same read lock twice the same process cannot set the same write lock twice the same process cannot override a read lock with a write lock the same process cannot override a write lock with a read lock a different pid cannot override a write lock with a read lock the same process cannot coalesce read locks this server does strict write locking this server does strict read locking
| * don't treat a packet as a oplock break unless it is a request, not aAndrew Tridgell2000-01-101-1/+2
| | | | | | | | reply!
| * cli_open() wasn't handling DENY_FCB or O_WRONLY correctly.Andrew Tridgell2000-01-081-6/+5
| | | | | | | | | | | | After fixing that I needed to use O_RDWR instead of O_WRONLY in several places to avoid the silly bug in MS servers that doesn't allow getattrE on a file opened with O_WRONLY
| * fixed a commentAndrew Tridgell2000-01-071-1/+1
| |
| * this looks like a big commit, but it isn't really :)Andrew Tridgell2000-01-074-15/+13
| | | | | | | | | | | | | | | | 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.
| * Fix for renaming directories on OS/2 server. Fix from John Janosik ↵Jeremy Allison2000-01-061-1/+1
| | | | | | | | | | | | <jpjanosi@us.ibm.com>. Jeremy.
| * use a minimal hash size in the unexpected packet database. A largeAndrew Tridgell2000-01-051-1/+1
| | | | | | | | | | hash is only useful when we fetch by key, not when we use tdb_traverse()
| * simple mods to add msrpc pipe redirection. default behaviour: fall backLuke Leighton2000-01-031-0/+54
| | | | | | | | to using internal msrpc code in smbd.
| * added suppport for unexpected udp/138 packetsAndrew Tridgell2000-01-033-247/+225
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * the bulk of the unexpected packet handling code is in hereAndrew Tridgell2000-01-031-0/+160
| |