summaryrefslogtreecommitdiffstats
path: root/source3/include/smb.h
Commit message (Collapse)AuthorAgeFilesLines
...
* Big update moving the multi-pdu support from 2.0.x into HEAD for JFJeremy Allison2000-03-091-0/+4
| | | | | | | | | | | | | 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. (This used to be commit 833cd9fba92e4ad5297b235d108dd2be8c17079b)
* dded Microsoft Dfs services.Shirish Kalele2000-03-081-0/+1
| | | | | | | | | | | | | | | | | | * 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 ---------------------------------------------------------------------- (This used to be commit 4684b4a188b54493dbe7f0de2909a8d3c5c3ebf9)
* client/client.c:Jeremy Allison2000-02-251-0/+12
| | | | | | | | libsmb/clientgen.c: Fixes for Win2k smbclient browsing. Other fixes implement smbpasswd -x user to delete users. Also allows swat to do the same. Jeremy. (This used to be commit 9f6ad046761adecafba59040baa3abc9f0959e65)
* Fix for reporting file system attributes correctly.Jeremy Allison2000-02-181-4/+11
| | | | | Jeremy. (This used to be commit 801ed2389b97f921aa855513696d304c542fda04)
* spoolss include definitionsJean-François Micouleau2000-02-071-2/+2
| | | | | J.F. (This used to be commit 853a1a3027dde7608027dc78f6e15789d5fc9152)
* 1) added void* state argument to tdb_traverse. guess what! there wereLuke Leighton2000-02-041-0/+14
| | | | | | | | | | | | | | | | | | | 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. (This used to be commit 49d7f0afbc1c5425d53019e234d54ddf205c8e9a)
* Busting up of source/include/smb.h into smaller pieces which can beTim Potter2000-02-031-324/+63
| | | | | #included by VFS modules without bringing in too much other junk. (This used to be commit 13a2cf80f65156e725a5716e62a4c44e70f5340f)
* Second set of inline optimisation fixes from Ying Chen <ying@almaden.ibm.com>.Jeremy Allison2000-01-261-0/+5
| | | | | | | Stop makeing function calls for every use of skip_multibyte_char. This function is called several *million* times during a NetBench run :-). Jeremy. (This used to be commit e5a3deba46ea2d4cb49a6c4b73edd766fe8b5a5c)
* First set of speed improvements from Ying Chen <ying@almaden.ibm.com>.Jeremy Allison2000-01-251-0/+75
| | | | | | Inline several commonly used functions as macros. Jeremy. (This used to be commit fc0219c7cc4b83e6db17d5b3be70d74fd7971089)
* made cvs main up-to-date with samba_tng, with addition of process id toLuke Leighton2000-01-211-0/+2
| | | | | msrpc loop-back interface. (This used to be commit adbf97c0a93149e17496b002ecc8ecdb3f360ed5)
* damn, Solaris already has a "enum lock_type"Andrew Tridgell2000-01-141-1/+1
| | | | | changed it to "enum brl_type" (This used to be commit 6b9ee7662c7afa70f6b20889e6b0ae1dcd677f9f)
* added Enosuchshare and a lock_type enumAndrew Tridgell2000-01-131-0/+4
| | | | (This used to be commit 6927aa19052baba2dcfcdec7564dad1a17f4c562)
* simple mods to add msrpc pipe redirection. default behaviour: fall backLuke Leighton2000-01-031-0/+61
| | | | | to using internal msrpc code in smbd. (This used to be commit 8976e26d46cb991710bc77463f7f928ac00dd4d8)
* First cut at unicode sys_xx functions. Now to start moving upwards.....Jeremy Allison1999-12-221-6/+10
| | | | | Jeremy. (This used to be commit b5eb009cc3cfd1adc044e91911d59acdb54c30cb)
* converted all our existing shared memory code to use a tdb databaseAndrew Tridgell1999-12-211-0/+16
| | | | | | | | | | | | | | 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 (This used to be commit e48c2d9937eea0667b8cd3332e49c06314ef31e7)
* first cut at using the tdb code for the connections structure, theAndrew Tridgell1999-12-211-12/+16
| | | | | | SWAT status page and smbstatus. It made the code _much_ simpler, I wish we'd done a database module a long time ago! (This used to be commit 4951755413c11d4c5b9af4699a6e622056d52433)
* first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1999-12-131-407/+425
| | | | (This used to be commit 453a822a76780063dff23526c35408866d0c0154)
* final part of "first" phase converting over to msrpc daemon architecture.Luke Leighton1999-12-121-1/+1
| | | | | | | | | | | | | 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. (This used to be commit caa50525220b0d0250fa139367593c2de2c12135)
* delineation between smb and msrpc more marked. smbd now constructsLuke Leighton1999-12-121-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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()...) (This used to be commit aa3c659a8dba0437c17c60055a6ed30fdfecdb6d)
* ABOUT TIME!!!!!!!!Luke Leighton1999-12-081-35/+33
| | | | | | | | | | | | | | | | 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. (This used to be commit 30c7fdd6ef10ecd35594311c1b250b95ff895489)
* first version of msrpc agent redirector code. client-side only.Luke Leighton1999-12-051-0/+11
| | | | (This used to be commit 5e5a1dceee0b6088822697284d3e0af04d197477)
* cool! created higher-order function table for agent redirection.Luke Leighton1999-12-041-0/+3
| | | | (This used to be commit 7bb2e55d0d3a00a97bba99ebed722a4adf84093c)
* jeremy is going to hate me for this.Luke Leighton1999-12-041-0/+6
| | | | | | | | | | | | created an "nmb-agent" utility that, yes: it connects to the 137 socket and accepts unix socket connections which it redirects onto port 137. it uses the name_trn_id field to filter requests to the correct location. name_query() and name_status() are the first victims to use this feature (by specifying a file descriptor of -1). (This used to be commit d923bc8da2cf996408194d98381409191dd81a16)
* argh! you wouldn't believe what i had to do: use the mid (multiplex id)Luke Leighton1999-12-041-0/+2
| | | | | | | to redirect multiple socket-based connnections onto a single client state. argh! (This used to be commit 06390e792cd8aa57a91c3a3d1d267fd1bcdc17a1)
* starting "connection reuse" system in smb-agent. added version numberLuke Leighton1999-12-031-0/+3
| | | | | which isn't actually used right now :-) (This used to be commit d54a64ae3ab7cdc1ac67fb49f7255e6a106d624e)
* sys_select added one more argument (read, write selectors).Luke Leighton1999-12-011-0/+8
| | | | (This used to be commit e4d92ff9dfc51735e6932748f66a7c20b2c1cb6a)
* added \PIPE\browser plus experimental brsinfo command. you wouldn'tLuke Leighton1999-11-191-1/+2
| | | | | | believe the XXXX that MIGHT be involved in getting nt5rc2 to join a samba domain... (This used to be commit 569babb3935950c1b64396955541abf276cc1d92)
* dynamic mem allocation in enum dom groups and enum dom aliasesLuke Leighton1999-11-021-0/+1
| | | | (This used to be commit baa789fabc45e62889755802fd8ec8c9191fe767)
* - added rudimentary CAP_UNICODE support because i thought it was part ofLuke Leighton1999-10-071-12/+14
| | | | | | | | | | | | | | | | | | a problem i was having. - added rudimentary CAP_STATUS32 support for same reason. - added hard-coded, copy-the-same-data-from-over-the-wire version of CAP_EXTENDED_SECURITY, which is a security-blob to encapsulate GSSAPI which encodes SPNEGO which is used to negotiate Kerberos or NTLMSSP. i have implemented NTLMSSP which negotiates NTLMv1 or NTLMv2 and 40-bit or 128-bit etc. i have implemented NTLMv1 / 40-bit. *whew*. (This used to be commit e5b80bd2f76fda70e41e4a9007eb035dab92ed8e)
* #defines for port 445 to SMB_PORT2Luke Leighton1999-09-151-0/+1
| | | | (This used to be commit a8d4560e0064a67a234eae89a564b79d2426d9a9)
* Moved a whole bunch of macros out of smb.h and into their own #includeTim Potter1999-07-221-122/+3
| | | | | file. (This used to be commit bf61fdace8cdf71dc3ab40795498a8bfd0d3b9a0)
* Jean-Francois Micouleau's rewritten DFS patch, originally written byLuke Leighton1999-07-121-6/+9
| | | | | | Nigel Williams. despite the data format being *exactly* the same as NT's, this still doesn't work yet. more work needed. (This used to be commit 270981960bb5aab52d2f8e494827101ece6729c4)
* Hived off debugging code from smb.h and put into debug.hTim Potter1999-06-131-91/+2
| | | | (This used to be commit afe5be3cf62b90100861e2433ea885f5d6f8708c)
* Changed the RPC api definition now first arg is a pipe_structJean-François Micouleau1999-05-031-1/+1
| | | | | | | found some memory leak in the spoolss code. Jean Francois (This used to be commit 958591abd1645aaa459540a232231d380d879219)
* md5 and hmac_md5Luke Leighton1999-04-301-0/+3
| | | | (This used to be commit 5777c1fb12edca8e57e9d5911428f70db2cf9a62)
* rpc_parse/parse_misc.c : defined a new BUFFER5 structJean-François Micouleau1999-04-271-0/+2
| | | | | | | | | | | | | | | | | | | | | 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 (This used to be commit 4c515804b70254248e378a3f90f47e4c32639d29)
* 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. (This used to be commit cf30a472f702d7b50c3a85e2cf2f55b46a2bd452)
* Broke out vfs structures to separate header file.Tim Potter1999-04-201-44/+11
| | | | | | | | Some cpp hackery to avoid redefining types used by vfs header file. Added a vfs_connection_struct to connection_struct so it can be freed when a VFS share is disconnected. (This used to be commit c72de36748aedb6b478fe32d18e77f85e34abfb0)
* Trying to improve DC location & browsing performance for the average userMatthew Chapman1999-04-111-0/+1
| | | | | | | | | | | | | | | | | | | | who doesn't know what an LMB or DMB is. * check_master_browser_exists now performs the check the first time around, so if there is indeed no master browser then Samba takes up the job much faster. * Upped default OS level to 32. There is no reason why some stupid little Windows box should become LMB instead of a Samba *server*. * "domain master" now defaults to "auto". Currently this attempts to become DMB iff Samba is the PDC (ala Windows NT). "preferred master" also defaults to "auto", which enables preferred master iff Samba is DMB. * lp_server_role now just returns the predetermined role, rather than working it out each time, since the server role is becoming very heavily used (esp for the BDC code). (This used to be commit 4a23a358b5ad8873acb7db11f27b87d2a016bec1)
* Forgot about closedir() function for VFS. Hoo embarassing.Tim Potter1999-04-081-0/+1
| | | | (This used to be commit c1cbe07c0391c36066b068fdd42bf1aa40259a5c)
* Added struct vfs_ops describing virtual filesystem operations.Tim Potter1999-04-041-30/+77
| | | | | Created constants for pstring and fstring lengths. (This used to be commit 6998bdbfa886de7feda96a6913024deb723ff13b)
* SAM database "set user info".Luke Leighton1999-03-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | ---------------------------- - 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)
* Beau Kuiper: provided patch so that passwords could only be changed byLuke Leighton1999-03-191-0/+1
| | | | | | | root if the ACB_PWLOCK bit is set (on a per-user basis). he also added an extra smbpasswd option so that this bit can be modified from command-line. (This used to be commit 534fe319d9de8da2ed7e911dbba3c7df08193efa)
* oops, IS_BITS_CLR_ALL() macro was wrong!Luke Leighton1999-03-091-1/+1
| | | | (This used to be commit a32a6f64b187e82f88eaccb6a2a88902be5cc4e0)
* rpcclient shutdown commandLuke Leighton1999-02-161-0/+7
| | | | (This used to be commit 59f081069a58f6a070ed6016c06153d5e695da93)
* comma after DOM_MAP_USER removedLuke Leighton1999-02-011-1/+1
| | | | (This used to be commit ce1ae86cbd8dec18ff981d1fce05ed660e263f38)
* A while back, Andrew and I talked about making the debug parsing code aChristopher R. Hertel1998-12-161-1/+20
| | | | | | | | | | | | | | | better "fit" with other Samba code. This is a small first step toward doing what (I think) we agreed to do. I've moved the key function from ubiqx/debugparse.c into lib/debug.c. I have also moved the enum from ubiqx/debugparse.h into the debug section in smb.h. The next thing to do is to get debug2html added into the Makefile.in so that it is always produced when compiling the suite. Chris -)----- (This used to be commit 782474f41e0c2bc0b1f098758a3e5cb44e87d8b1)
* adding srvsvc pipe.Luke Leighton1998-12-081-0/+1
| | | | (This used to be commit d06d6369942828ec89e90f99bd0d0d3f91d61d13)
* - lib/unix_sec_ctxt.cLuke Leighton1998-12-071-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | attempt at taking lib/uid.c and getting a unix security context change module that is independent of "cnums" and "snums". a security context is needed for pipes, not just IPC$ or other services. - group database API added add_group/alias_member, del_group/alias_member, del_group/alias_entry functions. del_builtin_entry() is deliberately set to NULL to cause an exception, you cannot delete builtin aliases. - parse_lsa.c srv_lsa.c fixed lookup_names code, it was a load of trash and didn't do anything. - cmd_samr.c rpcclient.c srv_samr.c added "deletegroup", "deletealias", "delaliasmem", "delgroupmem", "addgroupmem", "addaliasmem", "createalias", "creategroup", to both client and server code. server code calls into unix stubs right now, which don't actually do anything. the only instance where they are expected to do anything is in appliance mode NOT even in the ldap code or anything. client code modified to call samr_lookup_names() for group code (because we can) and lsa_lookup_names() for alias code (because we have to). - srv_lookup.c oops, lookup on unsplit name, we got lookup on DOMAIN, DOMAIN\name instead of DOMAIN, name. (This used to be commit b8175702ef61b8b37b078f38e81452c00a5e2986)
* added rid and sid_name_use to DOMAIN_GRP_MEMBER, for use in group memberLuke Leighton1998-12-021-0/+2
| | | | | | | | query. domain groups now work, hurrah! only thing is that the description is one character long, don't know why (which is wierd in itself). (This used to be commit 78a86c64960a7823b0db8b7bebfffabb4a5ba864)