summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* This commit was manufactured by cvs2svn to create tagsamba-1.9.18alpha5cvs2svn Import User1997-10-250-0/+0
|\ | | | | 'release-1-9-18alpha5'.
* | preparing for release of 1.9.18alpha5Samba Release Account1997-10-2541-40/+43
| |
* | updated to describe smbclient work recently done.Luke Leighton1997-10-251-6/+23
| |
* | latest versionLuke Leighton1997-10-251-56/+231
| |
* | oops!Luke Leighton1997-10-251-2/+2
| |
* | added correct client-side credential generation / checking to the LSA SAMLuke Leighton1997-10-253-44/+82
| | | | | | | | | | Logon query. i think i even got the client-side checking of the response credentials right!
* | got the SAM logon request generated, and received a SAM logon response back.Luke Leighton1997-10-254-24/+182
| | | | | | | | | | | | | | | | | | YEAH! need to add: - client-side credential calculation - client-side parsing of the SAM logon response.
* | sam logon query creation functions. written twice because i deleted it.Luke Leighton1997-10-252-3/+173
| |
* | 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.
* | update SGI build files to latest sourceHerb Lewis1997-10-248-69/+166
| |
* | preparing for release of 1.9.18alpha4Samba Release Account1997-10-2440-40/+40
| |
* | preparing for release of samba-1.9.18alpha4Samba Release Account1997-10-2440-40/+40
| |
* | 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
* | default server_name if NIS server is unavailable should be the localLuke Leighton1997-10-241-2/+2
| | | | | | | | machine, not a NULL string.
* | 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)
* | 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.
* | 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)
* | 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
* | commas in the wrong places...Luke Leighton1997-10-231-2/+2
| |
* | 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.
* | 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!
* | missed one of the files (lsarpc) in the touch and chmod instructions.Luke Leighton1997-10-231-0/+2
| |
* | 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.
* | 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().
* | 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
* | 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.
* | 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)
* | shared memory code cleanups (partly preparing for a possible sysVAndrew Tridgell1997-10-224-56/+68
| | | | | | | | shared memory implementation)
* | 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.
* | updated tel no and email address for my entry.Luke Leighton1997-10-221-2/+2
| |
* | don't send any statistics in the node status replyAndrew Tridgell1997-10-221-6/+2
| |
* | preparing for release of 1.9.18alpha3Samba Release Account1997-10-2139-39/+39
| |
* | 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)
* | The ubi_* modules are under LGPL, not standard GPL. This README explainsChristopher R. Hertel1997-10-211-0/+15
| | | | | | | | that.
* | preparing for release of 1.9.18alpha2Samba Release Account1997-10-2139-12/+93
| |
* | 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)
* | 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)
* | 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.
* | damn, I spelt EACCES wrong.Andrew Tridgell1997-10-211-1/+1
| | | | | | | | actually it's wrong in the linux man page for utime ...
* | check for EPERM or EACCESS in file_utime()Andrew Tridgell1997-10-211-1/+6
| |
* | 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.
* | 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()
* | Updating an entry.PaulSamba Release Account1997-10-211-4/+1
| |
* | add a note on how to map usernames with spaces in themAndrew Tridgell1997-10-211-0/+8
| |
* | added a note about which netbios name is use in server level securityAndrew Tridgell1997-10-211-0/+5
| |
* | prototype updatesAndrew Tridgell1997-10-211-10/+25
| |
* | 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
* | 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 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.
* | get rid of the KEEP_PASSWORD_SERVER_OPEN defineAndrew Tridgell1997-10-211-4/+0
| |