summaryrefslogtreecommitdiffstats
path: root/source/include/ntdomain.h
Commit message (Collapse)AuthorAgeFilesLines
* Move over to RELEASE branch.Jeremy Allison2002-02-011-12/+6
| | | | Jeremy.
* Syncup getting ready for release.Jeremy Allison2001-07-061-1/+2
| | | | Jeremy.
* include/ntdomain.h:Jeremy Allison2001-04-021-1/+0
| | | | | | | | rpc_server/srv_lsa_hnd.c: Remove the back pointer to pipes that may go away before the handle does. include/proto.h: lib/replace.c: Don't protoise setlinebuf as it differs amongst systems. Jeremy.
* Move to a handle database that is shared between instances of the sameJeremy Allison2001-03-131-3/+4
| | | | | pipe. Reference count so we destroy on shutdown of the last open pipe. Jeremy.
* Moved cruft out of smb.h into ntdomain.h where it belongs. dc structJeremy Allison2001-03-111-17/+16
| | | | | | | | | now in pipe struct (where used) rather than user_struct. Secured machine account password changing in srv_netlog_nt.c - ensure that only the given machine can change its own password. May need to free this up later for NT admin tools, but this is a fail-safe secure position for now. Jeremy.
* Serious (and I *mean* serious) attempt to fix little/bigendian RPC issues.Jeremy Allison2001-03-091-0/+11
| | | | | | | | | We were reading the endainness in the RPC header and then never propagating it to the internal parse_structs used to parse the data. Also removed the "align" argument to prs_init as it was *always* set to 4, and if needed can be set differently on a case by case basis. Now ready for AS/U testing when Herb gets it set up :-). Jeremy.
* Fairly big (but needed) change. Move to per-pipe POLICY handles.Jeremy Allison2001-03-081-0/+25
| | | | | | | | | | | | | | | | | | | | All policy handles will be destroyed on pipe close. No bitmap used, and all handles allocated/deleted in the same way. The ugly, handle specific code in srv_lsa_hnd.c has been removed, now each handle type can store a private data field along with a function that will free the private data on handle close. This means the linked list of printer handles has been removed, as all the info has been added into the pipes_struct. The only issue was enumerating all printers across all open pipes on a change message receipt. This was acheived by adding an enumerate pipes function. This will be a little difficult to move to HEAD due to the samr changes, and probably needs a little more testing with insure. However, even if it turns out that handles are persistent between NT pipes in the same smbd I can fix this by transferring the handle linked list to another pipe of the same type on handle close if this turns out to be the case. Jeremy.
* But Doctor, I had to kill the patient in order to save him....Jeremy Allison2001-02-211-4/+0
| | | | | | | | | | | | | | | | | | | This will probably break 2.2 for a while. Do *NOT* checkout unless you like core dumps. This is the first merge of the TNG SAMR code into 2.2. It will eventually give us a wonderful PDC, but maybe painful in the short term. It had to be done however, and this touches almost every file (mostly just removing the OLD_NT_DOMAIN) stuff. I removed some SAMR functionality from rpcclient that would no longer compile. Also changed fstring to 256 bytes to better match an NT pathname. Jeremy.
* Ok - this is a *BIG* change - but it fixes the problems with static stringsJeremy Allison2000-07-271-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | in the RPC code. This change was prompted by trying to save a long (>256) character comment in the printer properties page. The new system associates a TALLOC_CTX with the pipe struct, and frees the pool on return of a complete PDU. A global TALLOC_CTX is used for the odd buffer allocated in the BUFFERxx code, and is freed in the main loop. This code works with insure, and seems to be free of memory leaks and crashes (so far) but there are probably the occasional problem with code that uses UNISTRxx structs on the stack and expects them to contain storage without doing a init_unistrXX(). This means that rpcclient will probably be horribly broken. A TALLOC_CTX also needed associating with the struct cli_state also, to make the prs_xx code there work. The main interface change is the addition of a TALLOC_CTX to the prs_init calls - used for dynamic allocation in the prs_XXX calls. Now this is in place it should make dynamic allocation of all RPC memory on unmarshall *much* easier to fix. Jeremy.
* Fixed some more client SPOOLSS functions. The followingGerald Carter2000-07-181-21/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | functions work now: - spoolenum - spoolopen - spoolgetprinter - spoolgetprinterdriver Items todo: - track down memory bug with spoolenumdata - fix spoolgetprinterdriverdir - fix spoolgetdata - fix display_job_info_ctr in spooljobs All part of the ongoing rpcclient work. Also included a new generic list ADT. Cleaner and simplier than the stuff in util_array.c i think (but then that's why I wrote it). --jerry
* make protoGerald Carter2000-07-141-0/+11
| | | | | | | and a few changes to ntdomain for rpcclient printing functions --jerry
* More rpcclient merge issues:Gerald Carter2000-07-071-0/+12
| | | | | | | | | | | | * fixes some readline bugs from the merge * first attempt at commands (spoolenum almost works) * no changes to existing functions in HEAD; only additions of new functions. I'll weed out what I can as I go. --jerry
* Moved authenticated pipe user details into a current_user struct.Tim Potter2000-07-061-1/+1
|
* Some more sec_ctx changes. Modified some fields in the pipe_structTim Potter2000-07-031-14/+14
| | | | | structure so authenticated pipe users can have their unix groups set when become_authenticated_pipe_user() is called.
* first pass at merging rpcclient from TNG to HEAD. You can get aGerald Carter2000-07-031-0/+22
| | | | | | | | | | | | | | semi-connection and a rpcclient prompt, but no functionality there yet. Will be a few more days on that. The changes to the header files were minor. A few struct's and a few additional fields to existing ones. No deletions. **minimal change necessary** :-) Well, maybe not minimal, but I tried. All other programs compile, link and run ok from what I can tell so I don;t think I broke anything. --jerry
* Changed function prototype for pipe api functions to take a pipes_structTim Potter2000-06-161-1/+1
| | | | instead of two prs_data pointers.
* Added the NETDFS pipe to allow remote administration of the msdfs symlinksShirish Kalele2000-05-181-0/+1
| | | | on the samba server.
* addd grow_size to prs_struct so we know how much data is actually inAndrew Tridgell2000-05-151-1/+2
| | | | the buffer
* more mergingAndrew Tridgell2000-05-101-0/+1
| | | | | it is now at the stage that winbindd can compile in the head branch, but not link
* the beginnings of a new scheme I've working on to allow an easierAndrew Tridgell2000-05-091-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | head/tng merge. It goes something like this: - headers from tng get copied over one at a time - the old headers get renamed to *_old.h - server side code that used the old headers gets a #define OLD_NTDOMAIN 1 #undef OLD_NTDOMAIN at the start and end of the code - mkproto.awk recognises these special defines and does magic stuff so that each .c file sees the right headers - we start moving the rpc client libraries from tng to head. if this goes OK then, in theory, we should be able to move the client side rpc code from tng to head without disturbing the existing head server side code. Then when that works we can consider merging the server side. it remains to be seen if this scheme will work. So far I've moved rpc_samr.h and don't seem to have broken anything. Note this this is still a very delicate operation, as at every step of the way I want to keep head fully functional. Please don't take part unless you discuss it with me first.
* Removed unused parameter vuid from rpc_server api_* calls. For the very fewTim Potter2000-04-041-1/+1
| | | | | | | functions that need to access the vuid, it can be obtained from the current_user global. Did some whitespace cleanup.
* Fixups for compiles with gcc flags -Wall -Wshadow -Wstrict-prototypes ↵Jeremy Allison2000-03-101-0/+17
| | | | | | | -Wpointer-arith -Wcast-qual Partially implemented rpc daemon redirect (needs more work). Jeremy.
* Big update moving the multi-pdu support from 2.0.x into HEAD for JFJeremy Allison2000-03-091-32/+52
| | | | | | | | | | | | 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.
* lib/system.c: Fixed gcc warnings.Jeremy Allison2000-02-231-14/+52
| | | | | | nmbd/nmbd_processlogon.c: Use "True" and "False" instead of 1 and 0. Others - preparing for multiple pdu write code. Jeremy.
* spoolss include definitionsJean-François Micouleau2000-02-071-13/+13
| | | | J.F.
* simple mods to add msrpc pipe redirection. default behaviour: fall backLuke Leighton2000-01-031-0/+4
| | | | to using internal msrpc code in smbd.
* first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1999-12-131-147/+67
|
* delineation between smb and msrpc more marked. smbd now constructsLuke Leighton1999-12-121-14/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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()...)
* the first independent msrpc daemon - lsarpcd.Luke Leighton1999-12-061-0/+2
| | | | | | | | | | | | | | | 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!!!
* improved enumdomains added -i option.Luke Leighton1999-12-021-0/+2
|
* whoa. _major_ restructure of rpcclient. fixed some buuugs, created a few.Luke Leighton1999-11-261-0/+4
| | | | | | found out that getopt() _must_ have optind set to 0 before reuse. still haven't decided what to do with the net* api yet...
* added \PIPE\browser plus experimental brsinfo command. you wouldn'tLuke Leighton1999-11-191-0/+1
| | | | | believe the XXXX that MIGHT be involved in getting nt5rc2 to join a samba domain...
* added rpcclient "enumdomains" command. enumerates names of domainsLuke Leighton1999-11-151-0/+3
| | | | | | | | for which a PDC is responsible. typical answers are: <Name of Domain> plus <Builtin>. against a hierarchical, down-level-compatible NT5 PDC, there's likely to be more than these two entries!!!!!
* - added DCE/RPC "fault" PDU support.Luke Leighton1999-11-151-5/+7
| | | | | | | | | - disabled (AGAIN) the GETDC "if (MAILSLOT\NTLOGON)" code that will get NT5rc2 to work but WILL break win95 (AGAIN). this needs _not_ to be re-enabled but to be replaced with a better mechanism. - added SMBwrite support (note: SMBwriteX already existed) as NT5rc2 is sending DCE/RPC over SMBwrite not SMBwriteX.
* debugging rpcclient spoolenum and spooljobs commands. oh, did i forgetLuke Leighton1999-11-091-0/+2
| | | | | to mention, there's a spooljobs <printer name> command, and it uses command-line completion? prints out NT print jobs really nicely, too.
* const feeding frenzyLuke Leighton1999-11-081-22/+44
|
* added command-completion printer enum code.Luke Leighton1999-11-061-0/+2
|
* adding experimental set user password command to rpcclient, it returnsLuke Leighton1999-11-041-0/+2
| | | | error wrong password against nt. ????
* rewrote rpcclient enumaliases command.Luke Leighton1999-11-011-0/+4
|
* added svcinfo <service name> command.Luke Leighton1999-10-311-0/+3
|
* rpcclient regenum key client code rewritten to use higher order functions.Luke Leighton1999-10-291-2/+6
|
* rewrite rpcclient sam enum user code to use higher order functions.Luke Leighton1999-10-291-0/+4
|
* using #defines for function prototypesLuke Leighton1999-10-291-0/+8
|
* adding error checking in parsing codeLuke Leighton1999-10-151-0/+1
|
* renaming AUTH VERIFIER to AUTH NTLMSSP VERIFIER. ready for addingLuke Leighton1999-07-261-5/+5
| | | | another RPC authentication system.
* code from bertl to allow remap of default built-in names to anything.Luke Leighton1999-07-141-7/+0
| | | | | parameter is "builtin rid file". Copyright 1999 Bertl <bp@vpnet.at>
* Changed the RPC api definition now first arg is a pipe_structJean-François Micouleau1999-05-031-1/+2
| | | | | | found some memory leak in the spoolss code. Jean Francois
* rpc_parse/parse_misc.c : defined a new BUFFER5 structJean-François Micouleau1999-04-271-0/+1
| | | | | | | | | | | | | | | | | | | | include/ntdomain.h : added rpc_spoolss.h include statement include/proto.h include/rpc_dce.h : added definition of RPC_ALTER_CONTEXT request & reply param/loadparm.c : 2 new options for NT printing support and some changes to initial values in the LPRNG case. rpc_parse/parse_prs.c : added prs_uint16s() rpc_parse/parse_rpc.c : added SYNT_SPOOLSS_V1 and code for the alter-context support. rpc_server/srv_pipe.c : alter-context support smbd/nttrans.c smbd/server.c include/rpc_misc.h Makefile.in include/smb.h Jean Francois
* Adding scheduler control pipe (\atsvc), client-side routines, and rpcclientMatthew Chapman1999-04-231-0/+1
| | | | | command "at" (compatible with NT's "at" command - see rpcclient commit) - useful for remote NT administration.
* corrections to get data stream for 2nd and subsequent pdus copied fromLuke Leighton1999-02-031-1/+0
| | | | right place (forgot to subtract 0x18 header bytes)