summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* sam logon query creation functions. written twice because i deleted it.Luke Leighton1997-10-252-3/+173
| | | | (This used to be commit 9eee8c2007bf4f7756f6d645a61055101d280316)
* Makefile :Luke Leighton1997-10-2517-203/+498
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | adding bits for new nt domain code byteorder.h : trying to get macros right, and not to crash on SUNOS5... client.c : added #ifdef NTDOMAIN, and created do_nt_login() function. don't want to have to recompile client.c unless absolutely necessary. credentials.c : moved deal_with_creds() [possibly inappropriately] into credentials.c ipc.c reply.c server.c uid.c : attempting to make (un)become_root() functions calleable from smbclient. this is a little tricky: smbclient might have to be another setuid root program, immediately setuid'ing to non-root, so that we can reset-uid to root to get at the smbpasswd file. or, have a secure pipe mechanism to smbd to grab smbpasswd entries. or the like. smbdes.c smbencrypt.c : created a function to generate lm and nt owf hashes. lsaparse.c ntclient.c smbparse.c : added nt client LSA_AUTH2 code. it works, too! pipenetlog.c pipentlsa.c pipesrvsvc.c : simplification. code-shuffling. getting that damn offset right for the opcode in RPC_HDR. smb.h : changed dcinfo xxx_creds to DOM_CRED structures instead of DOM_CHAL. we might need to store the server times as well. proto.h : the usual. (This used to be commit 82436a3d99d4bdce249ce9ff27fd2ca4b2447e07)
* update SGI build files to latest sourceHerb Lewis1997-10-248-69/+166
| | | | (This used to be commit f492bd51a61cbe6dd4f1971491b760fc7ebd2554)
* preparing for release of 1.9.18alpha4Samba Release Account1997-10-2440-40/+40
| | | | (This used to be commit bf5b060bd9d210efe95b3529dfba98c5c49716e0)
* preparing for release of samba-1.9.18alpha4Samba Release Account1997-10-2440-40/+40
| | | | (This used to be commit e24465890a2fd87fce4f88b97f7ad84a4cc34d7b)
* updated to reflect the current state of play:Luke Leighton1997-10-241-31/+46
| | | | | | | - jeremy's nmbd restructure (wins client / wins server stuff) - which parameters are documented in smb.conf and which aren't - mentioning the new smbclient work-in-progress (This used to be commit 814543b36ecc8099790272e5dfe69b15e07c8fc5)
* default server_name if NIS server is unavailable should be the localLuke Leighton1997-10-241-2/+2
| | | | | machine, not a NULL string. (This used to be commit 5b15b17fc6da0e2b496822638edf566dedf3efde)
* nmblib.c :Luke Leighton1997-10-244-10/+13
| | | | | | | | | | | adding some debug info pipenetlog.c pipentlsa.c pipesrvsvc.c : using unistrn2 instead of unistr2 in the SAM logon username. wrong offset for command in request (use "reserved" field not cancel_count. AGH i'll get there) (This used to be commit 6d301d2cfd25b18ba18685d926d7a5bc08695b6d)
* nterr.c :Luke Leighton1997-10-2410-264/+848
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | added a structure that wraps nt errors as strings and enums, so we can do a smb_nt_error() function. Makefile ntclient.c : added ntclient.c, broken out nt domain stuff into a separate file. getting fed up of compile-times and size of client.c. fixed the do_lsa_req_chal() function. made it read the response, and return the challenge credentials received from the server. next stop: do_lsa_auth_2(). client.c : removed nt domain logon functions into a separate file. pipenetlog.c pipentlsa.c pipesrvsvc.c smbparse.c : i'd broken the offsets of the RPC_HDR while trying to sort out the nt client code. fixed it again. added some robustness stuff. util.c : the unistrn2() function was null-terminating the string at one character too many. (This used to be commit 39cec7f698c4461aee05cfbb213879fbd486117d)
* Big change to make nmbd code more readable/understandable.Jeremy Allison1997-10-2318-371/+309
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Main change is removal of find_name_search() confusion. This has been replaced with find_name_on_subnet() which makes it explicit what is being searched. Also changed wins_subnet to be wins_client_subnet in preparation for splitting the wins subnet into client and server pieces. This is a big nmbd change and I'd appreciate any bug reports. Specific changes follow : asyncdns.c: Removed wins entry from add_netbios_entry(). This is now explicit in the subnet_record parameter. interface.c: iface_bcast(), iface_nmask(), iface_ip() return the default interface if none can be found. Made this behavior explicit - some code in nmbd incorrectly depended upon this (reply_name_status() for instance). nameannounce.c: find_name_search changes to find_name_on_subnet. namebrowse.c: wins_subnet renamed to wins_client_subnet. namedbname.c: find_name_search removed. find_name_on_subnet added. add_netbios_entry - wins parameter removed. namedbsubnet.c: find_req_subnet removed - not explicit enough. nameelect.c: wins_subnet renamed to wins_client_subnet. namepacket.c: listening() simplified. nameresp.c: wins_subnet renamed to wins_client_subnet. nameserv.c: find_name_search moved to find_name_on_subnet. nameserv.h: FIND_XXX -> changed to FIND_SELF_NAME, FIND_ANY_NAME. nameservreply.c: find_name_search moved to find_name_on_subnet. Debug entries changed. nameservresp.c: wins_subnet renamed to wins_client_subnet. namework.c: wins_subnet renamed to wins_client_subnet. nmbd.c: wins parameter removed from add_netbios_entry. nmbsync: wins_subnet renamed to wins_client_subnet. proto.h: The usual. server.c: remove accepted fd from fd_set. Jeremy (jallison@whistle.com) (This used to be commit 2c97b33fc0b5ef181dbf51a50cb61074935165bf)
* renamed static cli_setup_pkt() to static cli_setup_packet() because itLuke Leighton1997-10-231-7/+7
| | | | | clashed with the currently-used cli_setup_pkt() in clientutil.c (This used to be commit 25560cf40b997e400d16fa0c1380e5bc29c015a5)
* commas in the wrong places...Luke Leighton1997-10-231-2/+2
| | | | (This used to be commit 0ca7a64515065c0d8c47b38ee996901bd5e00020)
* missed nmbsync.c when adding setup count and setup pointer arguments toLuke Leighton1997-10-232-12/+22
| | | | | | | | | | | cli_call_api(). sorting this for jeremy. there is a discrepancy between the client.c list_servers() and the nmbsync.c add_info() calls to cli_call_api() - one has an mdrcount of 1024, the other of zero. i don't know what difference this makes. (This used to be commit d8c265c515985414962bb5187c9f92d016281dcc)
* general sorting out, from crashes generated by do_lsa_req_chal() in client.cLuke Leighton1997-10-238-75/+105
| | | | | | | | | | | | trying to set up the data parameters etc and not understanding what's going on. in api_netlogTNP, added smb_io_rpc_hdr() call to decode the header received (and in this instance, generated by do_lsa_req_chal()). and then noticed that it's two bytes out. but i don't know how to do "byte parameters" and it's not the same format as the LSA_REQCHAL received from nt workstations. agh! (This used to be commit 0cc8ce43e1d54b44237bb525f4cf6b77e7ca3ced)
* missed one of the files (lsarpc) in the touch and chmod instructions.Luke Leighton1997-10-231-0/+2
| | | | (This used to be commit c100b39be9bd28498d6fda55eb2ed90af85cd3f6)
* playing about, trying to SMBopenX a \PIPE\NETLOGON (should be a SMBopen)Luke Leighton1997-10-236-47/+146
| | | | | and then send a LSA_REQ_CHAL down it. (This used to be commit 473f21071fad603865358821b83df6b58c9a06a5)
* client.c :Luke Leighton1997-10-222-11/+26
| | | | | | | | | send to \PIPE\ not \PIPE\NETLOGON. ipc.c : fstring name not being bzero'd caused problems when calling named_pipe(). (This used to be commit 2393c49b0509b8ce021f0acfba135219cd753cf9)
* Makefile client.c :Luke Leighton1997-10-229-144/+315
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | adding start of undocumented options to do NT domain logons, client-side. starting with LSA_REQCHAL. the code here happily crashes smbd: i'll investigate this further... :-) smbparse.c pipeutil.c lsaparse.c : moved some of the common make_xxxx() functions out of pipeutil.c so that the make_xxxx and (smb/lsa)_io_xxxx functions now sit together. makes sense, really... added a make_q_req_chal() function. restructured make_rpc_reply() and called it make_rpc_hdr(). created functions create_rpc_reply() and create_rpc_response(). pipenetlog.c pipentlsa.c pipesrvsvc.c calling new create_rpc_reply() function instead of old make_rpc_reply(). proto.h : usual. smb.h: added enum for RPC_PACKET_TYPE (This used to be commit b88ee3e16c6b671069f53ca2e9c5694ec8b1c030)
* Makefile client.c clientutil.c clitar.c nmbsync.c :Luke Leighton1997-10-227-1379/+422
| | | | | | | | | | | | | | | | | | | | | | redid the split that i did a year ago, taking the functions in client.c out into clientutil.c. guess what? we could now do encrypted password NetServerEnum2 calls in nmbd, if we wanted to. i can now use cli_call_api() to send to different pipes. i hope. pipenetlog.c: allow adding to users group _and_ to admin group. if adding to guest group, don't allow adding to users or admin as well. smb.h : added some pipe #defines (\PIPE\NETLOGON \PIPE\srvsvc ...) proto.h : usual. (This used to be commit 6ee065ce6e099acfc7e83ad399ef6e60b4c625c1)
* loadparm.c :Luke Leighton1997-10-229-110/+210
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | added "domain other sids" parameter pipenetlog.c : using "domain other sids" parameter in SAM Logon response. using new name_to_rid() function for r_uid and r_gid. pipentlsa.c : minor mods to do with new name_to_rid() function. pipesrvsvc.c : in the "net share enum" response, allocate some more space for the buffer. there can be only 32 share entries in the response anyway. this needs to be dealt with. pipeutil.c : modified name_to_rid() function to use new parameters "domain admin users" and "domain guest users", but will otherwise do unix uid + 1000. moved make_dom_gids() here. proto.h: the usual. smb.h smbparse.c : renamed sid_no to sid_rev_num in DOM_SID, and gid to r_gid in DOM_GID. util.c : moved make_dom_gids() from here. created char *unistrn2(uint16* uni_buffer, int max_len) (This used to be commit ec60e48d7982240b7755d246b2f1e8989467f66f)
* shared memory code cleanups (partly preparing for a possible sysVAndrew Tridgell1997-10-224-56/+68
| | | | | shared memory implementation) (This used to be commit 8d1993c71a5d5d32636f62ba9b9a9009ec74d730)
* Implemented asynchronous DNS lookups in nmbd.Andrew Tridgell1997-10-228-107/+340
| | | | | | | | | | | | | | | | | | | | | | I realised this afternoon just how easy it is to add this, so I thought I'd implement it while the idea was fresh. nmbd forks at startup and uses a pipe to talk to its child. The child does the DNS lookups and the file descriptor of the child is added to the main select loop. While I was doing this I discovered a bug in nmbd that explains why the dns proxy option has been so expensive. The DNS cache entries in the WINS list were never being checked, which means we always did a DNS lookup even if we have done it before and it is in cache. I'm sure this used to work (I tested the DNS cache when I added it) so someone broke it :-( Anyway, the async DNS gets rid of the problem completely. I'll commit just the fix to the DNS cache bug to the 1.9.17 tree. You can disable async DNS by adding -DSYNC_DNS to the compile flags. (This used to be commit 178e27de0791c1ff3268cb456ed5c5efc9ac2a01)
* updated tel no and email address for my entry.Luke Leighton1997-10-221-2/+2
| | | | (This used to be commit da4b2bf466cfca31009e02f9b33227c0c4a048b2)
* don't send any statistics in the node status replyAndrew Tridgell1997-10-221-6/+2
| | | | (This used to be commit a5f52340a49bb2c4f2cdfa7b3c8b45cc5b0e9ec6)
* preparing for release of 1.9.18alpha3Samba Release Account1997-10-2139-39/+39
| | | | (This used to be commit e4f6ec8c0e2c1ea055cdc811b19feccbc808fd0b)
* WHATSNEW.txt: Updated for alpha3.Jeremy Allison1997-10-213-4/+12
| | | | | | | | server.c: int16 -> uint16 fix for port comparisons in oplock code. Needed for Solaris. version.h: Updated to alpha3. Jeremy (jallison@whistle.com) (This used to be commit 2d9645e99ba30a5cce4372ff80d1bd26c516ac34)
* The ubi_* modules are under LGPL, not standard GPL. This README explainsChristopher R. Hertel1997-10-211-0/+15
| | | | | that. (This used to be commit bc2834c2cc7bda0c1e780d160a73c8b71bfe467f)
* preparing for release of 1.9.18alpha2Samba Release Account1997-10-2139-12/+93
| | | | (This used to be commit 27dbb81dd3ca44b45238d63f2ff3e8da429f9845)
* WHATSNEW.txt: Preparing for 1.9.18alpha2 release.Jeremy Allison1997-10-214-100/+180
| | | | | | | smb.conf.5: Added 'bind interfaces only' parameter. version.h: Updated to 1.9.18alpha2. Jeremy (jallison@whistle.com) (This used to be commit 7221e19d5ef4a242ce29d3148957c3e481456934)
* chgpasswd.c:Jeremy Allison1997-10-213-73/+154
| | | | | | | | includes.h: SCO changes. server.c: Added code in open_sockets to allow 'bind interfaces only' to work as documented. Jeremy (jallison@whistle.com) (This used to be commit 46ac5928d9069af1dc60e9724f38e228dd578937)
* loadparm.c :Luke Leighton1997-10-216-4/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | added "domain admin users" parameter added "domain guest users" parameter these two complement the "domain groups" parameter. the "domain groups" parameter should be for your own groups, and well-known aliases. util.c : added ability to do "domain groups = power_users admin_users backup_ops" which are well-known RID aliases, not well-known RID groups. pipenetlog.c : combine the "domain admin users"; "domain guest users" and "domain groups" parameters to give an array of RID groups to include in the SAM Logon response. ipc.c smb.h : moved REALLOC() into smb.h added RID #defines. proto.h: usual. (This used to be commit f2554f231d1f59f30224adcc02b2b3ca4c24e0dd)
* damn, I spelt EACCES wrong.Andrew Tridgell1997-10-211-1/+1
| | | | | actually it's wrong in the linux man page for utime ... (This used to be commit 267b56de10a20c25faee69cf4b6b6c02887ebe9c)
* check for EPERM or EACCESS in file_utime()Andrew Tridgell1997-10-211-1/+6
| | | | (This used to be commit afd7592ffd74fbc77f4b177b007291df95f418ef)
* don't check lp_alternate_permissions() in the new utime workaroundAndrew Tridgell1997-10-211-14/+12
| | | | | | | code. lp_alternate_permissions() is intended only to affect the display of file permissions, not what you can actually do with the files. (This used to be commit 454802d5922bf2b2c6df1f084e183611937ee5fb)
* fix the order of become_uid() and become_gid() in become_root(). ThisAndrew Tridgell1997-10-212-9/+2
| | | | | | | was a harmless bug but left log entries code cleanup in reply_lanman2() (This used to be commit 8e90e1ef276c4cc362e32985c2845fc4c5108273)
* Updating an entry.PaulSamba Release Account1997-10-211-4/+1
| | | | (This used to be commit 1b056ddd9a787de902639b2ed85fe3953a750562)
* add a note on how to map usernames with spaces in themAndrew Tridgell1997-10-211-0/+8
| | | | (This used to be commit 708399e23461f2cce869038ab99d5e5bb54e4a62)
* added a note about which netbios name is use in server level securityAndrew Tridgell1997-10-211-0/+5
| | | | (This used to be commit f02672439554159ee49412731978286865418588)
* prototype updatesAndrew Tridgell1997-10-211-10/+25
| | | | (This used to be commit 2b976cb7ecf50c118bd15923f6500bb8d2e058b7)
* some cleanups in the clientutil.c code.Andrew Tridgell1997-10-212-32/+46
| | | | | | | | I'm actually hoping to remove this module completely once we convert nmbd to using the new (much cleaner) clientgen.c smbclient now also reports if it connects as a guest user (This used to be commit 3af8d855facfc436cb4b64fa58aca8c056a5348e)
* rewrote the password server code using the new clientgen.c clientAndrew Tridgell1997-10-214-253/+217
| | | | | | | | | | interface The new code uses a source netbios name equal to the Samba servers name, not the client name. It also uses NetWkstaUserLogon to do a full network logon. This means it will honour the servers logon restrictions (such as login times etc). (This used to be commit 11de90f972f6d83974425e80014f54e15d495413)
* This is a set of generic SMB client routines. I needed this in a hurryAndrew Tridgell1997-10-211-0/+673
| | | | | | | to fix the password server code, so I didn't use SMBlib. This code is fairly generic and uses a "struct cli_state" to hold the client state. (This used to be commit 3a0b5f06f42efdb522f1c5d3d9a4b4afabe03b40)
* get rid of the KEEP_PASSWORD_SERVER_OPEN defineAndrew Tridgell1997-10-211-4/+0
| | | | (This used to be commit ed484d4501e855f467ce2b3cfa63855acfe5e516)
* add some debug infoAndrew Tridgell1997-10-211-0/+2
| | | | (This used to be commit b22fa0d7e3d1158112e03f93a22232e719fe6003)
* Adding make_smbcodepage.1 man page.Jeremy Allison1997-10-203-1/+187
| | | | | | Updated smb.conf with dos filetimes. Jeremy (jallison@whistle.com) (This used to be commit c4a4a9016ea5654c5d945a935e60d4f1f3b073e5)
* loadparm.c: Changed 'interfaces only' parameter to 'bind interfaces only'. AddedJeremy Allison1997-10-209-42/+95
| | | | | | | | | | | | | | 'dos filetimes' parameter for UTIME fix. locking_shm.c: Fixed typo (sorry Andrew :-). namepacket.c: Changed lp_interfaces_only() to lp_bind_interfaces_only(). proto.h: The usual. reply.c: Made filetime calls use new file_utime call (wrapper for sys_utime). server.c: Made filetime calls use new file_utime call (wrapper for sys_utime). system.c: Added Andrew's sanity checks to times in sys_utime(). time.c: Moved set_filetime() to server.c. Made null_mtime() global. trans2.c: Made filetime calls use new file_utime call (wrapper for sys_utime). Jeremy (jallison@whistle.com) (This used to be commit 41a1d81c112a82ad2ae1b3c4ee81051f133ce1ed)
* added "domain groups" parameter, allowing you to specify the groups thatLuke Leighton1997-10-204-3/+41
| | | | | | | the user belongs to. it would be nice to know exactly what the domain groups _are_.... (This used to be commit c6e37d8db0cd89a84a54a0cedfeacf50fb3f7a4c)
* added description of parameters:Luke Leighton1997-10-201-2/+75
| | | | | | | | domain sid domain groups logon drive logon path (This used to be commit 6d67eddcdffd26b0fa7f97ed3fa08ec002566367)
* added copyright to headers.Luke Leighton1997-10-202-1/+4
| | | | (This used to be commit 38287a59ae1d4053d4cd2f53a141a5c826c21efd)
* NTDOMAIN.txt:Luke Leighton1997-10-202-0/+1186
| | | | | | | | | | | | | describes how to set up samba as an NT PDC. it includes debugging assisting info. it is expected that this document turn into a user's document, rather than a debugger's document. cifsntdomain.txt : this is the "NT Domain Authentication (draft)" white paper, current version. if anyone think it's a bad idea to put a copy of this in here, i'm quite happy to remove it. (This used to be commit 8964b0ad56804b119d39ed3a72a6cf0fb578a22e)